By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,846 Members | 1,872 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,846 IT Pros & Developers. It's quick & easy.

Substitute for this.form ?

100+
P: 296
In the below code each loop as a FORM.
I use these FORMS in the onChange event.

Is there any substitute for FORM ?

Expand|Select|Wrap|Line Numbers
  1. <TMPL_LOOP NAME="AttachedFiles">
  2. <form name="attach_<TMPL_VAR NAME=datetime><TMPL_VAR NAME=filename>">
  3. <tr>
  4. <td class="plogitemselectable" align="center"width="10%"><TMPL_VAR NAME="filesig"></td>
  5. <td class="plogitemselectable" align="center" width="20%"><TMPL_VAR NAME="datetime"></td><td class="plogitemselectable" align="center"><a href="/cgi-bin/tps/attach_file.cgi?act=search&filename=<TMPL_VAR NAME=filename>&conid=<TMPL_VAR NAME=conid>&datetime=<TMPL_VAR NAME=datetime>"><TMPL_VAR NAME="filename"></a></td><td class="plogitemselectable"><TMPL_VAR NAME="comment"></td><td class="plogitemselectable" align="center"><TMPL_VAR NAME="type"></td><td class="plogitemselectable" align="center"><input type="checkbox" name="hidefile" "<TMPL_VAR NAME=hidefile>" onChange="updateHideStatus(this.form,'<TMPL_VAR NAME=datetime>','<TMPL_VAR NAME=filename>');"/></td>
  6. </tr>
  7. </form>
  8. </TMPL_LOOP>
  9.  
Feb 7 '07 #1
Share this Question
Share on Google+
5 Replies


tolkienarda
100+
P: 316
um are you asking if there is an alternative for the <form> tag or am i confused. if you are asking for a replacement there isn't one i have ever heard of but i don't see what your problem is. you could try to use ASCII values for the tag, i've used this for other things before.
Feb 7 '07 #2

100+
P: 296
well the actual problem is that when I put the below code in Perl I can't see the form and the inside contents. So I wanted another tag .

Expand|Select|Wrap|Line Numbers
  1. my $i;
  2.     foreach $i (0 ..$#attachedfiledata) {
  3.         $str .= "<form name=\"attach_$attachedfiledata[$i]{'datetime'}$attachedfiledata[$i]{'filename'}\">";
  4.         $str .= "<tr>";
  5.         $str .= "<td class=\"plogitemselectable\">$attachedfiledata[$i]{'filesig'}</td>";
  6.         $str .= "<td class=\"plogitemselectable\">$attachedfiledata[$i]{'datetime'}</td><td class=\"plogitemselectable\"><a href=\"/cgi-bin/tps/attach_file.cgi?act=search&filename=$attachedfiledata[$i]{'filename'}&conid=$attachedfiledata[$i]{'conid'}&datetime=$attachedfiledata[$i]{'datetime'}\">$attachedfiledata[$i]{'filename'}</a></td><td class=\"plogitemselectable\">$attachedfiledata[$i]{'comment'}</td><td class=\"plogitemselectable\">$attachedfiledata[$i]{'type'}</td><td class=\"plogitemselectable\" align=\"center\"><input type=\"checkbox\" name=\"hidefile\" $attachedfiledata[$i]{'hidefile'} onChange=\"updateHideStatus('<TMPL_VAR NAME=datetime>','<TMPL_VAR NAME=filename>');\"/></td>";
  7.         $str .= "</tr>";
  8.         $str .= '</form>';
  9.     }
Feb 8 '07 #3

Expert 100+
P: 1,892
well the actual problem is that when I put the below code in Perl I can't see the form and the inside contents. So I wanted another tag .

Expand|Select|Wrap|Line Numbers
  1. my $i;
  2.     foreach $i (0 ..$#attachedfiledata) {
  3.         $str .= "<form name=\"attach_$attachedfiledata[$i]{'datetime'}$attachedfiledata[$i]{'filename'}\">";
  4.         $str .= "<tr>";
  5.         $str .= "<td class=\"plogitemselectable\">$attachedfiledata[$i]{'filesig'}</td>";
  6.         $str .= "<td class=\"plogitemselectable\">$attachedfiledata[$i]{'datetime'}</td><td class=\"plogitemselectable\"><a href=\"/cgi-bin/tps/attach_file.cgi?act=search&filename=$attachedfiledata[$i]{'filename'}&conid=$attachedfiledata[$i]{'conid'}&datetime=$attachedfiledata[$i]{'datetime'}\">$attachedfiledata[$i]{'filename'}</a></td><td class=\"plogitemselectable\">$attachedfiledata[$i]{'comment'}</td><td class=\"plogitemselectable\">$attachedfiledata[$i]{'type'}</td><td class=\"plogitemselectable\" align=\"center\"><input type=\"checkbox\" name=\"hidefile\" $attachedfiledata[$i]{'hidefile'} onChange=\"updateHideStatus('<TMPL_VAR NAME=datetime>','<TMPL_VAR NAME=filename>');\"/></td>";
  7.         $str .= "</tr>";
  8.         $str .= '</form>';
  9.     }
If you haven't found a fix for this let me know what language you are using, this is the HTML forum.

Aric
Feb 22 '07 #4

100+
P: 296
If you haven't found a fix for this let me know what language you are using, this is the HTML forum.

Aric

I found a fix.

I used a <div> tag and instead of this.form I used this in the JS function being called.
Feb 23 '07 #5

Expert 100+
P: 1,892
I found a fix.

I used a <div> tag and instead of this.form I used this in the JS function being called.
Ok great! Glad you got one.
Feb 23 '07 #6

Post your reply

Sign in to post your reply or Sign up for a free account.