Solved

calendar pop up causes validation...

Posted on 2004-08-17
4
260 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
  • 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

The next wave of Panda releases starts with Panda2.1 After the game-changing Panda2.0 update that caused a reduction in Google search engine referral traffic to a newly affected and larger set of websites, more Panda updates were already in the pip…
Owning a franchise can be the dream of a lifetime. It provides a chance for economic growth. You can be as successful as you want.  To make your franchise successful, you need to market it successfully. Here are six of the best marketing strategies …
An overview of how to create reports in Adobe Analytics (formerly Omniture Site Catalyst) using pageNames, events, eVars and props. This video will show you how to install the Omniture Debugger tool so can see (and test) what is being passed int…
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…

757 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now