Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript
|
Javascript General Javascript discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 24th, 2006, 08:21 AM
Friend of Wrox
 
Join Date: Sep 2004
Posts: 103
Thanks: 0
Thanked 0 Times in 0 Posts
Default how 2 add or remove .js dynamically in my pages

Hi all,
well, the as the subject suggest, I want to add or romve some .js files to and from my page dyanmically. Is it possible?
I tried to add some script with innerHTML property but it didn't work:

script="<script language='javascript'>alert(1);<"+"/script>";
document.getElementById("someElementInPage").inner HTML=x;



 
Old August 11th, 2006, 10:27 AM
Friend of Wrox
 
Join Date: Oct 2004
Posts: 553
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to vinod_yadav1919 Send a message via Yahoo to vinod_yadav1919
Default

Hii nerssi!!

You can change he behaviour of javascript file(.ie code) by replacing the existing included javascript(.js) file.

e.g
if temp.js file is already there in web page,
you can change this temp.js file
but i m not sure about the way you are doing is working or not.

its better you change your temp.js file after loading the page or on any other event
hope this will help you.

Cheers :)

vinod
 
Old September 21st, 2006, 09:14 AM
Friend of Wrox
 
Join Date: Oct 2004
Posts: 553
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to vinod_yadav1919 Send a message via Yahoo to vinod_yadav1919
Default

Hii nerssi!!

http://p2p.wrox.com/topic.asp?TOPIC_ID=49574
hope this will help you

Cheers :)

vinod





Similar Threads
Thread Thread Starter Forum Replies Last Post
dynamically link js file darkhalf Javascript 3 September 15th, 2006 09:05 AM
asp boxlist add/remove lip13 Classic ASP Basics 1 December 10th, 2004 06:47 PM
Thoughts on Dynamically assigning external js file fs22 Javascript 1 June 23rd, 2004 02:12 PM
Advice on Dynamically assigning external js file fs22 Javascript 9 June 10th, 2004 05:26 PM
Dynamically assign external js file fs22 Javascript How-To 1 May 21st, 2004 05:22 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.