Jump to content
UBot Underground

Check all check boxes


Recommended Posts

Is there a way to have all check boxes checked on a page using ubot4.

 

I am working with a webpage that provides different amounts of check boxes depending on the query made.

 

All I want is to select all the checkboxes that appear on the page.

I have asked the developers to add a check all box but its just not getting done so is there a way we can populate these checkboxes?

 

The checkbox name is

<input type="checkbox" value="1" name="syns[852619]" id="syns_852619">

The wildcards are name="syns[*]" id="syns_*"

 

Do you use a loop to check or is there a javascript trick that can be used?

 

Any help on this will be appreciated.

 

Thanks

 

 

Matt

 

--------------------------------------------------

 

Hi Dark Angel

 

Trying to reply to PM you but the forum keeps telling me I do not have permissions to PM you or reply to the post.

I will send Lily a support ticket

 

here is the source code of the page if this will help till my permissions are sorted out

 

<!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" xml:lang="en" lang="en">
<head>
<title>The Krakkenâ„¢ -- The many-tentacled behemoth of Search Engine Market Research</title>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<meta name="Copyright" content="(c) 2007 Copyright content: Inside Systems, Copyright design: insidesystems.net" />
<meta name="description" content="The many-tentacled" />
<meta name="keywords" content="seo, sem, search engine optimization, search engine research, market research, internet market research" />
<meta name="revisit-after" content="7 days" />

<meta name="ROBOTS" content="ALL, INDEX, FOLLOW" />
<link href="/stylesheets/cache-eb0a1.css?1318458599" media="screen" rel="stylesheet" type="text/css" />	<!--[if IE]>
	<link rel="stylesheet" href="/stylesheets/ie.css" />
<![endif]-->
<script type="text/javascript"></script>
<script src="http://ajax.googleapis.com/ajax/libs/prototype/1.6.0.3/prototype.js" type="text/javascript"></script>
<script src="http://ajax.googleapis.com/ajax/libs/scriptaculous/1.8.2/effects.js" type="text/javascript"></script>

</head>
<body id="voma">

<div id="masthead">
<div id="masthead-inner">
	
	<ul id="mastR">
		<li>Welcome Matt Da Cruz</li>
		<li><a href="http://krakken.themezoom.com/session" onclick="var f = document.createElement('form'); f.style.display = 'none'; this.parentNode.appendChild(f); f.method = 'POST'; f.action = this.href;var m = document.createElement('input'); m.setAttribute('type', 'hidden'); m.setAttribute('name', '_method'); m.setAttribute('value', 'delete'); f.appendChild(m);var s = document.createElement('input'); s.setAttribute('type', 'hidden'); s.setAttribute('name', 'authenticity_token'); s.setAttribute('value', 'Siu9Bq9UhHpIv4qP1g+u8nk3VnncLnlKleft9DcYDCY='); f.appendChild(s);f.submit();return false;">Logout</a></li>
	</ul>
	
</div>
</div>
<div id="header">

<div id="header-inner">
		<ul id="main_nav">

			<li id="voma_nav"><a href="http://krakken.themezoom.com/theme_clusters" title="Vertical Online Market Analysis">VOMA</a></li>
			<li id="blueprint_nav"><a href="http://krakken.themezoom.com/blueprints" title="Website Blueprinting">Blueprint</a></li>
			<li id="settings_nav"><a href="http://krakken.themezoom.com/user/edit" title="Edit User Settings">Settings</a></li>
			<li id="help_nav"><a href="#" onclick="window.open('/en/filter_synonyms', 'content_window', 'resizable=0, width=820, height=600, scrollbars, location=yes'); return false;" style="color: yellow" target="new" title="Help Me With This Screen">Help Me</a></li>



		</ul>
</div>
</div>

<div id="wrapper">

	<ul id="subnav">
		
 

	</ul>

<div id="gutter">
	
		
	
		
	
		
	
	




<h1>Filtering Synonyms For: <span class="highlight">'claim ppi'</span></h1>

