Solved

calendar pop up causes validation...

Posted on 2004-08-17
4
276 Views
Last Modified: 2013-11-28
Hi all,

My textbox control is where the date gets inserted into from a pop up calendar. I have a validation control which fires if no date is selected. So a date must be put in the textbox.

I have a link which makes the calendar control page pop up - however when the page pops up the validation is also fired and because the user hasn't selected a date yet, the validation error message is displayed.

What could be causing this? Is it fixable??

My op-up calendar code:

<A class="calLink" onclick="window.open('calendar.aspx?textbox=txtDate','cal','width=141,height=160')"
                                                                  href="javascript:;"><INPUT type="image" alt="Click for Calendar" src="images/calendarGIF.gif" name="calGIF"></A>

thx,

KS
0
Comment
Question by:saleek
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 28

Expert Comment

by:mmarinov
ID: 11821499
Hi,

have you tried to use HyperLink control and set it the javascript but also set it CauseValidation=False ?

Regards,
B..M
0
 
LVL 11

Author Comment

by:saleek
ID: 11821679
I did try it at some point, Hyperlink control doesnt have onClick method - which is what I use to call the javascript.

0
 
LVL 1

Accepted Solution

by:
greenlantern0 earned 50 total points
ID: 11821769
<a onclick="javascript:window.open('calendar.aspx?textbox=txtDate','cal','width=141,height=160');"
                        href="#"><img alt="Click for Calendar" src="images/calendarGIF.gif" name="calGIF" border="0"></a>

Alright, sooo have you tried this?
0
 
LVL 11

Author Comment

by:saleek
ID: 11821977
Nope!

Works good tho!

Nice one.

KS
0

Featured Post

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Read about the 3 stages of the buyer's journey: awareness, consideration, and decision.
A great marketing strategy is diverse.  Read about the not so popular, yet effective, marketing tactics you can start using today!
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to selectively show certain fields based on user input using rules to gather relevant information and data from your forms. The rules feature provides you with an opportunity…
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to choose which pages of your form are visible to your users based on their inputs. The page rules feature provides you with an opportunity to create if:then statements for y…

732 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question