+ Reply to Thread
Results 1 to 6 of 6

Thread: ajax problem

  1. #1
    rickle42 is offline x10Hosting Member rickle42 is an unknown quantity at this point
    Join Date
    Sep 2007
    Posts
    59

    ajax problem

    Hi,
    I have a site with 6 navigation buttons that uses ajax. For some reason the 5th button "giftshop" causes the entire page to reload. Any ideas why this may be happening? It "works", but bothers me that ajax is not working for this button. Its gotta be something in the php file that is being called to replace the innerHTML. I donr expect anyone to try and debug my code for me. Just seeing if maybe having a form or flash on that page is causing this, as it is the only of the 6 pages with either.
    Edit:
    http://santaclaus25.com/
    Edit:
    And also i just noticed it works with firefox, but not IE. So problem is the one button doesnt use ajax only in IE
    Last edited by rickle42; 11-09-2007 at 04:20 AM. Reason: Automerged Doublepost

  2. #2
    Thewinator is offline x10 Lieutenant Thewinator is an unknown quantity at this point
    Join Date
    Oct 2007
    Location
    [NL]
    Posts
    256

    Re: ajax problem

    I'm using firefox, sorry cant help you.
    On a side note, you don't want to use ajax to load your pages unless its absolutely neccesary that your page doesn't reload.
    Why? Becouse people can have their javascript turned of, making it not work.
    You can't use the previous and next page buttons of your browser.
    So its best to use another system.



  3. #3
    galaxyAbstractor's Avatar
    galaxyAbstractor is offline Community Advocate galaxyAbstractor is on a distinguished road
    Join Date
    Oct 2007
    Location
    Land of Null and Insanity
    Posts
    5,495

    Re: ajax problem

    Nothing reloads in my firefox. But the site is messy and a gallery button is showed all around. And if I hold my mouse over gift shop it changes the gift shop button to shedule and so on.

  4. #4
    rickle42 is offline x10Hosting Member rickle42 is an unknown quantity at this point
    Join Date
    Sep 2007
    Posts
    59

    Re: ajax problem

    i like only having to click once to go back out of site. I hate clicking back 6 times to get out of site. but could be a lot of xtra work to handle "non js enabled" browsers.twice the work maybe?
    what version of ff vigge? and what os? that sounds terrible

  5. #5
    Slothie's Avatar
    Slothie is offline Lord Of The Keys Slothie is an unknown quantity at this point
    Join Date
    Sep 2007
    Location
    Singapore
    Posts
    1,432

    Re: ajax problem

    Its not a bad thing, what we normally do is have a 'gracefully-degradable' version of AJAX that detects if the browser has no JS support and adjusts the page view accordingly.

    Easiest 70 points you'll make on x10

    Feel free to add my reputation by clicking on the if you found my post helpful to you :P


    If I am not responding to your PMs, that means I am ignoring you. Take a hint.



    09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0


  6. #6
    rickle42 is offline x10Hosting Member rickle42 is an unknown quantity at this point
    Join Date
    Sep 2007
    Posts
    59

    Re: ajax problem

    By the way i have a related question...
    Is using httprequest to replace a div considered Ajax? I thought it stood for asyncrous javascript and xml...
    Is xhtml considered xml or something? Do I know xml but just not know it? I thought xml was a special type of file that looks real simple and is data definition and instance declaration at same time. I have only browsed at these files. Is xhtml somehow related to xml?

+ Reply to Thread

Similar Threads

  1. File Folder Access Permission Problem
    By sourabhj in forum Free Hosting
    Replies: 7
    Last Post: 11-15-2007, 03:01 PM
  2. cpanel log in problem? please help
    By aquila in forum Free Hosting
    Replies: 4
    Last Post: 11-06-2007, 09:33 PM
  3. Problem with SMF
    By tam-iam in forum Free Hosting
    Replies: 5
    Last Post: 08-21-2007, 03:20 PM
  4. Ad code problem!
    By Akkarin in forum Free Hosting
    Replies: 8
    Last Post: 08-29-2005, 10:39 AM
  5. Ftp Timeout problem
    By ironcross77 in forum Free Hosting
    Replies: 7
    Last Post: 04-12-2005, 08:53 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers