File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jQuery functionality is not working on firefox browser

 
sunil langeh
Ranch Hand
Posts: 88
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi friends , I am putting the below mentioned Jquery in code, its working fine on IE but not on Firefox, Can anyone help me??
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are there any errors in the console?

If the function being called? Have you looked at each part of the jQuery line and see if it is working?



Than after you do that you should look at attr and prop()

Eric
 
sunil langeh
Ranch Hand
Posts: 88
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Eric,
Thanks for the quick reply, I tried as you suggested but still its not working, Jquery is not showing any results while clicking on the checked box for Firefox, but for IE its resulting something like this:
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64182
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Post an SSCCE.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You probably want change and not click.

Eric
 
sunil langeh
Ranch Hand
Posts: 88
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Eric,
I have implemented the code like: and its start working in FireFox too, but the problem is that, all the boxes are not get checked on first click, its getting checked on 2 clicks
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64182
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Post an SSCCE.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sunil langeh wrote:and its start working in FireFox too, but the problem is that, all the boxes are not get checked on first click, its getting checked on 2 clicks


Because you are adding the click event AFTER you click!

* Click one adds the jQuery click
* click 2 adds the jQuery event again and calls the jQuery event added in click one
* click 3 adds the jQuery event and calls the jQuery event added in click one and calls the jQuery event added in click two

Eric
 
sunil langeh
Ranch Hand
Posts: 88
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Eric Pascarello wrote:
sunil langeh wrote:and its start working in FireFox too, but the problem is that, all the boxes are not get checked on first click, its getting checked on 2 clicks


Because you are adding the click event AFTER you click!

* Click one adds the jQuery click
* click 2 adds the jQuery event again and calls the jQuery event added in click one
* click 3 adds the jQuery event and calls the jQuery event added in click one and calls the jQuery event added in click two

Eric


So what should i do eric to handle this, Please suggest ..
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Only use jQuery to add the event on document ready.

Eric
 
sunil langeh
Ranch Hand
Posts: 88
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Eric Pascarello wrote:Only use jQuery to add the event on document ready.

Eric


Still not working
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Show your code
 
sunil langeh
Ranch Hand
Posts: 88
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic