Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Search

 
Advanced search

8001 Posts in 1848 Topics- by 2099 Members - Latest Member: roi
Pages: [1]   Go Down
Print
Author Topic: OnChange event (how to?)  (Read 273 times)
0 Members and 1 Guest are viewing this topic.
jonnyg
Guest
« on: August 14, 2006, 09:01:00 AM »

Hi all,

Big fan of CalendarScript but need a bit of guidance. Probably a simple fix.

Working with ASP, I usually use onChange=""this.form.submit();"" to send edits without the user having to press a submit button. I'd like to use the same idea with CalendarScript - ie once it updates the textbox it submits the form. However, the event doesn't fire, I assume due to how the script itself operates (IE doesn't see that the box has changed).

The line I'd normally use would be (excuse my colloquial ASP):

Response.Write("<TD WIDTH=430><A HREF=""#"" onClick=""cal.select(document.forms['projects'].txt_dateofcontact,'anchor1','dd/MM/yyyy');return false;"" NAME=""anchor1"" ID=""anchor1""><INPUT CLASS=tablerowinput1 TYPE=""text"" SIZE=""12"" NAME=""txt_dateofcontact"" VALUE=""" & objRS.Fields("date_of_contact").Value & """ onChange=""this.form.submit();""></A></TD></TR>")

Hoping someone can suggest an easy mod to the script or the object code.

TIA,
Jon

Logged
jonnyg
Guest
« Reply #1 on: August 14, 2006, 10:26:00 AM »

Just realised this is Matt's CalendarPopup script, not CalendarScript, though the question still stands if anyone can help.

Cheers,
Jon

Logged
Pages: [1]   Go Up
Print
Jump to: