I have developed one small application using jquery. my problem is that some funcationality is working very well in every browser but some are too much bad. some time check box onchange event is working very well but after two to three attept it is not woking.....
once i cleared browser cache then again it is working well.....
How can solve this problem ? Is there any browser issue with jquer ?
Please reply on urgent basis.
Thankx.
If you like this post please mark as an answer so it will help others.
Pritesh Meht...
Member
246 Points
151 Posts
Is every browser is compatible with jquery ?
Dec 06, 2012 06:09 PM|LINK
Hi,
I have developed one small application using jquery. my problem is that some funcationality is working very well in every browser but some are too much bad. some time check box onchange event is working very well but after two to three attept it is not woking..... once i cleared browser cache then again it is working well.....
How can solve this problem ? Is there any browser issue with jquer ?
Please reply on urgent basis.
Thankx.
texx
Contributor
2412 Points
415 Posts
Re: Is every browser is compatible with jquery ?
Dec 06, 2012 07:09 PM|LINK
Almost all, or at least the more modern ones.
See jquery wiki entry on browser compatibility.
http://docs.jquery.com/Browser_Compatibility
Xequence
Contributor
4313 Points
1528 Posts
Re: Is every browser is compatible with jquery ?
Dec 07, 2012 02:09 AM|LINK
do you use .live?
Credentials
asteranup
All-Star
30184 Points
4906 Posts
Re: Is every browser is compatible with jquery ?
Dec 07, 2012 02:14 AM|LINK
Hi,
Check your code. This might be some implementation problem. You can create a jsfiddle reproducing your issue.
Anup Das Gupta
Mark as Answer if you feel so. Visit My Blog
Pritesh Meht...
Member
246 Points
151 Posts
Re: Is every browser is compatible with jquery ?
Dec 07, 2012 07:27 AM|LINK
Yes i have used .live
following is my code...
$('.ChkBox').live("click", function () { var id = $(this).attr('id').split('_')[1]; var TrId = $(this).closest("tr").attr("id"); if ($('input[name$="chk_' + id + '"]:checked').length > 0) { //var I = $('input[name$="chk_' + id + '"]').length; $("#Chk_" + id + "").attr('checked', true); var Tds = $(this).closest("tr").find('td'); //var Tds = $($(this).closest("tr")).find('td'); var isBool = IsRowExist(TrId); if (isBool === false) { AddNew_DA(TrId, Tds); } else { Update_DA(Tds); } } else { $("#Chk_" + id + "").attr('checked', false); Delete_DA(TrId); } });Xequence
Contributor
4313 Points
1528 Posts
Re: Is every browser is compatible with jquery ?
Dec 07, 2012 02:00 PM|LINK
i had same problem, try changing .live to ('body').on('click','.chkbox',function(){
//dowork
});
but some argue using body is bad, so find a wrapper element that encapsulates your elements you wish to apply click event,
.on prevents inadvertantly propigating your events and preventing strange things from happening in your browser.
http://stackoverflow.com/questions/9215237/live-vs-on-method
Credentials
Pritesh Meht...
Member
246 Points
151 Posts
Re: Is every browser is compatible with jquery ?
Dec 08, 2012 02:24 PM|LINK
Hi,
thanks a lot for reply.
i have tryied, locally its working fine but not working on server.
thanks
Xequence
Contributor
4313 Points
1528 Posts
Re: Is every browser is compatible with jquery ?
Dec 08, 2012 09:50 PM|LINK
caching issue?
Credentials