SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Apr 2010
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    JQUERY Novice to NINJA

    HI everybody!!

    A bought Jquery novice to Ninja book. I´m studying the chaper 6, 02_hijax_links and I realised that it doesn´work on chrome. Does anyone know how can I resolve the problem?

    Thank you Very much

    Ion

  2. #2
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,696
    Mentioned
    101 Post(s)
    Tagged
    4 Thread(s)
    Ajax is for communicating with a server. Your local computer is not a server.

    The book hints at this, but doesn't go in to great depth about it.

    Eventually the term has settled down to simply mean almost any technique or technology that lets a user’s browser interact with a server without disturbing the existing page.
    ...
    As Ajax runs on the browser, we need a way to interact dynamically with server.
    ...
    The load method will magically grab an HTML file off the server and insert its
    contents within the current web page.
    They don't fully push the message, but it's there. Ajax is for communicating with a server. Not your local machine.

    See Security in Depth: Local Web Pages and possibly Local files doesn't load with Ajax for more about why Google Chrome behaves as it does, possible work-around, and potential later fix.
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript

  3. #3
    SitePoint Member
    Join Date
    Apr 2010
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you very much pmw57,

    I tried on the server and it works correctly!!

    Best wishes,

    Ion


Tags for this Thread

Bookmarks

Posting Permissions

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