Jump to content

GB_001

Members
  • Posts

    187
  • Joined

  • Last visited

    Never

Everything posted by GB_001

  1. Thanks for the feed back, I am currently working on a AJAX hack to renew lost functionality to my site.
  2. Hello, I'm creating a site that utilizes AJAX for everything (links ect.). Only problem is that bookmarking and the back button functionality will be hard and will not be implemented until I'm able to. My question is how much do you believe this will affect users?
  3. Okay, thankyou. Hope I can understand it. =).
  4. Hello again, Is it possible to edit the back button on the browser to track AJAX? Thankyou, -GB.
  5. Damn, I didn't want the location to change.
  6. Hello, I was wondering if it's possible to change the url in the browser's url box with jscript?
  7. Thankyou, But the external code, isn't the problem since I tried substituting it with something else.
  8. Okay, But before i wasn't able to post code with the <script> tag. Anyways we are getting off topic any ideas on how to help me?
  9. I put sc because of the security on the site. ans I tried the bold the code for it to be easier to see
  10. Hello, I keep getting an error pertaining to the document.Reggy values. stating that they are either null or not an object. The places where the errors are, are indicated with arrows. Thankyou, -GB <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <sc language='javascript' type='text/javascript'> <!-- // function rawr(){ var ajaxRequest; // The variable that makes Ajax possible! try{ // Opera 8.0+, Firefox, Safari ajaxRequest = new XMLHttpRequest(); } catch (e){ // Internet Explorer Browsers try{ ajaxRequest = new ActiveXObject('Msxml2.XMLHTTP'); } catch (e) { try{ ajaxRequest = new ActiveXObject('Microsoft.XMLHTTP'); } catch (e){ // Something went wrong alert('Your browser broke!'); return false; } } } // Create a function that will receive data sent from the server ajaxRequest.onreadystatechange = function(){ if(ajaxRequest.readyState == 4){ var ajaxDisplay = document.getElementById('mainiac'); ajaxDisplay.innerHTML = ajaxRequest.responseText; } } var url = 'Users.php'; [b]var f=document.Reggy.F.value;<------ var l=document.Reggy.L.value;<------ var s=document.Reggy.S.value;<------ var e=document.Reggy.E.value;<------ var p=document.Reggy.P.value;[/b];<------ var u = '?f='+f+'&l='+l+'&s='+s+'&e='+e+'&p='+p; ajaxRequest.open('GET', url, true); ajaxRequest.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); ajaxRequest.send(null); } //--> </s> </head> <body> <table align=right> <tr> <td style="background:url(bmain4.png) repeat-x; border: 1px solid white; text-align:bottom; color: #FFFFFF;"><b><center>Register</center></b><br> [b]<form name="Reggy" id="Reggy"/> <font color=white><b>First Name:</b><br> <input name="F" id="F" type="text" value="" size="20"/><br><------ <b>Last Name:</b><br> <input name="L" id="L" type="text" size="20" value=""/><br><------ <b>Email:</b><br> <input name="E" id="E" type="text" size="20" value="" /><br><------ <b>School Or Office:</b><br> <input name="S" id="S" type="text" size="20" value="" /><br><------ <b>Password:</b><br> <input name="P" id="P" type="password" size="20" value="" /><br></font><------ </form>[/b] <font color=black><b style="background-color:#AAAAAA; cursor: pointer;" onclick=rawr();>Submit</b> </td> </tr> </table> </body> </html>
  11. For example putting clicked text into a variable.
  12. Hello, is it possible to get the value of any onclick event link when clicked, through some sort of system?
  13. You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Order (FirstName, LastName, Address, NOShirts, NOCaps, NOTickets, Price) VALUES' at line 1 That's the error.
  14. Hello, I keep getting a mysql syntax error with this piece of code. $query = "INSERT INTO Order (FirstName, LastName, Address, NOShirts, NOCaps, NOTickets, Price) VALUES('$FN', '$LN', '$address', '$Stotal', '$Ctotal', '$Ttotal', '$P')"; mysql_query($query) or die(mysql_error()); Thankyou, GB.
  15. Remove all your quotations in between the echo and add these '.
  16. Hello, I keep getting an undefined error in IE. that point to this line in the script: ajaxDisplay.innerHTML = ajaxRequest.responseText; Please help, thankyou. -GB. <!-- // function Login(){ var ajaxRequest; // The variable that makes Ajax possible! try{ // Opera 8.0+, Firefox, Safari ajaxRequest = new XMLHttpRequest(); } catch (e){ // Internet Explorer Browsers try{ ajaxRequest = new ActiveXObject('Msxml2.XMLHTTP'); } catch (e) { try{ ajaxRequest = new ActiveXObject('Microsoft.XMLHTTP'); } catch (e){ // Something went wrong alert('Your browser broke!'); return false; } } } // Create a function that will receive data sent from the server ajaxRequest.onreadystatechange = function(){ if(ajaxRequest.readyState == 4){ var ajaxDisplay = document.getElementById('mainiac'); ajaxDisplay.innerHTML = ajaxRequest.responseText; } } var url = 'Authenticate.php'; var email=document.login.email.value; var password=document.login.password.value; var u = '?email='+email+'&password='+password; ajaxRequest.open('GET', url+u, true); ajaxRequest.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); ajaxRequest.send(null); }
  17. Okay, it to partially work. The text appears but the html does not appear. <html> <head> <script language="javascript" type="text/javascript"> function go(){ document.getElementById('wow').innerHTML = <html><head></head> <body bgcolor="black"> RAWR</body></html>; }</script> </head> <body> <div id='wow'><input type='button' onClick="go();" value="BAM"> </div> </body> </html>
  18. Hello I was wondering how I would go about updating a div's html content with DOM?
  19. Why don't you include it into the page with php?
  20. I keep getting an Out of error message in IE with ajax. Is there anyway to fix it? Thankyou. -GB. function ajaxFunction(){ var ajaxRequest; try{ ajaxRequest = new XMLHttpRequest(); } catch (e){ try{ ajaxRequest = new ActiveXObject('Msxml2.XMLHTTP'); } catch (e) { try{ ajaxRequest = new ActiveXObject('Microsoft.XMLHTTP'); } catch (e){ alert('Your browser broke!'); return false; } } } ajaxRequest.onreadystatechange = function(){ if(ajaxRequest.readyState == 4){ var ajaxDisplay = document.getElementById('mypopup2'); ajaxDisplay.innerHTML = ajaxRequest.responseText; } } var url = 'Reqaccept.php'; ajaxRequest.open('GET', url, true); ajaxRequest.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); ajaxRequest.send(null); ajaxFunction(); }
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.