Results 1 to 4 of 4

Thread: ajax:1 click 2 pages in different div's?

  1. #1
    Join Date
    Jul 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default ajax:1 click 2 pages in different div's?

    hello(new here) hop it's the right forum.

    im trying to load 2 external pages to 2 different div's with one click...
    i succeed to load one external page per link but i need the above

    it's look like this: layout

    and the code:
    Code:
    <area shape="rect" coords="82,14,153,24" href="javascript:ajaxpage('dell.html', 'latest-post');" />
    thank for your help

  2. #2
    Join Date
    Jul 2008
    Posts
    102
    Thanks
    36
    Thanked 6 Times in 6 Posts

    Default

    I suppose loading two can be done with a double function call;

    Code:
    <area shape="rect" coords="82,14,153,24" href="ajaxpage('dell.html', 'latest-post');ajaxpage('another.html', 'latest-post');" />
    Although Ive had trouble in the past with calling ajax in this manner as it seems the browser status is not conducted properly on the second. It seems to forget what its dealing with. I didnt have the trouble for very long as I approached it on a different level all together but if you need to do it this way be advised that you need to reset the onreadystate somehow, shouldnt be too much of a problem though.


    Hope this helps
    Dal

  3. #3
    Join Date
    Jul 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    thanks for your help,

    the code is not working...

    ill be happy to know how did you solve it
    approached it on a different level all together


    -----------------------------ooooooooooops it working!!!

    need to add: javascript:
    Code:
    <area shape="rect" coords="82,14,153,24" href="javascript:ajaxpage('dell.html', 'latest-post');ajaxpage('another.html', 'latest-post');" />

  4. #4
    Join Date
    Jul 2008
    Posts
    102
    Thanks
    36
    Thanked 6 Times in 6 Posts

    Default

    Oh - when I say a different level all together I was actually meaning a different level all together, I mean I wanted some things to happen and in the end I thought about it more and realised that php could handle some of these things for me which left me with nothing to solve on the ajax side, hence I couldnt provide you with a work around.

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
  •