i have a autosearch that is bringing in a value
this is my function
i need to now search on that value i have this
this is my function
i can not get the value to 1.php can anyone tell me how i should hand this over on 1.php please
Code:
<input type="text" size="30" value="" id="inputString" onkeyup="lookup(this.value);" onblur="fill();" />
Code:
function lookup(inputString) {
if(inputString.length == 0) {
// Hide the suggestion box.
$('#suggestions').hide();
} else {
$.post("rpc.php",{queryString:""+inputString+"",one:""+$("#oneone").val()+""},function(data){
if(data.length >0) {
$('#suggestions').show();
$('#autoSuggestionsList').html(data);
}
});
}
}
function fill(thisValue) {
$('#inputString').val(thisValue);
setTimeout("$('#suggestions').hide();", 200);
}
Code:
<input type="button" value="Search!" onClick="inputter(document.getElementById('inputString').value)">
Code:
function inputter(element)
{
parent.location='1.php?option=s_last&id=' + escape(element);
}
$(document).ready(function() {
$('#inputString').keyup(function(e) {
if(!e) e = window.event;
if(e.keyCode == 13) {
inputter(document.getElementById('inputString').value);
}
}
)
} )
Comment