bad compatibilyty with menu and vbscript

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
DarkDie2k
Beginner
Beginner
Posts: 1
Joined: Fri Mar 24, 2006 8:58 pm

bad compatibilyty with menu and vbscript

Post by DarkDie2k »

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
Migru
Milonic Guru
Milonic Guru
Posts: 669
Joined: Tue Nov 01, 2005 8:22 pm
Location: Hamburg - Germany
Contact:

Post by Migru »

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.
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://milonic.com/integration.php
Methods and functions
http://milonic.com/menu_methods.php
Global variables
http://milonic.com/menu_variables.php
Global properties
http://milonic.com/global_properties
Styles properties
http://milonic.com/styleproperties.php
Menu properties
http://milonic.com/menuproperties.php
Item properties
http://milonic.com/itemproperties.php



Michael
Post Reply