Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    Regular Coder
    Join Date
    May 2008
    Posts
    446
    Thanks
    23
    Thanked 5 Times in 5 Posts

    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

  • #2
    Regular Coder
    Join Date
    Apr 2012
    Location
    St. Louis, MO
    Posts
    985
    Thanks
    7
    Thanked 101 Times in 101 Posts
    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".

  • #3
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,703
    Thanks
    6
    Thanked 1,011 Times in 984 Posts
    And if you don’t know what that is, Wikipedia knows.

  • #4
    Regular Coder
    Join Date
    May 2008
    Posts
    446
    Thanks
    23
    Thanked 5 Times in 5 Posts
    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?

  • #5
    Senior Coder xelawho's Avatar
    Join Date
    Nov 2010
    Posts
    2,981
    Thanks
    56
    Thanked 557 Times in 554 Posts
    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)

  • #6
    Regular Coder
    Join Date
    May 2008
    Posts
    446
    Thanks
    23
    Thanked 5 Times in 5 Posts
    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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •