Jump to content

monkeytooth

Members
  • Posts

    1,129
  • Joined

  • Last visited

    Never

Posts posted by monkeytooth

  1. You know Im sure I can google this and find it, if.. I was looking for the right thing. But basically what I want is the ability to have my footer always be at the bottom unless the content spans lower than the screen. Lets just say for the sake of ease I have a rather simple Header, Content, Footer style template.

     

    Taking into mind that resolutions on everyones PC's are different, and there browsers are different and so on and so forth.. whats the best way to get my footer to only be at the bottom of the page when the content itself isn't filling the page lets say I've only got a couple lines of content on one page I dont want the footer to bounce up to match that. I do want a footer though.

  2. Im trying to figure out the best means of approaching having dynamically created elements expand when hovered over. I know JS will have a hand in handling the effect but that I'm not to concerned about so much as having the CSS back it up so it all positions correctly after things are said and done.

     

    I want without having to hardcode dozens of elements and have them hidden until trigged have a tooltip like thing I know I could just go grab some canned code and plug it in, but thats not particularly my style. Whats the best way to approach having an element in a matter of speaking float above another element but offset a little bit?

  3. Im trying to figure out the best means of approaching having dynamically created elements expand when hovered over. I know JS will have a hand in handling the effect but that I'm not to concerned about so much as having the CSS back it up so it all positions correctly after things are said and done. Now generally expanding an element I know is just height/width. But I want to have it so the element expands in its current spot but overlays the rest of the content, without effecting the content by pushing it one way or another. I hope that makes sense, best example I can think of off the top of my head is when you go to a code snippet site and when you mouse over the code shown. the element expands to show all the code while leaving everything else intact...

  4. Garmin, TomTom, and other GPS units are an option. However the overall need isn't cost effective, as the current design spec of the hardware I will be working around will have the GPS unit/transmitter/receiver whatever.. Built into a larger box. Where the physical GPS unit would either have an antenna that leads to the outside of the vehicle its in or be mounted outside of it somehow all around running back to the box. So its currently a search for cost effective yet efficient units that dump data in a way where someone can work around that output and then use that data to track milage, times in transit, speed, etc.. however maybe "dumping data" may be a poor means of saying it.. maybe something like if I ping the unit it sends some form of data to work with somewhere be it an xml file, db file, text, whatever.. where I can also use the same data for google maps api or similar.. This again is also projected to be built into a box that has its own built in wamp/lamp stack (that part is undecided) but none the less still self serving system.. it would be nice to find a GPS i can do that with but even nicer to find one that i can track remotely when the box isn't connected via wifi or something dummping the data it stores to a master remote system.

  5. Alright.. I guess to start this off I am looking to sometime in the near future start building a web based or browser based application that I want to build a part of the interface to be a gps module. this will be for a self hosted application likely on tablets or laptops where it will use the data for tracking information amongst other things. Any way most of the application is being handled in PHP, mySQL, jQuery. So with that my question is, is there any way to build a gps application with that as the core languages used. If it is possible, whats the best gps unit I can use? remember im not nessisarily looking for a fancy gps unit to do this with.. just a transmitter/reciever is fine so long as I can build software of my own around it, also is it actually possible to do this with something like php/jquery? or is this something I would have to go the route of maybe java to handle the hardware transactions of which I can tie php/jquery into that..

  6. lol, sorry I've had a long day.. So heres a visual representation

    Untitled-1.png

     

    What I believe to be happening is the Image that floats in a manner of speaking over my black bar drops below the bar when IE is in compatibility mode.

  7. The issue isn't newer browsers.. Its IE specific, which version I am not sure. I know however I have IE 9, I hit the compatibility button on it and it fails misserably I am just not sure which version of IE renders when you hit the button and even then once I find out, Im not sure I will know the proper way to handle that particular browser..

  8. http://www.codedatabase.net if you go there you will see what I am tryin to do. Which you will also see working however. It fails and not even remotely gracefully in older versions of IE. With that said is there some hack I can apply to the CSS or maybe throw something other css file out if an older IE is found that can resolve this problem I am having with older IE.

     

     

    #footer{
    position:fixed;
    z-index:950;
    margin:0 0 1px 0;
    padding:0;
    bottom:0;
    width:100%;
    height:35px;
    background-color:#333;
    }
    #footerWrap{margin:0 auto;padding:0;width:950px;height:128px;}
    #footerLeft{margin:0;padding:0;width:475px;height:128px;float:left;}
    #footerRight{margin:0;padding:0;width:475px;height:128px;float:left;}
    #footerLogo{margin-top:-90px;padding:0;width:128px;height:128px;background-image:url(img/site/logo.png);background-repeat:no-repeat;}

  9. I need a way of parsing Excel files.. both xls and xlsx in what seems to be various formats.. the concept of the way the expected sheets are to come in is with 2 tabs

     

    first tab row one column one will be a single value.. second tab will be any number of values only 2 columns though. I had found one parser class that I could use but it was very limiting and for some reason didn't work when I saved a fresh file... whats the best class, or way of handling an excel file? is there anything out there freely avaliable to work with thats kept upto date? or that works?

  10. Im trying to create a pie chart on the fly with data retrieved from a xls spreadsheet. The spread sheet data I have pulling and forming inside of a JSON string currently and that works fine. My issue is somewhere with attempting to dynamicly form the data for the piechart to draw with. If I add the data staticly it works fine, if I do it through the loop I will show below it fails..

     

    		data.addColumn('string', 'Name');
    		data.addColumn('number', 'Count');
    		var myRows = ''
    		for(x=0;x<displayJSON.totalRows;x++)
    		{
    			if(x != displayJSON.totalRows && x != 0){myRows +=",";}
    			myRows += "['"+displayJSON['figures'][x][1]+"', "+displayJSON['figures'][x][0]+"]";
    		}
    		data.addRows([myRows]);
    		var chart = new google.visualization.PieChart(document.getElementById('chart_div'));
    		chart.draw(data, {width: 750, height: 750, title: displayTitle});
    
    

     

    I'm not sure where the snag is per say..

    heres where my little rendition is.. http://mtpdev.com/dev/xls-reader/

    heres the google chart reference I am attempting to follow.. http://code.google.com/apis/chart/interactive/docs/quick_start.html

     

    in concept everything is forming properly I have confirmed that, just something specific to

     

    data.addRows([myRows]);

    is not liked when its all rendered.

     

     

     

  11. so this is data to be stored in a DB? whats the point of sorting it at this point when you can dump it all in the DB one by one.. and then when you query the DB you pull it out as needed for display and sort it server side for the display purpose.. there is no reason to sort something in this type of case just to ultimately dump it into the db there after where the sorting wont matter none when quering anyway..

  12. This still doesnt tell us what criteria that sorting occurs on, how exactly your trying to sort stuff, by what means so to speak whats the "sortable" value of them all.. Its like going to a library and saying I need a book, but have no title or no reference to what its about. Then going to the librarian and asking where you should look for it?.. Your saying heres the before, heres the after but really not applying any logic to why it or how it should be sorted.. your also saying its two different arrays that need to be sorted for the bigger array its going to form. But you don't specify if you want each independant array sorted prior to merging them or after.. and again that falls in line with what your trying to sort everything by.. circles of cluelessness..

  13. never mind.. i opted to go with the parseJSON via jQuery.. I often forget how slow any help comes on the JavaScript board here. To any considering the helping of me I appreciate it..

  14. lol.. no.. can you give a brief description of said criteria.. rather then try to get people to compare and contrast that long list of things to find the differences themselves..

  15. Im trying to do this via native javascript without library help if I can...

     

    here is the JSON (its valid):

    {"figures":[["10","Other"],["45","Operations"],["78","Engineering"],["39","Admin"],["48","PG&WS"],["40","Government"],["2","Power"],["81","Thrust"],["10","Foreign"]],"totalRows":9}

     

    all I want to do is alert the "totalRows" specificly. Example:

    var displayJSON = $('textarea#chartJSON').val();
    alert('totalRows: '+displayJSON.totalRows);
    

     

    However the result is coming up as invalid "undefined" more specifically. The variable itself "displayJSON" will display the above JSON string. Right now I have the string rendering in a textarea when the page loads via PHP. So I am wondering if I am approaching it the right way. Or if for some reason storing it in the textarea first then getting that textarea's value is just giving the wrong string type and it cant read as json. Maybe I am just wrong about native support with JSON in JavaScript. Should I just use jquery (since I already am) and go with the parseJSON() function?

  16. CoolAsCarlito what did I tell you off the board.. I'm gonna quote Zanus on this one just to reiterate my point as your endlessly ignoring it when I say the same thing.. lol

     

    You should further explain this criteria.  Reading through lines and lines of code is a lot of work when you could just as easily explain better.

  17. what might be a better solution is set a focus and blur action on a specific element like a div. wrap that div around the button and select so when your focused over the div (and anything in it) it will act like you want, when you leave the div (blur) it will do the other thing.. Just a thought, not sure if thats your exact notion being implied by your post but either way hope its helpful

  18. I dunno bout the size of the application mattering. jQuery like all other libraries is very helpful in many dynamics of a given project. And with any given project its how you put it together. Though my opinion is fairly byast as I am more partcial to jQuery myself I have dabbled with a couple others but find myself with jQuery 9 out of 10 times.

     

    Also worth mentioning any of the libraries aren't end all be all solutions they just ultimately cut time down on many of the otherwise tedious tasks and for the most part are more cross browser compliant then hand writing somethings to do the same things the libraries offer up.

     

    jQuery to me seems to be the more favorable choice as to me its a more mature library then the others. Although YUI is written by the team at yahoo, it does have commuinity support like jquery and the rest but at the end of the day to my knowing yui is completely controlled by the team at yahoo. Grant it that only means soo much but some people favor YUI for that reason.

     

    At the end of the day your question would be better asked like. Which library is going to better support my projects needs. jQuery by far as mounds of plugins, addons, community support and so on, but it doesnt always meet ones needs. Also something else to think about as mentioned prior its not an end all be all solution. meaning you will end up using plain old javascript within it as well for other needs.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.