Hii Nick,Joe
I have another approach to your question.
<SCRIPT TYPE="text/javascript" LANGUAGE="JavaScript">
function NextQuotation() {
var obj = new ActiveXObject( "Microsoft.XMLHTTP" );
var url = "http://myurl/GetQuotation.asp"
obj.open( "POST",url, false );
obj.send();
nextquotation=obj.responseText
alert(nextquotation);
}
</SCRIPT>
<form name="test">
<input type="text" name="quotation_id" >
<input type=button name="getQuote" onclick="NextQuotation()">
</form>
And my "GetQuotation.asp" ASP page is like
<% response.write "hii" %>
Since You want to get quotation from the database (MySQL) u can pass the quotation id to the url i.e (GetQuotation.asp page) and get then next quotation and display the quotation randomly .
Hope ,It will help to find the solution.
Cheers :)
vinod
|