...

View Full Version : Problem retrieving image from Form Submit



achatter
06-05-2007, 03:55 PM
I am new to Javascript, so please pardon this simple question.
I am trying to retrieve an image from a known location after a form submit. The form is currently displayed within a frame that I need to replace with the image that I bring back.

Any help will be appreciated.

Thanks in advance!

achatter
06-06-2007, 05:55 PM
To give some more information on what I have done so far -

<script language = "javascript">
funtion optimize()
{
var optImage = document.getElementById("optimizer");
optImage.setAttribute("src", "opt_image.gif");
}
</script>

<form name="Input_Details" id="optimizer">
<input type = "TEXT" Name="First Text">
<br /><br />
<input type="button" value="Continue" onClick="optimize()">
</p>
</form>

So, when I run this, I am not getting the Form replaced with the image. Can someone point out something basic I am missing.

Thanks.

achatter
06-06-2007, 05:56 PM
To give some more information on what I have done so far -

<script language = "javascript">
funtion optimize()
{
var optImage = document.getElementById("optimizer");
optImage.setAttribute("src", "opt_image.gif");
}
</script>

<form name="Input_Details" id="optimizer">
<input type = "TEXT" Name="First Text">
<br /><br />
<input type="button" value="Continue" onClick="optimize()">
</p>
</form>

So, when I run this, I am not getting the Form replaced with the image. Can someone point out something basic I am missing?

Thanks.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum