PDA

View Full Version : Javascript Integration



MidnightWhispers
01-09-2004, 12:56 PM
Okay. I feel really silly but here's my question.

I have content enclosed on page A that I want to display on page B, without pasting the information in. I want to use a javascript code to integrate it. I know the <script language="Javascript" src="http://******"></script>

But wasn't there something somewhere else I needed to insert in order to get it to show? I feel embarrased because I did this before, but it's been so long I've forgotten quite how I did that.

I've been looking for documentation on it all morning and I can't seem to find the right how to tutorials.


Thanks!

DarrenPWS
01-09-2004, 03:38 PM
Hi there,
I cannot quite understand what it is you are trying to achieve , so could you give me a more detailed example of your problems!! (now i feel stupid)

Thanks,
Darren Darkins
http://www.positive-websolutions.co.uk

wclew
01-09-2004, 04:43 PM
I have content enclosed on page A that I want to display on page B, without pasting the information in. I want to use a javascript code to integrate it. I know the <script language="Javascript" src="http://******"></script>


If I understand you correctly, you'll want to save your page A as a .js file and call that in your src="" part of the tag.

A good example can be found at:
http://javascript.internet.com/messages/footer-text.html

Hope this helps,
Dennis

paulhiles
01-09-2004, 06:23 PM
Hi there MidnightWhispers,

I'm siding with Darren here.. I'm not quite sure exactly what it is you're trying to achieve! ;o)
wclew's example demonstrates how you could use JavaScript in a similar way that both PHP and ASP use 'include' files.
Maybe you could provide us with a URL and/or a little more detail of your requirements? :o)

Paul