User Profile

Collapse

Profile Sidebar

Collapse
Leatherman77
Leatherman77
Last Activity: Aug 23 '07, 11:50 AM
Joined: Jun 5 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Leatherman77
    replied to Updating Form Elements
    In response to my own question:

    Code:
    Sub UpdateInput(Form,Name,Val)
    Response.Write("<" & "script language=javascript>") 
    Response.Write("document. " & Form & "." & Name & ".value='" & Val & "'") Response.Write("</script>")
    End Sub
    I thought other people might find my solution useful....
    See more | Go to post

    Leave a comment:


  • Leatherman77
    replied to Updating Form Elements
    Thank you, sorry for the breach of etiquette. I have used the more acceptable solution to solve my second problem. I have moved my code out of a function and into a different ASP page and I call that ASP from my FORM declaration. This appears to be working ok now. Incidentally the vbMsgBox function above I found on another site does allow client-side scripting that will display a message box for the user.

    I am still stuck on my original...
    See more | Go to post

    Leave a comment:


  • Leatherman77
    replied to Updating Form Elements
    I don't want to end up running back here every time I get stuck, but perhaps someone could explain why I cannot get the following code to work:
    [code=vb]
    <%@ LANGUAGE="VBSCR IPT" %>
    <%
    Public sub validate
    vbMsgBox "Hi"
    end sub

    sub vbMsgBox(msg)
    Response.Write( "<" & "script language=VBScri pt>")
    Response.Write( "MsgBox...
    See more | Go to post

    Leave a comment:


  • Leatherman77
    replied to Updating Form Elements
    Thank you for the welcome. I am actually doing most of this in VBScript, although there is some Javascript in there. I use VBScript to interface with my SQL, which is working fine. Then I want to populate my form with the data from the database, so that it can then be amended by the user. I am using some Javascript to react to a submit button, which then redirects to a new page. The most efficient solution would be the best :)
    See more | Go to post

    Leave a comment:


  • Leatherman77
    started a topic Updating Form Elements

    Updating Form Elements

    Hi, I am trying to develop a form. What I need to do is to write data into the form elements when the form is first loaded. This is then made available for the user to modify data. I believe the function I require is SetValue, but I cannot figure out which object it comes from and how to use it correctly. Nor can I find any documentation on how to use it. Can anyone help. Thanks in advance

    Steve
    See more | Go to post
No activity results to display
Show More
Working...