> In this there is the following HTML code:
This isn't HTML, this looks like malformed javascript.
> app.manager.update =
> (
> ...
> manipulate function (strSymbol, objItem, objUpdate)
> ...
> strBgCol var = "#0000FF";
> ...
> )
Did you mean:
app.manager.update =
{
...
manipulate: function(strSymbol, objItem, objUpdate) {...},
...
strBgCol: "#0000FF",
...
}
> Manipulate function is called several times, and my need is to change the
> variable value strBgCol. Is it possible?
If strBgCol is a property of app.manager.update and not a local
variable in the manipulate function, yes:
unsafeWindow.app.manager.update.strBgCol = "#FF00FF"; //or whatever
But this is unsafe
http://wiki.greasespot.net/UnsafeWindow
http://wiki.greasespot.net/Category:Coding_Tips:Interacting_With_The_Page
--
You received this message because you are subscribed to the Google Groups
"greasemonkey-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/greasemonkey-users?hl=en.