I'm sorry, it was a mistake. Only the first code (<SCRIPT ...>) is HTML.

About the javascript, strBgCol is a local variable. This is my
question, strBgCol can be changed?

Roberto

On Mon, Apr 12, 2010 at 2:45 PM, Fracture <[email protected]> wrote:

>
> > 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]<greasemonkey-users%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/greasemonkey-users?hl=en.
>
>

-- 
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.

Reply via email to