Results 1 to 4 of 4

Thread: Unobtrusive Javascript

  1. #1
    Join Date
    Aug 2006
    Posts
    332

    Unobtrusive Javascript

    Hello everyone,

    I'm not confident the java script is fine, but I know how it is implemented in the HTML. Does anyone know of a optimistic method to code this so the Java Script is Unobtrusive and doesn't need empty <a> tags in the HTML?.Hopefully someone can help.

    Any help is greatly appreciated.

  2. #2
    Join Date
    Oct 2005
    Posts
    2,393

    Re: Unobtrusive Javascript

    Hi there,Unobtrusive JavaScript is actually the JavaScript in the HTML is script tags either in the head or at the end of the body that relates external JavaScript files to the page.In reality no JavaScript code in the page itself, not even onclick or onmouseover etc in tags the event handlers are all put from the external JavaScript.That way those without JavaScript don't have to download any unwanted JavaScript related code at all beyond that bare minimum script tag that is required to connect the unobtrusive JavaScript to the page.

  3. #3
    Join Date
    May 2008
    Posts
    2,297

    Re: Unobtrusive Javascript

    Write scripts that check if they're needed prior they do something. Don't think the hook exists.Ensure content and navigation can be used without javascript.Without javascript the page will be acting weird. Javascript's purpose is to add interactivity.Unobtrusive javascript is not that hard, it's a way of thinking. Take a little time to change the way you do things and it will make you a better developer.Anyway, to me, unobtrusive JavaScript is all I have ever known! it's about separating the behavioral layer from the content and style layers.

  4. #4
    Join Date
    Apr 2008
    Posts
    1,948

    Re: Unobtrusive Javascript

    Unobtrusive JavaScript used to improve the usability and the user experience on a web site, but isn't vital for functionality to work.I get the gist of how this script would work for me. The only difference is that I required the text in the div (or the ul in your example) to remain visible from the moment the link is hovered, until a different link is hovered.Many issues that people commonly face, especially when it comes to extending and maintaining scripts across multiple pages, can be made easier by paying attention to various unobtrusive scripting maxims

Similar Threads

  1. Javascript in IE on HTC HD2
    By dONGsUN in forum Portable Devices
    Replies: 4
    Last Post: 06-10-2010, 05:56 AM
  2. help with javascript please!
    By newbie1 in forum Software Development
    Replies: 2
    Last Post: 08-05-2010, 11:09 AM
  3. What are the different Events in the Javascript?
    By Sheena_thakkar in forum Software Development
    Replies: 5
    Last Post: 18-12-2009, 08:07 AM
  4. Read XML through JavaScript
    By Zhankana_n in forum Software Development
    Replies: 3
    Last Post: 03-12-2009, 10:41 PM
  5. Problem with JavaScript
    By Chintam in forum Software Development
    Replies: 4
    Last Post: 14-03-2009, 12:47 PM

Tags for this Thread

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
  •  
Page generated in 1,713,887,752.97900 seconds with 17 queries