469,649 Members | 1,171 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,649 developers. It's quick & easy.

Using HTTPRequest to change SVG object attributes


I use SVG for web-GUI, but found some serious restrictions 8-(

When I use HTML (dynamically generated from .php), I may use HTTPRequest object to provide dynamically regeneration some part of my HTML (from JavaScript).
But can`t dynamically refresh SVG, becouse SVG support only ECMAScript [ since 1999 year 8-( ] This old ECMAScript specification do not support HTTPRequest object and I can`t refresh data in my object dynamically (data for my objects dynamically generated by other .php script).
How you think, may I refresh data inside SVG object using other way?

May be I may use SVG instead HTML page like embedded object and use access to SVG object properties from JavaScript at HTML?
Like this :
[ some html file ]
<script ="javascript" >... script text .... </script>
<embed src="some.svg" width="100" height="200" />

[ some svg file ]
<rect id="tank" x="0" y="0" width="100" height="200" fill="green" opacity="0.75" />

I should change "height" properties of SVG "rect" object, but it`s impossible?

Do you know other way to dynamically refresh data inside SVG object?
Do you know other way to change SVG object properties with outside data using ECMAScript?


with best regards,
Roman Gordin.
Aug 8 '05 #1
3 5426
Thanks, no need to answer. Problem already resolved.
Aug 8 '05 #2
Opera 8.02 instead of IE 6.0 do not provide access to properties of embedded object (or I use it incorrectly? But with IE it working fine)
Aug 8 '05 #3
Hi Roman,
I have the similar situation as yours. How did you resolve your problem?

Feb 7 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

13 posts views Thread by | last post: by
1 post views Thread by =?Utf-8?B?SHVzYW0=?= | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.