<div id="synonyms">
<p>
	Below is a list of all of the synonyms that were returned for this theme.
	Any synonym that is not relevant to the theme should be deleted, and you may also add in your own synonyms at this time.
	Once you have finalized the synonym list, click on the 'continue' button at the bottom of the page.
	<em>(<strong>For example:</strong> If you are selling china and the theme is based in <strong>'pitchers'</strong>, you may want to remove any results that have anything to do with <strong>baseball</strong>.)</em>		
</p>

</div>
<div style="width: 500px; padding: 10px; margin-left: auto; margin-right: auto">
<form action="http://krakken.themezoom.com/theme_clusters/24864/themes/81526/synonyms/update_filter" method="post" onsubmit="new Ajax.Updater('synonym-table', 'http://krakken.themezoom.com/theme_clusters/24864/themes/81526/synonyms/update_filter', {asynchronous:true, evalScripts:true, onLoading:function(request){$('delete_indicator').show();}, onSuccess:function(request){$('delete_indicator').hide();}, parameters:Form.serialize(this)}); return false;"><div style="margin:0;padding:0;display:inline"><input name="authenticity_token" type="hidden" value="Siu9Bq9UhHpIv4qP1g+u8nk3VnncLnlKleft9DcYDCY=" /></div>
<table id="synonym-table">
	<tr>
<th class="syn-actions" style="text-align: right"><img alt="Delete" src="/images/icons/delete.png?1318458599" title="Mark this synonym for deletion" /></th>
<th>Synonym</th>
</tr>
<tr id="row_852619" onmouseover="$('syn_852619').show()" onmouseout="$('syn_852619').hide()">
<td style="text-align: right">

	<span id="syn_852619" style="display: none">
		<a href="http://krakken.themezoom.com/keywords/1431044/serp" target="_new"><img alt="Page_white_world" src="/images/icons/page_white_world.png?1318458599" title="Search Engine Results Page" /></a>
	</span>
	<input name="syns[852619]" type="hidden" value="0" /><input id="syns_852619" name="syns[852619]" type="checkbox" value="1" />
</td>
<td>ppi</td>
</tr><tr id="row_852620" onmouseover="$('syn_852620').show()" onmouseout="$('syn_852620').hide()">
<td style="text-align: right">
	<span id="syn_852620" style="display: none">

		<a href="http://krakken.themezoom.com/keywords/1008142/serp" target="_new"><img alt="Page_white_world" src="/images/icons/page_white_world.png?1318458599" title="Search Engine Results Page" /></a>
	</span>
	<input name="syns[852620]" type="hidden" value="0" /><input id="syns_852620" name="syns[852620]" type="checkbox" value="1" />
</td>
<td>claim</td>
</tr><tr id="row_852621" onmouseover="$('syn_852621').show()" onmouseout="$('syn_852621').hide()">
<td style="text-align: right">
	<span id="syn_852621" style="display: none">
		<a href="http://krakken.themezoom.com/keywords/1959811/serp" target="_new"><img alt="Page_white_world" src="/images/icons/page_white_world.png?1318458599" title="Search Engine Results Page" /></a>

	</span>
	<input name="syns[852621]" type="hidden" value="0" /><input id="syns_852621" name="syns[852621]" type="checkbox" value="1" />
</td>
<td>ppi claim</td>
</tr><tr id="row_852622" onmouseover="$('syn_852622').show()" onmouseout="$('syn_852622').hide()">
<td style="text-align: right">
	<span id="syn_852622" style="display: none">
		<a href="http://krakken.themezoom.com/keywords/1008156/serp" target="_new"><img alt="Page_white_world" src="/images/icons/page_white_world.png?1318458599" title="Search Engine Results Page" /></a>
	</span>

	<input name="syns[852622]" type="hidden" value="0" /><input id="syns_852622" name="syns[852622]" type="checkbox" value="1" />
</td>
<td>claims</td>
</tr><tr id="row_852623" onmouseover="$('syn_852623').show()" onmouseout="$('syn_852623').hide()">
<td style="text-align: right">
	<span id="syn_852623" style="display: none">
		<a href="http://krakken.themezoom.com/keywords/3711777/serp" target="_new"><img alt="Page_white_world" src="/images/icons/page_white_world.png?1318458599" title="Search Engine Results Page" /></a>
	</span>
	<input name="syns[852623]" type="hidden" value="0" /><input id="syns_852623" name="syns[852623]" type="checkbox" value="1" />

