ScottNL1
09-08-2008, 10:50 AM
I am having some trouble in changing the img scr when the textbox location has been changed.
For example.
this is filled in the Textbox > images/client/"theimagetheyhaveuploaded.gif"
when it has been filled in the Preview of the image is showen on the same page.
This is how i set the url of the picture.
<input class="text" type="text" name="image_small_{image_index}" value="{picture_small}" size="50" maxlength="255" onchange="document.getElementById('preview_image').innertext=this.value"/>
If i want to diplay the text in the textbox further down the page i fill in
<td id="preview_image"></td> This will display what has been filled in the textbox.
But i want to use the set value "preview_image" as a url where the picture is located.
This is what i want to do.
<td align="right"><img scr="preview_image"></td>
Of course this does not work but what should i do?
For example.
this is filled in the Textbox > images/client/"theimagetheyhaveuploaded.gif"
when it has been filled in the Preview of the image is showen on the same page.
This is how i set the url of the picture.
<input class="text" type="text" name="image_small_{image_index}" value="{picture_small}" size="50" maxlength="255" onchange="document.getElementById('preview_image').innertext=this.value"/>
If i want to diplay the text in the textbox further down the page i fill in
<td id="preview_image"></td> This will display what has been filled in the textbox.
But i want to use the set value "preview_image" as a url where the picture is located.
This is what i want to do.
<td align="right"><img scr="preview_image"></td>
Of course this does not work but what should i do?