Jump to content

thescientist

Moderator
  • Posts

    8,682
  • Joined

  • Last visited

Everything posted by thescientist

  1. we would need to see the actual code you are using now, though. also, you mention ng-route, so you are using Angular, yes?
  2. did you got the angular site? the home page alone gives a comprehensive overview of what it does and examples for how to use it. https://angularjs.org/ If you need a full MVC framework, for a medium to large scale dynamic site, probably driven by AJAX / backend services, Angular is one option. There are other non MVC options that still emphasize component based development, but that's a matter of preference and philosophy.
  3. are you talking in the context of using <canvas>? I'm not sure what you are asking for, or hoping to accomplish.
  4. I'm not sure what your intended device target is, but once the screen gets below 1200px, the UI starts to collapse on itself. I would definitely recommend making the site more responsive. Overall I like the look and feel though.
  5. You're entitled to your interpretation then, but I don't think most would see it that way. i personally have started using <ul> within <nav> and find it to be semantic for my needs and for others reading the same code. To get the focus back on the OP, what are your expectations with this code? Are you looking for this to be responsive design, or just for desktop? Typically, the best way to at least ensure the code works as expected is to run it on the browsers / devices you want to support and make sure it passes the new HTML5 DTD validation checker. Aside from that, I don't see you using positioning, which is good. It is the number one bad habit I see new developers get into, so make sure you only use it when appropriate.
  6. That is a job better suited to a static analyzer or code quality tool, of which there are a few if you are using build tools like Grunt or Gulp.
  7. My guess is the videos are sized a certain way to preserve aspect ratio for different breakpoints.
  8. This is a very exciting release indeed! Looking forward to trying out and excited at all the internal development / improvements that comes with it.
  9. thescientist

    php

    If you haven't looked into it, PHP7 is near stable release, and should be quite an overhaul of the underlying engine and a pretty good attempt at starting to remove the cruft. mysql is completly removed, for example. I think PHP is entering a "renaissance" if you will with this release, similar to how JavaScript is also in an upswing, supported by recent advances in EMCAScript 2015 (ES6) and Node.
  10. Why not just share the file via something like Google Drive or Dropbox?
  11. Are you checking for any errors yourself? What have you done to debug the code? It should be obvious from the second you try and execute that code if you have your browsers console open, as it will give you a line number and file name. hint
  12. Is email an input element? Either way, you need to be using .value or .innerHTML when you call the test method.
  13. Why not just try that? Also, this is not valid syntax person.anotherperson.moreperson{}; maybe you meant? person.anotherperson.moreperson = {};
  14. thescientist

    Encriptions

    It could also just be the case that you just keep those files out of the webroot
  15. There are a number of CSS frameworks out there as well http://getbootstrap.com/ http://foundation.zurb.com/
  16. thescientist

    Asp In Xampp

    ASP is intended to run under IIS. XAMPP is an Apache based webserver.
  17. PHP has a number of frameworks http://www.sitepoint.com/best-php-framework-2015-sitepoint-survey-results/
  18. Where is your AJAX code? Googling for this question turned up many stackoverflow posts. Did you try looking at some of those answers? http://stackoverflow.com/questions/8961567/render-like-button-after-ajax-call
  19. If you use tools like Grunt or Gulp, or Apache, you can run a local webserver which will allow you to open your site on those devices over the local intranet created by your router / wifi network. Essentially, nothing beats actually testing with the actual devices in hand.
  20. It's hard to help you without seeing any code or what you tried and why a given approach isn't working. Formatting date / time is extremely common and not that hard, and in particular what moment excels at. Did you review their docs? There's a section just on displaying. http://momentjs.com/docs/#/displaying/
  21. There are also build tools like Grunt and Gulp that have plugins for linting JS / CSS / HTML files. note: these are tools built on top of Node.js
  22. What have you got so far? I would start with looking at the JavaScript date object http://www.w3schools.com/jsref/jsref_obj_date.asp There's also a really good date / time library called moment that is helpful when working with date / times http://momentjs.com/
  23. Are you checking for any errors in the browser console? What does the code look like and how are you implementing your function?
×
×
  • Create New...