Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

SVG and Javascript

  • 06-07-2005 5:28pm
    #1
    Registered Users, Registered Users 2 Posts: 10


    Hi,

    I want to create a html document with an SVG file embedded in it. I want to be able to select (highlight) text in the SVG document and record what that text is (for example just write it to the same page). I've been trying to do this with Javascript but I cannot find any operations that allow me to access the text (unlike the document.selection attribute which can be used to read the contents of what is selected on a html page).

    I've searched the SVG DOM but I cannot find anything. The only place i've seen it done is in the Adobe SVG Viewer 3.0 where it's possible to highlight text, right-click it and copy it.

    Any help appreciated.


Advertisement