Hi, have just started to use AJAX Pro on a project and am very
impressed with the results - until I started testing on other browsers.

Everything seems to work fine on all browsers except Konqueror 3.5.3.
I have even set up the GetTime demo to ensure I wasn't trying anything
to ambitious but cannot get this to work.

This is annoying as I can see the demos on http://www.ajaxpro.info/
which all work fine on Konqueror.

I am using ASP.NET v2 and here is my code:

Gettime.aspx
--------------------

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

<!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>SAY HELLO</title>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <input id="Button1" type="button" value="button"
onclick="return Button1_onclick()" />
        </div>
    </form>

    <script type="text/javascript" defer="defer">
        function getServerTime_callback(res)
        {
            if (res.error) {alert(res.error);} else {alert(res.value);}
        }

        function Button1_onclick() {
            GetTimeSpace.GetTime.GetServerTime("BOO!",
getServerTime_callback);
        }
    </script>

</body>
</html>


Gettime.aspx.vb
------------------------

Imports AjaxPro

Namespace GetTimeSpace

  Class GetTime
    Inherits System.Web.UI.Page

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.Load
      AjaxPro.Utility.RegisterTypeForAjax(GetType(GetTime), Me.Page)
    End Sub

    <AjaxPro.AjaxMethod()> _
    Public Function GetServerTime(ByVal dummy As String) As String
      Return Date.Now.ToString("dd MMM yyyy hh:mm:ss")
    End Function

  End Class

End Namespace


In web.config have added

<httpHandlers>
  <add verb="POST,GET" path="ajaxpro/*.ashx"
type="AjaxPro.AjaxHandlerFactory, AjaxPro.2"/>
</httpHandlers>


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Ajax.NET Professional" group.

To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]

For more options, visit this group at http://groups.google.com/group/ajaxpro

The latest downloads of Ajax.NET Professional can be found at 
http://www.ajaxpro.info
-~----------~----~----~----~------~----~------~--~---

Reply via email to