Hi,
Wanted to alter the text using the DOM innerHTML property in a ASP Classic script. Any pointers please...
Printable View
Hi,
Wanted to alter the text using the DOM innerHTML property in a ASP Classic script. Any pointers please...
Are you looking to use Client-Side VB Scripting to modify the DOM after the page renders or to modify what the HTML is that is sent to the browser?
For example,
Server-Side:
You may have a DIV that shows the user's name which you have in a session variable, or the text "Please log in":
Code:<div id="uName">
<% If Session("Name") <> "" Then %>
<%=Session("Name")%>
<% Else %>
Please Log In
<% End If %>
</div>
There is no such thing as client-side VBscript. It's a server-side language. You need to use Javascript to change the loaded DOM
Client side VBScript does (did) exist.
http://www.google.com/search?q=client+side+vbscript
I haven't seen anyone use it in years and only IE supports (supported?) it. I left my reply open to the possibility that the OP actually knew what they were talking about, but with a nudge toward the more probable solution.
True, I suppose in the real-development world, it doesn't exist. I mean who develops for IE only?
Internal applications for corporations or ancient machinery with limited OSs.