Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 08-09-2009
Member
 
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.
Reply With Quote
  #2  
Old 08-09-2009
Member
 
Join Date: Oct 2005
Posts: 2,389
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.
Reply With Quote
  #3  
Old 08-09-2009
Member
 
Join Date: May 2008
Posts: 2,293
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.
Reply With Quote
  #4  
Old 08-09-2009
Member
 
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
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


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


All times are GMT +5.5. The time now is 11:45 PM.