Why? It's technical and i need it for a 2D game :) Thanks for the answer and how to i get access to the elements? Are there any functions like: elements = [] element = object.getElements(); or something?
Hi Guys, maybe someone of you has some idea how to do this. I want to insert an SVG image via <img src...> into an HTML website and then grab all elements of it in Firefox. I can't information about that. Mostly the examples are using SVGs created during runtime :(
It's more a prototype :) I don't think that i can handle a whole game alone. When i see that the gameplay is cool and a coder wants to make it "right" then maybe. But until this happens i play around with gameplay some circles and boxes as elements :)
Thx for the response :) The key point would be, to NOT have to paste the data again into the JS script when the levels changed. It would be way more intuitive to just open Inkscape, tweak some Elements and hit save. I'll see maybe a friend of mine will find out something.
What exactly are you trying to do? SVG is a form of XML, you can open them up in notepad to get at the individual data elements. Maybe this link will help you with putting a SVG in your HTML. Looks like the <embed> tag works fine for a .SVG file. You can also open up the SVG in notepad and copy everything below the…
Nothing is working. I read alot stuff and got more near to the destination via AJAX. Firefox seems to allow easy access to SVG which was created during runtime but NOT when they are just loaded via <object> tag. Via Ajax and jQuery i load it now after the site was loaded and trought that i got access but NOT via the easy…