user4fun Posted August 7, 2007 Share Posted August 7, 2007 Here is what i have so far, it needs help, lol you will find the confusing part with // <script type="text/javascript">function GetInfo(t) {if t == 0 // this is to prompt user for domain only at the start of the var t if statment { var name=prompt("Please enter your domain","www.YourSite.com") if (domain!=null && domain!="") { document.write("Hello " + domain + "! Thank you for visiting?") } }else (t <= 5) { //need help here sending var domain to got_hit.php, this will happen every time var xmlHttp; try { xmlHttp=new XMLHttpRequest(); } catch (e) { try { xmlHttp=new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { xmlHttp=new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) { alert("Your browser does not support AJAX!"); return false; } } } xmlHttp.onreadystatechange=function() { if(xmlHttp.readyState==4) { picked_file=window.open("http://" + xmlHttp.responseText,"picked_file","toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width=400, height=200"); t++; setTimeout("picked_file.close(); GetInfo(" + t + ");",9000); } } xmlHttp.open("GET","get_info.php",true); xmlHttp.send(null); }}</script><body><form name="myForm"><p align="center">Start: <input type="button" onClick="GetInfo(1);" name="start" value="Start" />Stop Demo: <input type="button" onClick="GetInfo(5);" name="stop" value="Stop" /></form> </body></html> Link to comment Share on other sites More sharing options...
user4fun Posted August 7, 2007 Author Share Posted August 7, 2007 68 people looked at my post and nothing so far, :-(I need justsomeguy to step up like he always does and takes care of businesslolthey should have a website called www.justsomeguy.com Link to comment Share on other sites More sharing options...
user4fun Posted August 7, 2007 Author Share Posted August 7, 2007 I Figured it outWOOOOOOOOOHOOOOOOOOOOOOOOOOOOOJust working on syntax issues.foget sending variable to a php file, i am just setting a cookie in javascript and then forceing the page to go to the php file that i want and then asking php to get the cookie value.HAA HA AHA AAHAH AH HA Link to comment Share on other sites More sharing options...
Synook Posted August 9, 2007 Share Posted August 9, 2007 Lol well done user4funAnd wth there is a website http://www.justsomeguy.com/ ... but it is owned by Steve McNabb Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.