Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Passing checkbox results to Juitter

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
Without even knowing it, most of us are using web applications on a daily basis.  In fact, Gmail and Yahoo email, Twitter, Facebook, and eBay are used by most of us daily—and they are web applications. We generally confuse these web applications to…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
Suggested Courses

610 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