Jump to content

Zilee

Members
  • Content Count

    18
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Zilee

  • Rank
    Newbie
  1. I started learning JQuery recently, the only way I could motivate myself is by creating a plugin that I could find somewhat useful. So there it is, this allows you to add validation to regular text inputs. I'd appreciate some feedback, I know there's probably better stuff out there, but it's simply a personal project it only supports type=text as of now.Example with explanation:Index: http://pastie.org/1826758Script: http://pastie.org/1826760I also wanted to share this because I believe the script side is clean and rather easy to comprehend.
  2. Relatively easy to make. Don't forget you have position:absolute and z-index:++ to allow you to basically splatter any element over existing content.
  3. Zilee

    Better structure

    Yes I use server-side javascript to keep my structure in memory and available to everyone. Yes, it seems that a key-value collection will be ideal. I will have to display portions of the array to the user... I think a hash of hashes will be the best.I remember coding in a language that did had severely hindered performance when using multi-dimension arrays, is it the same case with JS?
  4. Zilee

    Better structure

    My application's requirements do not allow the use of a DB.
  5. Zilee

    Sockets VS Ajax?

    I have an app using real-time access between the server and it's clients using the udp protocol thanks to nodejs and socket.ioCheck em out.
  6. I have an array with 10,000+ elements and it is time to port it into a better structure. Should I code a binary tree or maybe a linked list?The array contains objects and there isn't really much need to display it, so I mostly need a structure with quick data access and quick deletion.
  7. Zilee

    Filling the void

    Hey guys, I'm building a desktop-style app and I basically set the html to overflow:hidden to eliminate the scroll bars.Current issue is that the div named: "leftPanel" doesn't go down all the way to the footer. I have no idea how to make it go down all the way.Here's the shortened code, I put some colors for you guys : html, body { height: 100%; width: 100%; overflow: hidden; background-color: dimgray;}.wrapper { min-height: 100%; height: auto !important; height: 100%; margin: 0 auto -4em;}.leftPanel { min-height: 100px; width: 200px; background-color: green; }.footer { height: 4em; background-color: olive;} Html : <div class="wrapper"> <div class="banner"></div> <div class="leftPanel"></div> </div><div class="footer"> <p>Copyright (c)</p></div> So basically the leftPanel div should reach the footer and expand or get smaller depending on screen resolution.
  8. You always have to include the whole .php, only other option I see is _autoload:http://php.net/manual/en/language.oop5.autoload.phpEnjoy.
  9. That's rather fascinating. I will have to look into it. Thanks for bringing me closer to my goal.
  10. Yes, but wouldn't then I have to verify if the integer has changed? I would also still have to "query this table repeatedly" as in every second to notice a change. I just thought the logical approach would be an intervention as soon as an update occured instead of looking up a change every second. That's just me though.The more I think about it and the more I believe I will have to implement a timer to verify on a set interval if any change has occurred since the remote user will probably not interact with the page to trigger anything.
  11. Hmm, I try to avoid using flash. Unless it's minimal I could not opt for that.
  12. MySQL(Latest version) managed by phpmyadminHmm now that I think about it I don't know if it would be wise to echo a javascript piece of code as a string when an insert has occured that would afterwards be evaluated using eval() when the ajax gets the answer from the server-side page which could simply call another ajax function to update the page.
  13. Hi. How would I be able to either call a piece of ajax or php code when a new insertion has been done on a peculiar table?Basically I require the need to see in real-time on a web page something that might have been inserted by another user over the web(At the moment it's been insert I should see the result updated). I just need to know how this could be done(Suggestions?) no need for code examples.I thought of a cheap method by basically checking the number of rows in a table and depending on x many rows then update the page with the last x-length insertions. My only issue with this solution is that having this function execute every second would probably not be very optimal.Thanks.
  14. Is it possible to stop a centered div using % to stop moving at some point during a re-size? Because currently my div is centered but if I re-size too much is goes below the menu while I would want it to stop at the menu.
  15. Sounds good, thanks guys. I have to dip myself into it and encounter a few real-life issues to really understand what's this all about.
×
×
  • Create New...