|Linking to 'Text' on a different web server|
Is this possible?
If you wanted to reference/link to a .jpg that was located on a different site, you would include www.website.com/images/logo.jpg
Now, I have a paragraph that I would like found on my partners sites, is it possible to reference it along the same way a picture is? If not, do you have any other reommendations for me.
Thank you for any help/advice!
If it's a file available on someone's web accessible directory, you can link to it.
[edited by: txbakers at 6:44 pm (utc) on April 4, 2005]
>> If it's a file ..
Maybe the easiest way is to make your partner sites link to a .js file that 'document.writes' your paragraph. Not really SE friendly though.
txbakers - I received a 404 when I hit your link.
Span - I have not done java in a long time, can you clarify a little more, or send me a link
Thanks for your quick respones!
document.write("This is some text you want to include on another site.")
Name that file "include.js".
One cool thing you can do is that if the other site has the information stored in a database, you can have them do a database call and put together an include file that includes data from the database.
HughMungus - Perfect! Thanks!
The database call sounds really neat! I did a search for some more information regarding this, but did not find anything to relevant. Do you have any relevant links?
Thanks again for you help!
Well, all you have to do if you want to do a database call to create the include file is just do the call and have it write out to a format that is OK for a .js file. Pretty easy.
HughMungus - I have discovered that there is a Security problem doing a javascipt include. Thanks anyways@!
Can SSI be read from a different site?
Any other solutions out there?
Thanks for any help!
There is always an iframe.
I don't believe this to be too SE friendly either.
But it will take a html formated file from any other server on the net and present it in your page.
On the more complicated side you could use perl and lwp or curl, to grab the other page....HTML::TreeBuilder to rip out the parts you want and then send out the include.js format or just write your entire page dynamically.
This is not the optimal performance technique.
But another option.