Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 14 of 14
  1. #1
    New Coder
    Join Date
    Apr 2009
    Posts
    17
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Post form with XMLHTTPRequest Help!

    Help, I am one step away from finishing this thing and it is driving me nuts!

    I have a google location map that plots meetings from an SQL database. It works great when I click my "Show Markers" button.

    I also have three drop down menus that filter the database. This also works because I can see the XML file it generates when I click the "filter" button.

    Problem is when I click the filter button it POSTS my form and takes me away from the page. I need the POST to happen and then the "showmarkers" function run right after it.

    I think I need to use AJAX and XMLHTTPRequest but I cannot get it to work for the life of me. Can anyone please help me out or give me another idea of how to do this?

    Here is my site: http://mycwebdesign.com/meetings.php

    Here is the xml.php file that the post goes to:
    PHP Code:
    <?php

    header
    ("Content-type: text/xml");

    $host "mycmeetings.db.8879570.hostedresource.com";
    $user "mycmeetings";
    $pass "Meetings36!";
    $database "mycmeetings";

    $linkID mysql_connect($host$user$pass) or die("Could not connect to host.");
    mysql_select_db($database$linkID) or die("Could not find database.");


    $whereClauses = array();
    if (! empty(
    $_POST['Meeting_Type'])) $whereClauses[] ="Meeting_Type='".mysql_real_escape_string($_POST['Meeting_Type'])."'";
    if (! empty(
    $_POST['Day_of_Meeting'])) $whereClauses[] ="Day_of_Meeting='".mysql_real_escape_string($_POST['Day_of_Meeting'])."'";
    if (! empty(
    $_POST['Time_of_Meeting'])) $whereClauses[] ="Time_of_Meeting='".mysql_real_escape_string($_POST['Time_of_Meeting'])."'";
    $where '';
    if (
    count($whereClauses) > 0) { $where ' WHERE '.implode(' AND ',$whereClauses); }
    $resultID mysql_query("SELECT * FROM meetings".$where);

    $xml_output "<?xml version=\"1.0\"?>\n";
    $xml_output .= "<markers>\n";

    for(
    $x $x mysql_num_rows($resultID) ; $x++){
        
    $row mysql_fetch_assoc($resultID);
        
    $xml_output .= "<marker>\n";
        
    $xml_output .= "<name>" $row['Meeting_Name'] . "</name>\n";
        
    $xml_output .= "<address>" $row['Address'] . "</address>\n";
        
    $xml_output .= "<address2>" $row['Address2'] . "</address2>\n";
        
    $xml_output .= "<Meeting_Type>" $row['Meeting_Type'] . "</Meeting_Type>\n";
        
    $xml_output .= "<Time_of_Meeting>" $row['Time_of_Meeting'] . "</Time_of_Meeting>\n";
        
    $xml_output .= "<Day_of_Meeting>" $row['Day_of_Meeting'] . "</Day_of_Meeting>\n";
        
    $xml_output .= "<Open_Meeting>" $row['Open_Meeting'] . "</Open_Meeting>\n";
        
    $xml_output .= "<Wheelchair>" $row['Wheelchair'] . "</Wheelchair>\n";
        
    $xml_output .= "<ASL>" $row['ASL'] . "</ASL>\n";
        
    $xml_output .= "<Comments>" $row['Comments'] . "</Comments>\n";
        
    $xml_output .= "<lat>" $row['Latitude'] . "</lat>\n";
        
    $xml_output .= "<lng>" $row['Longitude'] . "</lng>\n";
        
    $xml_output .= "</marker>\n";
    }

    $xml_output .= "</markers>";

    echo 
    $xml_output;

    ?>
    And here is the javascript for the markers file that plots the xml file that the xml.php file generates:

    Code:
    $(document).ready(function() {
      $("#map").css({
    		height: 500,
    		width: 600
    	});
    	var myLatLng = new google.maps.LatLng(43.653823, -79.382843);
      MYMAP.init('#map', myLatLng, 11);
    
      $("#showmarkers").click(function(e){
    		MYMAP.placeMarkers('include/xml.php');
      });
    });
    
    var MYMAP = {
      map: null,
    	bounds: null
    }
    
    MYMAP.init = function(selector, latLng, zoom) {
      var myOptions = {
        zoom:zoom,
        center: latLng,
        mapTypeId: google.maps.MapTypeId.ROADMAP
      }
      this.map = new google.maps.Map($(selector)[0], myOptions);
    	this.bounds = new google.maps.LatLngBounds();
    }
    
    // Deletes all markers in the array by removing references to them.
          function deleteOverlays() {
            clearOverlays();
            placemarkers = [];
          }
    
    MYMAP.placeMarkers = function(filename) {
    	$.get(filename, function(xml){
    		$(xml).find("marker").each(function(){
    			var name = $(this).find('name').text();
    			var address = $(this).find('address').text();
    			var address2 = $(this).find('address2').text();
    			var Meeting_Type = $(this).find('Meeting_Type').text();
    			var Time_of_Meeting = $(this).find('Time_of_Meeting').text();
    			var Day_of_Meeting = $(this).find('Day_of_Meeting').text();
    			var Open_Meeting = $(this).find('Open_Meeting').text();
    			var Wheelchair = $(this).find('Wheelchair').text();
    			var ASL = $(this).find('ASL').text();
    			var Comments = $(this).find('Comments').text();
    			
    			// create a new LatLng point for the marker
    			var lat = $(this).find('lat').text();
    			var lng = $(this).find('lng').text();
    			var point = new google.maps.LatLng(parseFloat(lat),parseFloat(lng));
    			
    			// extend the bounds to include the new point
    			MYMAP.bounds.extend(point);
    			
    			var marker = new google.maps.Marker({
    				position: point,
    				map: MYMAP.map
    			});
    			
    			var infoWindow = new google.maps.InfoWindow();
    			var html='<b><u>'+name+'</b></u><br />'+address2+'<br />'+address+'<br />'+Meeting_Type+',&nbsp'+Time_of_Meeting+',&nbsp'+Day_of_Meeting+'<br />Open Meeting:&nbsp'+Open_Meeting+'<br />Wheelchair Accessible:&nbsp'+Wheelchair+'<br />ASL:&nbsp'+ASL+'<br />Comments:&nbsp'+Comments;
    			google.maps.event.addListener(marker, 'click', function() {
    				infoWindow.setContent(html);
    				infoWindow.open(MYMAP.map, marker);
    			});
    			MYMAP.map.fitBounds(MYMAP.bounds);
    		});
    	});
    }

  • #2
    Senior Coder xelawho's Avatar
    Join Date
    Nov 2010
    Posts
    2,772
    Thanks
    55
    Thanked 518 Times in 515 Posts
    1. wouldn't you be better off downloading all the marker info in one hit, storing them in an array then hiding/showing them based on user interaction?

    2. there's a showmarkers function?!? where?

  • #3
    New Coder
    Join Date
    Apr 2009
    Posts
    17
    Thanks
    1
    Thanked 0 Times in 0 Posts
    The showmarkers function is called here (I took this from the source code of the page). It is a function in the Javascript:

    <input type="button" id="showmarkers" value="Show Markers"/>

    Javascript lines 9 & 10:

    Code:
      $("#showmarkers").click(function(e){
    		MYMAP.placeMarkers('include/xml.php');
    I would love it to all be one button click. However, I am not sure where to start this. It took me so long to get these individual pieces working. I was hoping I could eventually tie them together in one motion.

    I am now thinking maybe jquery to post the form without refreshing when each drop down is selected?? Still, that is also above my head.

  • #4
    Senior Coder xelawho's Avatar
    Join Date
    Nov 2010
    Posts
    2,772
    Thanks
    55
    Thanked 518 Times in 515 Posts
    I don't mean to nitpick, but that is an anonymous function fired by the onclick of the button with the id "showmarkers".

    from what I can tell (and correct me if I'm wrong) hitting that button shows all the markers you have. so all you need to do is add some more properties to the object like this:
    Code:
    var marker = new google.maps.Marker({
    				position: point,
    day:Day_of_Meeting,
    type:Meeting_Type,				
    map: MYMAP.map
    			});
    push them onto an array:
    Code:
    mymarkers.push(marker)
    (you will need to initialize the array in the global scope beforehand):
    Code:
    mymarkers=[]
    and then when someone selects a dropdown option you can loop through all your markers checking the property that they have for day or type or whatever against the selection that was made, hide the ones that don't match and show the ones that do.

    much easier than all those trips to the server imho

  • Users who have thanked xelawho for this post:

    mikemcg36 (05-14-2012)

  • #5
    New Coder
    Join Date
    Apr 2009
    Posts
    17
    Thanks
    1
    Thanked 0 Times in 0 Posts
    You know, I think you are on to something here. A couple more questions (and please forgive me, I consider myself an absolute beginner at Javascript).

    1. I already have an array called placemarkers. Can I just use this array and loop through this one? The function looks like this:

    Code:
    placemarkers = [];
    
    MYMAP.placeMarkers = function(filename) {
    	$.get(filename, function(xml){
    		$(xml).find("marker").each(function(){
    			var name = $(this).find('name').text();
    			var address = $(this).find('address').text();
    			var address2 = $(this).find('address2').text();
    			var Meeting_Type = $(this).find('Meeting_Type').text();
    			var Time_of_Meeting = $(this).find('Time_of_Meeting').text();
    			var Day_of_Meeting = $(this).find('Day_of_Meeting').text();
    			var Open_Meeting = $(this).find('Open_Meeting').text();
    			var Wheelchair = $(this).find('Wheelchair').text();
    			var ASL = $(this).find('ASL').text();
    			var Comments = $(this).find('Comments').text();
    			
    			// create a new LatLng point for the marker
    			var lat = $(this).find('lat').text();
    			var lng = $(this).find('lng').text();
    			var point = new google.maps.LatLng(parseFloat(lat),parseFloat(lng));
    			
    			// extend the bounds to include the new point
    			MYMAP.bounds.extend(point);
    But instead of

    Code:
    var Meeting_Type = $(this).find('Meeting_Type').text();
    It would be where Meeting_Type = selected value? Not sure how to code that. Or would I keep this array as is, and create a new one.

    I am just not sure how the javascript knows what value is selected in the dropdown.

  • #6
    Senior Coder xelawho's Avatar
    Join Date
    Nov 2010
    Posts
    2,772
    Thanks
    55
    Thanked 518 Times in 515 Posts
    first things first. the only placemarkers = [];
    that I can find in your code is inside the deleteOverlays function (which, btw, it seems to me never gets called - again, correct me if I'm wrong) and I'm guessing that function was written for when there was an array with that name and it basically clears out the array.

    but you need to initialise it in the global scope - outside of any function. if it were written like you say it is, ie,
    Code:
    placemarkers = [];
    MYMAP.placeMarkers = function(filename) {
    //etc
    it should be fine. having set that up, like I say you need to start pushing objects onto the array, as they get made, towards the end of the loop. all that your showmarkers onclick does now is read through the xml and dump all of those markers onto the map - there is no array of markers and so no way for you to manipulate them.

    *THEN* once you populate your array, you can set up an onchange event for your dropdowns that fires a function that loops through your marker array checking that the value selected is the same as the marker property - if it is, the marker gets shown, if not, it gets hidden.

    that would look something like this:
    Code:
    html:
    <select name="Time_of_Meeting" onchange="selTime('this.value')">
    <option value="">--</option>
    <option value='Early'>Early</option>
    <option value='Late'>Late</option>
    <option value='All'>All</option>
    </select>
    
    js:
    function selTime(val){
    if(val=="All"){
    for (var i = 0; i < placemarkers.length; i++) {
    placemarkers[i].setMap(MYMAP.map)
    } else {
    for (var i = 0; i < placemarkers.length; i++) {
    placemarkers[i].setMap(placemarkers[i].time=val?MYMAP.map:null)
    	}
    }
    of course then you have the problem of filtering with multiple selections, but that's not such a biggie - if the above seems like a good approach, I'd say what I've suggested so far might keep you busy for a while - let me know if you run into problems

  • #7
    Senior Coder xelawho's Avatar
    Join Date
    Nov 2010
    Posts
    2,772
    Thanks
    55
    Thanked 518 Times in 515 Posts
    don't worry - silly idea
    Last edited by xelawho; 05-09-2012 at 02:44 AM. Reason: silly idea

  • #8
    New Coder
    Join Date
    Apr 2009
    Posts
    17
    Thanks
    1
    Thanked 0 Times in 0 Posts
    OK,

    I know I am switching gears here, but I got lost in your suggestion, sorry. Here is a new idea.

    Since I am already executing a GET request, and passing 'include/xml.php' as the target. Can I just encode the name value pairs as querystring parameters, eg.

    include/xml.php?filter1=val&filter2=val&filter3=val

    Here is what I started as far as getting the values from the dropdown, now can I filter the query with these as filters?

    Code:
    var Meeting_Type = document.getElementById("Meeting_Type");
    var type = Meeting_Type.options[Meeting_Type.selectedIndex].text;
    	
    var Day_of_Meeting = document.getElementById("Day_of_Meeting");
    var day = Day_of_Meeting.options[Day_of_Meeting.selectedIndex].text;
    	
    var Time_of_Meeting = document.getElementById("Time_of_Meeting");
    var time = Time_of_Meeting.options[Time_of_Meeting.selectedIndex].text;
    	
    $("#showmarkers").click(function(e){
    MYMAP.placeMarkers('include/xml.php');//filts here somehow??

  • #9
    Senior Coder xelawho's Avatar
    Join Date
    Nov 2010
    Posts
    2,772
    Thanks
    55
    Thanked 518 Times in 515 Posts
    I guess so - a query string is a fairly simple thing to make.

    But if you do go down that road, here's your next problem: the users says "ok, those are the meetings on Monday - what's happening on Wednesday?"

    so they change the day to wednesday and you have to do one of two things:
    - refresh the page
    - clear out the monday markers before showing the wednesday ones.

    or else you'll end up with monday and wednesday meetings on the map at the same time, which isn't much of a filter.

    so, discarding refreshing the page (because that would just be silly), how do you clear the markers from the map?

    you push them onto an array as they get created and loop through that array every time a new filter is selected, hiding the markers that have been shown.

    and this I guess is my point - you're have to put your markers into an array at some point, so being that they will be there and ready to use, you can do all of the filtering within the javascript and only ever make one trip to the server.

    Sorry if I'm making this sound more complicated than it is (it's really not). I see that you have initiated a placemarkers array already and that you have added the type day and time properties to your marker object. All you have to do now is add this line:
    Code:
    placemarkers.push(marker)
    after your marker object is created and you have all your markers sitting in an array waiting to be shown or hidden depending on the dropdown selection, with a function something like this:
    Code:
    function filterMarks(){
    var Meeting_Type = document.getElementById("Meeting_Type");
    var type = Meeting_Type.options[Meeting_Type.selectedIndex].text;
    var Day_of_Meeting = document.getElementById("Day_of_Meeting");
    var day = Day_of_Meeting.options[Day_of_Meeting.selectedIndex].text;
    var Time_of_Meeting = document.getElementById("Time_of_Meeting");
    var time = Time_of_Meeting.options[Time_of_Meeting.selectedIndex].text;
    
    for (var i = 0; i < placemarkers.length; i++) {
    if (placemarkers[i].type==type&&placemarkers[i].day==daye&&placemarkers[i].time==time){
    placemarkers[i].setMap(MYMAP.map)
    }else{
    placemarkers[i].setMap(null)
    			}
    		}
    }
    Are you sure you don't want to try it out?

  • #10
    New Coder
    Join Date
    Apr 2009
    Posts
    17
    Thanks
    1
    Thanked 0 Times in 0 Posts
    OK, I'm all for doing it the way you have suggested. In fact I did an alert for each variable to make sure the Javascript was correctly picking up the dropdown variables. And they are. Great.

    But, I am having trouble with the array. I changed the name of the array so it did not get confused with the function called placemarkers. I can not figure out which part to push to the array. It seems that marker is "undefined".

    I just want to make sure I get some contents into my array before I loop through for the filter.

    Here is my code right now:

    Code:
    $(document).ready(function() {
      $("#map").css({
    		height: 500,
    		width: 600
    	});
    	var myLatLng = new google.maps.LatLng(43.653823, -79.382843);
      	MYMAP.init('#map', myLatLng, 11);
    	
      	$("#showmarkers").click(function(e){
    		MYMAP.placeMarkers('include/xml.php');
      	});
    });
    
    var MYMAP = {
    	map: null,
    	bounds: null
    }
    
    MYMAP.init = function(selector, latLng, zoom) {
    	var myOptions = {
    		zoom:zoom,
    		center: latLng,
    		mapTypeId: google.maps.MapTypeId.ROADMAP
    	}
      	this.map = new google.maps.Map($(selector)[0], myOptions);
    	this.bounds = new google.maps.LatLngBounds();
    }
    
    var markerfilter = new Array();
    MYMAP.placeMarkers = function(filename) {
    	$.get(filename, function(xml){
    		$(xml).find("marker").each(function(){
    			var name = $(this).find('name').text();
    			var address = $(this).find('address').text();
    			var address2 = $(this).find('address2').text();
    			var Meeting_Type = $(this).find('Meeting_Type').text();
    			var Time_of_Meeting = $(this).find('Time_of_Meeting').text();
    			var Day_of_Meeting = $(this).find('Day_of_Meeting').text();
    			var Open_Meeting = $(this).find('Open_Meeting').text();
    			var Wheelchair = $(this).find('Wheelchair').text();
    			var ASL = $(this).find('ASL').text();
    			var Comments = $(this).find('Comments').text();
    			markerfilter.push(marker);
    			
    			var MeetingType = document.getElementById("Meeting_Type");
    			var type = MeetingType.options[MeetingType.selectedIndex].text;
    			var DayofMeeting = document.getElementById("Day_of_Meeting");
    			var day = DayofMeeting.options[DayofMeeting.selectedIndex].text;
    			var TimeofMeeting = document.getElementById("Time_of_Meeting");
    			var time = TimeofMeeting.options[TimeofMeeting.selectedIndex].text;
    			
    			// create a new LatLng point for the marker
    			var lat = $(this).find('lat').text();
    			var lng = $(this).find('lng').text();
    			var point = new google.maps.LatLng(parseFloat(lat),parseFloat(lng));
    			
    			// extend the bounds to include the new point
    			MYMAP.bounds.extend(point);
    			
    			var marker = new google.maps.Marker({
    				position: point,
    				map: MYMAP.map
    			});
    			
    			var infoWindow = new google.maps.InfoWindow();
    			var html='<b><u>'+name+'</b></u><br />'+address2+'<br />'+address+'<br />'+Meeting_Type+',&nbsp'+Time_of_Meeting+',&nbsp'+Day_of_Meeting+'<br />Open Meeting:&nbsp'+Open_Meeting+'<br />Wheelchair Accessible:&nbsp'+Wheelchair+'<br />ASL:&nbsp'+ASL+'<br />Comments:&nbsp'+Comments;
    			google.maps.event.addListener(marker, 'click', function() {
    				infoWindow.setContent(html);
    				infoWindow.open(MYMAP.map, marker);
    			});
    			MYMAP.map.fitBounds(MYMAP.bounds);
    		});
    	});
    }
    Any ideas? I am not sure there is currently an array storing all those values coming out of the xml file.

    Thank you.

  • #11
    New Coder
    Join Date
    Apr 2009
    Posts
    17
    Thanks
    1
    Thanked 0 Times in 0 Posts
    I have the array created. Now I am trying to figure out how to loop through it like you say.

    Here is the code so far:

    Code:
    $(document).ready(function() {
      $("#map").css({
    		height: 500,
    		width: 600
    	});
    	var myLatLng = new google.maps.LatLng(43.653823, -79.382843);
      	MYMAP.init('#map', myLatLng, 11);
    	
      	$("#showmarkers").click(function(e){
    		MYMAP.placeMarkers('include/xml.php');
      	});
    });
    
    var MYMAP = {
    	map: null,
    	bounds: null
    }
    
    MYMAP.init = function(selector, latLng, zoom) {
    	var myOptions = {
    		zoom:zoom,
    		center: latLng,
    		mapTypeId: google.maps.MapTypeId.ROADMAP
    	}
      	this.map = new google.maps.Map($(selector)[0], myOptions);
    	this.bounds = new google.maps.LatLngBounds();
    }
    
    var markerfilter = [];
    MYMAP.placeMarkers = function(filename) {
    	$.get(filename, function(xml){
    		$(xml).find("marker").each(function(){
    			var name = $(this).find('name').text();
    			var address = $(this).find('address').text();
    			var address2 = $(this).find('address2').text();
    			var Meeting_Type = $(this).find('Meeting_Type').text();
    			var Time_of_Meeting = $(this).find('Time_of_Meeting').text();
    			var Day_of_Meeting = $(this).find('Day_of_Meeting').text();
    			var Open_Meeting = $(this).find('Open_Meeting').text();
    			var Wheelchair = $(this).find('Wheelchair').text();
    			var ASL = $(this).find('ASL').text();
    			var Comments = $(this).find('Comments').text();
    			// create a new LatLng point for the marker
    			var lat = $(this).find('lat').text();
    			var lng = $(this).find('lng').text();
    			var point = new google.maps.LatLng(parseFloat(lat),parseFloat(lng));
    			
    			var markerdata = {};
    			$(this).children().each(function() {
    				markerdata[this.tagName] = $(this).text();
    			});
    			markerfilter.push(markerdata);
    			
    			var MeetingType = document.getElementById("Meeting_Type");
    			var type = MeetingType.options[MeetingType.selectedIndex].text;
    			var DayofMeeting = document.getElementById("Day_of_Meeting");
    			var day = DayofMeeting.options[DayofMeeting.selectedIndex].text;
    			var TimeofMeeting = document.getElementById("Time_of_Meeting");
    			var time = TimeofMeeting.options[TimeofMeeting.selectedIndex].text;
    			
    			// extend the bounds to include the new point
    			MYMAP.bounds.extend(point);
    			
    			var marker = new google.maps.Marker({
    				position: point,
    				map: MYMAP.map
    			});
    			
    			var infoWindow = new google.maps.InfoWindow();
    			var html='<b><u>'+name+'</b></u><br />'+address2+'<br />'+address+'<br />'+Meeting_Type+',&nbsp'+Time_of_Meeting+',&nbsp'+Day_of_Meeting+'<br />Open Meeting:&nbsp'+Open_Meeting+'<br />Wheelchair Accessible:&nbsp'+Wheelchair+'<br />ASL:&nbsp'+ASL+'<br />Comments:&nbsp'+Comments;
    			google.maps.event.addListener(marker, 'click', function() {
    				infoWindow.setContent(html);
    				infoWindow.open(MYMAP.map, marker);
    			});
    			MYMAP.map.fitBounds(MYMAP.bounds);
    		});
    	});
    	console.log(markerfilter);
    }

  • #12
    Senior Coder xelawho's Avatar
    Join Date
    Nov 2010
    Posts
    2,772
    Thanks
    55
    Thanked 518 Times in 515 Posts
    ... but you're doing it half the way I suggested and half the way you were talking about before.

    if you want to push a marker onto the markerfilter array you will have to do that after the marker object has been created, which is this bit:

    Code:
    var marker = new google.maps.Marker({
    				position: point,
    				map: MYMAP.map
    			});
    and if you are going to do the filtering once the markers have been put onto the array, then that will have to happen outside of the loop that downloads them from your server (and your marker object will need to store all the relevant filterable properties). otherwise we're back to downloading the data every time someone wants to filter. so make a button (or whatever) that calls a function like the filterMarks one that I showed you.

    I don't care really - you can do it either way but you really have to decide.

  • #13
    New Coder
    Join Date
    Apr 2009
    Posts
    17
    Thanks
    1
    Thanked 0 Times in 0 Posts
    I must apologize. It seems you answered my question around post #4. I was just not following closely enough your clues. I now have the marker pushed into an array and I loop through and match the values and it works. YAY!

    But, now for the multiple selects. Right now, all 3 dropdown values must match. How to account for a null value in 1, 2, or 3 dropdown menus. Here is what I have right now:

    Code:
    var marker = new google.maps.Marker({
    				position: point,
    				type:Meeting_Type,
    				day:Day_of_Meeting,
    				time:Time_of_Meeting,
    				map: MYMAP.map
    			});
    			mymarkers.push(marker);
    			
    			for (var i = 0; i <mymarkers.length; i++) {
    				if (mymarkers[i].type==type&&mymarkers[i].day==day&&mymarkers[i].time==time){
    					mymarkers[i].setMap(MYMAP.map);
    				}else{
    					mymarkers[i].setMap(null);
    				}
    			}
    Thank you so much for your help with this. I most certainly would not have done it without you.

  • #14
    New Coder
    Join Date
    Apr 2009
    Posts
    17
    Thanks
    1
    Thanked 0 Times in 0 Posts
    And here is the answer to multiple selects. Here is a working example of my project (now complete!). http://mycwebdesign.com/meetings.phpThanks again. You have been a HUGE help.

    Code:
    if ((mymarkers[i].type==type || type=='--') &&
        (mymarkers[i].day==day   || day =='--') &&
        (mymarkers[i].time==time || time=='--')) {


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •