I need help with AJAX , please help

Discussion in 'Programming' started by Psych0, Sep 18, 2007.

  1. #1
    i have attached my website's page layout..
    check it.

    so, i want to do this :

    if someone clicks on " Menu 1 or Menu 2 " the page should not be refreshed , but instead only the " Contents" page should be refreshed , this is work of ajax , for example , if you are at " home" , and you click on "forum link" on the " Menu 1" ,so you should be seeing the forum page on contents without letting the page re-loaded.

    can someone help me with it please?
     

    Attached Files:

    Psych0, Sep 18, 2007 IP
  2. Synchronium

    Synchronium Active Member

    Messages:
    463
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    58
    #2
    This will be awful for search engine optimisation.

    You can use my AJAX Object if you wanna give me a link back.

    You'll need to change a few small bits, but it should help out a lot.
     
    Synchronium, Sep 18, 2007 IP
  3. Psych0

    Psych0 Banned

    Messages:
    99
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #3
    but will this work exactly as i mentioned on my first post?
     
    Psych0, Sep 18, 2007 IP
  4. Synchronium

    Synchronium Active Member

    Messages:
    463
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    58
    #4
    No, it will provide you with an easy to use framework so you can achieve what you want without much hassle.

    I'm not going to do everything for you.
     
    Synchronium, Sep 18, 2007 IP
  5. Psych0

    Psych0 Banned

    Messages:
    99
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #5
    well... i am a noob at ajax/javascript so i cant understand your script..
    i just need the script that i mentioned above , in return , i will give free backlink to the helper..
     
    Psych0, Sep 18, 2007 IP
  6. Synchronium

    Synchronium Active Member

    Messages:
    463
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    58
    #6
    Yeah ok... Show me your HTML code and I'll tell you what to do.
     
    Synchronium, Sep 18, 2007 IP
  7. Synchronium

    Synchronium Active Member

    Messages:
    463
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    58
    #7
    No? Ok then. *shrug*
     
    Synchronium, Sep 18, 2007 IP
  8. Psych0

    Psych0 Banned

    Messages:
    99
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #8
    I didnt say no.. but i cant show you my html code ,its a secret coding..with a unique web 2.0 design.
    I drew the layout on ms paint. you can see the layout on it.
    and i explained everything that i want to do..
    if you can help me finding that kind of ajax script ,then you will get free backlinks from my 2 domains.
     
    Psych0, Sep 18, 2007 IP
  9. Synchronium

    Synchronium Active Member

    Messages:
    463
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    58
    #9
    Sure. On MSN?
     
    Synchronium, Sep 18, 2007 IP
  10. Psych0

    Psych0 Banned

    Messages:
    99
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #10
    ok pm me your msn id.. i am adding you to it.
     
    Psych0, Sep 18, 2007 IP
  11. Psych0

    Psych0 Banned

    Messages:
    99
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #11
    ok my problem solved.
    thanks to synchronium for his great help.
     
    Psych0, Sep 18, 2007 IP
  12. omgitsfletch

    omgitsfletch Well-Known Member

    Messages:
    1,222
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    145
    #12
    Secret HTML code? Oh boy...
     
    omgitsfletch, Sep 18, 2007 IP
  13. Psych0

    Psych0 Banned

    Messages:
    99
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #13
    i meant it was a unique code and i didnt want anyone to see that design before i publish that website , nothing secret..
     
    Psych0, Sep 19, 2007 IP
  14. aRo`

    aRo` Peon

    Messages:
    141
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #14
    i don't recommend that from a SEO point of view.

    But if you really need it, you can find out how to do it here.

    If you have to use a lot of ajax i suggest you take a closer look at javascript frameworks such as jQuery, prototyp , mootools ...
     
    aRo`, Sep 20, 2007 IP
  15. krt

    krt Well-Known Member

    Messages:
    829
    Likes Received:
    38
    Best Answers:
    0
    Trophy Points:
    120
    #15
    It doesn't have to be bad for SEO! (the exaggeration is because 2 people have claimed otherwise)

    Just because it uses an AJAX call doesn't mean the link can't also have a normal href value that is used to load the page regularly (without AJAX). If JavaScript is enabled, just return false on the link's "click" event and it will use the AJAX method.
     
    krt, Sep 20, 2007 IP
  16. Psych0

    Psych0 Banned

    Messages:
    99
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #16
    ok guys i got the ajax script but it isnt working.
    someone is helping me to fix it.
    but he dont know how to put a loading image.
    can anyone help me?
    how to put a loading image on ajax script.
     
    Psych0, Sep 21, 2007 IP
  17. krt

    krt Well-Known Member

    Messages:
    829
    Likes Received:
    38
    Best Answers:
    0
    Trophy Points:
    120
    #17
    Umm... I wouldn't be asking someone to do something for me related to AJAX if he doesn't know how to do that.

    What part is he having issues with? If it's triggering, then all you need to know is it should be enabled when the ajax call is made and disabled when the request state is 4.
     
    krt, Sep 21, 2007 IP
  18. Psych0

    Psych0 Banned

    Messages:
    99
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #18
    i dont know what you are talking about.
    please explain in details.
    i have never used ajax before.
    will you integrate a loading image in my ajax script which Synchronium gave me?
     
    Psych0, Sep 22, 2007 IP
  19. krt

    krt Well-Known Member

    Messages:
    829
    Likes Received:
    38
    Best Answers:
    0
    Trophy Points:
    120
    #19
    Why don't you forward to him what I wrote. There is not much to it. I assume what he already wrote already has the code for AJAX calls and a check to see if the response has been fully send so all you have to do is trigger the image on/off in these 2 sections of code.
     
    krt, Sep 22, 2007 IP
  20. Psych0

    Psych0 Banned

    Messages:
    99
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #20
    what did you write ?
    he didnt understand it.
    please explain clearly.
     
    Psych0, Sep 23, 2007 IP