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
Solved

Passing checkbox results to Juitter

Posted on 2011-03-16
2
166 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
2 Comments
 
LVL 109

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
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…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

839 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