Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsLanguage PacksLanguage PacksPop-up calendar date format bugPop-up calendar date format bug
Previous
 
Next
New Post
11/16/2006 11:44 PM
 

Hi Guys

I have managed to resolve the issue with the date format and ie7, the problem to do with both IE7 and DNN. Let me explain!

Having tested the PopupCalendar in IE6, IE7 and FireFox 2.0, IE6 and Firefox 2.0 don't have a problem returning the date in the correct format in my case d/M/yyyy, however the date is not returned in the correct format in IE7 the reason being when you click on the day in the PopupCalendar in IE7 the event which is fired is onclick and then the href link is followed where as in IE6 and FireFox 2.0 the only event which is fired is onclick.

The PopupCalendar.js located in the ~/js/ folder uses the following two statements to generate the java script for populating the Textbox which the PopupCalendar has been attached to.

anchorVal = "<A HREF=\" window.opener.calPopupSetDate(window.opener.popCalDstFld,'" + (thisMonth+1) + "/" + monthDate + "/" + thisYear + "');window.opener.closeCalPopup()\">";
jsVal =
" window.opener.calPopupSetDate(window.opener.popCalDstFld,'" + constructDate(monthDate,thisMonth+1,thisYear) + "');window.opener.closeCalPopup()";

As you can see the constructDate function is used where as the href link does not use contructDate.

So to solve the problem I simply replaced the anchorVal line with the following code and that did the trick.

anchorVal = "<A HREF=\" window.opener.calPopupSetDate(window.opener.popCalDstFld,'" + constructDate(monthDate,thisMonth+1,thisYear) + "');window.opener.closeCalPopup()\">";

I hope the above helps people as it defiantly caused me a sleepless night or two.

Kind Regards

 


Vineet Belani
Director of Technologies
Amazing Computer Solutions Pty Limited
www.amazingsolutions.com.au
www.hospitalmanagementsoftware.com
www.seriousaboutshaadi.com
 
New Post
11/17/2006 6:09 AM
 
Great stuff.  We've just applied the code and works great with a non-US locale.  Thanks again.
 
New Post
11/17/2006 10:14 AM
 
vbelani wrote

Hi Guys

I have managed to resolve the issue with the date format and ie7, the problem to do with both IE7 and DNN. Let me explain!

...

So to solve the problem I simply replaced the anchorVal line with the following code and that did the trick.

anchorVal = " + constructDate(monthDate,thisMonth+1,thisYear) + "');window.opener.closeCalPopup()\">";

Vineet

Well done & thanks.

Have you posted this on gemini (support.dotnetnuke.com) to get your fix included in the next release?

Declan


 
New Post
11/17/2006 8:55 PM
 

Hi Declan

I have posted the bug in Gemini DNNP-4506

Also guys apologies for a tyop but you don't require the \ at the end of the statement, hence the line should read

anchorVal = "<A HREF=\" window.opener.calPopupSetDate(window.opener.popCalDstFld,'" + constructDate(monthDate,thisMonth+1,thisYear) + "');window.opener.closeCalPopup()">";

Kind Regards



Vineet Belani
Director of Technologies
Amazing Computer Solutions Pty Limited
www.amazingsolutions.com.au
www.hospitalmanagementsoftware.com
www.seriousaboutshaadi.com
 
New Post
11/22/2006 5:08 AM
 

[moderator. please delete]


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsLanguage PacksLanguage PacksPop-up calendar date format bugPop-up calendar date format bug


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out