473,379 Members | 1,187 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

Using HTTPRequest to change SVG object attributes

Hi,

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 ]
<html>
<head>
<script ="javascript" >... script text .... </script>
</head>
<body>
<embed src="some.svg" width="100" height="200" />
</body>
</html>

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

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?

Thanks.

with best regards,
Roman Gordin.
Aug 8 '05 #1
3 5553
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?
Thanks.

James
Feb 7 '07 #4

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

Similar topics

9
by: Matt Eberts | last post by:
Sorry, bad title. Anyway, is there a way to pass the arguments to an object instantiated via a constructor using the arguments object and have it expanded, so to speak, so that it doesn't appear as...
0
by: Stephen Corey | last post by:
Can I access the PR_COMMENT field of an email using the Outlook Object Model (Using Visual C++)? I don't want to use Redemption, because I've used extended MAPI already in my VC++ project, and...
7
by: Peter Row | last post by:
Hi, I've started work on my own control some parts of which use standard controls, others I need to draw on my controls surface to get the display output I require, however.... I seem to be...
13
by: | last post by:
Simple question, I think... I'm storing an object in the Session object. In the code behind I read that object: trx = CType(Session("Transaction"), BOCSTransaction) If I change any...
1
by: Neko | last post by:
Using Zend and Object property/functions follow-up: With Zend, using PHP5, I am trying to acess property of an object that is stored in a member variable. I'm quite new in using PHP5 and class...
0
by: Water Cooler v2 | last post by:
How do you check for the existence of new/unread email in Microsoft Outlook 2002 using the Outlook Object Model with COM Interop, and not using MAPI/CDO to go to the Exchange server? For e.g...
1
by: =?Utf-8?B?SHVzYW0=?= | last post by:
Hi EveryBody: Is there any way by using HttpRequest Class to control the user request ? to make my question clear for example: how can I know If the user request http://www.yahoo.com and...
7
by: Shani Aulakh | last post by:
Hi there, I have a FolderWatcher.cs class that will monitor a given folder and delete files older than X number of days. I have the following methods. I need to add/show delete mothod using date...
1
by: pcefalu | last post by:
I am having problems modifying textbox attributes (ForeColor, BackColor, Fonts, etc) through the control properties in MS Studio 2005. I created a WebApp Client and dropped a couple of textbox and...
2
by: sbasavar | last post by:
Hi All, In my excel programming, I am using XML http object (MSXML2.XMLHTTP.3.0). Using this object when I try to send a request application throws an "Access is Denied" error. Strange thing...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.