Visual Basic .NET » Web Forms
doesn't work with firefox 2.0b1 -- Pontus --


please see the following code:

<%@ Page language="c#" Codebehind="WebForm3.aspx.cs"
AutoEventWireup="false" Inherits="Test4.WebForm3" %>
<html>
<body>
<form id="f2" runat="server">
<input type="text" id="txt"/>
<div>Length of the string: <span id="txt_display">0</span></div>
</form>
<script type="text/javascript">

var textLen = function(ele) {
this.ele = ele;
this.display = document.getElementById(this.ele.id + "_display");
addEvent(this.ele, "keyup", this.dosearch.bind(this));
}

textLen.prototype = {
dosearch: function() {
Test4.WebForm3.GetLength(this.ele.value, this.ondata.bind(this));
},
ondata: function(res) {

this.display.innerHTML = res.value;
}
};

function init() {
var x = new textLen(document.getElementById("txt"));
x.ele.focus();
}

addEvent(window, "load", init);

</script>
</body>
</html>

//===C#
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;

namespace Test4
{
/// <summary>
/// WebForm3
/// </summary>
public class WebForm3 : System.Web.UI.Page
{
private void Page_Load(object sender, System.EventArgs e)
{

AjaxPro.Utility.RegisterTypeForAjax(typeof(WebForm3));
}

public int GetLength(string s)
{
return s.Length;
}
#region
override protected void OnInit(EventArgs e)
{
//
// CODEGEN: 该调用是 ASP.NET Web 窗体设计器所必需的。
//
InitializeComponent();
base.OnInit(e);
}

/// <summary>
/// 设计器支持所需的方法 -
不要使用代码编辑器修改
/// 此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.Load += new System.EventHandler(this.Page_Load);

}
#endregion

}
}

-- MichaelSchwarz --

Hi,

what error do you get? And, is it working with Internet Explorer?

Regards,
Michael

On 7/18/06, Pontus <muxinpp> wrote:

please see the following code:

<%@ Page language="c#" Codebehind="WebForm3.aspx.cs"
AutoEventWireup="false" Inherits="Test4.WebForm3" %>
<html>
<body>
<form id="f2" runat="server">
<input type="text" id="txt"/>
<div>Length of the string: <span id="txt_display">0</span></div>
</form>
<script type="text/javascript">

var textLen = function(ele) {
this.ele = ele;
this.display = document.getElementById(this.ele.id + "_display");
addEvent(this.ele, "keyup", this.dosearch.bind(this));
}

textLen.prototype = {
dosearch: function() {
Test4.WebForm3.GetLength(this.ele.value, this.ondata.bind(this));
},
ondata: function(res) {

this.display.innerHTML = res.value;
}
};

function init() {
var x = new textLen(document.getElementById("txt"));
x.ele.focus();
}

addEvent(window, "load", init);

</script>
</body>
</html>

//===C#
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;

namespace Test4
{
/// <summary>
/// WebForm3
/// </summary>
public class WebForm3 : System.Web.UI.Page
{
private void Page_Load(object sender, System.EventArgs e)
{

AjaxPro.Utility.RegisterTypeForAjax(typeof(WebForm3));
}

public int GetLength(string s)
{
return s.Length;
}
#region
override protected void OnInit(EventArgs e)
{
//
// CODEGEN: 该调用是 ASP.NET Web 窗体设计器所必需的。
//
InitializeComponent();
base.OnInit(e);
}

/// <summary>
/// 设计器支持所需的方法 -
不要使用代码编辑器修改
/// 此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.Load += new System.EventHandler(this.Page_Load);

}
#endregion

}
}
>

--  

Best regards | Schöne Grüße Michael

Microsoft MVP - Most Valuable Professional Microsoft MCAD - Certified Application Developer

http://weblogs.asp.net/mschwarz 
/
http://www.schwarz-interactive.de 
/
mailto:info
-- Pontus --


responseText.trim is not a function
http://localhost:83/Test4/ajaxpro/core.ashx 
321

-- MichaelSchwarz --


Do you see the prototype.ashx JavaScript include in the HTML output?

Regards,
Michael
On 7/18/06, Pontus <muxinpp> wrote:

responseText.trim is not a function
http://localhost:83/Test4/ajaxpro/core.ashx 
321
>

--  

Best regards | Schne Gre Michael

Microsoft MVP - Most Valuable Professional Microsoft MCAD - Certified Application Developer

http://weblogs.asp.net/mschwarz 
/
http://www.schwarz-interactive.de 
/
mailto:info
-- Pontus --


Yes.It's in the HTML output

Michael Schwarz wrote:
Do you see the prototype.ashx JavaScript include in the HTML output?

Regards,
Michael
On 7/18/06, Pontus <muxinpp> wrote:
>
> responseText.trim is not a function
>
http://localhost:83/Test4/ajaxpro/core.ashx 
321
>
>
> >
>
--
Best regards | Schne Gre
Michael

