PrateekSaxena
-
Posts
584 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by PrateekSaxena
-
-
I think you will really like this http://developer.mozilla.org/en/docs/A_re-...n_to_JavaScriptRead the whole thing, I learned stuff that I never knew before!!!
-
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??
-
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??
-
So they aren't like global variables!right?
-
Thanks it worked, but now I am getting a brand new error, look at this http://workbench.awardspace.com/ . After one clicks on submit, see Firebug
-
So it considered good to use them right?? they aren't like global variables??
-
But sometimes there is not other way to do something, or is there??
-
I don't really understand what you are saying but do you mean something like this http://w3schools.invisionzone.com/index.ph...ost&p=52941
-
Thanks man! This is really useful!
-
He never posted it. I know the guy personally, he is in my schools so I know
-
the guys is using blogger, he cant change that!
-
Any other more detailed documents??
-
ASP is Microsoft right?
-
I think his username is a proper noun and is "justsomeguy"were you trying to be funny??
-
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 !
-
I would do it in PHP/MySQL too. The reason for that may also be that I don't know ASP~
-
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!
-
Your welcome....you can call me after 24th March
-
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()??
-
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
-
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?
-
Nice style of writing I must say
-
Sorry for that, I am doing to many typos these days
-
Hey...found 2 really nice articles for OOP in JShttp://www.webreference.com/js/column79/1.htmlhttp://developer.mozilla.org/en/docs/Intro...nted_JavaScript
String.trim()
in JavaScript
Posted
The object oriented part is very nice too! http://www.google.com/coop/cse?cx=00068528...8%3Axvj-i48acfm