Solved

Passing checkbox results to Juitter

Posted on 2011-03-16
2
167 Views
Last Modified: 2012-06-21
I'm using Juitter to place some twitter feeds on a webpage. http://juitter.com/
I currently have it working and can manually set feeds to view in the system.js file, these are simply the twitter usernames seperated by commas
I would like to make a series of checkboxes that would allow preselected feeds to be added or removed from the list.
I've managed to make one checkbox that limits the feeds down to that one (from the multiple set in system.js) However I can't work out the syntax for multiple checkboxes (especially as the result needs to be comma separated)

The code I've attached seems to behave a bit weirdly. when it loads it has the full list of feeds specified in system.js. If I tick the Travel South Yorkshire checkbox it limits it to the Travel South Yorkshire feed. If I untick it still does the same (I can kinda understand that) but if I completely reload the page and then tick the Department for Transport checkbox it still only displays the Travel South Yorkshire feed!
<HTML>
	<HEAD>
		<script type="text/javascript" src="js/jquery-1.3.1.min.js"></script>
		<script type="text/javascript" src="js/jquery.juitter.js"></script>
		<script type="text/javascript" src="js/system.js"></script>
	</HEAD>
	<BODY>
		<form method="post" id="juitterSearch" action="">
		<p>Travel South Yorkshire: <input type="checkbox" name="TravelSYorks" class="juitterSearch" value="TravelSYorks" /></p>
		<p>Department for Transport: <input type="checkbox" name="transportgovuk" class="juitterSearch" value="transportgovuk" /></p>
		<input type="submit" value="Submit" />
		</form>
		<div id="juitterContainer"></div> 
  	</BODY>
</HTML>

Open in new window

0
Comment
Question by:SYPTE-IT
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 110

Accepted Solution

by:
Ray Paseur earned 250 total points
ID: 35379790
Try using var_dump() to print out the contents of the $_POST array and see if you are receiving the data you expected.
0
 
LVL 1

Author Closing Comment

by:SYPTE-IT
ID: 35414736
The suggestion pointed me in the right direction, but I then used a completely different desing of page anyway
0

Featured Post

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question