[svg-developers] funny cross-browser issue involving "top"

2010-08-11 Thread ddailey
An svg document is included in an HTML document using 

Inside the HTML is a  (it has id="t", and I also tried name="t" and 
putting it inside a form with id and/or name "f").

The SVG contains a script which attempt to scribble into the HTML text area 
using

top.f.t.value=mystring
or
top.t.value=mystring 
or even
QT=top.document.getElementById("t")
QT.value=mystring

This works in Opera and IE/ASV, but not in FF, Safari or Chrome. The FF error 
console (FF 4 beta) shows that top.t (or top.f.t or QT) is not defined though 
in Opera IE/ASV its nodeName shows up as "textarea"

To see in context, you can visit
http://srufaculty.sru.edu/david.dailey/svg/SVGOpen2010/Polygons/polygons8.html
though there is a fair amount of code to wade through.

Any ideas? I'm sure I've done things like this before.

thanks,
David

[Non-text portions of this message have been removed]





-
To unsubscribe send a message to: svg-developers-unsubscr...@yahoogroups.com
-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/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

<*> To change settings via email:
svg-developers-dig...@yahoogroups.com 
svg-developers-fullfeatu...@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
svg-developers-unsubscr...@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/



Re: [svg-developers] funny cross-browser issue involving "top"

2010-08-11 Thread Jacob Beard
David,

top.document.getElementById("t") seems to be working well in Firefox 3.6.8.

top.t.value seems to be working fine in Chromium 5.0.382.

Jake

On Wed, Aug 11, 2010 at 4:02 PM, ddailey  wrote:

>
>
> An svg document is included in an HTML document using 
>
> Inside the HTML is a  (it has id="t", and I also tried name="t"
> and putting it inside a form with id and/or name "f").
>
> The SVG contains a script which attempt to scribble into the HTML text area
> using
>
> top.f.t.value=mystring
> or
> top.t.value=mystring
> or even
> QT=top.document.getElementById("t")
> QT.value=mystring
>
> This works in Opera and IE/ASV, but not in FF, Safari or Chrome. The FF
> error console (FF 4 beta) shows that top.t (or top.f.t or QT) is not defined
> though in Opera IE/ASV its nodeName shows up as "textarea"
>
> To see in context, you can visit
>
> http://srufaculty.sru.edu/david.dailey/svg/SVGOpen2010/Polygons/polygons8.html
> though there is a fair amount of code to wade through.
>
> Any ideas? I'm sure I've done things like this before.
>
> thanks,
> David
>
> [Non-text portions of this message have been removed]
>
>  
>


[Non-text portions of this message have been removed]





-
To unsubscribe send a message to: svg-developers-unsubscr...@yahoogroups.com
-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/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

<*> To change settings via email:
svg-developers-dig...@yahoogroups.com 
svg-developers-fullfeatu...@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
svg-developers-unsubscr...@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/