Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Sep 28th, 2007, 2:26 PM   #1
paulchwd
Hobbyist Programmer
 
paulchwd's Avatar
 
Join Date: Mar 2005
Posts: 139
Rep Power: 4 paulchwd is on a distinguished road
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>
paulchwd is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 9:45 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC