Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Help required with, 'Object required'

 
Logged in as: Guest
arrSession:exec spGetSession 2,3,100
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> ASP >> Help required with, 'Object required'
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Help required with, 'Object required' - 6/3/2001 11:23:40 PM   
  winkumpel

 

Posts: 11
Score: 0
Joined: 5/23/2001
From: Netherlands
Status: offline
I am trying to use an ActiveX Calendar control to load a page
where the content is based on the date selected by the user.

In order to do this I am passing the date value from the calendar to
the next page in the following way:-

<SCRIPT LANGUAGE=vbscript>
Option Explicit
Dim caldate, name
Sub Calendar1_Click( )
<%caldate=Calendar1.Value%>
viewer.document.location.href =
"displaypage.asp?name=<%=caldate%>"
End Sub
</SCRIPT>

As soon as the execution gets to the
'<%caldate=Calendar1.Value%>' line it stop with the 'Object
required' runtime error.

I can pass anything else (variables) in this way but not
Calendar1.Value

I am new to VBscript, ASP and programming in general so may be
missing something fairly obvious.

Hope someone can help, thanks
 
 
Post #: 1
 
 Re: Help required with, 'Object required' - 6/3/2001 11:25:15 PM   
  rahul27

 

Posts: 19
Score: 0
Joined: 5/23/2001
From: India
Status: offline
I have no idea, but maybe put it inside a recset thing:

recset("Calendar1").Value

thats how I would do it in jscript

(in reply to winkumpel)
 
 
Post #: 2
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> ASP >> Help required with, 'Object required' Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts