Subject: how 2 add or remove .js dynamically in my pages
Posted By: nerssi Post Date: 7/24/2006 8:21:59 AM
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").innerHTML=x;
        


Reply By: vinod_yadav1919 Reply Date: 8/11/2006 10:27:40 AM
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
Reply By: vinod_yadav1919 Reply Date: 9/21/2006 9:14:33 AM
Hii nerssi!!

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

Cheers :)

vinod

Go to topic 49577

Return to index page 168
Return to index page 167
Return to index page 166
Return to index page 165
Return to index page 164
Return to index page 163
Return to index page 162
Return to index page 161
Return to index page 160
Return to index page 159