</td>
<td>ppiclaims</td>
</tr><tr id="row_852624" onmouseover="$('syn_852624').show()" onmouseout="$('syn_852624').hide()">
<td style="text-align: right">
	<span id="syn_852624" style="display: none">
		<a href="http://krakken.themezoom.com/keywords/2522068/serp" target="_new"><img alt="Page_white_world" src="/images/icons/page_white_world.png?1318458599" title="Search Engine Results Page" /></a>
	</span>
	<input name="syns[852624]" type="hidden" value="0" /><input id="syns_852624" name="syns[852624]" type="checkbox" value="1" />
</td>

<td>ppiclaim</td>
</tr><tr id="row_852625" onmouseover="$('syn_852625').show()" onmouseout="$('syn_852625').hide()">
<td style="text-align: right">
	<span id="syn_852625" style="display: none">
		<a href="http://krakken.themezoom.com/keywords/2520799/serp" target="_new"><img alt="Page_white_world" src="/images/icons/page_white_world.png?1318458599" title="Search Engine Results Page" /></a>
	</span>
	<input name="syns[852625]" type="hidden" value="0" /><input id="syns_852625" name="syns[852625]" type="checkbox" value="1" />
</td>
<td>ppi claims</td>

</tr>

</table>
<div style="float: left">
	<input name="commit" type="submit" value="Delete Selected" />
	<img alt="" id="delete_indicator" src="/images/spinner.gif?1318458599" style="display: none" />
</div>
</form>
<div id="synonym-add">
	<form action="/theme_clusters/24864/themes/81526/synonyms" id="add_syn_form" method="post" onsubmit="new Ajax.Request('/theme_clusters/24864/themes/81526/synonyms', {asynchronous:true, evalScripts:true, onLoading:function(request){$('indicator').show();}, onSuccess:function(request){$('keyword_keyword').value='';$('indicator').hide();}, parameters:Form.serialize(this)}); return false;"><div style="margin:0;padding:0;display:inline"><input name="authenticity_token" type="hidden" value="Siu9Bq9UhHpIv4qP1g+u8nk3VnncLnlKleft9DcYDCY=" /></div>

		<img alt="" id="indicator" src="/images/spinner.gif?1318458599" style="display: none" />
		<input id="keyword_keyword" name="keyword[keyword]" size="16" type="text" /> 
		<input name="commit" type="submit" value="Add" />
	</form>
</div>
<br clear="all" />
<hr/>
<div style="font-size: 1.2em; margin-left: auto; margin-right: auto; text-align: center; width: 100%">
	<a href="http://krakken.themezoom.com/theme_clusters/24864/themes/81526/synonym_drill">Continue</a>  

	<a href="http://krakken.themezoom.com/theme_clusters/24864/themes/81526" onclick="if (confirm('Are you sure you wish to cancel? This will delete this theme.')) { var f = document.createElement('form'); f.style.display = 'none'; this.parentNode.appendChild(f); f.method = 'POST'; f.action = this.href;var m = document.createElement('input'); m.setAttribute('type', 'hidden'); m.setAttribute('name', '_method'); m.setAttribute('value', 'delete'); f.appendChild(m);var s = document.createElement('input'); s.setAttribute('type', 'hidden'); s.setAttribute('name', 'authenticity_token'); s.setAttribute('value', 'Siu9Bq9UhHpIv4qP1g+u8nk3VnncLnlKleft9DcYDCY='); f.appendChild(s);f.submit(); };return false;">Cancel</a>
</div>
</div>
<br/>



	<!-- FOOTER -->
	<div id="footer">
	Created by: <a href="http://www.themezoom.com" title="Built by Theme Zoom">Theme Zoom</a>

	</div>
</div>
</div>
</body>
</html>

 

I want all check boxes ticked regardless of how many there are.

Edited by mdc101
Link to post
Share on other sites
Guest michelsmith

Hi,

 

This function simply iterates through frames to ensure all checkboxes in all frames get checked. An important bit of brute force when dealing with a problem like mine, with MSN adCenter, where my first attempt failed because of frames trickiness.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...