Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Jun 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Problem retrieving image from Form Submit

    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!

  • #2
    New to the CF scene
    Join Date
    Jun 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question

    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.

  • #3
    New to the CF scene
    Join Date
    Jun 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question

    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •