iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
Hi,
We have a major web application. In a couple of pages, when the user clicks a button, we show a context menu. This has worked for months until I recently upgraded the controls to the latest versions.
Now, the context menu is displayed and working properly on one page but is failing on the other page. The basic code in both pages (for showing the menu) is the same.
The error can be reproduced using this sample:
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="CMTest.aspx.vb" Inherits="System_CMTest" %> <%@ Register Assembly="ISNet.WebUI.WebDesktop" Namespace="ISNet.WebUI.WebDesktop" TagPrefix="ISWebDesktop"%> <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>Untitled Page</title> <script language="javascript" type="text/javascript"> function ShowCM() { var wcm = ISGetObject("mnuUnits"); wcm.Show(); } </script> </head> <body> <form id="form1" runat="server"> <ISWebDesktop:WebContextMenu ID="mnuUnits" runat="server" ControlId="btnUnits"> <Items> <ISWebDesktop:WebMenuItem Type="CheckBox" Checked="true" Name="item0" Text="Hours" OnClick="SetUnits0"></ISWebDesktop:WebMenuItem> <ISWebDesktop:WebMenuItem Type="CheckBox" Checked="false" Name="item1" Text="Days" OnClick="SetUnits1"></ISWebDesktop:WebMenuItem> <ISWebDesktop:WebMenuItem Type="CheckBox" Checked="false" Name="item2" Text="Full Time Equivalent (FTE)" OnClick="SetUnits2"></ISWebDesktop:WebMenuItem> </Items> <MenuStyleSettings BackgroundStripColor2="" BackgroundStripImage="o7_menu_strip.gif" MenuAnimation="True" MenuDropShadow="True" MenuWindowType="Normal" BackgroundStripWidth="26" IconCellWidth="25" HighlightMode="UseComplexImages"> <DisabledItemStyle><Over BackColor="WhiteSmoke" BaseStyle="Normal" BorderColor="#FFBD69" BorderStyle="Solid" BorderWidth="1px" ForeColor="Gray"></Over><Normal Font-Names="segoe ui,tahoma" Font-Size="9pt" ForeColor="Silver"></Normal></DisabledItemStyle> <CheckedItemStyle><Over BackColor="#99CCFF" BorderColor="#3399FF" BorderStyle="Solid" BorderWidth="1px"></Over><Normal BackColor="#E4EEF8" BorderColor="#3399FF" BorderStyle="Solid" BorderWidth="1px"></Normal></CheckedItemStyle> <SeparatorStyle CustomRules="height: 2px; overflow: hidden"><BorderSettings><Top Color="#c5c5c5" Style="solid" Width="1px" /></BorderSettings></SeparatorStyle> <FrameStyle BackColor="White" BorderColor="#868686" BorderStyle="Solid" BorderWidth="1px"> </FrameStyle><ItemStyle><Over BackColor="#C0DDFC" BaseStyle="Normal" BorderColor="#3399FF" BorderStyle="Solid" BorderWidth="1px"></Over><Normal Font-Names="segoe ui,tahoma" Font-Size="9pt"></Normal></ItemStyle> <ImagesSettings OverCenter="o7_menu_oc.gif" OverLeft="o7_menu_ol.gif" OverRight="o7_menu_or.gif" ActiveIconCell="o7_icon_active.gif" /> </MenuStyleSettings> </ISWebDesktop:WebContextMenu> <div> <a href="#" onclick="ShowCM();" id="btnTest" runat="server">Test</a> </div> </form> </body> </html>
Why is this failing? The error is:
Invalid Argument
ISRes.axd Line 27. Char:659.
The URI information is ISRes.axd?F/ISCore.js/305000701.
I can get the page to work if I include a DOCTYPE declaration of transitional but this brings too many other problems.
Can anyone help with this?
Regards,
Mark
Hi Mark,
I'm sorry for the late reply. I have replicate your sample but it works fine. I could not reproduce any error as you mention above. Since you said you have upgrade the controls to the latest version, I assume that you use WebDesktop v 3.0 (please correct me if I am wrong). Have you updated the assemblies and our latest hotfix? I have to know your build info before i can investigate your issue.
p.s:
Please change this code :
<html xmlns="http://www.w3.org/1999/xhtml" >
into :
<html>
Julia
Hi Julia,
Much to my amazement, it appears that this was as simple as removing the xmlns= attribute as you suggested.
Many thanks for your help.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname