473,545 Members | 2,444 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

getSVGDocument( ) gives unspecified error

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

<embed id="svgroominde x"
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.getSVGDo cument();
}

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 4891
On 4 Oct 2004 06:22:13 -0700, as***********@g mail.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_initi alize();
}
]]>
</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.c om (Jim Ley) wrote in message news:<41******* ********@news.i ndividual.net>. ..
On 4 Oct 2004 06:22:13 -0700, as***********@g mail.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***********@g mail.com (Ashish) wrote:
Now I removed onload from body in HTML and in SVG file svg tag I added
onload="fn_ini t()"
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
24692
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) { DirectoryEntry entry = new DirectoryEntry(LDAPPath);
4
2527
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. ASP=/TestDotNet/AdoNet.aspx System.Data.OleDb.OleDbException: Unspecified error at System.Data.OleDb.OleDbConnection.ProcessResults(Int32 hr) at...
2
2645
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 write process, and is supported for use on a server. (Excel is not supported (1), licensing issues with OWC). The routine works fine for a user at...
1
6827
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 itself (asp.net recycled?); it also can be solved by restarting IIS. Any ideas what cause(s) this to happen? System.Data.OleDb.OleDbException:...
3
1915
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 screen----------------------------------- System.Data.OleDb.OleDbException: Unspecified error at System.Data.OleDb.OleDbDataReader.ProcessResults(Int32 hr)...
1
3218
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 given me proper access to the temporary directory c:/Windows/Microsoft.NET/Framework/V1.1.4322/Temporary ASP.NET Files/root/...." I believe it also...
7
22835
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 following error is generated. Any help would be appreciated. Thanks, Jim Description: An unhandled exception occurred during the execution of the...
6
5162
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.""; executingPostBack is a global variable. I have another function for another event trying to access an object as follows:
0
1776
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 table in the database. I use connection pooling by opening the database in Form_Load, then everytime somebody comes in, I open the database and reads...
0
7490
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7425
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7682
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7935
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7780
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6009
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5351
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3479
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3465
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.