I've found something that appears to replace text on a page, but it was 
originally demo'd as a textbox, button and "onclick" event. I'd just like to 
use something similar as a standalone script.
 I have a "Please wait..." for a long query to run at the top of the page. 
It appears as soon as the page is loaded. I'd like to get rid of it after 
the query is done and the result table is dumped to the client.
 Here's my code:
 
strBODY = 'some previous code to set up the page...

strBODY = strBODY & "<div id=ReplaceMe>Please wait...</div>" & vbCrLf
response.write strBODY

strBODY = "<script> language='Javascript'>" & vbCrlf
strBODY = strBODY & "ReplaceMe.innerHTML = '<p align='center'>NEW NARRATIVES 
TO BE REVIEWED<br>';" &vbCrLf
strBODY = strBODY & "</script>" & vbCrLf

' The above is eventually written to the client after the query is done.

I get a"Syntax error" on the ReplaceMe.innerHTML line.

 Suggestions?


[Non-text portions of this message have been removed]



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/17folB/TM
--------------------------------------------------------------------~-> 

---------------------------------------------------------------------    
 Home       : http://groups.yahoo.com/group/active-server-pages
---------------------------------------------------------------------
 Post       : [email protected]
 Subscribe  : [EMAIL PROTECTED]
 Unsubscribe: [EMAIL PROTECTED]
--------------------------------------------------------------------- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/active-server-pages/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to