PDA

View Full Version : Ajax Tab script access pages on different domain, is it possible?



shopmtc
09-09-2006, 09:42 PM
1) Script Title: Tab Content Script

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/tabcontent.htm

3) Describe problem:

I am trying to use the Ajax tabs to access pages that are on a different domain, I do not know much about java and cant seem to see anything that looks like a way to point it to an absloute location.

This is the location of the page I am working on:
http://hosting.kyozou.com/shopmtc/index.html

It is able to fetch the info page, but not the other 4.

The 4 pages I need to link to are as follows:
http://hosting.kyozou.com/shopmtc/info.htm
http://hosting.kyozou.com/shopmtc/about.htm
http://hosting.kyozou.com/shopmtc/payment.htm
http://hosting.kyozou.com/shopmtc/shipping.htm
http://hosting.kyozou.com/shopmtc/retruns.htm

Thanks in advance,
Barry

jscheuer1
09-10-2006, 02:53 AM
You can't. However, those pages, at least those URL's, are all on the same domain - hosting.kyozou.com/. The problem you are having is something else.

The script on DD that your post points to:

http://www.dynamicdrive.com/dynamicindex17/tabcontent.htm

Has nothing to do with AJAX. However, the script linked to your page is the AJAX tabs script. If you scroll down to the tab area of the index.html page and click on those tabs (the white ones), it works fine.