MyBB Community Forums

Full Version: url in jscripts... what is it defined to?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Ok, going to state this up front: I don't know jack doodles about javascript.

I'm curious, the url variable in jscripts seems to be autodefined, what is it defined as? Or is it not autodefined?

Anyways, just looking for some clarification on how this works so I can modify a script a tiny little bit for use with MyBB.
(2010-04-17, 03:36 AM)ralgith Wrote: [ -> ]Ok, going to state this up front: I don't know jack doodles about javascript.

I'm curious, the url variable in jscripts seems to be autodefined, what is it defined as? Or is it not autodefined?

Anyways, just looking for some clarification on how this works so I can modify a script a tiny little bit for use with MyBB.

Can you please post an example?
Actually, I figured it out. I was just being airheaded again. Its passed as a parameter to the javascript function. Sometimes the answer is just so obvious I don't see it.

An example would be:
function my_func(url, location)

Pretty silly to ask, in hindsight Smile