Jump to content

timeyyy_da_man

Members
  • Posts

    10
  • Joined

  • Last visited

timeyyy_da_man's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. er how are the serach engines like yahoo made i thought they used c++ or something?
  2. how would you make your own serach engine like mumma or lycos or something?
  3. yer uni means university and tafe is like a low level uni, where u can get some most one or 2 lvl degress but it is to mainly help you get a job or to go to uni if you got crap grades. Iv seen an ad on tv that says you can get all these degrees in like 5 months not 3 years or whateva, its the same price, do u think it would be worthwhile? except you think they would make it cheaper unless you do actually learn the same amount. And you get a guaranteed job after u finish.
  4. man i hate doing simple errors like that... once i spent ages looking for an error and i forgot the () in a function call.., can anyone explain the create element one...
  5. scroll down the page a bit athttp://www.htmlgoodies.com/primers/jsp/article.php/3593451to see the desired effect, my delete button won't work <html><head><script type="text/javascript">school = ['bob','todd','n rodd']function func(name){school.push(name)document.getElementById('arr').value=schooldocument.getElementById('add').value=''}function func2(name) {var iwhile(i<school.length) { if(school[i].toLowerCase() == name) { school.splice(i, 1) document.getElementById('arr').value=school break } } }</script></head><body><form><input type="text" size="90" id="arr" onfocus="this.blur()"><br><input type="text" id="add"><input type="button" value="add" onclick="func(document.getElementById('add').value)"> <input type="button" value="del" onclick="func2(document.getElementById('add').value)"></form></body></html> also i cant get this one to work, i can create elements i just cant delete more than one, if i recreate another element i can delete another one but i can only delete one without having to recreate another, so there is no point unless the person only creates one elementgo here to see the code running, scroll down abit...http://www.htmlgoodies.com/primers/jsp/article.php/3594621<html><head><script type="text/javascript">var a=0function boba(){table=document.getElementById('me2')tr=document.createElement('TR')td=document.createElement('TD')td2=document.createElement('TD')td3=document.createElement('TD')img=document.createElement('IMG')img.setAttribute('src','mygif.gif')img.onclick=function(){removeme(tr)}inp=document.createElement('INPUT')inp2=document.createElement('INPUT') inp.setAttribute('name','name'+a) inp2.setAttribute('name','email'+a)table.appendChild(tr)tr.appendChild(td)tr.appendChild(td2)tr.appendChild(td3)td.appendChild(img)td2.appendChild(inp)td3.appendChild(inp2)a++}function removeme(tr){tr.parentNode.removeChild(tr)}</script></head><body><table> <tbody id="me2"> <tr> <td> DEMo <input type="text"> </td> <td><input type="text"><input type="button" value="create" onclick="boba()"> </td> </tr> </tbody></table></body></html>thanks
  6. from that site u gave me above... Cookies were invented to solve this problem. There are other ways to solve it, but cookies are easy to maintain and very versatile.whats the other method, just curios
  7. how's about someone just tell me the most simple way possible to use document.cookie to set get and check a cookie, then i can add the ifs and other stuff later
  8. what does the with function do in the form validation tutorial
  9. Regarding setCookie()1. how come when ur making a cookie you have to change it to gmt time?2. how come after document.cookie = c_name + "=" you have to add the "=" bit3. what does the escape() function do in the setCookie function,?4. if expiredays == null what happens?5. how come after the (( expiredays==null) ? "": we only have to enclose the expires = bit in "" and not the rest "expires=" 6. why is there a + after the expires bit "expires="+exdate.toGMTString()) Regarding getCookie()1. what does (c_name + "=") do in c_start=document.cookie.indexOf(c_name + "=") 2. how does returning the value of c_start (which is the index of [c_name + "="]) , added on to the length of c_name + 1, return its value, 3. Also what does the ";" bit do in c_end=document.cookie.indexOf(";",c_start) 4. im geussing question 2 has something to do with return unescpe and also the substring bit5. is there a simple way to get a cookie value like a=document.cookie.c_name or something?Regarding checkCookie()1. how come when we use the function we use username for the value and the name, what does sticking the first username in the two '' do? if (expiredays!=null) { document.cookie=nome + "=" escape(value) + expires=+exdate.toGMTString() }
×
×
  • Create New...