Click here to Skip to main content
15,896,118 members

Comments by Niral Soni (Top 45 by date)

Niral Soni 3-Sep-13 10:34am View    
Remove "mouseout" event from Button A and put it on Popup
Niral Soni 23-Aug-13 7:01am View    
How you are saving values to database ? Is it a form submit or AJAX call ?
Niral Soni 16-Aug-13 9:02am View    
'\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.

To learn more on JavaScript RegEx, http://tech.pro/tutorial/1214/javascript-regular-expression-enlightenment

Regards,
Niral Soni
Niral Soni 26-Apr-13 6:54am View    
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.

Niral Soni 25-Apr-13 11:43am View    
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 -
someObject.filterTable();
and
anyUserObject.filterTable();

Hope you got it...