SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    Oct 2012
    Posts
    3
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Question AJAX examples only operate on Firefox ?

    Hi, I am reading ebook jQuery (novice to rambo) from Sitepoint. Currently I practice example 2 & 3 of Chapter 6. I wonder its examples only operates on Firefox?! When I try it on Google Chrome (v22), if I click into links, it only creates blank without display content of other pages. If I try examples on IE8 & Opera 12. It will redirect to subpage which store content ...

    After click hyperlink:

    Google Chrome



    IE & Opera




  2. #2
    Under Construction silver trophybronze trophy AussieJohn's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    776
    Mentioned
    11 Post(s)
    Tagged
    0 Thread(s)
    It sounds like you are running these HTML files by double clicking on them (i.e. file:/// URLs).

    A lot of browsers won't load anything from an AJAX request when a file is opened directly from the hard drive. Fear not, the solution is simple, you only need to run Apache or IIS to get things happening.

    If you're after a local setup for Apache, I tend to use the XAMPP package a lot - makes for a pretty painless way to install Apache (http://www.apachefriends.org/en/xampp.html).
    var details = {
    . . web: "afterlight.com.au",
    . . photos: "jvdl.id.au",
    . . psa: "usethelatestversion.com"
    }


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
  •