Mixed client side VBScript & Javascript not working 
Author Message
 Mixed client side VBScript & Javascript not working

I have a page with mixed inline client side scripting that works as it
indeed should. I have then introduced some other code using LINK REL
thus:

<script LANGUAGE="JavaScript" SRC="script/overlib.js"></script>
<form method="post" action="rt_pbadd.asp" onsubmit="Form_Validator()"
name="entry_form">

<table class=rowover selectable='true' onrowclick=onrowclick
cellspacing=0 name=pblist id=pblist>
<thead><tr><td><b>First Name</b></td><td><b>Last Name</b></td>
<td><b>SMS</b>
<img SRC="<%=Session("AssetDir")%>/images/infoicon.jpg" WIDTH="18"
HEIGHT="18" onMouseOver="drc('This is the shortcode for the selected
person/mobile automatically assigned by
Raptone.','<b><i>info:&nbsp;</i></b>SMS'); return true;"
onMouseOut="nd(); return true;">

The Form_Validator() function in the <FORM> tag works fine but the
functions called from the onMouseOver & onMouseOut events of the image
tag which reside in the linked file "script/overlib.js" give VBScript
errors, the first being "Expected end of statement" and then "Cannot
use parentheses when calling a sub".
I have tried pasting the entire contents of the linked .js file into
the same place but this makes no difference. Can you name a script
block and use that to qualify the function reference? Otherwise, any
tips on curing this problem pleeaassee
Matthew



Mon, 01 Mar 2004 22:43:41 GMT  
 Mixed client side VBScript & Javascript not working
Have you tried calling the mouseover event with
OnMouseOver="JavaScript:function(parameter1,parameter2)" instead. The errors
are definate vbscript errors. Hopefully this will solve it.


Quote:
> I have a page with mixed inline client side scripting that works as it
> indeed should. I have then introduced some other code using LINK REL
> thus:

> <script LANGUAGE="JavaScript" SRC="script/overlib.js"></script>
> <form method="post" action="rt_pbadd.asp" onsubmit="Form_Validator()"
> name="entry_form">

> <table class=rowover selectable='true' onrowclick=onrowclick
> cellspacing=0 name=pblist id=pblist>
> <thead><tr><td><b>First Name</b></td><td><b>Last Name</b></td>
> <td><b>SMS</b>
> <img SRC="<%=Session("AssetDir")%>/images/infoicon.jpg" WIDTH="18"
> HEIGHT="18" onMouseOver="drc('This is the shortcode for the selected
> person/mobile automatically assigned by
> Raptone.','<b><i>info:&nbsp;</i></b>SMS'); return true;"
> onMouseOut="nd(); return true;">

> The Form_Validator() function in the <FORM> tag works fine but the
> functions called from the onMouseOver & onMouseOut events of the image
> tag which reside in the linked file "script/overlib.js" give VBScript
> errors, the first being "Expected end of statement" and then "Cannot
> use parentheses when calling a sub".
> I have tried pasting the entire contents of the linked .js file into
> the same place but this makes no difference. Can you name a script
> block and use that to qualify the function reference? Otherwise, any
> tips on curing this problem pleeaassee
> Matthew



Mon, 01 Mar 2004 22:59:41 GMT  
 Mixed client side VBScript & Javascript not working
Thanks very much, that worked a treat. I thought javascript urls were the only place you could use that syntax for HREF or SRC attributes. Blinding
Rex

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



Mon, 01 Mar 2004 23:27:29 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Mixing of client-side and server-side scripts

2. Mixing server side Javascript and VBScript

3. pass server side vbscript to client side javascript

4. Calling client-side javascript function from server-side vbscript

5. Calling client-side javascript from server-side vbscript

6. Client-Side Cookies? Still not working

7. Client Side Active X Control works in one envrionment but not another

8. client side asp debugging not working!!!

9. JScript ASP using FileSystemObject does not work like it does Client-Side

10. Client/Server side code mixes

11. Client side and Server side script working together

12. sending variants from VBscript to JavaScript (client side)

 

 
Powered by phpBB® Forum Software