try this to debug it:

function back()
{
    var svgmap = parent.document.getElementById("SvgMap");

    // look at what you retrieved
    alert( svgmap );

    if( svgmap != null )
    {
        svgmap.setSrc("index2.svg");
    }
}

Alastair

--- In [email protected], Sean <[EMAIL PROTECTED]> wrote:
> Below is a function in some JS that is referenced in the embeded SVG 
> file.  It works, but not without throwing up this:
> 
> ---------------------------
> Script error
> ---------------------------
> Unknown error
> 
> line: 3, column: 0
> ---------------------------
> OK  
> ---------------------------
> 
> which is the closing "}".
> 
> function back(){
>     parent.document.getElementById("SvgMap").setSrc("index2.svg");
> }
> 
> I need to reference the embedded svg the reset the svg, which is in the 
> parent document.
> 
> Any ideas as to what is going on?  Thanks.
> 
> Sean




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


Reply via email to