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

Populating A Div based on Combobox

Posted on 2013-05-12
Last Modified: 2013-05-13
I am trying to populate a div "BigPlace" based on  a selection of a combo box.
This is the page...

This is the Javascript
            var Alpha = $(this).val();
            type: "POST",	
            url: "place_search.php",
            data: {"Alpha": Alpha},
            cache: false,
            success: function (html) {

Open in new window

This is the place_search.php
<div id="BigPlace">
$Alpha=$_POST['Alpha']= mysql_real_escape_string($_POST['Alpha']);
		<td width="81" colspan="1" rowspan="3" bgcolor="#FFFFFF">&nbsp;</td>
		<td width="123" rowspan="3" align="left" valign="top" bgcolor="#FFFFFF">
		<?php switch ($Alpha)
					case "1":
						$Alpha_str = print ("<IMG SRC =http://www.menuhead.com/Images/Ratings/APlus.jpg>");
					case "2":
						$Alpha_str = print ("<IMG SRC =http://www.menuhead.com/Images/Ratings/A.jpg>");
		 			case "3":
						$Alpha_str = print ("<IMG SRC =http://www.menuhead.com/Images/Ratings/AMinus.jpg>");
					case "4":
						$Alpha_str = print ("<IMG SRC =http://www.menuhead.com/Images/Ratings/BPlus.jpg>");
					case "5":
						$Alpha_str = print ("<IMG SRC =http://www.menuhead.com/Images/Ratings/B.jpg>");
          <td bgcolor="#FFFFFF">&nbsp;</td>

Open in new window

Question by:DS928
  • 2
  • 2
LVL 58

Expert Comment

ID: 39159853
Cannot see any combobox.
I'm not sure what your problem is? What is supposed to be happening?

Author Comment

ID: 39159899
The slider with the green squares is the select box, when you click on either one ir the ither then the content un the div below should change
LVL 58

Accepted Solution

Gary earned 500 total points
ID: 39159904
"NetworkError: 404 Not Found - http://www.menuhead.com/place_search.php"

Author Comment

ID: 39159926
Could very well be it.  Will check in about three hours when U am back in my computer.  Thank you

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

Suggested Solutions

Title # Comments Views Activity
Get a subdirectory name from a url 5 27
XML extra information 8 29
Log in through ID 5 17
Force PDF to open inline as opposed to dowload 16 22
Introduction A frequently asked question goes something like this:  "I am running a long process in the background and I want to alert my client when the process finishes.  How can I send a message to the browser?"  Unfortunately, the short answer …
I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

856 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