close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Date Picker not showing after selected

Thread began 1/27/2010 2:25 pm by mr hankey | Last modified 1/29/2010 7:12 pm by mr hankey | 1602 views | 10 replies |

mr hankey

Date Picker not showing after selected

hi,

in my browser on win 7 machine ie8 if i test my form i can select in the date picker and choose a date, come out of that field and go back and choose another date no problem.

i tested the same page on my vista laptop ie7 and after choosing a date then come out of field and try click in it again the page scroll bar on the side froze and wont allow to go up and down, i cant choose via the date picker anymore only manually unless i refresh the page.

on both machines i had errors on page which were line 35 and line 502 bothe these lines are below but i cannot see what is wrong?

this is line 32-35 as 35 is only one symbol:

{
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
}

line 502 is :

</fieldset>

not really sure what is going on with this?

tested on xp machine with ie8 and same error line 502 "object expected"
tested on xp with firefox and no errors at all. i know that firefox is probably a better browser however the majority of users still will use ie as automatic so need it to work in ie without any issues.

many thanks

Sign in to reply to this post

Dani Chankhour

This seems to be an issue with IE and the onblur event. In Dreamweaver, click on the input field that has the data picker. You should see something like:

onblur="..

change that to:

onfocus="..


this should work on IE.

Let me know if you have any other questions.

Sign in to reply to this post

mr hankey

hi dani,

went through the whole page and form and changed and i still get the problem.
also after adding that line date range i now get invalid format when i select a date. i have added onfocus to the input fields and also in the javascript data picker as it had (onblur) in it, however still same issues.

do i need to change the blur effect on this:

<script type="text/javascript">
<!--
var Client_Profile_group_First_name_Spry = new Spry.Widget.ValidationTextField("Client_Profile_group_First_name_Spry", "none",{validateOn:["blur"]});
</script>

this is at the bottom of the page? any help woudl be great.

thanks

Sign in to reply to this post

Dani Chankhour

Do you have a link to your form, this would help me debug the issue?

Sign in to reply to this post

mr hankey

hi dani,

i will send over files in zip for you.

thanks

Sign in to reply to this post

Dani Chankhour

I was not able to test your page because i don't have all the includes, but i did see that you made the change correctly, however i just want to mention that you only needed to make this change on the Date of Birth field, you did not need to make it on all the other fields.

I did another test with my own form (using the contact from in Form Builder) and i did see the issue and changing the onblur to onfocus did resolve the issue for me and i tested with IE 7.

Try clearing your cache of your browser and see if that resolve the issue.

Sign in to reply to this post

mr hankey

hi dani,

i have tried this, and just tried again. as soon as you click on the date picker it refreshes the page and stops working. also the onfocus has not stopped it from not displaying the other fields properly.

not sure where it is going wrong.

the date picker has not been changed other than uk date, and the year range which you can see from my code i sent.

thanks

Sign in to reply to this post

mr hankey

even if you try to submit the form in ie8 the city part comes back asking for a city even though you select one ad the date picker once the date has been selected says invalid format.

i reckon the date picker issue is to do with WA validation, as it will be looking at the format of u.s. and possible different year range so if you could point me to where i could change that validation even then i reckon that would solve that part.

thanks

Sign in to reply to this post

mr hankey

is it this part that needs changed for the invalid format error?

unction WAGetDateFormat($value, $dateFormat) {
$isUSServ = (date("n", strtotime("1/2/2006")) == 1);
$tValue = $value;
$isEuroDate = (($dateFormat && strpos($dateFormat, "[12]\\d|3[0-1]") < strpos($dateFormat, "1[0-2]|") && strpos($dateFormat, "\\w*") === false) || (!$isUSServ));
if (($isEuroDate && $isUSServ) || (!$isEuroDate && !$isUSServ)) {
$datePattn = "/(\\d*)[-\\.\\/](\\d*)[-\\.\\/](\d*)/";
preg_match($datePattn, $tValue, $tMatch);
if ($tMatch && sizeof($tMatch)) {
if ($isEuroDate) {
$value = $tMatch[2] . "/" . $tMatch[1] . "/" . $tMatch[3];
}
else {
$value = $tMatch[1] . "/" . $tMatch[2] . "/" . $tMatch[3];
}
if (strpos($tValue, " ") !== false) {
$value .= substr($tValue, strpos($tValue, " "));
}
}
}
return strtotime(preg_replace("/[\.-]/", "/", $value));
}


thanks

Sign in to reply to this post

Dani Chankhour

I have opened a support ticket to further assist you with your issue.

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...