Hey,
I'm using the Overture keyword search site quite often. I constantly get timeout errors, which frustrates me

.
Therefore I tried putting their site into an iframe on my local machine. I've created a form which posts to the iframe and I was hoping that when the iframe would receive a 408 error the document would simply repost the form.
I can't get it to work and wondered if any of you experts out there can tell me if this is at all possible and if so where I'm going wrong.
Here's my code:
- HTML: Select all
<h1>Keyword Search Tool</h1>
<form action="http://inventory.overture.com/d/searchinventory/suggestion/" target="overture" method="post" id="query_form">
<input type="hidden" name="mkt" id="mkt" value="us">
<input type="hidden" name="lang" id="lang" value="en_US">
<input type="text" name="term" id="term" size="20">
<input type="submit" value="Query" />
</form>
<iframe src="http://inventory.overture.com/d/searchinventory/suggestion/"
width="100%"
height="500px"
frameborder="0"
name="overture"
id="overture">
</iframe>
<script type="text/javascript">
document.getElementById( "overture" ).onServerError = serverErrorCatch;
function serverErrorCatch(e) {
switch (e.status) {
case '408':
document.getElementById( "query_form" ).submit();
break;
}
}
</script>