I think, you have to test your web ajax applications in FireFox. (Whit
web developer tool). It'll help you. In FireFox you get a normalize
error message, and usually the error console shows you, where the
problem is.
And one more thing.
Check out the included javascript directly by url. Maybe the include
path is wrong.


Zozi

Shandy Sawyer wrote:
> Ok, I have tried EVERYTHING that has been listed to make quick guide sample 
> to work.  I even downloaded Joseph Guadagno's VB project 
> http://josephguadagno.net/ajax.aspx that he says is working fine and tried to 
> run it but it didn't work.
>
> The javascript error i'm getting is:
> Line: 19
> Char: 1
> Error: Object Expected
> Code: 0
> URL: http://[server]/employerprofiles/default.aspx
>
> Its refering to this line of code in the default.aspx:
> <button onclick="GetServerTime();" type="button">GetServerTime</button>
>
>
> Here's all my stuff:
>
> Just some quick side notes
> - The folder employerprofiles is a subweb.  So any paths that start at the 
> root under this project are really starting at /employerprofiles/
> - A reference was added to the project for the AjaxPro.dll (I'm using ASP.NET 
> 1.1)
> -----------------
>    /web.config
> -----------------
> [...]<httpHandlers>
> <!-- Register the ajax handler -->
> <add verb="POST,GET" path="ajax/*.ashx" type="AjaxPro.AjaxHandlerFactory, 
> AjaxPro" />
> </httpHandlers>
> [...]
>
> ------------------
>    /default.aspx
> ------------------<%@ Page Language="vb" AutoEventWireup="false" 
> Codebehind="default.aspx.vb" Inherits="EmployerProfiles.TestAJAX"%><!DOCTYPE 
> HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
> "http://www.w3.org/TR/xhtml1/DTD/xhmtl1-strict.dtd";><HTML> <HEAD>  
> <title>default</title>  <script language="javascript" 
> src="/javascript/TestAJAX.js"></script> </HEAD> <body>  <form id="Form1" 
> method="post" runat="server">   <button onclick="GetServerTime();" 
> type="button">GetServerTime</button>  </form> </body></HTML>
>
>
> ----------------------
>    /default.aspx.vb
> ----------------------
> Public Class TestAJAX    Inherits System.Web.UI.Page
>
>     [Web Form Designer Generated Code]
>
>     Private Sub Page_Load(ByVal sender As System.Object, ByVal e As 
> System.EventArgs) Handles MyBase.Load        
> AjaxPro.Utility.RegisterTypeForAjax(GetType(EmployerProfiles.TestAJAX))    
> End Sub
>
>     <AjaxPro.AjaxMethod()> _    Public Function GetServerTime() As String     
>    Return DateTime.Now.ToString()    End Function
> End Class
>
>
> -------------------------------
>    /javascript/TestAjax.js
> -------------------------------
> function GetServerTime() {     
> EmployerProfiles.TestAJAX.GetServerTime(GetServerTime_Callback)}
> function GetServerTime_Callback(response) {    alert(response.value); }
>
>
> If anyone can tell me at all what is wrong and how to fix it they will be in 
> my hall of coding fame forever :)  Thanks!
>
> Shandy
>
>
> _________________________________________________________________
> Try Live.com - your fast, personalized homepage with all the things you care 
> about in one place.
> http://www.live.com/getstarted
> --_7958272d-cb46-4e5a-81dc-4deaa07691ee_
> Content-Type: text/html; charset=iso-8859-1
> Content-Transfer-Encoding: quoted-printable
> X-Google-AttachSize: 5002
>
> <html>
> <head>
> <style>
> P
> {
> margin:0px;
> padding:0px
> }
> body
> {
> FONT-SIZE: 10pt;
> FONT-FAMILY:Tahoma
> }
> </style>
> </head>
> <body>Ok,&nbsp;I have tried EVERYTHING that has been listed to make quick 
> guide sample to work.&nbsp; I even downloaded Joseph Guadagno's VB project <A 
> href="http://josephguadagno.net/ajax.aspx"; 
> >http://josephguadagno.net/ajax.aspx</A> that he says is working fine and 
> tried to run it but it didn't work.&nbsp; <BR>
> &nbsp;<BR>
> The javascript error i'm getting is:<BR>
> Line: 19<BR>
> Char: 1<BR>
> Error: Object Expected<BR>
> Code: 0<BR>
> URL: <A href="http://[server]/employerprofiles/default.aspx"; 
> >http://[server]/employerprofiles/default.aspx</A><BR>
> &nbsp;<BR>
> Its refering to this line of code in the default.aspx:<BR>
> &lt;button onclick="GetServerTime();" 
> type="button"&gt;GetServerTime&lt;/button&gt;<BR ><BR>
> &nbsp;<BR>
> &nbsp;<BR>
> Here's all my stuff:<BR>
> &nbsp;<BR>
> Just some&nbsp;quick side notes <BR>
> - The folder employerprofiles is a <FONT class="">subweb.&nbsp; So any paths 
> that start at the root under this project are really starting at 
> /employerprofiles/</FONT><BR>
> - A reference was added to the project for the AjaxPro.dll&nbsp;(I'm using 
> ASP.NET 1.1)<BR>
> -----------------<BR>
> &nbsp; &nbsp;/<FONT class="">web.config</FONT><BR>
> -----------------<BR>
> [...]<BR ><FONT color=#000000 size=2 >&lt;httpHandlers&gt;</FONT><BR>
> <FONT color=#000000 size=2 >&lt;!-- Register the ajax handler 
> --&gt;</FONT><BR>
> <FONT color=#000000 size=2 >&lt;add verb="POST,GET" path="ajax/*.ashx" 
> type="<FONT class="">AjaxPro.AjaxHandlerFactory</FONT>, AjaxPro" 
> /&gt;</FONT><BR>
> <FONT color=#000000 size=2 >&lt;/httpHandlers&gt; </FONT><BR>
> <FONT color=#000000 size=2 >[...]</FONT><BR>
> &nbsp;<BR>
> <FONT color=#000000 size=2 >------------------<BR>
> &nbsp;&nbsp; /<FONT class="">default.aspx</FONT><BR>
> ------------------<BR >&lt;%@ Page Language="vb" AutoEventWireup="false" 
> Codebehind="<FONT class=""><FONT class=""><FONT class=""><FONT 
> class="">default.aspx.vb</FONT></FONT></FONT></FONT>" Inherits="<FONT 
> class=""><FONT class="">EmployerProfiles.TestAJAX</FONT></FONT>"%&gt;<BR 
> >&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "<A 
> href="http://www.w3.org/TR/xhtml1/DTD/xhmtl1-strict.dtd"; 
> >http://www.w3.org/TR/xhtml1/DTD/xhmtl1-strict.dtd</A>"&gt;<BR 
> >&lt;HTML&gt;<BR >&nbsp;&lt;HEAD&gt;<BR 
> >&nbsp;&nbsp;&lt;title&gt;default&lt;/title&gt;<BR >&nbsp;&nbsp;&lt;script 
> language="javascript" src="/javascript/<FONT class=""><FONT 
> class="">TestAJAX.js</FONT></FONT>"&gt;&lt;/script&gt;<BR 
> >&nbsp;&lt;/HEAD&gt;<BR >&nbsp;&lt;body&gt;<BR >&nbsp;&nbsp;&lt;form 
> id="Form1" method="post" runat="server"&gt;<BR >&nbsp;&nbsp;&nbsp;&lt;button 
> onclick="GetServerTime();" type="button"&gt;GetServerTime&lt;/button&gt;<BR 
> >&nbsp;&nbsp;&lt;/form&gt;<BR >&nbsp;&lt;/body&gt;<BR >&lt;/HTML&gt;<BR>
> &nbsp;<BR>
> &nbsp;<BR>
> <FONT color=#000000 size=2 >----------------------<BR>
> &nbsp;&nbsp; /<FONT class="">default.aspx.vb</FONT><BR>
> ----------------------<BR></FONT>
> Public Class TestAJAX<BR >&nbsp;&nbsp;&nbsp; Inherits System.Web.UI.Page<BR>
> &nbsp;&nbsp;&nbsp; <BR>
> &nbsp;&nbsp;&nbsp; [Web Form Designer Generated Code]<BR>
> &nbsp;<BR>
> &nbsp;&nbsp;&nbsp;&nbsp;Private Sub Page_Load(ByVal sender As System.Object, 
> ByVal e As System.EventArgs) Handles MyBase.Load<BR 
> >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT class=""><FONT 
> class="">AjaxPro.Utility.RegisterTypeForAjax</FONT></FONT>(GetType(<FONT 
> class=""><FONT class="">EmployerProfiles.TestAJAX</FONT></FONT>))<BR 
> >&nbsp;&nbsp;&nbsp; End Sub<BR>
> &nbsp;<BR>
> &nbsp;&nbsp;&nbsp; &lt;<FONT class="">AjaxPro.AjaxMethod</FONT>()&gt; _<BR 
> >&nbsp;&nbsp;&nbsp; Public Function GetServerTime() As String<BR 
> >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Return DateTime.Now.ToString()<BR 
> >&nbsp;&nbsp;&nbsp; End Function<BR>
> End Class<BR>
> &nbsp;<BR>
> &nbsp;<BR>
> -------------------------------<BR>
> &nbsp;&nbsp; /javascript/TestAjax.js<BR>
> -------------------------------<BR>
> function GetServerTime() <BR >{ <BR >&nbsp;&nbsp;&nbsp; <FONT 
> class="">EmployerProfiles.TestAJAX.<FONT 
> class="">GetServerTime</FONT></FONT>(<FONT class=""><FONT 
> class="">GetServerTime_Callback</FONT></FONT>)<BR >} <BR>
> function <FONT class=""><FONT 
> class="">GetServerTime_Callback</FONT></FONT>(response) <BR >{<BR 
> >&nbsp;&nbsp;&nbsp; alert(response.value); <BR >}<BR>
> &nbsp;<BR>
> &nbsp;<BR>
> If anyone can tell me at all what is&nbsp;wrong and how to fix it&nbsp;they 
> will be in my hall of coding fame forever :)&nbsp; Thanks!<BR>
> &nbsp;<BR>
> Shandy</FONT><BR>
> <FONT size=2 ></FONT>&nbsp;<BR>
> <FONT size=2 >&nbsp;<BR></FONT><br /><hr />Be one of the first to try  <a 
> href='http://ideas.live.com/programpage.aspx?versionId=5d21c51a-b161-4314-9b0e-4911fb2b2e6d'
>  target='_new'>Windows Live Mail beta</a></body>
> </html>
> --_7958272d-cb46-4e5a-81dc-4deaa07691ee_--


--~--~---------~--~----~------------~-------~--~----~
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