Subscribe to Subscribers
Talk to Webmaster Tony John

Online Members

joyhenrry
More...


Forums » .NET » JQuery »

How to dynamically load javascript into current using jQuery without refresh?


Posted Date: 22 Jun 2012      Posted By:: Ramasamy.N     Member Level: Gold    Member Rank: 93     Points: 1   Responses: 1



How to dynamically load JavaScript files into current page and destroy existing JavaScript files using jQuery.


Pls help me out








Responses

#676961    Author: saravanakumar      Member Level: Gold      Member Rank: 197     Date: 22/Jun/2012   Rating: 2 out of 52 out of 5     Points: 2

<script id="samplename" href="path" type="text/javascript"></script>

$("#samplename").attr("href","path");


or

<script id="samplename" src="path" type="text/javascript"></script>

$("#samplename").attr("src","path");



 
Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.



Next : I am using drag and drop functionality using li tag
Previous : I am dynamically loading JavaScript using $.getScript() method
Return to Discussion Forum
Post New Message
Category:

Related Messages



Follow us on Twitter: https://twitter.com/dotnetspider

Active Members
TodayLast 7 Daysmore...

Awards & Gifts
Copyright © SpiderWorks Technologies Pvt Ltd., Kochi, India
2005 - 2012 All Rights Reserved.
.NET and other trademarks mentioned in this site belong to Microsoft and other respective trademark owners.
Articles, tutorials and all other content offered here is for educational purpose only.
We are not associated with Microsoft or its partners.