cant't submit

Discussions and Tech Support related to the iMacros Firefox Add-on, including the built-in Javascript scripting interface for playing .js files.
Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information: CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
Post Reply
czly
Posts: 5
Joined: Tue Jul 15, 2008 1:10 pm

cant't submit

Post by czly » Sun Jul 15, 2012 8:53 am

<form onsubmit="return validate(this)" action="pm.php?action=send&pmsubmit=yes" id="postform" method="post">
<input type="hidden" value="416b586f" name="formhash">

<th><label for="subject">title</label></th>
<td><input type="text" tabindex="4" value="" size="65" name="subject" id="subject"></td>
</tr>

<tr>
<th valign="top"><label for="pm_textarea">contents</label>
<div id="smilieslist" style=""><h4><span class="dropmenu" onmouseover="showMenu(this.id, true, 0, 2)" id="_popup_smileytypes">QQ表情</span></h4>

<table cellspacing="0" cellpadding="0" summary="smilies">
<tbody><tr align="center"> </tr><tr height="26"> <td align="center" onclick="insertSmiley(102)" onmouseover="smileyMenu(this)" id="smilie_102_parent" style="cursor: pointer;" class=" hover"><img border="0" height="20" width="20" title="" alt="" id="smilie_102" src="images/smilies/default/cry.gif"></td>
<td align="center" onclick="insertSmiley(82)" onmouseover="smileyMenu(this)" id="smilie_82_parent"><img border="0" height="20" width="20" title="20" alt=":excellence" id="smilie_82" src="images/smilies/default/excellence.gif"></td>
<td align="center" onclick="insertSmiley(81)" onmouseover="smileyMenu(this)" id="smilie_81_parent"><img border="0" height="20" width="20" title="20" alt=":huffy" id="smilie_81" src="images/smilies/default/huffy.gif"></td>
</tr><tr height="26"> <td align="center" onclick="insertSmiley(80)" onmouseover="smileyMenu(this)" id="smilie_80_parent"><img border="0" height="20" width="20" title="20" alt=":wad37" id="smilie_80" src="images/smilies/default/37.gif"></td>
<td align="center" onclick="insertSmiley(79)" onmouseover="smileyMenu(this)" id="smilie_79_parent"><img border="0" height="20" width="20" title="20" alt=":teeth" id="smilie_79" src="images/smilies/default/teeth.gif"></td>
<td align="center" onclick="insertSmiley(78)" onmouseover="smileyMenu(this)" id="smilie_78_parent"><img border="0" height="20" width="20" title="20" alt=":faint" id="smilie_78" src="images/smilies/default/faint.gif"></td>
</tr><tr height="26"> <td align="center" onclick="insertSmiley(77)" onmouseover="smileyMenu(this)" id="smilie_77_parent"><img border="0" height="20" width="20" title="20" alt=":soccer" id="smilie_77" src="images/smilies/default/soccer.gif"></td>
<td align="center" onclick="insertSmiley(76)" onmouseover="smileyMenu(this)" id="smilie_76_parent"><img border="0" height="20" width="20" title="20" alt=":sleep" id="smilie_76" src="images/smilies/default/sleep.gif"></td>
<td align="center" onclick="insertSmiley(75)" onmouseover="smileyMenu(this)" id="smilie_75_parent"><img border="0" height="20" width="20" title="20" alt=":cake" id="smilie_75" src="images/smilies/default/cake.gif"></td>
</tr>
</tbody></table>
<div class="pages"><strong>1</strong><a ajaxtarget="smilieslist" href="post.php?action=smilies&stypeid=1&inajax=1&page=2" id="0.37701453346302294">2</a><a ajaxtarget="smilieslist" href="post.php?action=smilies&stypeid=1&inajax=1&page=3" id="0.3469121377991353">3</a><a ajaxtarget="smilieslist" href="post.php?action=smilies&stypeid=1&inajax=1&page=4" id="0.7461775384166092">4</a><a ajaxtarget="smilieslist" href="post.php?action=smilies&stypeid=1&inajax=1&page=5" id="0.3312854189212022">5</a><a ajaxtarget="smilieslist" href="post.php?action=smilies&stypeid=1&inajax=1&page=6" id="0.15288069304505392">6</a><a ajaxtarget="smilieslist" href="post.php?action=smilies&stypeid=1&inajax=1&page=7" id="0.40856861372970266">7</a><a ajaxtarget="smilieslist" href="post.php?action=smilies&stypeid=1&inajax=1&page=8" id="0.03978672612936962">8</a><a ajaxtarget="smilieslist" href="post.php?action=smilies&stypeid=1&inajax=1&page=9" id="0.7508726027765485">9</a></div>

<div id="smilie_102_menu" style="width: 60px; height: 60px; position: absolute; z-index: 50; clip: rect(auto, auto, auto, auto); left: 297px; top: 528px;" class="popupmenu_popup"><table height="100%" width="100%"><tbody><tr><td align="center" valign="middle"><img border="0" width="20" src="http://67.220.92.11/forum/images/smilie ... /div></div>
<script type="text/javascript">ajaxget('post.php?action=smilies', 'smilieslist');</script>
</th>
<td><textarea tabindex="5" onkeydown="ctlent(event);" style="width: 95%;" name="message" cols="10" rows="15" class="autosave" id="pm_textarea"></textarea>
<br><label><input type="checkbox" tabindex="6" value="1" name="saveoutbox">不发送,只保存到草稿箱中</label>
</td>
</tr>

<tr class="btns">
<th>&nbsp;</th>
<td>
<button tabindex="7" value="true" id="postsubmit" name="pmsubmit" class="submit" type="submit">submit</button>

</td>
</tr>
</tbody></table>
</div>
</form>


script

Code: Select all

VERSION BUILD=7210419 RECORDER=FX
'Uses a Windows script to submit several datasets to a website, e. g. for filling an online database
TAB T=1     
' Specify input file (if !COL variables are used, IIM automatically assume a CSV format of the input file
'CSV = Comma Separated Values in each line of the file
CMDLINE !DATASOURCE a.csv
'Number of columns in the CSV file. This must be accurate!
SET !DATASOURCE_COLUMNS 1
'Start at line 2 to skip the header in the file
SET !LOOP 2
'Increase the current position in the file with each loop 
SET !DATASOURCE_LINE {{!LOOP}}
' Fill web form   
URL GOTO={{!COL1}}
TAG POS=1 TYPE=INPUT:TEXT FORM=ID:postform ATTR=NAME:subject CONTENT=textabc
TAG POS=1 TYPE=TEXTAREA FORM=ID:postform ATTR=ID:pm_textarea CONTENT=text abc
TAG POS=1 TYPE=INPUT:BUTTON FORM=NAME:postform ATTR=ID:postsubmit
Last edited by czly on Sun Jul 15, 2012 10:52 am, edited 1 time in total.
czly
Posts: 5
Joined: Tue Jul 15, 2008 1:10 pm

Re: cant't submit

Post by czly » Sun Jul 15, 2012 10:50 am

ERROR:

RuntimeError: element INPUT specified by NAME:pmsubmit was not found, line: 19 (Error code: -921)
siniy
Posts: 118
Joined: Sat Nov 07, 2009 7:44 pm

Re: cant't submit

Post by siniy » Mon Jul 16, 2012 10:35 am

Replace the last row with:

Code: Select all

TAG POS=1 TYPE=* ATTR=ID:postsubmit
Post Reply