Hi. I was handling key events nicely using some Javascript on my apps using
something like this:
this.txtUserName.Attributes.Add("onkeydown","if((e vent.which && event.which
== 13)||(event.keyCode && event.keyCode ==
13)){document.Form1.cmdLogin.click();return false;}else return true;");
that code rendered javascript to the client OK. Now that I upgraded to
ASP.NET 2 Beta 2 it is rendering && instead of &&, so clients are
getting this instead:
if((event.which && event.which == 13)||(event.keyCode &&
event.keyCode == 13)){document.Form1.cmdLogin.click();return false;}else
return true;
Please HELP!!
Thanks,
Alejandro Penate-Diaz. 6 1457
Can you show how you render the script to the client? IOW, do you use Page.ClientScriptRegisterClientScriptBlock
or something else?
-Brock
DevelopMentor http://staff.develop.com/ballen Hi. I was handling key events nicely using some Javascript on my apps using something like this: this.txtUserName.Attributes.Add("onkeydown","if((e vent.which && event.which == 13)||(event.keyCode && event.keyCode == 13)){document.Form1.cmdLogin.click();return false;}else return true;");
that code rendered javascript to the client OK. Now that I upgraded to ASP.NET 2 Beta 2 it is rendering && instead of &&, so clients are getting this instead:
if((event.which && event.which == 13)||(event.keyCode && event.keyCode == 13)){document.Form1.cmdLogin.click();return false;}else return true;
Please HELP!!
Thanks,
Alejandro Penate-Diaz.
using something like this in my Page_Load method.:
this.txtUserName.Attributes.Add("onkeydown","if((e vent.which &&event.which
== 13)||(event.keyCode && event.keyCode
==13)){document.Form1.cmdLogin.click();return false;}else return true;");
"Brock Allen" <ba****@NOSPAMdevelop.com> wrote in message
news:79**********************@msnews.microsoft.com ... Can you show how you render the script to the client? IOW, do you use Page.ClientScriptRegisterClientScriptBlock or something else?
-Brock DevelopMentor http://staff.develop.com/ballen Hi. I was handling key events nicely using some Javascript on my apps using something like this: this.txtUserName.Attributes.Add("onkeydown","if((e vent.which && event.which == 13)||(event.keyCode && event.keyCode == 13)){document.Form1.cmdLogin.click();return false;}else return true;");
that code rendered javascript to the client OK. Now that I upgraded to ASP.NET 2 Beta 2 it is rendering && instead of &&, so clients are getting this instead:
if((event.which && event.which == 13)||(event.keyCode && event.keyCode == 13)){document.Form1.cmdLogin.click();return false;}else return true;
Please HELP!!
Thanks,
Alejandro Penate-Diaz.
do you think this would work?
<system.web>
<!-- other elements here -->
<XHTML11Conformance
enableObsoleteRendering="true" />
</system.web>
"Brock Allen" <ba****@NOSPAMdevelop.com> wrote in message
news:79**********************@msnews.microsoft.com ... Can you show how you render the script to the client? IOW, do you use Page.ClientScriptRegisterClientScriptBlock or something else?
-Brock DevelopMentor http://staff.develop.com/ballen Hi. I was handling key events nicely using some Javascript on my apps using something like this: this.txtUserName.Attributes.Add("onkeydown","if((e vent.which && event.which == 13)||(event.keyCode && event.keyCode == 13)){document.Form1.cmdLogin.click();return false;}else return true;");
that code rendered javascript to the client OK. Now that I upgraded to ASP.NET 2 Beta 2 it is rendering && instead of &&, so clients are getting this instead:
if((event.which && event.which == 13)||(event.keyCode && event.keyCode == 13)){document.Form1.cmdLogin.click();return false;}else return true;
Please HELP!!
Thanks,
Alejandro Penate-Diaz.
that didnt work, when I build the app I get an error like:
Error 1 Unrecognized configuration section XHTML11Conformance.
c:\inetpub\wwwroot\qman\Web.config 9
"Brock Allen" <ba****@NOSPAMdevelop.com> wrote in message
news:79**********************@msnews.microsoft.com ... Can you show how you render the script to the client? IOW, do you use Page.ClientScriptRegisterClientScriptBlock or something else?
-Brock DevelopMentor http://staff.develop.com/ballen Hi. I was handling key events nicely using some Javascript on my apps using something like this: this.txtUserName.Attributes.Add("onkeydown","if((e vent.which && event.which == 13)||(event.keyCode && event.keyCode == 13)){document.Form1.cmdLogin.click();return false;}else return true;");
that code rendered javascript to the client OK. Now that I upgraded to ASP.NET 2 Beta 2 it is rendering && instead of &&, so clients are getting this instead:
if((event.which && event.which == 13)||(event.keyCode && event.keyCode == 13)){document.Form1.cmdLogin.click();return false;}else return true;
Please HELP!!
Thanks,
Alejandro Penate-Diaz.
Well, I see the & that it's rendering, but the code executes properly.
Does your javascript work?
-Brock
DevelopMentor http://staff.develop.com/ballen using something like this in my Page_Load method.:
this.txtUserName.Attributes.Add("onkeydown","if((e vent.which &&event.which == 13)||(event.keyCode && event.keyCode ==13)){document.Form1.cmdLogin.click();return false;}else return true;");
"Brock Allen" <ba****@NOSPAMdevelop.com> wrote in message news:79**********************@msnews.microsoft.com ...
Can you show how you render the script to the client? IOW, do you use Page.ClientScriptRegisterClientScriptBlock or something else?
-Brock DevelopMentor http://staff.develop.com/ballen Hi. I was handling key events nicely using some Javascript on my apps using something like this: this.txtUserName.Attributes.Add("onkeydown","if((e vent.which && event.which == 13)||(event.keyCode && event.keyCode == 13)){document.Form1.cmdLogin.click();return false;}else return true;");
that code rendered javascript to the client OK. Now that I upgraded to ASP.NET 2 Beta 2 it is rendering && instead of &&, so clients are getting this instead:
if((event.which && event.which == 13)||(event.keyCode && event.keyCode == 13)){document.Form1.cmdLogin.click();return false;}else return true;
Please HELP!!
Thanks,
Alejandro Penate-Diaz.
It doesn't work
"Brock Allen" <ba****@NOSPAMdevelop.com> wrote in message
news:81**********************@msnews.microsoft.com ... Well, I see the & that it's rendering, but the code executes properly. Does your javascript work?
-Brock DevelopMentor http://staff.develop.com/ballen using something like this in my Page_Load method.:
this.txtUserName.Attributes.Add("onkeydown","if((e vent.which &&event.which == 13)||(event.keyCode && event.keyCode ==13)){document.Form1.cmdLogin.click();return false;}else return true;");
"Brock Allen" <ba****@NOSPAMdevelop.com> wrote in message news:79**********************@msnews.microsoft.com ...
Can you show how you render the script to the client? IOW, do you use Page.ClientScriptRegisterClientScriptBlock or something else?
-Brock DevelopMentor http://staff.develop.com/ballen Hi. I was handling key events nicely using some Javascript on my apps using something like this: this.txtUserName.Attributes.Add("onkeydown","if((e vent.which && event.which == 13)||(event.keyCode && event.keyCode == 13)){document.Form1.cmdLogin.click();return false;}else return true;");
that code rendered javascript to the client OK. Now that I upgraded to ASP.NET 2 Beta 2 it is rendering && instead of &&, so clients are getting this instead:
if((event.which && event.which == 13)||(event.keyCode && event.keyCode == 13)){document.Form1.cmdLogin.click();return false;}else return true;
Please HELP!!
Thanks,
Alejandro Penate-Diaz. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: somebody |
last post by:
Hello all,
I created a function which gets the position of the mouse. This works fine
untill I insert a doctype declaration in the file. The properties
'scrollLeft' and 'scrollTop' in IE will...
|
by: binnyva |
last post by:
Hello Everyone,
I have just compleated a JavaScript tutorial and publishing the
draft(or the beta version, as I like to call it) for review. This is
not open to public yet.
The Tutorial is...
|
by: Matt Kruse |
last post by:
http://www.JavascriptToolbox.com/bestpractices/
I started writing this up as a guide for some people who were looking for
general tips on how to do things the 'right way' with Javascript. Their...
|
by: Jeff S |
last post by:
In a VB.NET code behind module, I build a string for a link that points to a
JavaScript function. The two lines of code below show what is relevant.
PopupLink = "javascript:PopUpWindow(" &...
|
by: jojobar |
last post by:
Okay, I am trying to do is to test the webresource in 2.0
1. I created a new project with assembly name (and default assembly name)
"Office".
2. I added the following to the AssemblyInfo.cs...
|
by: VK |
last post by:
Internet Explorer 7 beta 2 preview
CNET Editor review:
<http://reviews.cnet.com/Internet_Explorer_7_for_XP_SP2_Beta_2/4505-3514_7-31454661-2.html?tag=nl.e415>
Summary (my personal review...
|
by: Peter Michaux |
last post by:
Hi,
I'm sure many here have already noticed this but it seems that the
development of the browser world is paralleling the development of the
computer world. However, the browser world is about...
|
by: VK |
last post by:
In the continuation of the discussion at "Making Site Opaque -- This
Strategy Feasible?" and my comment at
http://groups.google.com/group/comp.lang.javascript/msg/b515a4408680e8e2
I have...
|
by: DJRhino |
last post by:
Was curious if anyone else was having this same issue or not....
I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
|
by: Aliciasmith |
last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
|
by: tracyyun |
last post by:
Hello everyone,
I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
|
by: giovanniandrean |
last post by:
The energy model is structured as follows and uses excel sheets to give input data:
1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
|
by: NeoPa |
last post by:
Hello everyone.
I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report).
I know it can be done by selecting :...
|
by: NeoPa |
last post by:
Introduction
For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM)
Please note that the UK and Europe revert to winter time on...
|
by: NeoPa |
last post by:
Introduction
For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
|
by: isladogs |
last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, Mike...
| |