Jump to content

PrateekSaxena

Members
  • Posts

    584
  • Joined

  • Last visited

Posts posted by PrateekSaxena

  1. Hello thanks man. That was the stupidest thing error. Acually I was making it all on my server and then I had to upload it on the awardspace server so I forgot to change it. How did you find it out? Is there a tool that you use??

  2. Alright then it is ok. Lately I have learning nice things about JS, stuff like

    var allow = (age<18) ? no:yes;

    or

    for(var i in a){}

    Are there any other thing like this??

  3. I am getting this error the Line 90 has xmlHttp.send("null");

    uncaught exception: [Exception... "Component returned failure code: 0x80520012 (NS_ERROR_FILE_NOT_FOUND) [nsIXMLHttpRequest.send]" nsresult: "0x80520012 (NS_ERROR_FILE_NOT_FOUND)" location: "JS frame :: file:///C:/Program%20Files/Apache%20Software%20Foundation/Apache2.2/htdocs/D6S/signup/signup.js :: doXML :: line 91" data: no] on 0 of !

    This is the JS file

    function doXML(){	var url="signup.php"	for (var i in sign.field)	{		var x = dgebi('div'+sign.field[i]).getElementsByTagName("input");		var other = x[0].value;		if (i!=3 && i!=5) url += "&"+other;	}	xmlHttp=gxho();	if (xmlHttp==null){		alert ("Browser does not support HTTP Request");		return;	}	url+="&sid="+Math.random();	alert(url);	xmlHttp.onreadystatechange=stateChanged;	xmlHttp.open("GET",url,true);	xmlHttp.send(null);}function stateChanged(){ 	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete") alert(xmlHttp.responseText);}function gxho(){	var xmlHttp=null;	try{		xmlHttp=new XMLHttpRequest();	}	catch (e){		try{			xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");		}		catch (e){			xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");		}	}	return xmlHttp;}function dgebi(id){	return document.getElementById(id);}

    Could someone please tell me what the problem is??This is the same JS as given on http://www.w3schools.com/php/php_ajax_suggest.asp !

  4. I am sure that this works, but I don't want to use it till you explain me how it is actually worked! I mean don't write the whole thing, give me a link that will be able to explain what is happening!

  5. hi,Well a few minutes back I found out that the String object does not have a trim method in it that would remover the trailing and starting spaces. So is there a method for the String Object that is similar to trim()?? If not please suggest what I can do get the same functionality as trim()??

  6. Hey Aryaman,As I told you before you will first have to write -

    <link rel="icon" type="image/png" href="http://example.com/myicon.png">

    Upload a 16X16 image file somewhere like http://geocities.com and then paste the URL of the image in the HREF part of the above given code

  7. But is introduces (yet) another problem because the if the variable that was passed was a local one then on timeout I will not be able to get its value. I could save the function.callee in the array too and then try to get it....will this be possible?

×
×
  • Create New...