?
Solved

Passing checkbox results to Juitter

Posted on 2011-03-16
2
Medium Priority
?
174 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 111

Accepted Solution

by:
Ray Paseur earned 750 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
There are times when I have encountered the need to decompress a response from a PHP request. This is how it's done, but you must have control of the request and you can set the Accept-Encoding header.
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses

800 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