473,327 Members | 1,967 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

Substitute for this.form ?

296 100+
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
5 1458
tolkienarda
316 100+
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
pankajit09
296 100+
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
AricC
1,892 Expert 1GB
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
pankajit09
296 100+
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
AricC
1,892 Expert 1GB
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

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

Similar topics

2
by: Jeff Marcum | last post by:
I need to write a query in Access that returns the results of a text field with the spaces replaced with underscores. So, if the data in the field was 'hello world', the query results would show...
5
by: Markus Wildgruber | last post by:
Hi! Is there a substitute in the .NET Framework for the GetKeyState(...) function? I want to check whether the shift key is pressed. What's the best way to do this? Do I have to use...
2
by: malice | last post by:
I have been searching the internet for 12+ hours on how to do this. At this point I'm about to give up. I am using VB .Net 2.0 with the enterprise library jan 2006 release. This is my first time...
20
by: maxpirate | last post by:
I have data entry form in access and a save button which checks for validations and throws errors. I want to map this function to the save menu item available in the menubar. How do i do it?
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.