Re: Loading SVG images dynamically and then accessing the dom

Marty Sullivan <[email protected]>
Newsgroups gmane.text.xml.svg.devel
Message-ID <CAK7bDbJSKn4cHv7BNomeEZX4FW=cPJYwUNxWjHnER8=oPtsq2w@mail.gmail.com>
Hi Pranav,

It sounds like your plan is doable. Personally, I would use the <embed> tag
instead of <object>. You also don't have to embed your script in the SVG
files themselves unless you also plan to use them standalone; you can
access the svg dom directly from the html script if you prefer.

Marty

On Sat, Nov 17, 2012 at 10:00 AM, Pranav Lal <[email protected]> wrote:

> **
>
>
> Hi all,
>
> I am trying to create an application that does the following.
> 1. The user is presented with a form where he can brows to a svg file on
> his
> computer.
> 2. The svg is uploaded to the server.
> 3. A HTML page is returned with the SVG file.
> 4. The page has java script in it which will allow me to do things like
> capture attribute values so, if the user moves the mouse over a line
> element, then the attributes of the line should be captured in a set of
> variables. Yes, the file will be modified by the server to include the
> relevant code.
>
> I am a tad confused about how to start. Should I imbed the svg in the HTML
> using the object tag? Has anyone done anything like this?
>
> I have found some promising material at
>
>
> http://stackoverflow.com/questions/2753732/how-to-access-svg-elements-with-j
> avascript/3379830#3379830
>
> Any thoughts?
> Pranav
>
>  
>


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



------------------------------------

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

<*> 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:
    [email protected] 
    [email protected]

<*> 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/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.