13,287,343 members (55,602 online)
Forgot your password?
Sign in with
Chapters and Sections
Article Help Forum
Submit an article or tip
Post your Blog
Ask a Question
View Unanswered Questions
View All Questions...
All Message Boards...
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Design and Architecture
C / C++ / MFC
ATL / WTL / STL
Objective-C and Swift
Hardware & Devices
Hosting and Servers
Silverlight / WPF
Site Bugs / Suggestions
Spam and Abuse Watch
The Insider Newsletter
The Daily Build Newsletter
Most Valuable Professionals
The Insider News
The Weird & The Wonderful
General Indian Topics
General Chinese Topics
What is 'CodeProject'?
Ask a Question
Bugs and Suggestions
Article Help Forum
Advertise with us
About our Advertising
Comments by Niral Soni (Top 45 by date)
Remove "mouseout" event from Button A and put it on Popup
How you are saving values to database ? Is it a form submit or AJAX call ?
'\b' switch is ANCHORS type regular expression pattern, used to match specified string is a word character and two switches across the string to carry out exact match. RegEx function match() returns the array of all matched strings. So, at the end joining them without any separator to yield required result.
I can not use them directly because they are user defined variables. Not a fixed static object.
Here, I have an Object ("autoFilter"), having two public methods ("init" and "filterTable")
The instance created (by anyone who uses this code) for this object will be used for invoking these two public methods, "manually".
In order to invoke these methods automatically (and dynamically), I must have the reference to the "user-defined" instance of the Object.
Its not about handling events.
Its about how to bind a dynamically created string that will act as a function to be called when the event occurs.
Here, I have an Input box, KeyUP event, and a function to be called on this event. This function is created dynamically, and it requires the name of the variable used for creating the object.
"someObject" and "anyUserObject" are two such user-defined variables used for invoking the function onKeyUp event as -
Hope you got it...
In the for loop, value of 0 <= i < happyRating.size() - 1, which means if happyRating size is 10, then i will loop from value 0 till value 8.
the if condition within for loop is actually not required (i just placed it to avoid multiple changes in your code). You can remove this if block (and no need of break statement in else block).
Anyway, i+1 < happyRating.size() is a boundary check condition to avoid any IndexOutOfBoundsException.
((i + 1) < happyRating.size()) instead of just i or happyRating.get(i)
Because, in your original code, happyRating.get(i - 1) could be any random value (eventhough you asked explicitly for value between 1 to 10).
Regarding the new logic -
1) the loop starts with index 0 until it reaches to 8. So that the total values accessed within the block will be in the pairs - (0,1) (1,2) (2,3) (3,4) (4,5) (5,6) (6,7) (7,8) (8,9) which covers all the indexes within happyRating arraylist
2) your x1y1 pair will be the index i + 1, and x2y2 pair will be the index i.
And what exactly you want to achieve with this piece of code ?
Won't it be similar to the HTML file upload component ??
Some sample code please... We just can't provide solution without looking at your piece of code sir.
try encoding the data using escape() or encodeURIComponent()
I agree with what Mike has stated. It would be good if you use pagination for displaying 1000 records.
And also, try to set TABINDEX property of each textbox and see if it works.
All the best !!!
If you still want to go with this one, you will need to either incorporate AJAX to load html web page for each tab, or else, you need to reload the page every time a tab is getting clicked, and also to pass the selected tab index as parameter.
It is because when you are uploading large file, the actual upload is processed by your server. Depending upon the session timeout defined in the config files, you may receive this message - "Problem loading page ('Connection was reset')"
I will be glad if you tell me the reason for such a unique requirement.
try setting the z-index of your DIV tag to something like 5 or 10 and see if it works...
Well, its free for development purpose as well as to translate whole website (live). But for specific translation options, its paid service.
You can also go for the Bing (Microsoft) translation service, which is free to use.
Why don't you just make use of the Google Translate API ?
It might be possible that both your html pages contains BODY tag (Not sure on this), and due to this you are not able to get the ID of the textarea. May be you can try removing the HTML,HEAD, BODY tags from the child page that is getting included in the main page.
What is the agenda behind this question ? through HTML/CSS its not possible to create any shape other than rectangle/square.
You can create two different triangle images with required colors and set them as a background of div, position div elements such that your required shape gets created.
Or else, make use of CANVAS tag in HTML to achieve this.
When you are dealing with the dynamic web applications, there is always issues related to the search engines, how they would find contents of your website (products, categories etc). I myself have never tried to create a website publiclly accessible, but from my understanding, there are some configurations you need to made on your web server which will allow your dynamic page contents to be searchable. You also need to improve your page ranking so that your site reaches to more and more people. check this url - (http://www.googleguide.com/improving_pagerank.html)
Google has provided its own configuration so that your pages can come in the search results.
Hope this helps you out...
Could you please tell me what kind of file(plain text, CSV, XLS etc) you want to open in HTML?
I have the code to implement this, but want to confirm your requirements first.
try interchanging the code sequence -
//create result handler
xmlHttp.onreadystatechange = X;
//Send HTTP request
xmlHttp.open("POST", url, true);
The third parameter in xmlHttp.open() indicates that you are trying to invoke asynchronous call (having value set to true). there is different interpretation of this call for mozilla. hence. the open() method should be followed by send() method.
Reason for my vote of 5
Add "tooltip" attribute to every option tag (rather then providing it only on the "select" tag)
are you trying to upload a plain text file or something else ?
I have updated the solution, rather then clone the actual property is cloneNode.
Post some sample code please...
Go for a menu.. not possible with the html SELECT tag
Please elaborate your question. Your current problem statement can be interpreted as - "person is going in a Hotel asking Waiter to serve for a meal that contains Beans !!!"
The basic rule for this is to store the state of every tree node at the time of refresh (either using url parameters or localStorage concept) and to re-apply those stored values back to the treeview to expand it.
step 1) webpage opened for the first time (treeview is in collapse form)
step 2) expanding one or more treenodes (also, preseving all those nodes that are expanded)
step 3) browser is refreshed because of some user action / event (passing all the preserved values to the request so as to get it back after refresh or storing the values in cookies or localStorage)
Thanks & regards,
search for the line -
col.innerHTML = es.Cells(i,j).value || ' ';
replace it with -
col.innerHTML = es.Cells(i,j).text || ' ';
Hope it will help you.
Thanks for using this.
try renaming the function reset to resetForm (as reset being the keyword)
My understanding of the CURSOR is that it will store the WHOLE result of the query, thereby releases the occupied resources, and the result can be processed separately.
So, if that is correct then my problem area still remains the same. Because, I was thinking of a way to display the record as soon as it matches the search pattern.
May be my thinking is wrong as the Windows Search works on the file system, while database follows the ACID properties. And hence one can not add a kind of HOOK in the database search and return the partial result.
Thanks & Regards,
Reason for my vote of 2
See my alternative solution below.
pdf viewer and the web browser are all together a separate thing.
Web04 | 2.8.171207.1 | Last Updated 1 Jan 1900
All Rights Reserved.
Terms of Service