Jump to content

sks198117

Members
  • Posts

    3
  • Joined

  • Last visited

Posts posted by sks198117

  1. I am having the following code to check if the radio button was selected or not*********************************************************************<html><head><script language="javascript">var ifunction check(){for(i=0;i<3;i++){if(document.frm.choice.checked){ return true;}else{ return false }} }</script></head><body><form name=frm method=post action="mailto:abc@xyz.com" onSubmit="return check()"><input type=radio name=choice value="Excellent">Excellent<br><input type=radio name=choice value="Good">Good<br><input type=radio name=choice value="Nothing special">Nothing Special<br><input type=submit name=submit value=submit></form></body></html>*****************************************But the code is not working.Where exactly is the mistake.
    ----***************************************You'll have to make a counter variable and increament it with checked valueinstead of return truehope this will help u
  2. Hi all,below is my codei'm getting error in IEerror: htmlfile:Unknown runtime errorcan anyone help me regarding this errorthanks in advance************************var xmlHttpfunction showDeals(mobID,netID){ xmlHttp=GetXmlHttpObjectDeal() if (xmlHttp==null) { alert ("Browser does not support HTTP Request") return } var url="deals.asp" url=url+"?mobID="+mobID+"&netID="+netID+"&sid="+Math.random() xmlHttp.onreadystatechange=stateChangedDeal xmlHttp.open("GET",url,true) xmlHttp.send(null)}function stateChangedDeal() { if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete") { alert(xmlHttp.responseText) document.getElementById("tblBodyContent").innerHTML=xmlHttp.responseText }} function GetXmlHttpObjectDeal(){ var objXMLHttpDeal=null if (window.XMLHttpRequest) { objXMLHttpDeal=new XMLHttpRequest() } else if (window.ActiveXObject) { objXMLHttpDeal=new ActiveXObject("Microsoft.XMLHTTP") } return objXMLHttpDeal}

×
×
  • Create New...