You can infer from this example:- $(“a[href*=jquery.com]”) This selector matches all elements that reference the jQuery site. That means: it selects all elements that has a value 'jquery.com' in it's attribute 'href'. (* means anywhere in the string, ^ means begins with, $ means ends with)
Member 565451
Posts
-
jQuery Question -
How to handle a User Control Event ?On CancelButton's clientclick event write a client side (javascript) function to close the window. e.g; window.opener=null;window.close(); Hope this helps:)
-
Ajax enabled page stops responding after kept idle for some time.Hi Mike, well i was not aware of this. i am trying to find out the solution for a long time now, so posted it in Web development forum as well to get some help.
-
Ajax enabled page stops responding after kept idle for some time.My asp.net application is ajax enabled. After the page is loaded completely, if there is no user activity for sometime, the screen stops responding until i close the browser and open it again. In some of the screens, on Session timeout (i have tested it by keeping the screens idle for 20 minutes), the user is redirected to the login page. But on few screens, the redirect does not happen. The screen stands still and no buttons links on the page respond to any mouse or keyboard event. At this point, if i press the "Refresh" button on the browser address bar, then i get logged out of the application and redirected to the login page. On the browser Status bar (bottom left hand corner of the browser window) a javascript error message displayed as "Error on Page" instead of "Done". On click of it, following error messages can be seen in the javascript error message pop-up. Unexpected ajax response was received from the Server This may be caused by one of the following reasons: Server.Transfer Custom Http handler Incorrect loading of an "Ajaxified" user control Verify that you don't get a server side exception or any other undesired behavior, by setting the EnableAJAX property to false. not possible to add the screen shots, else wd have done. All the pages and user controls in my application follow the same ajax panel structure and loading.
-
Ajax enabled page stops responding after kept idle for some timeMy asp.net application is ajax enabled. After the page is loaded completely, if there is no user activity for sometime, the screen stops responding until i close the browser and open it again. In some of the screens, on Session timeout (i have tested it by keeping the screens idle for 20 minutes), the user is redirected to the login page. But on few screens, the redirect does not happen. The screen stands still and no buttons links on the page respond to any mouse or keyboard event. At this point, if i press the "Refresh" button on the browser address bar, then i get logged out of the application and redirected to the login page. On the browser Status bar (bottom left hand corner of the browser window) a javascript error message displayed as "Error on Page" instead of "Done". On click of it, following error messages can be seen in the javascript error message pop-up. Unexpected ajax response was received from the Server This may be caused by one of the following reasons: Server.Transfer Custom Http handler Incorrect loading of an "Ajaxified" user control Verify that you don't get a server side exception or any other undesired behavior, by setting the EnableAJAX property to false. not possible to add the screen shots, else wd have done. All the pages and user controls in my application follow the same ajax panel structure and loading.