Go Back   CodingForums.com > :: Client side development > JavaScript programming > DOM and JSON scripting

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 03-31-2009, 02:18 PM   PM User | #1
sylvisaker
New to the CF scene

 
Join Date: Mar 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
sylvisaker is an unknown quantity at this point
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
sylvisaker is offline   Reply With Quote
Old 04-01-2009, 01:18 AM   PM User | #2
rnd me
Senior Coder

 
rnd me's Avatar
 
Join Date: Jun 2007
Location: Urbana
Posts: 3,452
Thanks: 9
Thanked 466 Times in 450 Posts
rnd me is a jewel in the roughrnd me is a jewel in the roughrnd me is a jewel in the rough
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 5/13)
STATS (2013/5) HTML5:90.2% MOB:14% IE7:0.5% IE8:8.8% IE9:11.4% IE10:6.5%
rnd me is offline   Reply With Quote
Old 04-01-2009, 04:52 PM   PM User | #3
sylvisaker
New to the CF scene

 
Join Date: Mar 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
sylvisaker is an unknown quantity at this point
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
sylvisaker is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:22 AM.


Advertisement
Log in to turn off these ads.