about attachEvent 
Author Message
 about attachEvent

i  try to attachEvent,when i use javascript,that all fine,
but when i turn to use vbs,the wrong type of the QQ()
message is shown ....... ???

include.vbs
==================
window.attachEvent "onload",QQ
function QQ()
    alert "QQ Loading"
end Function
==================

default.asp
==============
<script language=VBScript src="include.vbs"></script>
<SCRIPT ID=clientEventHandlersVBS LANGUAGE=vbscript>
<!--

Sub window_onload
    alert "default Loading"
End Sub

-->
</SCRIPT>
==============



Mon, 23 Aug 2004 13:38:48 GMT  
 about attachEvent
Try this:

window.attachEvent "onload",GetRef("QQ")

--
Michael Harris
Microsoft.MVP.Scripting
Seattle WA US
--

Quote:

> i  try to attachEvent,when i use javascript,that all fine,
> but when i turn to use vbs,the wrong type of the QQ()
> message is shown ....... ???

> include.vbs
> ==================
> window.attachEvent "onload",QQ
> function QQ()
>     alert "QQ Loading"
> end Function
> ==================

> default.asp
> ==============
> <script language=vbscript src="include.vbs"></script>
> <SCRIPT ID=clientEventHandlersVBS LANGUAGE=vbscript>
> <!--

> Sub window_onload
>     alert "default Loading"
> End Sub

> -->
> </SCRIPT>
> ==============



Tue, 24 Aug 2004 11:43:14 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Session.FindDatabase finding deleted alias

2. D1 don't post data if app crash

3. tptutr04.zip Glenn Grotzinger's ascii-text Turbo Pascal Tutor

4. Variant Problems With D3+Paradox

5. Access Databases - Opus & Titan

6. How create new instance of Access database at run time?

7. Serial Comm

8. AttachEvent and VBScript

9. attachEvent - is this normal?

10. problem with document.attachEvent

11. Help with attachEvent

12. AttachEvent and VBScript

 

 
Powered by phpBB® Forum Software