Page 1 of 1
PopUp Div
Posted: Sun Mar 18, 2012 12:46 pm
by YoussefSiblini
Hi Guys,
I am learning Jquery, I got every thing working in jsFiddle but when I copy and paste the code into my webpage it does not work, I noticed too that in jsFiddle it works If I opened it with Google Chrome but it does not work if I opened it with FF version 11.0
Url to jsFiddle:
http://jsfiddle.net/Banzay/8Zpn8/3/
Many thanks,
Youssef
Re: PopUp Div
Posted: Mon Mar 19, 2012 1:01 am
by Gopesh
Hi,what version of jquery are u using????
Re: PopUp Div
Posted: Mon Mar 19, 2012 4:28 am
by YoussefSiblini
Thank you for your reply,
how do you know that?
Re: PopUp Div
Posted: Mon Mar 19, 2012 4:40 am
by Gopesh
Hi it is from ur jsfiddle,Is ur problem solved?
Re: PopUp Div
Posted: Mon Mar 19, 2012 5:07 am
by YoussefSiblini
Hi,
I sorted it out, what happened is if I open it with Google Chrome I need to add $(document).ready(function(){ , but If I open it with FF I need to take the $(document).ready(function(){ off.
When I add it into my webpage I thought that I will not need $(document).ready(function(){ as I am using $("#Login_PopUp_Link").click(function(){ but it only works when I I add the $(document).ready(function(){ .
Yes, thank you it is working now, I will keep the code in jFiddle for users who need help with this
Youssef
Re: PopUp Div
Posted: Mon Mar 19, 2012 5:18 am
by Gopesh
but If I open it with FF I need to take the $(document).ready(function(){ off.
It 's an intersting thing browsers behaviour differ for same piece of code.

Re: PopUp Div
Posted: Mon Mar 19, 2012 6:00 am
by YoussefSiblini
Agreed specially IE, it is nightmare, no idea why it is still exist even lol