I didn't have time to read your email carefully, but I can handle this:
--- In [email protected], "Pramod Eligeti."
<[EMAIL PROTECTED]> wrote:
> var wrld;
>
> wrld = "WORLD";
>
> circleEl.setAttributeNS(null, 'onclick', 'OnMouseClick(' + wrld +
')');
>
> 2. my second question is when i sent the onclick attribute of the
> circle shape in SVG by passing a WORLD value to the OnMouseClick
> function i am getting 'WORLD' but not WORLD as expected and its saying
> 'WORLD' is undefined.
>
> how to pass values to function while setting onclick attributes in
> javascript like this.
>
OnMouseClick(WORLD) -> this means OnMouseClick is called with a
variable named WORLD
OnMouseClick("WORLD") -> this means OnMouseClick is called with string
"WORLD"
You need to put quotes around your argument like so:
> circleEl.setAttributeNS(null, 'onclick', 'OnMouseClick("' + wrld
+ '")');
------------------------ Yahoo! Groups Sponsor --------------------~-->
Home is just a click away. Make Yahoo! your home page now.
http://us.click.yahoo.com/DHchtC/3FxNAA/yQLSAA/1U_rlB/TM
--------------------------------------------------------------------~->
-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my
membership"
----
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/