Log in

View Full Version : Overwriting Functions



Strangeplant
12-01-2006, 09:14 PM
Hi, I have a .js file with many functions in use on several pages, and I want to use the same .js page, but I need to change a small part in one function only. Is there a way to insert the page call as normal and then overwrite (or unload then redefine) that one function only?

Twey
12-01-2006, 11:00 PM
Yes, you should be able to simply redefine the function.

Strangeplant
12-04-2006, 02:26 PM
Great, I'll do that and try it out. This will bring great versatility to common code blocks.