Login  
Search All Forums
Dart Home | PowerWEB TextBox for ASP.NET | Custom Development Reply | PowerWEB TextBox for ASP.NET Topics | Forums   
AuthorForum: PowerWEB TextBox for ASP.NET
Topic: Javascript error
asif

From: London, United Kingdom
Posts: 5
Member Since: 01/23/08
posted April 1, 2008 5:46 AM

Hi, i am having a javascript problem when i add validation to a page. On the page i have a TextBox and a few date fields. The date fields are the ones on which i have validation. If i remove the validation then the error goes away. The error i get is

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

Line: 79
Error: Object doesn't support this property or method
---------------------------
Yes  No 
---------------------------

I have tried to debug and the line in question has the following code

href=String.replace(href,"WebForm_DoPostBackWithOptions","pwCopyData();WebForm_DoPostBackWithOptions");

I need to go live with my site pretty soon and need this to be fixed ASAP.

Thanks in advance
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted April 1, 2008 10:18 AM

Hi,
I was not able to reproduce the problem.
Can you provide exact steps for doing so?

Are you using the latest shipping version (3.1.3.8)?

Thanks,
-ken

------
-Non-current subscribers must contact sales@dart.com to update subscription and receive continued support as needed.
------

asif

From: London, United Kingdom
Posts: 5
Member Since: 01/23/08
posted April 9, 2008 4:04 AM

hi sorry for the delay in getting back to this, i have updated my version and now the form elements dont do a postback, any ideas ?
asif

From: London, United Kingdom
Posts: 5
Member Since: 01/23/08
posted April 9, 2008 6:17 AM

Ok have done a bit more testing and now the situation is this. The field validations appear to be working correctly, however link buttons on the page now dont postback. I have uploaded 2 pics so you can follow this information a bit better.

I have a page which loads in some details, each of these in editable. (http://www.publiczone.co.uk/asif/pic1.gif) shows the page. At this point you can click on the edit or delete links and they work correctly. Clicking on the Edit link brings up the next page (http://www.publiczone.co.uk/asif/pic2.gif) this is the same page but has the contents loaded into the htmlbox. The update button works, however when i click on the edit or delete buttons now nothing happens. I have also noticed that when i right click on the page now it gives the following error

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

Line: 389
Error: 'pwCurRange' is null or not an object
---------------------------
Yes  No 
---------------------------

I have double checked to see if this error comes up when the page first loads in without the htmlbox, and it doesnt appear (ie only when the htmlbox is on the page does this error happen)

Any help is much appreciated
John Talarico



From: Rome, NY USA
Posts: 630
Member Since: 06/01/05
posted April 9, 2008 3:43 PM

I've taken a look at the screenshots, but cannot see anything that would cause the behavior you've described. Are you able to reproduce this in a standalone, simple application or does it only appear in a specific application?

If you could provide reproduction steps, we'll try to determine the cause. Every bit of information is helpful, including the version of Visual Studio, the browser type and version, other controls on the page, etc.

------
-Non-current subscribers must contact sales@dart.com to update subscription and receive continued support as needed.
------

asif

From: London, United Kingdom
Posts: 5
Member Since: 01/23/08
posted April 10, 2008 3:49 AM

after going back to the very begining and trying to work out where things were going wrong, I have beaiscally managed to track down the issue. Basically on the page i am also using the .net ajax tool kit. this is what is causing the problem. I have narrowed it down to the script manager code that is inserted in order to make the ajax work. Any ideas how i can get aorund this ?
asif

From: London, United Kingdom
Posts: 5
Member Since: 01/23/08
posted April 10, 2008 5:53 AM

I can now confirm that as soon as i add a ScriptManager control onto a page the postback events dont work i tested with a simple page the code of which is

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default2.aspx.vb" Inherits="Default2" %>

<%@ Register Assembly="Dart.PowerWEB.TextBox" Namespace="Dart.PowerWEB.TextBox" TagPrefix="cc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
  <title>Untitled Page</title>
</head>
<body>
  <form id="form1" runat="server">
  <div>
    <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True">
      <asp:ListItem>test1</asp:ListItem>
      <asp:ListItem>test2</asp:ListItem>
    </asp:DropDownList>
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <cc1:HtmlBox ID="HtmlBox1" runat="server"></cc1:HtmlBox></div>
  </form>
</body>
</html>
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted April 16, 2008 3:38 PM

Hi,
I have reproduced the problem and it has been reported as issue #4623.

Unfortunately, I am unaware of a work-around.

For updates on the status of the issue, please contact Jamie Powell (support@dart.com).

Thanks,
-ken

------
-Non-current subscribers must contact sales@dart.com to update subscription and receive continued support as needed.
------

Reply | PowerWEB TextBox for ASP.NET Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX