Go Back   CodingForums.com > :: Client side development > JavaScript programming > JavaScript frameworks

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-09-2012, 06:34 PM   PM User | #1
surreal5335
Regular Coder

 
Join Date: May 2008
Posts: 446
Thanks: 23
Thanked 5 Times in 5 Posts
surreal5335 is an unknown quantity at this point
jquery $ not defined only in chrome

I have tested some jquery code in FF IE and Chrome, but only chrome complans about the $ in the ready() not being defined.

I have checked that chrome is getting the library for jquery.

I am also getting
Unsafe JavaScript attempt to access frame with URL http://domain_1.com from frame with URL https://domain_2.com. Domains, protocols and ports must match.

What are some things I should look for to fix this issue?

Thanks aa lot
surreal5335 is offline   Reply With Quote
Old 10-09-2012, 07:23 PM   PM User | #2
WolfShade
Regular Coder

 
Join Date: Apr 2012
Location: St. Louis, MO, USA
Posts: 950
Thanks: 7
Thanked 98 Times in 98 Posts
WolfShade is an unknown quantity at this point
JavaScript has a same-domain policy.
__________________
^_^

If anyone knows of a website that can offer ColdFusion help that isn't controlled by neurotic, pedantic jerks* (stackoverflow.com), please PM me with a link.
*
The neurotic, pedantic jerks are not the owners; just the people who are in control of the "popularity contest".
WolfShade is offline   Reply With Quote
Old 10-09-2012, 07:34 PM   PM User | #3
VIPStephan
The fat guy next door


 
VIPStephan's Avatar
 
Join Date: Jan 2006
Location: Halle (Saale), Germany
Posts: 7,604
Thanks: 5
Thanked 865 Times in 842 Posts
VIPStephan is a jewel in the roughVIPStephan is a jewel in the roughVIPStephan is a jewel in the rough
And if you don’t know what that is, Wikipedia knows.
__________________
Don’t click this link!
VIPStephan is offline   Reply With Quote
Old 10-09-2012, 09:33 PM   PM User | #4
surreal5335
Regular Coder

 
Join Date: May 2008
Posts: 446
Thanks: 23
Thanked 5 Times in 5 Posts
surreal5335 is an unknown quantity at this point
if that is true why is that it this exact same scenario works on other pages I have set up on Chrome? why is it that this certain page works on IE and FF but not Chrome?
surreal5335 is offline   Reply With Quote
Old 10-09-2012, 10:40 PM   PM User | #5
xelawho
Senior Coder

 
xelawho's Avatar
 
Join Date: Nov 2010
Posts: 2,437
Thanks: 52
Thanked 454 Times in 452 Posts
xelawho will become famous soon enoughxelawho will become famous soon enough
of course it is true.

whether that is the cause for your code not working, who knows?

but chrome will often display that warning while still loading the page into the iframe.

it's a bad approach, though, and I have noticed that browsers seem to be getting tougher on displaying cross-domain content in iframes... although maybe it is some setting on the pages themselves - pages like google and yahoo will not load into an iframe on any browser that I have tried, but this site works on all (from memory, last time I checked)
xelawho is offline   Reply With Quote
Old 10-09-2012, 10:53 PM   PM User | #6
surreal5335
Regular Coder

 
Join Date: May 2008
Posts: 446
Thanks: 23
Thanked 5 Times in 5 Posts
surreal5335 is an unknown quantity at this point
well, I wish I could get away from iframes but I cant, I am stuck with using it. Is there any advice about the $ not being defined? I have a feeling thats the reason why mine wont load on Chrome.

Thanks a lot
surreal5335 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:36 AM.


Advertisement
Log in to turn off these ads.