Current location: Hot Scripts Forums » General Web Coding » JavaScript » load script tag


load script tag

Reply
  #1 (permalink)  
Old 12-05-11, 03:14 PM
jaylea jaylea is offline
New Member
 
Join Date: Dec 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Red face load script tag

Hello,

I have this issue where I have this file with content like this in it:

This is a php file with js & php inside.
Code:
<script type="text/javascript" src="<?php echo PATH_JAVASCRIPT; ?>warning_boxes.js"></script>
<script type="text/javascript">
// Some content is here. to long to paste.
</script>
I need to get this file loaded into the html of the page when a link is clicked. At the moment when you click a link it loads a content file into:

HTML Code:
<div id="content"></div>
I would like for the javascript file above to be loaded into the content and function as the content that is loaded needs to use the javascript is the js file.

Any thought would be great. Also the site is using jQuery so would be great if this can be done with jQuery.

Thanks everyone.
J

Last edited by jaylea; 12-05-11 at 03:17 PM.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP script that will load a php or html file depending on users date Ruy Pedro Script Requests 6 10-08-06 07:34 PM
CSS Border Width Question. nova912 CSS 6 09-07-06 09:13 AM
web proxy script id10tn00b Script Requests 1 10-09-04 06:02 PM
fade in page or load page script maksimus Script Requests 0 05-28-04 06:18 AM


All times are GMT -5. The time now is 02:08 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.