![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Hobbyist Programmer
Join Date: Mar 2005
Posts: 139
Rep Power: 4
![]() |
return false;
Hi,
I have an ASP.Net file. I have ASP.Net drag and drop validation on many of my fields. I also have a javaScript function I wrote to validate on of the fields and return false if the field doesnt pass then check. It does that perfectly, BUT now that I put that in all my drang and drop validation is ignored, even if the function i wrote returns true. I could code the validation for all those fields, but would rather not take the time. <script type="text/javascript">
function validateMe()
{
alert('in');
var highlighted = document.getElementById('highlighted');
var highlighted_index = highlighted.selectedIndex;
if(highlighted.selectedIndex == 0)
{//if
alert('x4');
alert('Please select if the book is highlighted or not.');
var highlighted_error = document.getElementById('highlighted_error');
//alter(highlighted_error);
highlighted_error.style.visibility="visible";
return false;
}//end if
return true;
}// end function
</script> |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| can someone please help me with this tree | cwl157 | Java | 19 | Oct 27th, 2007 12:35 PM |
| An Attempt at a DBMS | grimpirate | PHP | 8 | Apr 17th, 2007 1:01 PM |
| Tic Tac Toe | crawforddavid2006 | Show Off Your Open Source Projects | 8 | Mar 26th, 2007 9:51 PM |
| [Python] BlackJack | UnKnown X | Show Off Your Open Source Projects | 9 | Feb 20th, 2006 6:01 AM |
| Php Postgresql Class | Pizentios | Show Off Your Open Source Projects | 15 | Jun 28th, 2005 9:55 AM |