Jump to content


  • Content Count

  • Joined

  • Last visited

Everything posted by Zilee

  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.
  16. The wrapper's height:auto is causing issues. If I remove it my Div does expand but it passes trough the footer.
  17. Hey everyone, I have a side bar with links that's between the header and the footer. I want the background of the side-bar to stretch all the way to the footer rather than to the list inside it.Here's a picture for better visualization: <div class="wrapper"> <header><span id='blueFont'>SEA</span>MS</header> <div class='sideBar'> <ul> <li>GENERAL CONFIGURATION</li> <li>CATEGORIES</li> <li>POST RANKS</li> <li>THEMES</li> <li>USERS</li> </ul> </div> </div> <footer>COPYRIGHT <span id='blueFont'>PATRICK ZIELINSKI</span> 2010 ALL RIGHTS RESERVED.</footer> And the CSS: BODY{ background-color: #161616; font-family: "Lucida Console", Monaco, monospace; color: #FFFFFF; font-size: 12px; height: 100%;}HEADER{ height: 30px; /*[disabled]width:100%;*/ background-image: url(images/topBG.png); line-height: 29px; padding-left: 9px; margin: 0;}.sideBar{ width: 196px; background-color: #4E4E4E; height: 100%;}.sideBar UL{ list-style-type: none; padding-left: 9px; padding-top: 9px;}.sideBar LI{ height: 35px;}.sideBar LI:hover{ color: #33FCFC;}.wrapper{ min-height: 100%; height: auto !important; height: 100%; margin: 0 auto -22px;}FOOTER{ background-image: url(images/footerBG.png); line-height: 22px; padding-left: 9px;} Setting the height to 100% inside the sideBar class simply stops at the end of the last element in the list of links.
  18. Hey people, I'm about to finish my 3-year CS course in college, we've been taught a lot of stuff such as OOP(PHP,C++,Java,JS) I've seen a lot of things I also know how to use Oracle SQL PL/SQL. I've been more keen to web development and I've been reading the first few chapters on the XML language here at W3s. I started wondering how I could use it. I mean, I can use PHP, JS and mySQL to make my pages dynamic and get/store information at will inside tables, I don't see how XML would fit in my future web applications. I'm sure it's important, but I need some enlightenment on how I should implement the language the most effectively in web applications.I already have my hand full with technical books on other concepts/subjects so I would really appreciate if someone could just give me a quick overview on how I could use this language to make my websites more kick-###### !Thanks in advance
  • Create New...