Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: My doubts

  1. #1
    Join Date
    Nov 2006
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default My doubts

    I have no questions on codes. I am doing a research on DHTML and Javascript for my studies.

    I would like to know, DHTML, which commonly includes Javascripts, HTML, Style Sheets can be implemented. If Javascripts and Style Sheets can be external, will the HTML takes more time to load than to use them internally?

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    The file will take a slightly larger amount of time the first time it is loaded (since an extra request must be sent to the server), but this is negligible, and any subsequent pages that use that file will be significantly faster, since the data needn't be downloaded afresh.

    Also, DHTML is an inaccurate buzz-word. Please avoid it if possible
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Jul 2006
    Location
    Canada
    Posts
    2,581
    Thanks
    13
    Thanked 28 Times in 28 Posts

    Default

    Quote Originally Posted by Twey
    Also, DHTML is an inaccurate buzz-word. Please avoid it if possible
    So what would be the correct term for "DHTML"?
    - Mike

  4. #4
    Join Date
    Jun 2006
    Location
    Acton Ontario Canada.
    Posts
    677
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    DHTML is just a term coined to represent the combination of JS, HTML, and CSS to create a visually desirable web page.

    I Like To Feel Useful...
    - Ryan "Boxxertrumps" Trumpa
    Come back once it validates: HTML, CSS, JS.

  5. #5
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Hehe
    I don't like DHTML because it seems to me to imply that the effects are achieved by means of pure HTML, or some extension of HTML, rather than at least two completely different languages applied to a piece of HTML markup.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  6. #6
    Join Date
    Jul 2006
    Location
    Canada
    Posts
    2,581
    Thanks
    13
    Thanked 28 Times in 28 Posts

    Default

    DHTML is just a term coined to represent the combination of JS, HTML, and CSS to create a visually desirable web page.
    Yes, I knew that
    I was wondering if there is an actual term for these languages combined. Thanks anyway though.
    - Mike

  7. #7
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Yes, it's called "web development"
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  8. #8
    Join Date
    Nov 2006
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank you so much. =)

  9. #9
    Join Date
    Nov 2006
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I have another question again.

    I wanted to add JavaScript(showing the time), but it seems that it does not work on IE7.

    Are there alternatives that I can do, instead of using other Internet Browsers? What's the "best" Internet Browser for DHTML?

    I assume that most users use Internet Explorer, if that is true, can web developers change their codes to allow IE to display the "right" output?

    Thanks.

  10. #10
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    I wanted to add JavaScript(showing the time), but it seems that it does not work on IE7.
    Chances are you've done something wrong, or failed to compensate for a bug. However, I suspect the former: this isn't (or shouldn't be) a complex script.
    Are there alternatives that I can do, instead of using other Internet Browsers?
    Yes, fix your script.
    What's the "best" Internet Browser for DHTML?
    Define "best," and the application of "DHTML" to which you refer.
    I assume that most users use Internet Explorer
    Alas yes.
    can web developers change their codes to allow IE to display the "right" output?
    Usually, with varying amounts of effort and success.

    A simple clock script would be:
    Code:
    <span id="clock">&nbsp;</span>
    <script type="text/javascript">
      function startClock(el) {
        var retval = stopClock(el);
        el.clockTimer = window.setInterval(function() { clockTick(el); }, 1000);
        return retval;
      }
    
      function clockTick(el) {
        var d = new Date();
        el.firstChild.nodeValue = [d.getHours(), d.getMinutes(), d.getSeconds()].join(":");
      }
    
      function stopClock(el) {
        if(el.clockTimer !== null) {
          window.clearInterval(el.clockTimer);
          el.clockTimer = null;
          return true;
        } else return false;
      }
    
      startClock(document.getElementById("clock"));
    </script>
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

Bookmarks

Posting Permissions

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