PC Review


Reply
Thread Tools Rate Thread

asp:menu fails when vbscript present on page

 
 
BooGhost
Guest
Posts: n/a
 
      8th Aug 2008
Some background:
1. I've got a master page with an asp:Menu using an XML sitemap.
2. A page that uses the master page has an object tag (instancing an
activex control)
3. This activex control exposes an event:
onSelectionChanged(parameter)

4. The suggested/preferred method of wiring up this event (according
to the control manufacturer) is to place a vbscript block on the page
with a vbs event handler that calls a javascript function:

Sub control_SelectionChanged(parameter)
onControlSelectionChanged(parameter)
End Sub


--- js:
function onControlSelectionChanged(parameter) {
// Do the change stuff here
}

The problem: It seems that when a vbscript block exists on a page
with an asp:menu control, when you hover over a menu item a javascript
error occurs:

A Runtime Error has occurred.
Do you wish to Debug?

Line: 273
Error: 'tagName' is null or not an object

Now, this error occures as well if the vbscript block is empty. It
does not seem to mapper whether there is any vbscript at all, just
that the vb script block exists.

I suppose I will find a different menu system. But that would be
annoying. Is there a work around to this? Is it possible to wire up
activex control events with javascript without hving to rely on vbs?

Thanks!
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Running a WinForm app without a DLL present fails =?Utf-8?B?Qnlyb24=?= Microsoft Dot NET 0 15th Jun 2005 05:55 PM
Form code fails when Openargs present... Fred Boer Microsoft Access Form Coding 15 19th Apr 2005 05:47 AM
Outlook vbscript SaveFileAs Fails Rick Microsoft Outlook 1 21st Jul 2004 02:22 PM
VBScript works on IE 5, Fails on IE 6 =?Utf-8?B?cmFodWph?= Windows XP Internet Explorer 0 12th Jul 2004 09:23 AM
Query AD using ASP.Net(C#) fails but works in VBScript M. Craig Microsoft ASP .NET 2 19th Nov 2003 12:36 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:20 AM.