473,789 Members | 3,060 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problems with ASP.Net object and Javascript

I have a function:

function SalaryDisplay(m e)
{
var salaryMinLabel = document.getEle mentById("Salar yMin");
salaryMinLabel. value = 200;
alert("after setting salaryMinLabel = " + salaryMinLabel. value);
}

I also have an asp.net object:

<asp:label id="SalaryMin" runat="server" />

Which renders into:

<span id="SalaryMin"> </span>

The function seems to find the span fine. The alert box shows that it is
set to 200. But the web page never shows it.

Is there a problem setting the span element?

Thanks,

Tom
Jul 23 '05
54 4616
"Thomas 'PointedEars' Lahn" <Po*********@we b.de> writes:
David Dorward schrieb:

Then what is the difference? I was under the impression that
ECMAScript was just the standard that was created from JavaScript
ECMAScript was created based on both Netscape JavaScript and Microsoft
JScript (which is probably why some of the features available in only
one of these is not in ECMAScript).

[ECMAScript] and that browsers implemented the standard now.


They implement Netscape JavaScript or Microsoft JScript which extend
standardized ECMAScript.


That's a yes. That these two browsers have named their extensions of
ECMAScript is mostly for historical reasons (they were named before
ECMAScript existed), but other browsers don't necessarily do so.

E.g., Opera implements ECMAScript v3. It doesn't implement Netscape
JavaScript nor Microsoft JScript. It has some extensions that are
compatible with parts of JavaScript and JScript, but it is not a full
implementation of either. As such, it's their own personal extension
of ECMAScript (and "an extended subset" of JavaScript and JScript).

Their own statement is:
<URL:http://www.opera.com/docs/specs/#ecmascript>.
Incidentally, the Windows version has a file called "es262-32.dll" :)

Did I have a point? :)
/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleD OM.html>
'Faith without judgement merely degrades the spirit divine.'
Jul 23 '05 #31
Lasse Reichstein Nielsen wrote:
"Thomas 'PointedEars' Lahn" <Po*********@we b.de> writes:
David Dorward schrieb:
Then what is the difference? I was under the impression that
ECMAScript was just the standard that was created from JavaScript
ECMAScript was created based on both Netscape JavaScript and Microsoft
JScript (which is probably why some of the features available in only
one of these is not in ECMAScript).
Having reviewed ECMA-262 (First Edition), I have to admit that my sources
were apparently incorrect. You're right, it states on page 5:

| This ECMA Standard is based on several originating technologies, the most
| well known being JavaScript? (Netscape Communications) and JScript?
| (Microsoft Corporation). The development of this Standard has started in
| November 1996.
[ECMAScript] and that browsers implemented the standard now.
They implement Netscape JavaScript or Microsoft JScript which extend
standardized ECMAScript.


That's a yes.


If I meant "yes", I would have said so.
That these two browsers have named their extensions of ECMAScript is
mostly for historical reasons (they were named before ECMAScript existed),
Those extensions are mostly not compliant with ECMAScript.
but other browsers don't necessarily do so.
E.g., Opera implements ECMAScript v3.
No. It implements many features of ECMAScript editions (_not_ versions,
BTW).
It doesn't implement Netscape JavaScript nor Microsoft JScript. It has
some extensions that are compatible with parts of JavaScript and JScript,
Which is why it does not implement ECMAScript 3 (per specification).
but it is not a full implementation of either.
Yes, indeed.
As such, it's their own personal extension of ECMAScript (and "an extended
subset" of JavaScript and JScript).
There is only one ECMAScript (with currently 4 possible editions). Any
extension/omission of it that is not allowed by the specification does
not result in an (compliant) ECMAScript implementation, strictly speaking.
And certainly the languages are not the same and/or cannot be used as
synonyms which was the question here.
Their own statement is:
<URL:http://www.opera.com/docs/specs/#ecmascript>.
Incidentally, the Windows version has a file called "es262-32.dll" :)

Did I have a point? :)


You missed it somehow.
PointedEars
Jul 23 '05 #32
Thomas 'PointedEars' Lahn <Po*********@we b.de> writes:
That these two browsers have named their extensions of ECMAScript is
mostly for historical reasons (they were named before ECMAScript existed),
Those extensions are mostly not compliant with ECMAScript.


