Topic: Two SVG docs and one javascript funciton Pages that link to <a href="https://ozoneasylum.com/backlink?for=10874" title="Pages that link to Topic: Two SVG docs and one javascript funciton" rel="nofollow" >Topic: Two SVG docs and one javascript funciton\

 
Author Thread
Maskkkk
Paranoid (IV) Inmate

From: Willaimsport, PA, US of A the hole in the Ozone
Insane since: Mar 2002

IP logged posted posted 12-10-2002 20:31 Edit Quote

I've been messing around with SVG for a little while now, I can't seem to get two separate svg documents to talk with one another using a function in javascript.

It supposed to work like this...

There are two SVG documents embeded in an HTML document.

The HTML document contains a javascript function, that whenever an element in the first SVG document is clicked the javascript function is supposted to be called, and from the javascript function it should modify the second SVG document.

But when I click the first SVG document all I get is an error message saying it can't find the javascript function.

I'm not making all this up, I based it on the code in the example from the example at: http://www.adobe.com/svg/dynamic/mouseevents.html

Theirs works I can't figure out why mine doesn't.....

Oh well if you have any insight
(Probably wouldn't kill me to learn XML first)

InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

IP logged posted posted 12-10-2002 22:20 Edit Quote

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

IP logged posted posted 12-10-2002 23:37 Edit Quote

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

Maskkkk
Paranoid (IV) Inmate

From: Willaimsport, PA, US of A the hole in the Ozone
Insane since: Mar 2002

IP logged posted posted 12-13-2002 15:02 Edit Quote

Thanks INI!
That did the trick, I guess I don't know the DOM very well.



Maskkkk

- Face the Present



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu