commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark R. Diggory" <mdigg...@latte.harvard.edu>
Subject Re: [commons-build] Thoughts on Navigation (client side includes).
Date Fri, 20 Feb 2004 15:20:40 GMT
Ok, I'll take the bait ;-)

I think this is a "Red Herring" of an argument and a gross 
generalization. I suspect that with a review of access logs, that the 
clients actually accessing the site would show you that >95% are either 
Mozilla, Netscape, I.E. or Opera. I have a very strong doubt that users 
actually "disable javascript". But, lets take a little poll here and 
find out.

Cross browser javascript is really not that difficult to accomplish 
gracefully. There are certainly may many discussions/solutions for it on 
the web. I use it daily and quite successfully.

-Mark

David Graham wrote:

> -1 on using javascript for major site functionality such as navigation. 
> Many users browse with js turned off and it's a major pain getting it to
> work across all browsers.  IMO, Apache websites should be accessible to
> all visitors.
> 
> David
> 
> 
> --- "Mark R. Diggory" <mdiggory@latte.harvard.edu> wrote:
> 
>>I've been looking a the usage of javascript in the browser as a 
>>mechanism of "Client Side Includes". I've been considering the idea that
>>
>>this can be used a a powerful mechanism to pull global navigation 
>>content into the site navigation without having to regenerate all the 
>>separate project pages everytime something changes on the global 
>>navigation for the Commons.
>>
>>For instance
>>
>><SCRIPT LANGUAGE="JavaScript" type="text/javascript" 
>>src="navigation.js"></SCRIPT>
>>
>>could be added to the commons-site.jsl such that it would be used to 
>>include the contents of "navigation.js" into the navigation bar on the 
>>client side.
>>
>>navigation.js would look something like:
>>
>>document.write('    <div>'
>>   + '      <small>'
>>   + '      <a href="http://jakarta.apache.org/commons/beanutils/"><img 
>>class="handle" src="./images/none.png" alt=""></img>BeanUtils</a>'
>>   + '      </small>'
>>   + '    </div>'
>>   + '    <div>'
>>   + '      <small>'
>>   + '      <a href="http://jakarta.apache.org/commons/betwixt/"><img 
>>class="handle" src="./images/none.png" alt=""></img>Betwixt</a>'
>>   + '      </small>'
>>   + '    </div>'
>>    ...
>>
>>   + '    <div>'
>>   + '      <small>'
>>   + '      	<a 
>>href="http://jakarta.apache.org/commons/sandbox/vfs/"><img 
>>class="handle" src="./images/none.png" alt=""></img>VFS</a>'
>>   + '      </small>'
>>   + '    </div>'
>>   + '    <div>'
>>   + '      <small>'
>>   + '           <a 
>>href="http://jakarta.apache.org/commons/sandbox/workflow/"><img 
>>class="handle" src="./images/none.png" alt=""></img>Workflow</a>'
>>   + '      </small>'
>>   + '    </div>');
>>
>>This way, any time a change was made to navigation.js, it would show up 
>>instantly on all the commons projects navigation. as teh navigation.js 
>>is pull independently and rendered in the browser.
>>
>>thoughts?
>>-Mark
>>
>>-- 
>>Mark Diggory
>>Software Developer
>>Harvard MIT Data Center
>>http://www.hmdc.harvard.edu
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: commons-dev-help@jakarta.apache.org
>>
> 
> 
> 
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail SpamGuard - Read only the mail you want.
> http://antispam.yahoo.com/tools
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-dev-help@jakarta.apache.org
> 

-- 
Mark Diggory
Software Developer
Harvard MIT Data Center
http://www.hmdc.harvard.edu

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message