Jump to content

sepoto

Members
  • Content Count

    254
  • Joined

  • Last visited

Everything posted by sepoto

  1. So essentially I had to do things with jQuery. I am just wondering if there are any thoughts on how CSS seems to handle these elements... What I ended up with I think is good so I may as well share the solution... <?phprequire_once('includes/i_rsslib.php');require_once('functions/f_lib.php');?><!DOCTYPE html><html><head><title>Daily Sports Guide</title><link type="text/css" rel="stylesheet" href="style/style.css"><link type="text/css" rel="stylesheet" href="style/suckerfish.css"><script type="text/javascript" src="jquery/jquery-1.8.0.js"&g
  2. <?phprequire_once('includes/i_rsslib.php');require_once('functions/f_lib.php');?><!DOCTYPE html><html><head><title>Daily Sports Guide</title><link type="text/css" rel="stylesheet" href="style/style.css"><link type="text/css" rel="stylesheet" href="style/suckerfish.css"></head><body><div id="wrapper"><?php require_once('includes/i_header.php'); ?> <div style='margin: 5px; padding: 5px; border: 1px solid white; height: auto; clear: both; overflow: hidden;'><div style='float: left; width: 48%; height: 100%; border
  3. As you say it: <div style='clear: both; margin: 5px; padding: 0px; border: 1px solid white;'><p style='color: white;'>Facebook comments area:</p></div> I greatly appreciate the patience. The clear property I am not very familiar with yet but I see how it can be very useful. Again thank you kindly. You did have the solution.
  4. So what I am really trying to understand is why I see the one pixel solid white border for the facebook comments div only on the left, right and bottom. The top border is blocked out for some reason. I have tried numerous times to apply a top margin to the facebook comments div. I tried also using a few <br>'s. Seemingly nothing will move the facebook comments div into position where I can see the border on all four sides. I've ruled out margins and paddings for the two container objects of columns one and two above and also for col1 and col2 themselves.
  5. <?phprequire_once('includes/i_rsslib.php');require_once('functions/f_lib.php');?><!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>Daily Sports Guide</title><link type="text/css" rel="stylesheet" href="style/style.css"><link type="text/css" rel="stylesheet" href="style/suckerfish.css"></head><body> <div id="wrapper"> <?php require_once('includes/i_header.php'); ?> <!-- start columns left and right --><div id="container2"><div id="container1"> <di
  6. Indeed... Setting #wrapper { overflow: hidden; } and the border is behaving properly now. I will need to familiarize myself with this property and its workings. Thank you both for your prompt replies.
  7. http://dailysportsguide.com/prototype/index.php body { background-color: black; text-align: center; }img { border: none; margin: 0; padding: 0; }a:visited { color: white; } #wrapper { width: 800px; margin: 0px auto; color: white; background-color: red; border: 1px solid white; text-align: left; padding: 0px 0px 0px 0px; height: auto;} #header { margin: 0px; padding: 0px; width: 100%; height: 141px; }#hcolumnLeft { float: left; width: 300px; background-color: blue; margin: 0px; padding: 0px; color: white; height: 141px; }#hcolumnRight { float: right; margin: 0px; padding: 0px; color: white; ba
  8. <!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>Daily Sports Guide</title><link type="text/css" rel="stylesheet" href="style/style.css"><link type="text/css" rel="stylesheet" href="style/suckerfish.css"></head><body><div id="wrapper"><?php require_once('includes/i_header.php'); ?><p style='background-color: black; margin: 0px; padding: 0px;'>Daily Sports Guide</p></div></body></html> style.css body { background-color: black; text-align: c
  9. A great suggestion. I have started to wonder myself why I should be bothering with the complexities of XML. Perhaps I will build a .CSV directly to JSON. XML would be more fun though.
  10. Thank you Birbal! Those are excellent resources!
  11. It looks very complicated! Could I see some code that would pertain to my data? I am seeing how to load and save the file that is easy. What looks much harder is how would be the best way to encode my data.
  12. Not yet!
  13. I have some data in a flat file. These are the fields: nameaddressziplatlng A row of data might look something like: fishing hole #1, Catalina Island U.S., 90704, 33.3, 118.4 There are fifty rows of data. I am trying with PHP to encode this data into an XML file. The ultimate goal is that the data will be stored on the disk in XML format and when requested PHP will read the XML file and retrieve the data and put it into an array so I can encode the data in JSON and send it back off to JavaScript (AJAX). I'm very familiar with working with flat files and SQL however XML is a bit unfami
  14. It looks like the best example I have found is located here and uses specifically the jQuery UI library. It looks like some good code. http://jqueryui.com/demos/droppable/ It also looks like the function can be modified like this: drop: function(event, ui) { alert($(ui).attr("id") + " was dropped");}
  15. I am now familiar with the existence of the ".draggable()" function of jQuery. I am mulling over how I would integrate the dragging and dropping of an element into an event listener like this one: google.maps.event.addListener(myMap, 'click', function(myEvent){var myClickLatLng=myEvent.latLng;// now process myClickLatLng}); First I am wondering if the dragging and dropping of an element would constitute a 'click' and second if the click event is fired how am I to know which element was dropped? Again I thank all of you for your time and wisdom. I am hoping my post is in the right forum as
  16. I am trying to determine the meaning of "b.zipcode". I see a calculation is performed and it has something to do with "b.zipcode" but I don't know what all that fully means yet. In the last part of the code I see that "b.zipcode" is then referred to as just "b" which is slightly confusing to me although it looks like excellent code I need to understand it.
  17. <?php$dbh = new PDO('mysql:host=localhost;dbname=mydata', 'root', '**********'); $tLat = $_GET['tLat'];$tLng = $_GET['tLng']; foreach($dbh->query('select name, lat, lng from locations') as $row) { $main_arr[] = $row;} echo json_encode($main_arr); ?> So I have some code above which I am working on. I am thinking about what is the best way to handle this. I suppose I could develop a simple solution that just adds and subtracts from "$tLat" and "$tLng" and then use a "where" clause in the query but I am looking for a better way. I know that there are GIS functions built into MySQL tha
  18. LOL!!!!!!!!!!!!!!!!!!!! Thanks! Today will be a good day!
  19. I put your line in (with a minor edit ). The code runs with no errors in the console however there is no marker yet. This is a very vexing problem.
  20. This: var myLatLng = new google.maps.LatLng(obj[0][1], obj[0][2]); For some reason does not show the marker either. Those values started as floating point values in my MySQL database. They get retrieved and converted to a JSON array which is decoded into the array obj. What happens from there I don't know all the details yet. I just know that the constructor is not accepting them.
  21. I don't know what to cast them to or how. I would be really stoked to get some help out with this!
  22. // // // // // // // // Ajax returns from PHPxmlhttp.onreadystatechange=function() {if (xmlhttp.readyState==4 && xmlhttp.status==200){var obj = $.parseJSON(xmlhttp.responseText); var tLat = getCookie("tLat");var tLng = getCookie("tLng"); var options = { zoom: 4, center: new google.maps.LatLng(40.7257, -74.0047), mapTypeId: google.maps.MapTypeId.ROADMAP}; // Creating the map var map = new google.maps.Map(document.getElementById('map'), options); alert(obj[0][1]+','+obj[0][2]); //var myLatLng = new google.maps.LatLng(40.7257, -74.0047);var myLatLng = new google.maps.LatLng(String(obj[0]
  23. sepoto

    AJAX w/ JSON

    Accessing the array like this: $('#preview').text(obj[0].name); is one of the key factors I see now.
  24. sepoto

    AJAX w/ JSON

    xmlhttp.onreadystatechange=function() {if (xmlhttp.readyState==4 && xmlhttp.status==200){var obj = $.parseJSON(xmlhttp.responseText);$('#preview').text(xmlhttp.responseText);}} Some things about this are still unclear to me. I see that when I print the contents of 'xmlhttpd.responseText' I have an array that looks like this: [{"idlocations":"1","lat":"-84.3132","lng":"34.0399","name":"Buffalo Wild Wings"},{"idlocations":"2","lat":"-84.313","lng":"34.0419","name":"The Cooler (Family Skate Center)"},{"idlocations":"3","lat":"-84.2996","lng":"34.0441","name":"Autoindulgence Car Wash"}
×
×
  • Create New...