(This has to be a Java question as it simply works in a txt with a HTML extension....)

I have this code:

<html><head><title></title></head><body>
<form id='formulario' action='index.html' method='post'>
<label>Ancho </label><input type='text' name='ancho' id='ancho'><br >
<label>Alto </label><input type='text' name='alto' id='alto'><br >
<label>Izquierda </label><input type='text' name='izquierda' 

id='izquierda'><br >
<label>Horizontales </label><input type='text' name='horizontal' 

id='horizontal'<br >
<label>Verticales</label><input type='text' name='vertical' id='vertical'><br 

>
<label>Crucero </label><input type='text' name='cruzero' id='cruzero'><br >
<label>Marco </label><input type='checkbox' name='marco' id='marco'><br >
<label><input type='radio' name='RadioGroup1' value='1' 

id='piezas'>Piezas</label><br><label><input type='radio' name='RadioGroup1' 

value='0' id='medidas'>Medidas</label><br>
<input type='submit' value='Enviar'></p>
</form><img src='c:\archivo1.jpg' width='500' height='500'></body></html>

Why does this work (displays the image) in the MyEclipse browser and not in IE/Chrome/FF/etc?

Recommended Answers

All 2 Replies

(This has to be a Java question as it simply works in a txt with a HTML extension....)

I have this code:

<html><head><title></title></head><body>
<form id='formulario' action='index.html' method='post'>
<label>Ancho </label><input type='text' name='ancho' id='ancho'><br >
<label>Alto </label><input type='text' name='alto' id='alto'><br >
<label>Izquierda </label><input type='text' name='izquierda' 

id='izquierda'><br >
<label>Horizontales </label><input type='text' name='horizontal' 

id='horizontal'<br >
<label>Verticales</label><input type='text' name='vertical' id='vertical'><br 

>
<label>Crucero </label><input type='text' name='cruzero' id='cruzero'><br >
<label>Marco </label><input type='checkbox' name='marco' id='marco'><br >
<label><input type='radio' name='RadioGroup1' value='1' 

id='piezas'>Piezas</label><br><label><input type='radio' name='RadioGroup1' 

value='0' id='medidas'>Medidas</label><br>
<input type='submit' value='Enviar'></p>
</form><img src='c:\archivo1.jpg' width='500' height='500'></body></html>

Why does this work (displays the image) in the MyEclipse browser and not in IE/Chrome/FF/etc?

uhm no this is not java-java is not simple text in a file, but rather compiled byte code- this that you show is Hyper Text Markup language/html, your post would be better answered here:http://www.daniweb.com/web-development/web-design/html-and-css/143 however i see no reason why the picture would not be shown, it is good practice in html though-also i heard-to put c:/filename and not c:\filename.

uhm no this is not java-java is not simple text in a file, but rather compiled byte code- this that you show is Hyper Text Markup language/html, your post would be better answered here:http://www.daniweb.com/web-developme...ml-and-css/143 however i see no reason why the picture would not be shown, it is good practice in html though-also i heard-to put c:/filename and not c:\filename.

My mistake. I thought it only worked after calling a Java servlet.

It is indeed a HTML error.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.