close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Can only enter datepicker once

Thread began 10/01/2009 4:19 pm by Lee Firth | Last modified 4/16/2010 10:48 am by Jimmy Wu | 3660 views | 10 replies |

lee266802

Can only enter datepicker once

I have a form with a date field in it but can only enter the datepicker once. As soon as I select a date from the datepicker, I get an "Error on page" message appearing in the lower left corner of the browser. If I double click on the error message icon message reads:

Message: Object doesn't support this property or method
Line: 70
Char: 3
Code: 0
URI: add_inv_create_items.php

If I view the scource of the webpage line 70 is in the following javascript function:

function closeDatePicker_Add_Invoice_group_Invoice_Date() {
var tElm = $('#Add_Invoice_group_Invoice_Date');
if (typeof Add_Invoice_group_Invoice_Date_Spry != null && typeof Add_Invoice_group_Invoice_Date_Spry != "undefined") {
Add_Invoice_group_Invoice_Date_Spry.validate();
}
var docElm = document.getElementById("Add_Invoice_group_Invoice_Date");
var tBlur = docElm.getAttribute("onBlur");
if (!tBlur) tBlur = docElm.getAttribute("onblur");
if (!tBlur) tBlur = docElm.getAttribute("ONBLUR");
if (tBlur) {
tBlur = tBlur.replace(/\bthis\b/g, "docElm");
eval(tBlur);
}
}

Line 70 is this line: tBlur = tBlur.replace(/\bthis\b/g, "docElm");

Sign in to reply to this post

Jason ByrnesWebAssist

Please send a copy of the PHP Page in a zip file so I can investigate the code to see what the problem may be.

Sign in to reply to this post

lee266802

Problem page is attached. I have also noticed that this only happens in IE (I'm using 8.0.7100.0) Firefox (3.5.3) works OK although there is another problem there. I have a verticle menu on the left hand side and the form is in the content area on the right hand side. In Firefox the form is pushed down the page and doesn't start untill after the menu content in the left hand side. IE displays it correctly at the top of the page. I have attached screenshots of both.

Attached Files
Problem page.zip
Sign in to reply to this post

Jason ByrnesWebAssist

I have created a support ticket so awe can look into this issue with you, to view and edit your support ticket, please log into your support history:

supporthistory.php

Sign in to reply to this post

dlab61379926

Has this window problem with date picker been solved

I was wondering if this datepicker problem with IE has been solved. I have the sane issue, I can enter the date picker when the form first loads, but after a date has been picked or a validation error is triggered I can no longer click in the datepicker field and trigger the datepicker

Sign in to reply to this post

lee266802

No it hasn't, but it only seems to do this on my testing server, when I upload it to my live server. The datepickers seem to work OK.

Sign in to reply to this post

mick358555Beta Tester

Requesting Update to the Status of this Problem

[QUOTE=Lee Firth;20536]I have a form with a date field in it but can only enter the datepicker once. As soon as I select a date from the datepicker, I get an "Error on page" message appearing in the lower left corner of the browser. If I double click on the error message icon message reads: ----snipped!-----

This whole thread resulted in an inconclusive answer.

I too am experiencing the same issues as described in this thread. My investigations prove that the problem of only working once is apparent in browsers IE's 6 and 7, but works in IE 8 and Firefox (as stated in the thread).

My problem is that the suite of forms I have created are to be used on a system which has IE 6 installed and will not be upgraded to IE 8 or indeed changed to Firefox (or any other browser that works). So a fix is essential to me if I am to use the 'Datepicker' feature. Could you please provide a status report as to where you are with possibly resolving this issue and when you intend to release it to us?

If indeed a solution has already been identified and released, can you please advise where it is to be found as it does not appear to be in this forum thread. Many thanks.

Sign in to reply to this post

Jimmy Wu

It looks like our last response to the user may have resolved the issue. I apologize for not having it posted here, but this is due to not being able to confirm that it did work for the user. Here is the response:
You are correct, this is an issue with IE only with the date picker. To resolve this issue, try replacing the onblur in this line:

<input id="Add_Invoice_group_Invoice_Date" name="Add_Invoice_group_Invoice_Date" type="text" value="" class="formTextfield_Medium" tabindex="2" onblur="hideServerError('Add_Invoice_group_Invoice_Date_ServerError');"/>


to onfocus:

<input id="Add_Invoice_group_Invoice_Date" name="Add_Invoice_group_Invoice_Date" type="text" value="" class="formTextfield_Medium" tabindex="2" onfocus="hideServerError('Add_Invoice_group_Invoice_Date_ServerError');"/>


remember that this will solve the issue, but if you reenter the wizard, then this change will be overwritten.

Sign in to reply to this post

Jimmy Wu

I have responded to your post in this other thread. Please do not keep posting in multiple threads and stick to this one:
showthread.php?t=12072

Sign in to reply to this post

mick358555Beta Tester

Update and Thanks

Originally Said By: Jimmy Wu
  I have responded to your post in this other thread. Please do not keep posting in multiple threads and stick to this one:
showthread.php?t=12072  



Not sure if this was for me, but i don't understand what your saying here. No matter.

Just like to say thanks, your solution fixed my issue with IE very many thanks.

Mick

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...