PopUp Div

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
YoussefSiblini
Forum Contributor
Posts: 206
Joined: Thu Jul 21, 2011 1:51 pm

PopUp Div

Post 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
Gopesh
Forum Contributor
Posts: 143
Joined: Fri Dec 24, 2010 12:48 am
Location: India

Re: PopUp Div

Post by Gopesh »

Hi,what version of jquery are u using????
YoussefSiblini
Forum Contributor
Posts: 206
Joined: Thu Jul 21, 2011 1:51 pm

Re: PopUp Div

Post by YoussefSiblini »

Thank you for your reply,

how do you know that?
Gopesh
Forum Contributor
Posts: 143
Joined: Fri Dec 24, 2010 12:48 am
Location: India

Re: PopUp Div

Post by Gopesh »

Hi it is from ur jsfiddle,Is ur problem solved?
YoussefSiblini
Forum Contributor
Posts: 206
Joined: Thu Jul 21, 2011 1:51 pm

Re: PopUp Div

Post 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
Gopesh
Forum Contributor
Posts: 143
Joined: Fri Dec 24, 2010 12:48 am
Location: India

Re: PopUp Div

Post 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.:)
YoussefSiblini
Forum Contributor
Posts: 206
Joined: Thu Jul 21, 2011 1:51 pm

Re: PopUp Div

Post by YoussefSiblini »

Agreed specially IE, it is nightmare, no idea why it is still exist even lol
Post Reply