HighDots Forums  

? Storing Internal Information In An HTML Document (eg Inside Tags)

alt.html.tags alt.html.tags


Discuss ? Storing Internal Information In An HTML Document (eg Inside Tags) in the alt.html.tags forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Alec S.
 
Posts: n/a

Default ? Storing Internal Information In An HTML Document (eg Inside Tags) - 02-01-2005 , 02:17 PM






Hi,

I need a way of dividing up my site into "departments". What I want is
to be able to allow some JavaScript functions to perform differently based
on what department the current page is assigned to.

For example, if the user clicks on a link in a page, the link fires off
a JS function that checks what department the page is in and does something.
If the user clicks on that link on a different page assigned to a different
department, the function does something else.

What I tried to do was to put in an invisible DIV element in the pages
where the ID attribute of the DIV is "_dept_" and the NAME attribute is
whatever the department is. The JS function looks for the _dept_ element
and reads it's name attribute. The problem with this is that when I try to
validate the page I get an error on the name attribute (not in XHTML
Strict).


What can I do?


thanks.

--
Alec S.
alec <@> synetech <.> cjb <.> net




Reply With Quote
  #2  
Old   
Alec S.
 
Posts: n/a

Default Re: ? Storing Internal Information In An HTML Document (eg Inside Tags) - 02-02-2005 , 08:35 PM






Nevermind, I got a suggestion from someone elsewhere. In case anyone
wants to know, it was to use a meta tag. Brilliant!


--
Alec S.
alec <@> synetech <.> cjb <.> net




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.