Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Mar 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Using DOM in AI JavaScripts - is it possible?

    I am using JavaScript in the Adobe Illustrator environment to create and manipulate .svg graphics. I am new to JavaScript - still feeling my way around. It appears that when you are working with a browser that the DOM is automatically populated and available. Is there a way to populate and use the DOM when JavaScript is not being used in web browser applications.

    Is there a good tutorial or similar that I can look at for assistance?

    Steve

  • #2
    Senior Coder rnd me's Avatar
    Join Date
    Jun 2007
    Location
    Urbana
    Posts
    4,333
    Thanks
    11
    Thanked 587 Times in 568 Posts
    Welcome.


    the dom is normally populated by tags and attribs in the source of the page/file.
    that works fine without javascript.

    i don't know what else (besides js) you could use to change it though.

    there are some java and flash bindings, but i doubt those would work if javascript didn't.

    what exactly are you wanting to do?
    my site (updated 13/9/26)
    BROWSER STATS [% share] (2014/5/28) IE7:0.1, IE8:5.3, IE11:8.4, IE9:3.2, IE10:3.2, FF:18.2, CH:46, SF:7.9, NON-MOUSE:32%

  • #3
    New to the CF scene
    Join Date
    Mar 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thanks for looking at this

    I have written a JavaScript that is initiated by Adobi Illustrator. Adobi has provided some application specific methods that allows mannipulation of a graphic immage. They also make certain pieces of data available. My script forces some save settings and captures some data about the SVG graphic that the artist is creating. I save that data in a well formed xml document. I want to read that XML document with my script and make changes to it. If I could reference it in the DOM by tag names it would be much easier.

    Since there is no browser involved, I'm assuming I need to somehow load/populate the DOM tree before I can reference data. Is this not the case?

    Thanks in advance
    Steve


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •