DOM methods using ASP classic
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>
Last edited by nap0leon; 03-15-2012 at 10:40 AM .
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.
Last edited by nap0leon; 03-20-2012 at 02:36 PM .
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Bookmarks