Click here to Skip to main content
15,887,776 members
Home / Discussions / Web Development
   

Web Development

 
QuestionFirefox issue with the Enable property of buttons inside the gridview and repeater controls Pin
s.mn3-Nov-09 20:13
s.mn3-Nov-09 20:13 
AnswerRe: Firefox issue with the Enable property of buttons inside the gridview and repeater controls Pin
Marc Firth3-Nov-09 23:31
Marc Firth3-Nov-09 23:31 
GeneralRe: Firefox issue with the Enable property of buttons inside the gridview and repeater controls Pin
kKamel4-Nov-09 1:56
kKamel4-Nov-09 1:56 
GeneralRe: Firefox issue with the Enable property of buttons inside the gridview and repeater controls Pin
Oakman4-Nov-09 2:47
Oakman4-Nov-09 2:47 
GeneralRe: Firefox issue with the Enable property of buttons inside the gridview and repeater controls Pin
kKamel4-Nov-09 2:59
kKamel4-Nov-09 2:59 
GeneralRe: Firefox issue with the Enable property of buttons inside the gridview and repeater controls Pin
Oakman4-Nov-09 3:38
Oakman4-Nov-09 3:38 
Answer[Message Deleted] Pin
Rana.H.K4-Nov-09 1:38
Rana.H.K4-Nov-09 1:38 
QuestionIframe Alternative ? Pin
SRJ923-Nov-09 11:04
SRJ923-Nov-09 11:04 
AnswerRe: Iframe Alternative ? Pin
Christian Graus3-Nov-09 11:08
protectorChristian Graus3-Nov-09 11:08 
GeneralRe: Iframe Alternative ? Pin
SRJ923-Nov-09 11:09
SRJ923-Nov-09 11:09 
GeneralRe: Iframe Alternative ? Pin
Oakman3-Nov-09 11:49
Oakman3-Nov-09 11:49 
GeneralRe: Iframe Alternative ? Pin
Christian Graus3-Nov-09 14:58
protectorChristian Graus3-Nov-09 14:58 
GeneralRe: Iframe Alternative ? Pin
Oakman3-Nov-09 15:11
Oakman3-Nov-09 15:11 
GeneralRe: Iframe Alternative ? Pin
Christian Graus3-Nov-09 18:51
protectorChristian Graus3-Nov-09 18:51 
GeneralRe: Iframe Alternative ? Pin
Shameel4-Nov-09 20:26
professionalShameel4-Nov-09 20:26 
GeneralRe: Iframe Alternative ? Pin
jderonde8-Apr-10 5:04
jderonde8-Apr-10 5:04 
QuestionCSS Translucent Background Pin
SRJ923-Nov-09 10:40
SRJ923-Nov-09 10:40 
AnswerRe: CSS Translucent Background Pin
greendragons3-Nov-09 10:59
greendragons3-Nov-09 10:59 
GeneralRe: CSS Translucent Background Pin
SRJ923-Nov-09 11:01
SRJ923-Nov-09 11:01 
GeneralRe: CSS Translucent Background Pin
greendragons3-Nov-09 11:03
greendragons3-Nov-09 11:03 
GeneralRe: CSS Translucent Background Pin
SRJ923-Nov-09 11:05
SRJ923-Nov-09 11:05 
GeneralRe: CSS Translucent Background Pin
Oakman3-Nov-09 11:51
Oakman3-Nov-09 11:51 
QuestionDefault TextBox Text..... Pin
greendragons3-Nov-09 7:03
greendragons3-Nov-09 7:03 
Hello,
I am trying to make a textbox with default text..as user clicks it should disappear.I succeeded in doing that but got struck while differing the classes of default text and user input...
here is my code
............................................................................................................
<html>
<head>
      <style>
       
          .hint{color:blue;}
          .real{color:black;}
         
      </style>
     <script type="text/javascript">
          window.onload = onchange;
          function foc(){
               if(this.value.length==0 || this.className=="hint"){
                    this.value="";
                    this.className=="real";
               }
              
          }
          function blur(){
               if(this.value.length==0){
                   
                    this.className = "hint";
                    this.value="Enter";
               }
              
          }
          function onchange(){
               var text = document.getElementById("textbox1");
                        
                    text.onfocus = foc;
                    text.onblur = blur;
         
            }         
     </script>
</head>
<body>
        <input type="text" id="textbox1" class="hint" value="Enter"/>
</body>
</html>    
..........................................................................................................

The problem is in function foc(), i want that if onfocus event rises then class of the textbox should change to real...but that's not happening and creating all trouble.
I want that the hint text should appear in blue and input in black. Also if user purposely enters the hint text as input then script should judge on classes not on text values. Like here hint text or default text is Enter....even if user input is Enter then that text should not disappear onblur...
THNX.
AnswerRe: Default TextBox Text..... Pin
Not Active3-Nov-09 8:53
mentorNot Active3-Nov-09 8:53 
GeneralRe: Default TextBox Text..... Pin
greendragons3-Nov-09 10:18
greendragons3-Nov-09 10:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.