www.webdeveloper.com
Results 1 to 6 of 6

Thread: DOM methods using ASP classic

  1. #1
    Join Date
    Feb 2012
    Posts
    8

    DOM methods using ASP classic

    Hi,

    Wanted to alter the text using the DOM innerHTML property in a ASP Classic script. Any pointers please...

  2. #2
    Join Date
    Nov 2007
    Posts
    425
    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">
    <&#37; If Session("Name") <> "" Then %>
        <%=Session("Name")%>
    <% Else %>
        Please Log In
    <% End If %>
    </div>
    Last edited by nap0leon; 03-15-2012 at 11:40 AM.

  3. #3
    Join Date
    Jan 2008
    Location
    Florida
    Posts
    1,227
    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

  4. #4
    Join Date
    Nov 2007
    Posts
    425
    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.

  5. #5
    Join Date
    Jan 2008
    Location
    Florida
    Posts
    1,227
    True, I suppose in the real-development world, it doesn't exist. I mean who develops for IE only?

  6. #6
    Join Date
    Nov 2007
    Posts
    425
    Internal applications for corporations or ancient machinery with limited OSs.
    Last edited by nap0leon; 03-20-2012 at 03: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
  •  
HTML5 Development Center



Recent Articles