ColdFusion Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreColdFusion Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 25th, 2005, 04:39 AM
mayasaliba mayasaliba is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Posts: 4 mayasaliba User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 48 m 42 sec
Reputation Power: 0
value of a textbox

am using a calender and the value of date, when i click on the calender, will be in the textbox "txtdate".
when i click "go To" i want to go to the chosen date for viewing the schedule of this day(chosen). the problem how to input the value of the textbox like a parameter for the changedate() function.

this is the code:

<input type="text" name="txtdate" value="#dateformat(searchdate,'dd/mm/yyyy')#" size="8">

<input type="image" src="calendar\ew_calendar.gif" alt="Pick a Date" onClick="popUpCalendar(this, this.form.searchdate,'dd/mm/yyyy');return false;" name="image">


<input type="submit" value="Go To" onClick="changedate('#here is my problem#')">

i need to put the parameter of the function changedate(the value written in the text "txtdate")

i dont know if i explained clearly my problem
thank you

Reply With Quote
  #2  
Old January 25th, 2005, 08:19 AM
kiteless kiteless is offline
Moderator
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,689 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 4 Days 16 h 33 m 51 sec
Reputation Power: 53
This is actually a Javascript question. Someone here may be able to help but you might want to post this instead in the Javascript forum.
__________________
Ask if you have a question, but also help answer questions that you have knowledge of! Thanks, Brian.
How to Post a Question in the Forums

Reply With Quote
  #3  
Old January 25th, 2005, 09:31 AM
VelvettFogg VelvettFogg is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 34 VelvettFogg User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 13 m 46 sec
Reputation Power: 4
this *might* work..

<input type="submit" value="Go To" onClick="changedate(document.formName.txtdate.value)">

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreColdFusion Development > value of a textbox


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT