473,399 Members | 4,192 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,399 software developers and data experts.

getSVGDocument() gives unspecified error

I have a svg file which is embeded in HTML file like:

<embed id="svgroomindex"
src="http://in-dev-ashishm/SVG/11roomindex.svg" width="100%"
height="100%" />

I have a javascript function to get the svg document object:

// Returns the embedded SVG Document
function getSVGDocument(embedName) {
var plugin = document.embeds[0];
return plugin.getSVGDocument();
}

which I call in onload event of body

<body onload="svgDoc=getSVGDocument('svgroomindex');">

But I get a javascript error onload of HTML file: Unspecified Error

I have tried many variants but all gives the same error. What can be
the problem (with code or anything else)?

Thanks,
Ashish
Jul 23 '05 #1
5 4887
On 4 Oct 2004 06:22:13 -0700, as***********@gmail.com (Ashish) wrote:

which I call in onload event of body


the SVG document won't be loaded in the embed by this time, do it
later - in fact use the SVG documents load event to tell its parent
when it's ready.

Events! That's the way to go.

Jim.
Jul 23 '05 #2
Now I removed onload from body in HTML and in SVG file svg tag I added
onload="fn_init()"

Also in SVG I have written fn_init() function.

<script type="text/ecmascript">
<![CDATA[
function fn_init(){
parent.fn_initialize();
}
]]>
</script>

In fn_init I want to call initialize() function which is in the HTML
which embeds this SVG.

But this also is not working.

Thanks,
Ashish

ji*@jibbering.com (Jim Ley) wrote in message news:<41***************@news.individual.net>...
On 4 Oct 2004 06:22:13 -0700, as***********@gmail.com (Ashish) wrote:

which I call in onload event of body


the SVG document won't be loaded in the embed by this time, do it
later - in fact use the SVG documents load event to tell its parent
when it's ready.

Events! That's the way to go.

Jim.

Jul 23 '05 #3
On 4 Oct 2004 22:14:33 -0700, as***********@gmail.com (Ashish) wrote:
Now I removed onload from body in HTML and in SVG file svg tag I added
onload="fn_init()"
In fn_init I want to call initialize() function which is in the HTML
which embeds this SVG.


I think we need more information, and it might be better at the svg
developers mailing list:
news://news.gmane.org/gmane.text.xml.svg.devel

Jim.
Jul 23 '05 #4


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 23 '05 #5
Hi Jim,

Thanks for the help. Actually today I discovered that my original code
works when I access web page (in ASP.NET) using
http://machine-name/....aspx but it do not work when I access it by
localhost in URL, i.e. http://localhost/....aspx.
I do not know the reason, but it's strange.

Thanks,
Ashish

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 23 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Dave | last post by:
Hi All C# ADSI samples that I run cause unspecified errors. If I translate them into VB.NET they run fine. Here's an example: public string getEmail(string LDAPPath, string username) {...
4
by: RM | last post by:
Had VS .Net 2002 installed on W2k Server SP3 and supported a number of web sites. Installed VS .Net 2003 on Friday and now all web sites using .Net & MS ACCESS get this strange error upon open. ...
2
by: Jim Lacenski | last post by:
I have a VB class that uses .NET and ADODB to write into an Excel spreadsheet (via Jet) on a server as part of a web application. ADODB is used instead of ADO.NET because it greatly simplifies the...
1
by: T8 | last post by:
I have a asp.net (framework 1.1) site interfacing against SQL 2000. It runs like a charm 99% of the time but once in a while I get the following "unspecified error". Sometimes it would resolve by...
3
by: GotdotNet | last post by:
I get this error once in a while and I normally could fix it by restarting IIS. However, I would like to find out what causes this. Can anyone help? -----------------------------error...
1
by: Siegfried Heintze | last post by:
I'm using a third party hosting service. I presently have a Web Service on this hosting service's server that loads and executes a native mode DLL. This demonstrates that the hosting service has...
7
by: Jim McGivney | last post by:
ASPX page from VS.net-C# on host's computer using oleDataAdaptor to connect to Microsoft Access database. The page loads, but when connection to the database is attempted to fill a datagrid the...
6
by: sowencheung | last post by:
I have the following code in the event onbeforeunload if ( typeof executingPostBack != 'undefined' && !executingPostBack ) event.returnValue = ""Warning: Modified data has not been saved.""; ...
0
by: fniles | last post by:
I am using VB.Net 2003 and MS Access database. Sometimes when I open the database, I got the error "Unspecified error" The application validate users, when it validates users, it reads from a...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.