Solved

Passing checkbox results to Juitter

Posted on 2011-03-16
2
157 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 108

Accepted Solution

by:
Ray Paseur earned 250 total points
Comment Utility
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
Comment Utility
The suggestion pointed me in the right direction, but I then used a completely different desing of page anyway
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Showing your events from Google Calendar in Google Maps Why? I travel all week and I thought it would be ideal if staff in office knew where I was based on my calendar. (OK real reason: my son wanted to see where I would be working, and I thoug…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
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 …

744 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now