PDA

View Full Version : basic noob jquery .post help needed.. giving a free expiring domain in 1 month



nhoss2
04-11-2009, 06:05 AM
So what you are doing is typing something in a textbox, then you click on a link which gets what ever is in the textbox, and uses ajax to get what ever it says from script.php?q=text_inside_textbox

so here is what the html will look like


<html>
<head>
<title>the title</title>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("#thebutton").click(function(){
$.post("script.php");
what do you write here??
});
});
</script>

</head>
<body>
<input type="text" id="theform" name="q" size="40"><br>
<a href="#" id="thebutton">THE BUTTON!</a>

<div id="result">
<p id="the_result"></p>
</div>


</body>
</html>

and if you want, you can have racing-games.biz which is expiring in 31st of May. registered in godaddy.

thanks!