Depending on how one views extensions to a standard vs. compliance
with it. If all requirements of the standard are complied with, the
existence of further features would not make the extended language
uncompliant ... unless "no further features" *is* a requirement
of the standard. I don't believe it is for ECMAScript, quite the
contrary, in fact.

There is a difference between extending the syntax of the language
(which only IE does, with its conditional compilation features) and
extending the runtime environment that, syntactically correct,
programs are run in. The runtime environment is specified by the
standard, but not exclusively. The standard allows for extensions.
It even expects them.
It doesn't implement Netscape JavaScript nor Microsoft JScript. It has
some extensions that are compatible with parts of JavaScript and JScript,


Which is why it does not implement ECMAScript 3 (per specification).


ECMA262, 3rd edition (thanks), states (section 4):
---
ECMAScript as defined here is not intended to be computationally
self-sufficient; indeed, there are no provisions in this
specification for input of external data or output of computed
results. Instead, it is expected that the computational environment
of an ECMAScript program will provide not only the objects and other
facilities described in this specification but also certain
environment-specific host objects, whose description and behaviour
are beyond the scope of this specification except to indicate that
they may provide certain properties that can be accessed and certain
functions that can be called from an ECMAScript program.
---

A later note, from section 15, is:
---
NOTE Implementations that add additional capabilities to the set of
built-in functions are encouraged to do so by adding new functions
rather than adding new parameters to existing functions.
---

The ECMAScript standard writers *expect* implementations to have an
environment that extends that specified by the standard, while still
being compatible.
There is only one ECMAScript (with currently 4 possible editions).
Yes. It is a specification (or four).

There are several implementations of languages that comply with this
specification. Each is used in an environment where the standard-
specified runtime environment is extended with host objects and
non-standard properties.
Any extension/omission of it that is not allowed by the
specification does not result in an (compliant) ECMAScript
implementation, strictly speaking.
I disagree with this. Compliance is possible while also including
extensions, because the standard is not written to exclude extensions.
And certainly the languages are not the same and/or cannot be used
as synonyms which was the question here.


That is correct. There is no language called "Javascript " (lower case
"s").

Should anyone dare to use the word anyway, we'll just have to find a
meaning for it. I suggest "a generalization over ECMA-262-compliant
scripting languages". :)

/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleD OM.html>
'Faith without judgement merely degrades the spirit divine.'
Jul 23 '05 #33
Thomas 'PointedEars' Lahn wrote:
Lasse Reichstein Nielsen wrote:

<snip>
That these two browsers have named their extensions
of ECMAScript is mostly for historical reasons (they
were named before ECMAScript existed),


Those extensions are mostly not compliant with ECMAScript.
but other browsers don't necessarily do so.
E.g., Opera implements ECMAScript v3.


No. It implements many features of ECMAScript editions
(_not_ versions, BTW).
It doesn't implement Netscape JavaScript nor Microsoft
JScript. It has some extensions that are compatible with
parts of JavaScript and JScript,


Which is why it does not implement ECMAScript 3 (per
specification).
but it is not a full implementation of either.


Yes, indeed.
As such, it's their own personal extension of ECMAScript
(and "an extended subset" of JavaScript and JScript).


There is only one ECMAScript (with currently 4 possible
editions). Any extension/omission of it that is not allowed
by the specification does not result in an (compliant)
ECMAScript implementation, strictly speaking. And certainly
the languages are not the same and/or cannot be used as
synonyms which was the question here.

<snip>

ECMA 262 3rd edition commences with a section on conformance. Which
says:-

<quote cite=""ECMA 262 3rd edition Section 2>
2 Conformance

A conforming implementation of ECMAScript must provide and support all
the types, values, objects, properties, functions, and program syntax
and semantics described in this specification.

....

A conforming implementation of ECMAScript is permitted to provide
additional types, values, objects, properties, and functions beyond
those described in this specification. In particular, a conforming
implementation of ECMAScript is permitted to provide properties not
described in this specification, and values for those properties, for
objects that are described in this specification.

A conforming implementation of ECMAScript is permitted to support
program and regular expression syntax not described in this
specification. In particular, a conforming implementation of ECMAScript
is permitted to support program syntax that makes use of the "future
reserved words" listed in section 7.5.3 of this specification.
</quote>

Making it very clear that ECMA 262 provides for extension that would
include all of the differences between JavaScript, JScript and Opera's
implementation and an implementation that included nothing but what is
required by the standard. Thus they are all conforming ECMAScript
implementations .

Richard.
Jul 23 '05 #34
Lasse Reichstein Nielsen wrote:
Thomas 'PointedEars' Lahn <Po*********@we b.de> writes:
That these two browsers have named their extensions of ECMAScript is
mostly for historical reasons (they were named before ECMAScript
existed), Those extensions are mostly not compliant with ECMAScript.


Depending on how one views extensions to a standard vs. compliance
with it.


There is nothing that allows for private meaning here. A specification
is a specification. Non-compliant behavior is just that.
If all requirements of the standard are complied with, the
existence of further features would not make the extended language
uncompliant ... unless "no further features" *is* a requirement
of the standard. I don't believe it is for ECMAScript, quite the
contrary, in fact.

There is a difference between extending the syntax of the language
(which only IE does, with its conditional compilation features) and
extending the runtime environment that, syntactically correct,
programs are run in. The runtime environment is specified by the
standard, but not exclusively. The standard allows for extensions.
It even expects them.
It allows for certain specified extensions, not extensions in general.
Conditional comments are one of the features that is not compliant to
ECMAScript. An ECMAScript compliant compiler would yield a syntax
error then.
It doesn't implement Netscape JavaScript nor Microsoft JScript. It has
some extensions that are compatible with parts of JavaScript and
JScript,


Which is why it does not implement ECMAScript 3 (per specification).


ECMA262, 3rd edition (thanks), states (section 4): [...]


Don't play human gateway this way. You can assume I have not only
downloaded but also read and understood all of it.
[...] it is expected that the computational environment
of an ECMAScript program will provide not only the objects and other
facilities described in this specification but also certain
environment-specific host objects, [...]
That does not say *any* extension to the *language* is allowed without
making it non-compliant. Host objects are a completely different issue.
A later note, from section 15, is:
---
NOTE Implementations that add additional capabilities to the set of
built-in functions are encouraged to do so by adding new functions
rather than adding new parameters to existing functions.
Your point is?
The ECMAScript standard writers *expect* implementations to have an
environment that extends that specified by the standard, while still
being compatible.


They expect extensions described by the specification and they expect
the existence of host objects. They do not expect that an implementation
calling itself ECMAScript compliant is in fact non-compliant.
Any extension/omission of it that is not allowed by the
specification does not result in an (compliant) ECMAScript
implementation, strictly speaking.


I disagree with this. Compliance is possible while also including
extensions, because the standard is not written to exclude extensions.


You disagree with the specification itself. What is not explicitely
"allowed" in a *specification* is "forbidden" in terms of compliance
with it.
PointedEars
Jul 23 '05 #35
Richard Cornford wrote:
[...]
<quote cite=""ECMA 262 3rd edition Section 2>
2 Conformance
[...]
</quote>

Making it very clear that ECMA 262 provides for extension that would
include all of the differences between JavaScript, JScript and Opera's
implementation and an implementation that included nothing but what is
required by the standard. Thus they are all conforming ECMAScript
implementations .


Point taken. Thank you.
PointedEars
--
Who stops to learn, ceases to exist.
-- Japan proverb
Jul 23 '05 #36
On Tue, 12 Apr 2005 21:09:07 +0100, "Richard Cornford"
<Ri*****@litote s.demon.co.uk> wrote:
Thus they are all conforming ECMAScript
implementation s.


Well there are bugs...

Jim.
Jul 23 '05 #37
Jim Ley wrote:
[...] Richard Cornford [...] wrote:
Thus they are all conforming ECMAScript implementations .


Well there are bugs...


Please be more specific.
PointedEars
Jul 23 '05 #38
On Wed, 13 Apr 2005 19:30:44 +0200, Thomas 'PointedEars' Lahn
<Po*********@we b.de> wrote:
Jim Ley wrote:
[...] Richard Cornford [...] wrote:
Thus they are all conforming ECMAScript implementations .


Well there are bugs...


Please be more specific.


There exist bugs in the JavaScript and JScript implementations that
make them non-compliant.

Jim.
Jul 23 '05 #39
On Wed, 13 Apr 2005 17:59:36 +0000, Jim Ley wrote:
On Wed, 13 Apr 2005 19:30:44 +0200, Thomas 'PointedEars' Lahn
<Po*********@we b.de> wrote:
Jim Ley wrote:
[...] Richard Cornford [...] wrote:
Thus they are all conforming ECMAScript implementations .

Well there are bugs...


Please be more specific.


There exist bugs in the JavaScript and JScript implementations that
make them non-compliant.


Being non-compliant isn't a bug.

--
Life is short, but wide. -KV

Jul 23 '05 #40

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
6092
by: Justice | last post by:
Currently I'm doing some experimenting with the XMLHTTP object in Javascript. Now, the XMLHttp object is asynchronous (at least in this case), and the following code causes a significant memory loss even though I seem to be allocaitng everything; help would be *vastly* appreciated. What am I doing wrong here? I thought I was doing everything correctly (setting things to null, for example) but none of the memory seems to get replaced. ...
5
1549
by: Shawn Modersohn | last post by:
For the script: <script language="JavaScript"> function pullPage(){ var arrayLength=document.teamSelectionF.teamSelectionS.length; var pageNav = new Array(arrayLength); var gotoNum=document.teamSelectionF.teamSelectionS.options.value; pageNav="http://www.tandtsports.com"; pageNav="http://www.tandtsports.com/Cougars.html";
55
4216
by: drhowarddrfine | last post by:
I'm working on a web site that could use some control using js but am concerned about what problems I may have with potential users having their js turned off. Has anyone had any serious problems with this sort of thing? I know some of these potential users are with big companies and am wondering if anyone had real problems with that.
10
19176
by: Danny | last post by:
Hi all, I am having some odd problems with AJAX on Firefox (1.5). When I use GET as the request method everything works ok, but when I do a POST the remote function doesn't get the parameters I am passing to it. Everything works fine on IE 6. Here's a couple samples of what I am doing: // using GET url = 'http://www.myserver.com/cgi-bin/funct?key1=value1&key2=value2'
2
2099
by: beseecher | last post by:
Hi, In my research in the javascript language I have encountered problems with implementing prototype inheritance while preserving private methods functioning properly. Here is an example: function A(){ var _this = this; this.a = 10;
1
4955
by: Bob | last post by:
Hi, Hope you can help me with this one. I'm at my wits end. I'm trying to create an intelligent edit-box like the excellent "Customer" one at the URL: http://munich.schwarz-interactive.de/autocomplete.aspx
1
3428
by: kevin.a.sweeney | last post by:
I would like to open an application from a hyperlink on a webpage. 1. the webpage is located on my local machine. 2. the application is located on my local machine. 3. the application will run on my local machine. In other words... The WEB is really not involved. What I have so far works with a Netscape Browser but what I really need is for it to work in the IE browser or one that I will create
14
2818
by: julie.siebel | last post by:
I've been wrestling with a really complex page. All the data is drawn down via SQL, the page is built via VBScript, and then controlled through javascript. It's a page for a travel company that shows all the properties, weeks available, pricing, etc. for a particular area of Europe. The data varies widely depending on the region; at times there will be 50 properties, and at other times only a half dozen. The cross referencing of...
1
1867
RMWChaos
by: RMWChaos | last post by:
I grabbed this "Rock Solid addEvent" code from this site, which is based on Mark Wubben's event-cache code. (These links for reference only.) I am having two problems with it, and the webmaster is s...l...o...w to respond. So I thought I would ask about it here. If I knew more about how this code works, I could probably figure out most of the problems myself, but with this one, I am clueless! =D First question: This may be my own...
10
1856
by: jodleren | last post by:
Hi I know, that there are a lot of people having problems with orkut.com, errors like "object expected" and named objects missing. When loading the site can generate some 10 errors, and still just leave a blue page - seems like it heavily rely on JS. Still, me and friends having problems and orkut seems just to ignore it. I am sure, that other poeple have problems, and I really wonder what
0
9511
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10408
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10199
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10139
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9983
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6768
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4092
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3697
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2909
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.