CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> General/Other

 date picker - object expected

Print topic Send  topic

Author Message
ishannon

Posts: 1
Posted: 03/07/2007, 3:16 PM

I can't seem to get the datepicker to work. I've tried to create a new page from scratch, deleted the functions and datepicker.js files, all of that, but no matter what, when I click the icon for the datepicker, it just gives me an "Object expected" error.

Any ideas? Thanks!

Ian
View profile  Send private message
wkempees


Posts: 1679
Posted: 03/07/2007, 4:20 PM

Datepicker will be added to DATE fields.
Are your fields indeed of that type or are they plain Varchars (for instance)?

If you create a new page, on that page using the record builder place a record form and the underlying table contains date fields,it should generate the dtepicker to the right of that field.

Another approach:
Position cursor on the form (to the right of the entryfield would be loical but is not mandatory
Then from the Forms Tab choose the Date Picker it will present a dialoque in which you tell it to which field you want to link.

Walter
If I understand the Q right.

_________________
Origin: NL, T:GMT+1 (Forumtime +9)
CCS3/4.01.006 PhP, MySQL .Net/InMotion(Vista/XP, XAMPP)

if you liked this info PAYPAL me: http://donate.consultair.eu
View profile  Send private message
nhbw19t


Posts: 29
Posted: 03/12/2008, 9:05 PM

any update to this issue?


I have the same problem. create a page, record, add datepicker, publish page

object expected



_________________
J.D. Archer
GE Transportation
View profile  Send private message
ckroon

Posts: 869
Posted: 03/13/2008, 11:34 AM

Check the data properties of the datepicker. You need to point it to the date field on the form.
_________________
Walter Kempees...you are dearly missed.
View profile  Send private message
nhbw19t


Posts: 29
Posted: 03/15/2008, 9:15 PM

I talked to support and they found that in the html page you need to add php to the client section:

  
<script language="JavaScript" src="ClientI18N.?file=Functions.js&locale={res:CCS_LocaleID}" type="text/javascript" charset="utf-8"></script>  
<script language="JavaScript" src="ClientI18N.?file=DatePicker.js&locale={res:CCS_LocaleID}" type="text/javascript" charset="utf-8"></script>  
<script language="JavaScript" type="text/javascript">  
//End Include Common JSFunctions  
notice after 18N. there is no php. However this causes that section to not be auto generated.
_________________
J.D. Archer
GE Transportation
View profile  Send private message
ab5ni


Posts: 177
Posted: 03/17/2008, 11:19 AM

Hi Folks,

Been a while. Been very busy working for 2 new companies.
(One of em I'm a full partner -- yes! :^).)

Anyway, I think I found the problem. When you selected
your language in Project/Settings/General, and if you select PHP4/5,
the ".php" extension is not being added to the "code file extension"
field under the Project/Settings/Server/Script sub-menu. Mine was
set to "cgi" by default. I changed the extension to .php and everything
works. DatePicker comes up fine now, etc.

I don't know if this is a problem if you select ASP and whatnot for
your language. Haven't tried it. Give it a shot and let the rest of
us know if you do.

Best Regards,

Randall

_________________
Randall Jouett
Amateur Radio: AB5NI
I eat spaghetti code out of a bit-bucket while sitting at a hash table! And yes, I paid for the meal in cache!


View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.