Jump to content

remote <div>


whare

Recommended Posts

Hi I have been looking into ways to dispay information on remote site not owned by myself and I understand it can be done something like

 

<head>

<title>My Website</title>

<script LANGUAGE="JAVASCRIPT" type="text/javascript" src="http://www.somesite.com/somefile.js?id=TAGNAME"></script>
</head>
<body onLoad="somename()">

 

the main linking file

 

<DIV ID="Tag1"></DIV>  	 
<DIV ID="Tag2"></DIV> 	 
<DIV ID="Tag3"></DIV> 	 
<DIV ID="Tag4"></DIV>

 

each tag can dispay something differant all comming from one file

 

So how is this done now I guess it would to much for somebody to write here so any information from tutorials or hints and tips etc I would be greatful I did do a google but I could not seem to fine what I was looking for unless i was searching for the wrong tags

 

 

thanx

Will

Link to comment
https://forums.phpfreaks.com/topic/146571-remote/
Share on other sites

try searching for "cross domain javascript" or "creating cross domain apps"; search for something along these lines. there are a few ways you can do this; such as "document.write()" method, iframes, SSI, creating a proxy and using normal JS or DOM and others, I'm sure. do a little research about "cross domaining" and maybe you will be able to come up with what will work best for you.

Link to comment
https://forums.phpfreaks.com/topic/146571-remote/#findComment-769721
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.