Microsoft MVP - Most Valuable Professional
Microsoft MCAD - Certified Application Developer

http://weblogs.asp.net/mschwarz 
/
http://www.schwarz-interactive.de 
/
mailto:info

 

-- Mello --


Same problem but with FFox 2.0 for mac.

-- MichaelSchwarz --


Can you provide me the link for FF download? I don't find your version... :(

Is
http://www.ajaxpro.info 
/ showing you the same error?

Regards,
Michael

On 7/18/06, Pontus <muxinpp> wrote:

Yes.It's in the HTML output

Michael Schwarz wrote:
> Do you see the prototype.ashx JavaScript include in the HTML output?
>
> Regards,
> Michael
>
>
> On 7/18/06, Pontus <muxinpp> wrote:
> >
> > responseText.trim is not a function
> >
http://localhost:83/Test4/ajaxpro/core.ashx 
321
> >
> >
> > >
> >
>
>
> --
> Best regards | Schne Gre
> Michael
>
> Microsoft MVP - Most Valuable Professional
> Microsoft MCAD - Certified Application Developer
>
>
http://weblogs.asp.net/mschwarz 
/
>
http://www.schwarz-interactive.de 
/
> mailto:info
>

--  

Best regards | Schne Gre Michael

Microsoft MVP - Most Valuable Professional Microsoft MCAD - Certified Application Developer

http://weblogs.asp.net/mschwarz 
/
http://www.schwarz-interactive.de 
/
mailto:info
-- Pontus --


http://www.mozilla.org/projects/bonecho/all-beta.html 


Michael Schwarz wrote:
Can you provide me the link for FF download? I don't find your version... :(

Is
http://www.ajaxpro.info 
/ showing you the same error?

Regards,
Michael

On 7/18/06, Pontus <muxinpp> wrote:
>
> Yes.It's in the HTML output
>
> Michael Schwarz wrote:
> > Do you see the prototype.ashx JavaScript include in the HTML output?
> >
> > Regards,
> > Michael
> >
> >
> > On 7/18/06, Pontus <muxinpp> wrote:
> > >
> > > responseText.trim is not a function
> > >
http://localhost:83/Test4/ajaxpro/core.ashx 
321
> > >
> > >
> > > >
> > >
> >
> >
> > --
> > Best regards | Schne Gre
> > Michael
> >
> > Microsoft MVP - Most Valuable Professional
> > Microsoft MCAD - Certified Application Developer
> >
> >
http://weblogs.asp.net/mschwarz 
/
> >
http://www.schwarz-interactive.de 
/
> > mailto:info
>
>
> >
>
--
Best regards | Schne Gre
Michael

Microsoft MVP - Most Valuable Professional
Microsoft MCAD - Certified Application Developer

http://weblogs.asp.net/mschwarz 
/
http://www.schwarz-interactive.de 
/
mailto:info

 

-- Pontus --


Why? Why?

-- MichaelSchwarz --


I've installed the 2.0b1 and i.e.
http://www.ajaxpro.info 
/ is working without any error, only a CSS warning I get.

Do you have a public URL for me to test your page?

Regards,
Michael
On 7/19/06, Pontus <muxinpp> wrote:

Why? Why?
>

--  

Best regards | Schne Gre Michael

Microsoft MVP - Most Valuable Professional Microsoft MCAD - Certified Application Developer

http://weblogs.asp.net/mschwarz 
/
http://www.schwarz-interactive.de 
/
mailto:info

Skype: callto:schwarz-interactive MSN IM: passport
-- MichaelSchwarz --


Ah, I found a problem. The JavaScript files belong to each other, i.e.
core.ashx needs some functions from prototype.ashx. Firefox is downloading these files at the same time and then some functions are missing.

There is a first workaround for this using following configuration in web.config:
<ajaxNet>
<ajaxSettings>
<scriptReplacements>
<file name="prototype" path="~/ajaxpro/prototype-core.ashx" />
<file name="core" path="" />
</scriptReplacements>
</ajaxSettings>
</ajaxNet>
Regards,
Michael

On 7/19/06, Michael Schwarz <michael.schwarz> wrote:
http://www.ajaxpro.info 
/ is working
without any error, only a CSS warning I get.

Do you have a public URL for me to test your page?

Regards,
Michael
On 7/19/06, Pontus <muxinpp> wrote:
>
> Why? Why?
>
>
> > >
>
--
Best regards | Schne Gre
Michael

Microsoft MVP - Most Valuable Professional
Microsoft MCAD - Certified Application Developer

http://weblogs.asp.net/mschwarz 
/
http://www.schwarz-interactive.de 
/
mailto:info

Skype: callto:schwarz-interactive
MSN IM: passport

--  
Best regards | Schne Gre Michael

Microsoft MVP - Most Valuable Professional Microsoft MCAD - Certified Application Developer

http://weblogs.asp.net/mschwarz 
/
http://www.schwarz-interactive.de 
/

Skype: callto:schwarz-interactive MSN IM: passport
[Submit Comment]Home