ale1981 Posted July 6, 2007 Share Posted July 6, 2007 I have 2 functions at the top of my page, its probably not Javascript but my coding, I never usually code JS myself! <script type="text/VBScript" language="vbscript"> Sub confirmation(conf_message, conf_location, conf_title) conf_answer=MsgBox(conf_message, 292, conf_title) If conf_answer=6 Then window.location=conf_location End If End Sub </script> <script language="JavaScript" type="text/JavaScript"> <!-- function MM_openBrWindow(theURL,winName,features) { //v2.0 window.open(theURL,winName,features); } //--> </script> These scripts are at the top of my page, in the head section. The problem is, if I have the VBScript above the Javascript, the Javascript doesnt work, and vice-versa. Any ideas?? ??? Link to comment https://forums.phpfreaks.com/topic/58666-arg-i-hate-javascript/ Share on other sites More sharing options...
RichardRotterdam Posted July 6, 2007 Share Posted July 6, 2007 Weird I think it is possible to have both vb scripts as javascripts running if I am correct you can even call a vb function with javascript. Do you get a error message? And is converting the VB to javascript an option? Link to comment https://forums.phpfreaks.com/topic/58666-arg-i-hate-javascript/#findComment-291101 Share on other sites More sharing options...
ale1981 Posted July 6, 2007 Author Share Posted July 6, 2007 No errors appear, they just dont work! I cant convert the VB to javascript because javascript doesnt offer the same customisation as VB does with message boxes? Link to comment https://forums.phpfreaks.com/topic/58666-arg-i-hate-javascript/#findComment-291107 Share on other sites More sharing options...
RichardRotterdam Posted July 6, 2007 Share Posted July 6, 2007 Hmm i believe that the costumization only works for IE though so i wouldn't use it anyway I say screw IE Link to comment https://forums.phpfreaks.com/topic/58666-arg-i-hate-javascript/#findComment-291271 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.