www.webdeveloper.com
Results 1 to 3 of 3

Thread: Refreshing javascript code

  1. #1
    Join Date
    Sep 2012
    Posts
    4

    Question Refreshing javascript code

    Hey! I just registered here and this looks useful & fun forum!
    I was thinking to ask you some advice to one problem.
    I've tried explain as much as I can but if something is missing comment!


    So I'm coding plugin for a website with javascript.
    Websites has good APIS to work around example: to check if somebody joins to room, send automatic message to chat etc..

    Plugin is chatbot which sends automatic messages when needed and I can check if certain word (command) is typed to chat and then run function update().
    Function update() for now uses:
    Code:
    var url = "this is scripts url";
    $.getScript(url,function(){
    	// Send message: 'Chatbot is updated'...
    });
    and I want it to replace the old code what has been runned and get updated script from url!
    Is that right way to do it? Any suggestions how to do it ?
    ~Thanks!

  2. #2
    Join Date
    Sep 2012
    Posts
    4
    Is here anyone? Little help is needed now, thanks!

  3. #3
    Join Date
    Sep 2012
    Posts
    4
    No answers for long time, so gonna BUMP IT!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles