HTML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignHTML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old September 12th, 2000, 10:14 AM
Dmitry Dmitry is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2000
Location: Atlanta,GA,USA
Posts: 8 Dmitry User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hello, I have tried to use something like this in NC but it doesn't work:
<script>
function go(obj)
{
alert(obj.id)
}
</script>
========================================
...
<form>
<input id="aa" type=button value="..." onClick='go(this)'>
</form>
...

Does anyone know the reason why it's failed?
I've got "undefined" value.

All is fine under IE.

Thanks!

P.S. One question yet.
Does NC support try {} and catch {} operations?

Reply With Quote
  #2  
Old September 14th, 2000, 01:09 PM
Alice in Wonderland Alice in Wonderland is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2000
Posts: 5 Alice in Wonderland User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
the problem is not THIS, but NS does not support the ID property for all tags, so you have to rely on the built in properties of NS objects. e.g. the NAME property in case of an input button...

<script>
function go(obj)

alert(obj.name)
}
</script>
========================================
...
<form>
<input name="aa" type=button value="..." onClick='go(this)'>
</form>
...

works for both IE & NS...

btw. CATCH and TRY are not supported in JavaScript...

Reply With Quote
  #3  
Old September 15th, 2000, 05:43 AM
MeijdenB MeijdenB is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2000
Location: Alkmaar, The Netherlands
Posts: 123 MeijdenB User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>btw. CATCH and TRY are not supported in JavaScript...[/quote]

Errr, actually as off Javascript 1.4 it IS supported. However the current browsers mostly support Javascript 1.2 or 1.3. The Netscape Enterprise Server 4.0 currently supports Javascript 1.4 for serverside scripting. I think that NS will use Javascript 1.4 for there version 6 browser.

Bas


[This message has been edited by MeijdenB (edited September 15, 2000).]

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignHTML Programming > Does NC support "this"?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT