DirkTD Posted January 25, 2011 Share Posted January 25, 2011 i typed a VBScript but i get the message:Types will not match: 'var'or something like that. this is my script: <script type="text/vbscript">var variabled = "varvarvarvar"document.write (variabled)</script> this is the full document: <html><head><title>vbs</title></head><body><script type="text/vbscript">var variabled = "varvarvarvar"document.write (variabled)</script></body></html> i tried everything but i still get the same message. does anyone sees the problem?PS: i typed this script to try something out(white spaces in vbs)PSS: i may not react so quickly because i REALLY need to do something else than computering(my day: nothing but PC's!) Link to comment Share on other sites More sharing options...
Synook Posted January 25, 2011 Share Posted January 25, 2011 That's JavaScript, not VBScript... Link to comment Share on other sites More sharing options...
DirkTD Posted February 2, 2011 Author Share Posted February 2, 2011 type="text/vbscript"................^^^^^do you seet the mime-type for the attribute 'type="..."'?it says text/vbscript................^^^^^VBSCRIPTVBs is not JS, you know.. Link to comment Share on other sites More sharing options...
Synook Posted February 3, 2011 Share Posted February 3, 2011 I see it . The actual syntax of your code is JavaScript. VBScript does not have the var keyword. Link to comment Share on other sites More sharing options...
DirkTD Posted May 19, 2011 Author Share Posted May 19, 2011 oh sorry i read it after 15 mins but i forget to comment and close Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.