Results 1 to 3 of 3

Thread: DHTML methods

  1. #1
    Join Date
    Oct 2013
    Posts
    1
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default DHTML methods

    I need a good tutorial link on DHTML methods especially following Methods

    1.alert,
    2.back,
    3.forward,
    4. click
    5 dreagDrop
    6 findText

    I already searched and not getting relevant tutorial

    Thanks a lot in advance

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    28,997
    Thanks
    43
    Thanked 3,198 Times in 3,160 Posts
    Blog Entries
    12

    Default

    It sounds like to me that you might be a beginner, if so the W3Schools (http://www.w3schools.com/) is a good place to start. For a grounding in DHTML you would want to take their javascript, HTML, and css tutorials.

    That said, there are no DHTML methods per se. DHTML stands for Dynamic Hyper Text Markup Language and is achieved by combining HTML, javascript and css.

    The alert is is a javascript only method:

    Code:
    <script type="text/javascript">
    alert('Hello World');
    </script>
    That's all there is to it.

    Back and Forward are also javascript only methods:

    Code:
    <script type="text/javascript">
    history.go(-1);
    </script>
    That's back. Forward is:

    Code:
    <script type="text/javascript">
    history.go(1);
    </script>
    Click can be very complex. But in it's simplest form, it's just javascript and HTML:

    HTML Code:
    <span onclick="alert('Hello World');">Test</span>
    There's nothing I know of called "dreagDrop". I think you mean Drag and Drop, which is also sometimes known as draggable.

    That's pretty complex. Dynamic Drive has at least one script for that:

    http://www.dynamicdrive.com/dynamici...drag/index.htm

    For other examples, use Google. Search for:

    drag and drop javascript

    or:

    draggable

    Finding text is also quite complex. We recently had a new member offer his script for free here:

    http://www.dynamicdrive.com/forums/s...-on-a-Web-Page

    It looks pretty good to me. To get the code you have to go to his demo and view the page source and copy it.

    Google also offers a service for highlighting text on a page as part of custom search. Last I checked there were both free and paid versions of this service available. For more information on that Google:

    google custom search

    As this is a general question with many parts, I'm going to close this thread. If after you have looked at the answers here and checked the resources mentioned, if you have a specific question about one of these things, or something else, feel free to start a new thread about it.

    But please, only one or two questions per thread. Tell us what you've tried and what it doesn't do that you want it to do.
    Last edited by jscheuer1; 10-15-2013 at 03:43 PM. Reason: add link to W3Schools
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. The Following User Says Thank You to jscheuer1 For This Useful Post:

    shyjuu (10-15-2013)

  4. #3
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 517 Times in 503 Posts
    Blog Entries
    5

    Default

    I would recommend Google's "HTML, CSS, and JavaScript From the Ground Up" series. SitePoint is also a great reference. For a more comprehensive (though more technical) reference, Mozilla's MDN is arguably the best resource that exists. w3Schools, while very popular and easy to browse, is misleading in many places and gets thing flat-out wrong in others. I recommend against using them as a resource.

Similar Threads

  1. GET and POST methods
    By niky in forum PHP
    Replies: 1
    Last Post: 07-25-2008, 11:02 PM
  2. Form POST methods
    By EjeetNet in forum Looking for such a script or service
    Replies: 1
    Last Post: 08-08-2007, 04:56 PM
  3. Methods (apply())
    By pcbrainbuster in forum JavaScript
    Replies: 5
    Last Post: 04-11-2007, 04:05 PM
  4. IE6 and DOM methods
    By Twey in forum JavaScript
    Replies: 3
    Last Post: 07-06-2006, 05:16 PM
  5. objects.methods
    By Kcirtap in forum JavaScript
    Replies: 2
    Last Post: 03-11-2005, 10:18 PM

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
  •