Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New Coder
    Join Date
    Jul 2013
    Posts
    11
    Thanks
    1
    Thanked 0 Times in 0 Posts

    HTML5 or JS for custom web app?

    My knowlege of both HTML5 and JS is somewhat limited so I wanted to get some input from other devs. I'm making my first web app which will be a simple visual app which allows you to choose either a bottle, can, or cup.

    Then you can add a custom label to the chosen item. It will feature user input involving up to three text fields, background color and even an image upload facility. Given these constrains what would be my best option in the developing this app? Use HTML5 or JS.

  • #2
    Senior Coder Dormilich's Avatar
    Join Date
    Jan 2010
    Location
    Behind the Wall
    Posts
    3,284
    Thanks
    12
    Thanked 343 Times in 339 Posts
    HTML5 and JS.

    if you wanted a pure JS app (JS w/o HTML5), you’d write an app for the console. (Node.js would be an example for that)

    if you wanted a pure HTML5 app, that’s called a static web page (no user interaction is possible since HTML is a markup language (and only by using a 3rd language (CSS) you can add-in limited interactivity)).
    The computer is always right. The computer is always right. The computer is always right. Take it from someone who has programmed for over ten years: not once has the computational mechanism of the machine malfunctioned.
    André Behrens, NY Times Software Developer

  • Users who have thanked Dormilich for this post:

    sui_page (07-12-2013)

  • #3
    New Coder
    Join Date
    Jul 2013
    Posts
    11
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Dormilich View Post
    HTML5 and JS.

    if you wanted a pure JS app (JS w/o HTML5), you’d write an app for the console. (Node.js would be an example for that)

    if you wanted a pure HTML5 app, that’s called a static web page (no user interaction is possible since HTML is a markup language (and only by using a 3rd language (CSS) you can add-in limited interactivity)).

    Thanks for that. I'll definitely use JS then since I need user interaction. Would you recommend any good UI frameworks or would my best be the jquery website?

  • #4
    Regular Coder
    Join Date
    Jan 2013
    Location
    Germany
    Posts
    578
    Thanks
    4
    Thanked 77 Times in 77 Posts
    The rule should be: What can be done in HTML5, should be done in HTML5. The rest can be done in Javascript.

    If you're just learning Javascript, you should start with plain Javascript -- what's the use of learning frameworks if you don't know the language behind it. However, if that's not the case or if you simply insist in a framework, then jquery surely is your friend and a good bet.

  • #5
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,640
    Thanks
    0
    Thanked 649 Times in 639 Posts
    Quote Originally Posted by Airblader View Post
    if you simply insist in a framework, then jquery surely is your friend and a good bet.
    Of course to use it properly you need about an intermediate level knowledge of JavaScript. The less JavaScript you know the easier it is to make a mess of trying to use JQuery (or any other framework).

    I have seen scripts written by people trying to use JQuery without knowing JavaScript where they have the JQuery library plus twenty plus lines of code calling JQuery to do what can be done in under 10 lines of JavaScript without JQuery - and who even then are having problems trying to get it to work.
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.

  • #6
    New Coder
    Join Date
    Jul 2013
    Posts
    11
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Airblader View Post
    The rule should be: What can be done in HTML5, should be done in HTML5. The rest can be done in Javascript.

    If you're just learning Javascript, you should start with plain Javascript -- what's the use of learning frameworks if you don't know the language behind it. However, if that's not the case or if you simply insist in a framework, then jquery surely is your friend and a good bet.
    Sounds good. This was what I was thinking as I know enough js to get me started on jquery


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •