ColdFusion Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

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 July 27th, 2012, 08:57 AM
dsfx dsfx is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2009
Posts: 65 dsfx User rank is Sergeant (500 - 2000 Reputation Level)dsfx User rank is Sergeant (500 - 2000 Reputation Level)dsfx User rank is Sergeant (500 - 2000 Reputation Level)dsfx User rank is Sergeant (500 - 2000 Reputation Level)dsfx User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 18 h 38 m 2 sec
Reputation Power: 15
Jquery datepicker with coldfusion.navigate

Hey,

I'm tryig to use coldfusion.navigate to refresh a div when a date from my date picker is selected. I've got the datepicker submitting a url string and refreshing my div. My questions are...

1. is this the proper way to do this? i mean it works, it refreshes the div so it's not totaly wrong.

2. How can i pass the dateText in the variable date in the url?

I've posted this is the JS section as well.

Code:
$( "#datepicker" ).datepicker({
 dateFormat : 'dd-M-yy',
 defaultDate: mydatefinal, 		
 onSelect: function(dateText, inst) { window.location.href = "javascript:ColdFusion.navigate('calendarout.cfm?date=','calendar-right',mycallBack,myerrorhandler);" }} );
		
	});

Reply With Quote
  #2  
Old July 27th, 2012, 01:23 PM
dsfx dsfx is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2009
Posts: 65 dsfx User rank is Sergeant (500 - 2000 Reputation Level)dsfx User rank is Sergeant (500 - 2000 Reputation Level)dsfx User rank is Sergeant (500 - 2000 Reputation Level)dsfx User rank is Sergeant (500 - 2000 Reputation Level)dsfx User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 18 h 38 m 2 sec
Reputation Power: 15
I figured it out. I have a very poor grasp of JS. This is my first time writing my own scripts and using JQUERY.

Code:
onSelect: function(dateText, inst) { javascript:ColdFusion.navigate('calendarout.cfm?date=' +dateText  ,'calendar-right',mycallBack,myerrorhandler); }} );

Reply With Quote
  #3  
Old July 27th, 2012, 01:32 PM
kiteless kiteless is offline
Moderator
Dev Shed God (5000 - 5499 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 5,091 kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level) 
Time spent in forums: 2 Weeks 5 Days 2 h 53 m 27 sec
Reputation Power: 966
If you're using jQuery, my advice would be to just use jQuery for any client-side logic and AJAX. It's far more versatile than what is built into CF. What's in CF is meant for people who need very basic behavior and can't or won't bring an external framework to bear.

Reply With Quote
  #4  
Old July 27th, 2012, 03:12 PM
dsfx dsfx is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2009
Posts: 65 dsfx User rank is Sergeant (500 - 2000 Reputation Level)dsfx User rank is Sergeant (500 - 2000 Reputation Level)dsfx User rank is Sergeant (500 - 2000 Reputation Level)dsfx User rank is Sergeant (500 - 2000 Reputation Level)dsfx User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 18 h 38 m 2 sec
Reputation Power: 15
Quote:
Originally Posted by kiteless
If you're using jQuery, my advice would be to just use jQuery for any client-side logic and AJAX. It's far more versatile than what is built into CF. What's in CF is meant for people who need very basic behavior and can't or won't bring an external framework to bear.


I didn't know i could achieve these results with only jQuery. I'm going to have to look into this further.

Thanks,
DSFX

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreColdFusion Development > Jquery datepicker with coldfusion.navigate

Developer Shed Advertisers and Affiliates



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 | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap