SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    SitePoint Member
    Join Date
    Jun 2007
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Building Ajax Web Applications: Ch. 2

    So I'm just getting started with Ajax and just bought this book. Going through chapter 2 I tested "A Simple AJAX Test" in the following browsers:
    IE 6, IE 7, Firefox 2.0.0.5, Opera 9.x, Safari 3.02, all on the Win XP platform. All the browsers worked except for IE7. IE7 doesn't give an indication of any errors and now alert bar showed up. Not sure if its the code or the browser or a compatibility issue...

    These are all default browser installs. Except for Firefox which I have added several extensions to.

    Any help?

  2. #2
    SitePoint Wizard jimbo_dk's Avatar
    Join Date
    May 2005
    Location
    Singapore
    Posts
    1,261
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    In AJAX if something went wrong in your back-end script it won't usually show up in the front-end as an error. So try checking your back-end first.
    Winners Respond. Losers React.
    Singapore Web Designer

  3. #3
    SitePoint Member
    Join Date
    Jun 2007
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If the backend was wrong, wouldn't that cause the other browsers to have problems too?


    just a note, the 2nd app in CH.2, appmonitor1, works fine in all browsers listed above. It uses the same ajax code file as the AjaxTest app. Perhaps the problem has to do with IE7 displaying alert windows?

    update: just to test I entered javascript:alert(document.compatMode) int eh address bar and did not recieve an alert window. I'm not able to reinstall from the network segment I'm on so I'll tinker with it at home later. Thanks for your response jimbo!

  4. #4
    SitePoint Wizard jimbo_dk's Avatar
    Join Date
    May 2005
    Location
    Singapore
    Posts
    1,261
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by boipster View Post
    If the backend was wrong, wouldn't that cause the other browsers to have problems too?
    Yups. True. I guess I missed that part earlier. I don't have the book you are using, so I can't help you much on this. Wait around a bit and I'm sure someone else will respond.
    Winners Respond. Losers React.
    Singapore Web Designer

  5. #5
    SitePoint Author Kevin Yank's Avatar
    Join Date
    Apr 2000
    Location
    Melbourne, Australia
    Posts
    2,571
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    You should try turning on JavaScript error notifications in IE7 so that you can see the JavaScript error that is causing the script to fail.
    Kevin Yank
    CTO, sitepoint.com
    I wrote: Simply JavaScript | BYO PHP/MySQL | Tech Times | Editize
    Baby’s got back—a hard back, that is: The Ultimate CSS Reference

  6. #6
    SitePoint Member
    Join Date
    Jun 2007
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks Kevin, but how exactly do i do that? I don't see it in the advanced tab of internet options or in the zone control settings...

  7. #7
    SitePoint Author Kevin Yank's Avatar
    Join Date
    Apr 2000
    Location
    Melbourne, Australia
    Posts
    2,571
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Internet Options > Advanced > Browsing > Display a notification about every script error.
    Kevin Yank
    CTO, sitepoint.com
    I wrote: Simply JavaScript | BYO PHP/MySQL | Tech Times | Editize
    Baby’s got back—a hard back, that is: The Ultimate CSS Reference


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
  •