Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:10
bad compatibilyty with menu and vbscript
Poster: DarkDie2k
Dated: Friday March 24 2006 - 20:13:31 GMT
Hi,
i have a web site to modify and the first conceptor use vbscript to disable text area in body onload ex.:
<body onload="Body_onload" STYLE="MARGIN-TOP: 5" text="#006400" link="#0000ff" alink="#ff0000" vlink="#0000ff" background="Images\Erable.jpg">
......
<script language="vbscript">
public flag
public NASEmploye
public User
public Efface
private sub Body_onload()
flag=<%=flag%>
if flag<2 then
txtPasseEmploye.disabled=false
txtNomEmploye.disabled=true
txtPrenomEmploye.disabled=true
cmdRechercher.disabled=true
txtNumClient.disabled=true
TxtNoCertChass.disabled=true
txtPhoneClient.disabled=true
txtNomClient.disabled=true
txtPrenomClient.disabled=true
txtVilleClient.disabled=true
lstMemoClient.disabled=true
txtCar.disabled=true
cboColor.disabled=true
txtColorCar.disabled=true
txtYearCar.disabled=true
......
end if
AND when i add your menu anywhere in the code i receice an error at the <body ...> line and the object are all enabled
so if someone can help me with that problem.
Thanks Gab
Poster: Migru
Dated: Saturday March 25 2006 - 10:45:55 GMT
Hi
the number of posts related to VB-scripting in combination with JavaScript (and this menu) it seems, is very limited, which indicates that the number of users with this combination seems to be limited too. As - in this case - I cannot assist at all, I had a look by using the Search option of this forum ("vbscript"). The search just found 15 matches, 9 of them are associated with version 5 only, and the others with version 3.
Quote:
AND when i add your menu anywhere in the code
Comment: If you would like to use the menu (JavaScript), please note, that there are suggestions made HOW to do this, certainly not by "adding the menu anywhere in the code", as you mentioned above.
In order to get the most important information on the menu, please read:
Information on the menus page integration:
http://www.milonic.com/integration.php
Methods and functions
http://www.milonic.com/menu_methods.php
Global variables
http://www.milonic.com/menu_variables.php
Global properties
http://www.milonic.com/global_properties
Styles properties
http://www.milonic.com/styleproperties.php
Menu properties
http://www.milonic.com/menuproperties.php
Item properties
http://www.milonic.com/itemproperties.php
Michael