View Full Version : ajax:1 click 2 pages in different div's?

07-21-2008, 04:30 PM
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 (http://img377.imageshack.us/img377/8518/divhg7.jpg)

and the code:

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

thank for your help:)

07-21-2008, 05:08 PM
I suppose loading two can be done with a double function call;

<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

07-21-2008, 05:34 PM
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:

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

07-21-2008, 05:42 PM
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.