Results 1 to 2 of 2

Thread: DHTML - HELP!!

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    May 2000
    Posts
    148
    Howdy!

    I am trying to figure out DHTML. I get an error when I use this code: WHY?

    Private Function Store_onclick() As Boolean
    PutProperty BaseWindow.Document, "Property1",TxtField1.Value
    End Function

    The .Bas file is fine
    Public Sub PutProperty(objDocument As HTMLDocument, strName As String, vntValue As Variant, Optional Expires As Date)

    objDocument.cookie = strName & "=" & CStr(vntValue) & _
    IIf(CLng(Expires) = 0, "", "; expires=" & Format(CStr(Expires), "ddd, dd-mmm-yy hh:mm:ss") & " GMT") ' & _

    End Sub

    Thanx

  2. #2
    Fanatic Member
    Join Date
    Jan 1999
    Location
    UK
    Posts
    554
    try this

    Code:
    <!-- vbscript code -->
    window.document.all.Property1=txtField1.Value
    DocZaf
    {;->

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width