Click to See Complete Forum and Search --> : Insert a table from an alien location ??


Mr.Mike
08-16-2003, 09:18 PM
Does anyone know what is the best code to use, just to insert a table onto a table on an html page, form an alien location?

I've got a table that is duplicated on about 12 different pages, but do not want to have to update each of the pages when a change of info is made in the table. I just want to have it in one location and when the info in the table is changed, it will change in all the pages. Not sure what codes is best for this Java script or maybe css ????

Can anyone please give some idea how this can be done, some direction and possibly a sample of how its done?

Regards,
Mike


**Obstacles are those frightful things you see
when you take your eyes off your goal.

pyro
08-16-2003, 09:23 PM
Does your server support PHP or SSI? Both of those can be used to include content on your pages...

Mr.Mike
08-16-2003, 09:40 PM
will this work if
the table html is on my domain and the insert is on a different domain ?

pyro
08-16-2003, 09:43 PM
Yes, though depending on the situation, it might take a bit more work. I'm also talking about PHP here. I don't know much SSI at all...

Fang
08-17-2003, 07:05 AM
You could also include a "TableTemplate.js" file on each page and then a document.write of the table in the file.
Only the "TableTemplate.js" need be updated.

Fang
08-17-2003, 07:10 AM
Timed out on last message ;)

pyro
08-17-2003, 09:15 AM
It also won't work for the 13% without javascript enabled. A good example of a bad use for javascript... ;) But, the serverside methods might not work, if eBay doesn't let you use such code...