Click here to Skip to main content
15,949,686 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: How can I make my ad box viewable for all other webpages? Pin
Christian Graus22-Jun-08 22:54
protectorChristian Graus22-Jun-08 22:54 
GeneralRe: How can I make my ad box viewable for all other webpages? Pin
gayatrilaxmi22-Jun-08 23:05
gayatrilaxmi22-Jun-08 23:05 
QuestionDate entry way Pin
vikas25107422-Jun-08 19:20
vikas25107422-Jun-08 19:20 
AnswerRe: Date entry way Pin
Christian Graus22-Jun-08 21:27
protectorChristian Graus22-Jun-08 21:27 
GeneralRe: Date entry way Pin
Paul Conrad28-Jun-08 8:44
professionalPaul Conrad28-Jun-08 8:44 
Questionabout session in asp.net (web application) Pin
munna8822-Jun-08 18:17
munna8822-Jun-08 18:17 
AnswerRe: about session in asp.net (web application) Pin
Christian Graus22-Jun-08 18:30
protectorChristian Graus22-Jun-08 18:30 
Questiongetting error when typing in userid field. [modified] Pin
vikas25107422-Jun-08 17:45
vikas25107422-Jun-08 17:45 
I am getting error while entry in userid field. When user enter his user id, an event is fired immediately and user id is verified using AJAX method. But I am getting error 'Object doesn't support this property or method'.

I am using ajax technique to verify userid from database just after entry in userid field and moving to next item.


<script type="text/javascript">
var xmlHttp

function userid1(str){
  xmlHttp=GetXmlHttpObject();
  if (xmlHttp==null) {
    alert ("Your browser does not support AJAX!");
    return;
  } 
  var url="checkuser.asp?q="+str+"&sid="+Math.random();
  xmlHttp.onreadystatechange=stateChanged;
  xmlHttp.open("GET",url,true);
  xmlHttp.send(null);
}

function stateChanged() { 
  if (xmlHttp.readyState==4) {
    document.getElementByClass("login1").innerHTML=xmlHttp.responseText;}
}

function GetXmlHttpObject(){
  var xmlHttp=null;
  try { xmlHttp=new XMLHttpRequest();  }   // Firefox, Opera 8.0+, Safari
  catch (e){ 
    try {xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");}   // Internet Explorer
    catch (e){xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");}
  }
  return xmlHttp;
}

</script>
</head>
<body onload="document.myform.userid1.focus();"> 
<form name="myform" action="main.asp" method="post">
<div id="content"> 
  <h2 id="pageName">Main Page</h2> 
  <div class="feature"> 
    <h1>Surfing the intranet </h1> 
    <p>
	This is a comprehensive information website on XXXXXXX
	</p>
  </div> 
  <div class="login1" style="position:relative; left:50px"> 
    <table border="1" cellpadding="0" cellspacing="0">
    <tr>
      <td><h3>Employee Login</h3></td>
     </tr>
    <tr>
      <td>
        <table>  
          <tr>
            <td align="right">Login :</td>
            <td><input type="text" name="userid1" id="userid1" style="width:100px " onchange="userid1(this.value);"/></td>
          </tr>
          <tr>
            <td align="right">Password :</td>
            <td><input type="password" name="passwd" style="width:100px "/></td>
          </tr>
        </table>
      </td>
    </tr>
    <tr>
      <td>
        <table>  
          <tr>
            <td><a href="#">Forgot Password?</a></td>
            <td><input type="button" style="width:65px " value="Go" onclick="login1();"/></td>
          </tr>
        </table>
      </td>
    </tr>
    </table>
  </div>
</div> 

<div class="ForumSig">Thanks and regards,
Vikas</div>

modified on Monday, June 23, 2008 12:08 AM

AnswerRe: getting error when typing in userid field. Pin
Christian Graus22-Jun-08 18:31
protectorChristian Graus22-Jun-08 18:31 
GeneralRe: getting error when typing in userid field. [modified] Pin
vikas25107422-Jun-08 20:17
vikas25107422-Jun-08 20:17 
GeneralRe: getting error when typing in userid field. Pin
Christian Graus22-Jun-08 21:27
protectorChristian Graus22-Jun-08 21:27 
GeneralRe: getting error when typing in userid field. Pin
vikas25107422-Jun-08 21:48
vikas25107422-Jun-08 21:48 
GeneralRe: getting error when typing in userid field. Pin
vikas25107422-Jun-08 22:03
vikas25107422-Jun-08 22:03 
Questionauto scroll ifram Pin
erickislam20-Jun-08 7:25
erickislam20-Jun-08 7:25 
GeneralRe: auto scroll ifram Pin
Brook.Zhang30-Jun-08 20:50
Brook.Zhang30-Jun-08 20:50 
QuestionHow does The Code Project compose newsletter emails? Pin
nofacts20-Jun-08 7:05
nofacts20-Jun-08 7:05 
AnswerRe: How does The Code Project compose newsletter emails? Pin
Chris Maunder24-Jun-08 4:09
cofounderChris Maunder24-Jun-08 4:09 
GeneralRe: How does The Code Project compose newsletter emails? Pin
nofacts24-Jun-08 7:03
nofacts24-Jun-08 7:03 
GeneralRe: How does The Code Project compose newsletter emails? Pin
Chris Maunder24-Jun-08 9:34
cofounderChris Maunder24-Jun-08 9:34 
QuestionJavascript Help?? Pin
Imran Adam20-Jun-08 1:43
Imran Adam20-Jun-08 1:43 
QuestionAccessing Remote IIS through IIS Pin
karthi8420-Jun-08 1:15
karthi8420-Jun-08 1:15 
QuestionREG OWA webpart Pin
manikandanid19-Jun-08 5:50
manikandanid19-Jun-08 5:50 
Questionhelp regarding web hosting. Pin
chandu00419-Jun-08 2:18
chandu00419-Jun-08 2:18 
AnswerRe: help regarding web hosting. Pin
Ashfield19-Jun-08 6:35
Ashfield19-Jun-08 6:35 
AnswerRe: help regarding web hosting. Pin
Shog919-Jun-08 6:35
sitebuilderShog919-Jun-08 6:35 

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.