AKB Forums

Go Back   AKB Forums > Technical sections > Languages, Compilers and Interpreters > Web Development
Home Register Blogs FAQ Members List Calendar Downloads Arcade Mark Forums Read

Web Development Java/PHP/Perl/ASP and more

Troubles when posting message? Click here! :: Проблемы с отправлением сообщения? Нажмите сюда!

Reply
 
LinkBack Thread Tools Display Modes
Old Jun 24, 2004, 09:55   #1
Administrator
 
greka's Avatar
 
Join Date: Sep 2001
Location: @work
Posts: 5,347
Rep Power: 10
Reputation: 23
Send a message via ICQ to greka
JavaScript question

PHP Code:
<script Language="JavaScript1.3">
<!--
  function 
JSVer(){
    return 
"1.3"
    
}
//-->
</SCRIPT> 

could anybody tell me the reason why the script code placed into <!-- --> ?

I've tried to run the function without that symbols:

PHP Code:
<script Language="JavaScript1.3">
  function 
JSVer(){
    return 
"1.3"
    
}
</SCRIPT> 
and all went fine.
__________________
И повешенные могут качаться в неположенную сторону. /С.Е.Лец/
greka is offline   Reply With Quote Quote selected
Old Jun 24, 2004, 09:57   #2
...overwined...
 
noone's Avatar
 
Join Date: Mar 2003
Location: ...tortuga...
Posts: 3,395
Rep Power: 6
Reputation: 143
it should be commented for not to be considered as html for some browsers.
__________________
...let's be gods... let's by ugly...
noone is offline   Reply With Quote Quote selected
Old Jun 24, 2004, 11:43   #3
Волк, просто волк...
 
_ WOLF _'s Avatar
 
Join Date: Jul 2002
Location: /dev/null
Posts: 250
Rep Power: 7
Reputation: 10
some browsers doesn't support JS or CSS.
That's why u must include your JS code into comments and then that kind of browsers will ignore JS code parsing.
__________________
00000000h: 41 72 61 6D 20 4D 6B 68 69 74 61 72 79 61 6E;
_ WOLF _ is offline   Reply With Quote Quote selected
Old Jun 24, 2004, 12:48   #4
Administrator
 
greka's Avatar
 
Join Date: Sep 2001
Location: @work
Posts: 5,347
Rep Power: 10
Reputation: 23
Send a message via ICQ to greka
thanks for the explanations, buddies!
__________________
И повешенные могут качаться в неположенную сторону. /С.Е.Лец/
greka is offline   Reply With Quote Quote selected
Reply


Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[java] Read return value of JavaScript greka Web Development 0 Jun 18, 2004 13:49


All times are GMT. The time now is 07:42.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
This board was founded on September 29, 2001
Powered by Viper Internet

Affordable Web Hosting | ParevNet

Buy text link