• 0

Update Loaded JavaScript File... firebug, neat tricks?


Question

Hi guys,

sorry about the unclear title. Here's the scenario

/index.php

/myjavascriptfile.js

The myjavascriptfile.js is included in my index.php file.

I run index.php play with my codes etc... Now, I make a change in myjavascriptfile.js and must refresh index.php file for the changes to take effect.

I noticed using firebug we can make changes to the HTML Output in the console etc..., so can I make the browser reload just the myjavascriptfile.js without me reloading the whole index.php file?

In normal cases I wouldn't mind but in the current situation, if I could do this, it will be awesome!

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

I don't think you understand the point I was making.

I am not making any changes to my website or anything like that.

When any web page is loaded by the web browser, it also loads any included javascript/css file datas along with it. (e.g. script src='/myjavascript.js') And depending on the codes written in javascript/css files the whole lay out changes, the interactivity comes alive, etc...

So, what I am trying to do is actually use firebug, firefox or whatever plugin/trick I need to use to reload the included javascript files into the browser.

This way, I don't have to reload my entire web page, for the browser to reload the included javascript file again!

Link to comment
Share on other sites

  • 0

I don't think that is possible. If you are loading dynamic data save the page as a html with static content and fiddle with it while you are troubleshooting your js. When everything is fixed you can switch back to the dynamic page.

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.