Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Javascript and Form tag

Status
Not open for further replies.

sammyDashoe

Programmer
Apr 30, 2007
4
CA
if i put the image into the form tag, it the script doesn't run like this..

<form id=form1 runat="server">
<div>

<img id="myimage" src="images/DSCN0311.JPG" height="300" width="300" />

</div>
</form>

<script language="JavaScript1.2">
.
.
..<script/> .... but if i take it out like below it runs, kindly explain why.

<form id=form1 runat="server">
<div>


</div>
</form>


<img id="myimage" src="images/DSCN0311.JPG" height="300" width="300" />
<script language="JavaScript1.2">
.
.
..<script/>
 
Hi

Do you have a question too ? What do you mean "doesn't run" ?

Anyway, there is no reason for such behavior. Post the script and describe the problem accurately.

Feherke.
 
This isn't a javascript question, it should have been posted in the .net forum.

Anyway, your missing the runat="server" control from your image tag

Code:
<img id="myimage" src="images/DSCN0311.JPG" runat = "server" />


Nick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top