/    Sign up×
Community /Pin to ProfileBookmark

the page is posted when click text field

Hi
i get a template from web and on dreamweaver add form and submit button and when test it
when i click the text field the page is submitted and no js on the text field !!!
why this happens??

thanks in advance.

to post a comment
PHP

6 Comments(s)

Copy linkTweet thisAlerts:
@TheRaveJan 02.2008 — Could you post the code?

Its a bit difficult to find the problem just from the description.
Copy linkTweet thisAlerts:
@secoauthorJan 02.2008 — this is the page code

[CODE]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1256" />
<!-- TemplateBeginEditable name="doctitle" -->
<title>...</title>
<!-- TemplateEndEditable -->
<link rel="stylesheet" type="text/css" href="../siteassist_css/style.css" />
<link rel="stylesheet" type="text/css" href="../siteassist_css/color.css" />
<link rel="stylesheet" type="text/css" href="../siteassist_css/template.css" />
<link rel="stylesheet" type="text/css" href="../siteassist_css/navigation.css" />
<link rel="stylesheet" type="text/css" href="../siteassist_css/navigation_color.css" />
<link rel="stylesheet" type="text/css" href="../siteassist_css/my_styles.css" />

<style type="text/css">
<!--
.style1 {color: #FFFFFF}
body {
background-color: #FFFFFF;
}
-->
</style>
<!-- TemplateBeginEditable name="head" --><!-- TemplateEndEditable -->
</head>

<body id="homePage" onload="">
<!-- new -->
<table cellpadding="0" cellspacing="0" width="760" align="center">
<tr>
<td>
<!-- /// -->

<table width="100%" border="0" cellspacing="0" cellpadding="0" class="LayoutTable">
<tr>

<td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="245" height="85" align="center" valign="middle" id="template_HeaderLeft"><img id="LogoImage" src="../siteassist_images/logo_modular.jpg" alt="family" /></td>
<td height="85" id="template_HeaderSlice"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="right" nowrap="nowrap" id="template_SiteNameTD_Light"><strong>&#1608;&#1580;&#1593;&#1604;&#1606;&#1575;&#1603;&#1605; &#1588;&#1593;&#1608;&#1576;&#1575; &#1608;&#1602;&#1576;&#1575;&#1574;&#1604; &#1604;&#1578;&#1593;&#1575;&#1585;&#1601;&#1608;&#1575; </strong><br />
<!-- WASA_SiteDescription_Start -->
<span class="SiteDescription">...</span>
<!-- WASA_SiteDescription_End --></td>

</tr>
</table>
</td>
<td width="25" height="85" id="template_HeaderRight" ><img src="../siteassist_images/spacer.gif" alt="" width="25" height="1" /></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="14" height="24" ><img src="../siteassist_images/nav_left.jpg" alt="" width="14" height="24" /></td>
<td height="24" class="topNavTable_Dark" nowrap="nowrap">&nbsp;</td>
<td width="12" height="24" ><img src="../siteassist_images/nav_right.jpg" alt="" width="12" height="24" /></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="155" height="15" ><img src="../siteassist_images/home_nav_left.jpg" alt="" width="155" height="15" /></td>

<td height="15" class="homeBelowNavSlice"><img src="../siteassist_images/spacer.gif" alt="" height="15" /></td>
<td width="12" height="15" ><img src="../siteassist_images/home_nav_right.jpg" alt="" width="12" height="15" /></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr valign="top">
<td width="1" class="Horizontal_Line"><img src="../siteassist_images/spacer.gif" alt="" width="1" /></td>
<td width="3"><img src="../siteassist_images/spacer.gif" alt="" width="3" /></td>
<td width="2" class="Horizontal_Line"><img src="../siteassist_images/spacer.gif" alt="" width="2" /></td>
<td width="15" ><img src="../siteassist_images/spacer.gif" alt="" width="15" /></td>
<td align="right"><!-- TemplateBeginEditable name="maintext" -->
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<!-- TemplateEndEditable --></td>
<td width="25" ><img src="../siteassist_images/spacer.gif" alt="" width="25" /></td>
<td width="155"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="12" height="27"><img src="../siteassist_images/home_link_tl.jpg" alt="" width="12" height="27" /></td>
<td height="27" align="right" class="homeLeftHeader">...</td>

<td width="11" height="27"><img src="../siteassist_images/home_link_tr.jpg" alt="" width="11" height="27" /></td>
</tr>
<tr valign="top">
<td width="12" height="127" class="homeLinkLeft"><img src="../siteassist_images/spacer.gif" alt="" width="12" /></td>
<td height="127" align="right" class="homeLink"><a href="../index.php">...</a><br />
<a href="../viewtree.php">... </a><br />
<a href="../about.php">... </a><br />
<a href="#"></a> </td>
<td width="11" height="127" class="homeLinkRight"><img src="../siteassist_images/spacer.gif" alt="" width="11" /> </td>
</tr>
<tr>
<td width="12" height="12"><img src="../siteassist_images/home_link_bl.jpg" alt="" width="12" height="12" /></td>

<td height="12" class="homeLinkBottom"><img src="../siteassist_images/spacer.gif" alt="" width="2" height="12" /></td>
<td width="11" height="12"><img src="../siteassist_images/home_link_br.jpg" alt="" width="11" height="12" /></td>
</tr>
</table>
</td>
<td width="15" ><img src="../siteassist_images/spacer.gif" alt="" width="15" /></td>
</tr>
</table>

</td>
</tr>
</table>

<!-- new -->
</td>
</tr>
<tr>
<td>
<!-- /// -->

<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="11" width="151"><img src="../siteassist_images/above_footer_l.jpg" alt="" width="151" height="11" /></td>
<td height="11"><img src="../siteassist_images/spacer.gif" alt="" width="2" height="11" /></td>
<td height="11" width="12"><img src="../siteassist_images/above_footer_r.jpg" alt="" width="12" height="11" /></td>
</tr>
</table>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="10" height="20"><img src="../siteassist_images/sn_footer_left.jpg" alt="" width="10" height="20" /></td>
<td height="20" align="center" class="footerTable"><div id="footer">
<div class="siteFooterLinks style1"> &nbsp; ...</div>
</div></td>
<td width="12" height="20"><img src="../siteassist_images/footer_right.jpg" alt="" width="12" height="20" /></td>
</tr>
</table>

<!-- new -->
</td>
</tr>
</table>
<!-- /// -->
</body>
</html>[/CODE]
Copy linkTweet thisAlerts:
@TheRaveJan 03.2008 — In that code there is no form, no text box and no submit button.

That might be where you problem is.
Copy linkTweet thisAlerts:
@secoauthorJan 03.2008 — if you add text box and button on form it will happen
Copy linkTweet thisAlerts:
@TheRaveJan 03.2008 — If you could post the exact code (including the form, text box and submit button) that produces the problem that would help a lot.
Copy linkTweet thisAlerts:
@replicaJan 03.2008 — perhaps a link to the page with the problematic form code. If that's not an option, post the "View Source / View Page Source" code.
×

Success!

Help @seco spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...