Code Bank
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingCode Bank

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old April 18th, 2005, 12:39 PM
Shadow Wizard's Avatar
Shadow Wizard Shadow Wizard is offline
Moderator From Beyond
Click here for more information
 
Join Date: Sep 2004
Location: Israel
Posts: 29,173 Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)  Folding Points: 586116 Folding Title: Super Ultimate Folder - Level 2Folding Points: 586116 Folding Title: Super Ultimate Folder - Level 2Folding Points: 586116 Folding Title: Super Ultimate Folder - Level 2Folding Points: 586116 Folding Title: Super Ultimate Folder - Level 2Folding Points: 586116 Folding Title: Super Ultimate Folder - Level 2Folding Points: 586116 Folding Title: Super Ultimate Folder - Level 2Folding Points: 586116 Folding Title: Super Ultimate Folder - Level 2
Time spent in forums: 3 Months 2 Weeks 1 Day 22 h 36 m 41 sec
Reputation Power: 2470
Post client side JavaScript: iterating over elements and hooking event handlers

the code below is iterating over all span elements in the page, search for elements having specific attribute (in this case "mycolor" attribute) and once found, hook custom event handler to the span element mouseover and mouseout events, which use the attribute value to change the font color.

note: custom attributes must contain small case letters only, for example "MyColor" is illegal and won't work for standard browsers. the attribute value can be any string.

Code:
   <html>
   <head>
   <title>javascript sample code</title>
   <script language="javascript" type="text/javascript">
   //hook the window load event ("event" argument will be automatically populated by standard browsers)
   window.onload=function WindowLoad(event) {
   	//get list of all span elements:
   	var arrElements = document.getElementsByTagName("span");
      
   	//iterate over elements:
   	for (var i=0; i<arrElements.length; i++) {
   		//get pointer to current element:
   		var element=arrElements[i];
   	   
   		//check for desired attribute:
   		if (element.attributes["mycolor"]) {
   			//found... hook element with our global event handler:
   			element.onmouseover=MyMouseOver;
   			element.onmouseout=MyMouseOut;
   		}
   	}
   }
   
   function MyMouseOver(event) {
   	//read IE event:
   	if ((typeof event == "undefined")||(!event))
   		event = window.event;
      
   	//read sender element:
   	var objSender=event.target||event.srcElement;
      
   	//maybe non IE and non standard browser:
   	if (!objSender)
   		return false;
      
   	//read attribute:
   	var strColor=objSender.attributes["mycolor"].value;
      
   	objSender.style.color = strColor;
   }
   
   function MyMouseOut(event) {
   	//read IE event:
   	if ((typeof event == "undefined")||(!event))
   		event = window.event;
      
   	//read sender element:
   	var objSender=event.target||event.srcElement;
      
   	objSender.style.color = "black";
   }
   
   function Print(_ob) {
   	var m="", j;
   	for (j in _ob) {
   		m += j + ": " + _ob[j] + ", ";
   	}
   	alert(m);
   }
   </script>
   </head>
   <body>
   <span>just ordinary span.</span><br />
   <span mycolor="blue">try to move the mouse over me.</span><br />
   <span mycolor="red">no, move the mouse over me!</span>
   </body>
   </htm>
   
Comments on this post
elijathegold agrees: Love this - Very very useful
Attached Files
File Type: txt js_sample_1.html.txt (1.6 KB, 332 views)

Reply With Quote
  #2  
Old April 18th, 2005, 04:29 PM
elijathegold's Avatar
elijathegold elijathegold is offline
Senior Fire Wizard
ASP Free God 1st Plane (5500 - 5999 posts)
 
Join Date: Feb 2005
Location: Ashford, Kent. England
Posts: 5,651 elijathegold User rank is Captain (20000 - 30000 Reputation Level)elijathegold User rank is Captain (20000 - 30000 Reputation Level)elijathegold User rank is Captain (20000 - 30000 Reputation Level)elijathegold User rank is Captain (20000 - 30000 Reputation Level)elijathegold User rank is Captain (20000 - 30000 Reputation Level)elijathegold User rank is Captain (20000 - 30000 Reputation Level)elijathegold User rank is Captain (20000 - 30000 Reputation Level)elijathegold User rank is Captain (20000 - 30000 Reputation Level)elijathegold User rank is Captain (20000 - 30000 Reputation Level)  Folding Points: 1988630 Folding Title: Super Ultimate Folder - Level 4Folding Points: 1988630 Folding Title: Super Ultimate Folder - Level 4Folding Points: 1988630 Folding Title: Super Ultimate Folder - Level 4Folding Points: 1988630 Folding Title: Super Ultimate Folder - Level 4Folding Points: 1988630 Folding Title: Super Ultimate Folder - Level 4Folding Points: 1988630 Folding Title: Super Ultimate Folder - Level 4Folding Points: 1988630 Folding Title: Super Ultimate Folder - Level 4Folding Points: 1988630 Folding Title: Super Ultimate Folder - Level 4Folding Points: 1988630 Folding Title: Super Ultimate Folder - Level 4
Time spent in forums: 2 Months 2 Weeks 2 Days 4 h 37 m 4 sec
Reputation Power: 303
Wow, I had no idea that you can add your own attributes to things. Opens up a whole new set of possibilities.

Elija

Reply With Quote
  #3  
Old April 19th, 2005, 02:05 AM
Shadow Wizard's Avatar
Shadow Wizard Shadow Wizard is offline
Moderator From Beyond
Click here for more information
 
Join Date: Sep 2004
Location: Israel
Posts: 29,173 Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)  Folding Points: 586116 Folding Title: Super Ultimate Folder - Level 2Folding Points: 586116 Folding Title: Super Ultimate Folder - Level 2Folding Points: 586116 Folding Title: Super Ultimate Folder - Level 2Folding Points: 586116 Folding Title: Super Ultimate Folder - Level 2Folding Points: 586116 Folding Title: Super Ultimate Folder - Level 2Folding Points: 586116 Folding Title: Super Ultimate Folder - Level 2Folding Points: 586116 Folding Title: Super Ultimate Folder - Level 2
Time spent in forums: 3 Months 2 Weeks 1 Day 22 h 36 m 41 sec
Reputation Power: 2470
indeed... I found out about it couple of years ago it was quite amazing. you can also add anything you want into existing web page at run time it's even more amazing - however, I found out about lower-case attribute names only recently, when something just refused to work on Firefox... after hours of debugging I found that irritating thing - but when thinking about its logic, it make sense as it's part of xhtml standard.

Reply With Quote
  #4  
Old April 19th, 2005, 07:23 AM
Phoenix's Avatar
Phoenix Phoenix is offline
Web-Standards Evangelist
ASP Free Intermediate (1500 - 1999 posts)
 
Join Date: Nov 2003
Posts: 1,522 Phoenix User rank is Corporal (100 - 500 Reputation Level)Phoenix User rank is Corporal (100 - 500 Reputation Level)Phoenix User rank is Corporal (100 - 500 Reputation Level)Phoenix User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 23 h 49 m 54 sec
Reputation Power: 10
"Part of the xhtml standard"...Sure? I'm pretty sure you need to add your own XHTML1.1 DTD module to use custom attributes and elements.

Reply With Quote
  #5  
Old April 19th, 2005, 07:58 AM
Shadow Wizard's Avatar
Shadow Wizard Shadow Wizard is offline
Moderator From Beyond
Click here for more information
 
Join Date: Sep 2004
Location: Israel
Posts: 29,173 Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)  Folding Points: 586116 Folding Title: Super Ultimate Folder - Level 2Folding Points: 586116 Folding Title: Super Ultimate Folder - Level 2Folding Points: 586116 Folding Title: Super Ultimate Folder - Level 2Folding Points: 586116 Folding Title: Super Ultimate Folder - Level 2Folding Points: 586116 Folding Title: Super Ultimate Folder - Level 2Folding Points: 586116 Folding Title: Super Ultimate Folder - Level 2Folding Points: 586116 Folding Title: Super Ultimate Folder - Level 2
Time spent in forums: 3 Months 2 Weeks 1 Day 22 h 36 m 41 sec
Reputation Power: 2470
this is true for custom tags - but I can use my own attributes with the current version of Firefox, so I assume it's true for any standard browser.

Reply With Quote
  #6  
Old April 20th, 2005, 04:05 AM
elijathegold's Avatar
elijathegold elijathegold is offline
Senior Fire Wizard
ASP Free God 1st Plane (5500 - 5999 posts)
 
Join Date: Feb 2005
Location: Ashford, Kent. England
Posts: 5,651 elijathegold User rank is Captain (20000 - 30000 Reputation Level)elijathegold User rank is Captain (20000 - 30000 Reputation Level)elijathegold User rank is Captain (20000 - 30000 Reputation Level)elijathegold User rank is Captain (20000 - 30000 Reputation Level)elijathegold User rank is Captain (20000 - 30000 Reputation Level)elijathegold User rank is Captain (20000 - 30000 Reputation Level)elijathegold User rank is Captain (20000 - 30000 Reputation Level)elijathegold User rank is Captain (20000 - 30000 Reputation Level)elijathegold User rank is Captain (20000 - 30000 Reputation Level)  Folding Points: 1988630 Folding Title: Super Ultimate Folder - Level 4Folding Points: 1988630 Folding Title: Super Ultimate Folder - Level 4Folding Points: 1988630 Folding Title: Super Ultimate Folder - Level 4Folding Points: 1988630 Folding Title: Super Ultimate Folder - Level 4Folding Points: 1988630 Folding Title: Super Ultimate Folder - Level 4Folding Points: 1988630 Folding Title: Super Ultimate Folder - Level 4Folding Points: 1988630 Folding Title: Super Ultimate Folder - Level 4Folding Points: 1988630 Folding Title: Super Ultimate Folder - Level 4Folding Points: 1988630 Folding Title: Super Ultimate Folder - Level 4
Time spent in forums: 2 Months 2 Weeks 2 Days 4 h 37 m 4 sec
Reputation Power: 303
I added a couple of attributes to some "a" elements in a script I am writing and I have a couple of comments to make.

1. It definately works in Firefox and IE6
2. It made what I was trying to achieve very simple.
3. Kudos to Shadow Wizard for mentioning it

I also tried a custom element, called book and added some css.

xhtml
Code:
 <book>This is the title of the book</book>
 


css
Code:
 book {font-family: tahoma; font-size: 20px; font-weight: bold; }
 


This work fine using the xhtml1.1 strict dtd in Firefox but was although the content was rendered by IE, the element and styling were ignored.

So I guess IE defines the X in XHTML as "sort of extensible"

Elija

Reply With Quote
  #7  
Old April 20th, 2005, 04:27 AM
Shadow Wizard's Avatar
Shadow Wizard Shadow Wizard is offline
Moderator From Beyond
Click here for more information
 
Join Date: Sep 2004
Location: Israel
Posts: 29,173 Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)  Folding Points: 586116 Folding Title: Super Ultimate Folder - Level 2Folding Points: 586116 Folding Title: Super Ultimate Folder - Level 2Folding Points: 586116 Folding Title: Super Ultimate Folder - Level 2Folding Points: 586116 Folding Title: Super Ultimate Folder - Level 2Folding Points: 586116 Folding Title: Super Ultimate Folder - Level 2Folding Points: 586116 Folding Title: Super Ultimate Folder - Level 2Folding Points: 586116 Folding Title: Super Ultimate Folder - Level 2
Time spent in forums: 3 Months 2 Weeks 1 Day 22 h 36 m 41 sec
Reputation Power: 2470
to make it work in IE you have to add such thing in the html main tag:
Code:
<html xmlns:mytags>

then, have such tag and style:
Code:
 <style type="text/css">
  mytags\:book {font-family: tahoma; font-size: 20px; font-weight: bold; }
 </style>
 <mytags:book>This is the title of the book</mytags:book>
 

the above works for both IE and Firefox.
for more details about xmlns attribute:
http://msdn.microsoft.com/workshop/...rties/xmlns.asp

dunno exactly why Microsoft did this, probably because IE still can't handle xml - so you have to explicitly tell it "here is xml, deal with this".

Reply With Quote
  #8  
Old April 20th, 2005, 04:30 AM
Shadow Wizard's Avatar
Shadow Wizard Shadow Wizard is offline
Moderator From Beyond
Click here for more information
 
Join Date: Sep 2004
Location: Israel
Posts: 29,173 Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)  Folding Points: 586116 Folding Title: Super Ultimate Folder - Level 2Folding Points: 586116 Folding Title: Super Ultimate Folder - Level 2Folding Points: 586116 Folding Title: Super Ultimate Folder - Level 2Folding Points: 586116 Folding Title: Super Ultimate Folder - Level 2Folding Points: 586116 Folding Title: Super Ultimate Folder - Level 2Folding Points: 586116 Folding Title: Super Ultimate Folder - Level 2Folding Points: 586116 Folding Title: Super Ultimate Folder - Level 2
Time spent in forums: 3 Months 2 Weeks 1 Day 22 h 36 m 41 sec
Reputation Power: 2470
by the way, having this you can treat your custom tag like any other tag and even get list of its child tags using client side code. you can have full xml part in your page and access it using pure client side code - pretty useful sometimes.

Reply With Quote
  #9  
Old April 21st, 2005, 12:09 AM
baseballdude_'s Avatar
baseballdude_ baseballdude_ is offline
Expert Learner
ASP Free Intermediate (1500 - 1999 posts)
 
Join Date: Feb 2005
Location: Wisconsin
Posts: 1,907 baseballdude_ User rank is Second Lieutenant (5000 - 10000 Reputation Level)baseballdude_ User rank is Second Lieutenant (5000 - 10000 Reputation Level)baseballdude_ User rank is Second Lieutenant (5000 - 10000 Reputation Level)baseballdude_ User rank is Second Lieutenant (5000 - 10000 Reputation Level)baseballdude_ User rank is Second Lieutenant (5000 - 10000 Reputation Level)baseballdude_ User rank is Second Lieutenant (5000 - 10000 Reputation Level)baseballdude_ User rank is Second Lieutenant (5000 - 10000 Reputation Level)  Folding Points: 22104 Folding Title: Starter FolderFolding Points: 22104 Folding Title: Starter Folder
Time spent in forums: 1 Week 5 Days 15 h 28 m 41 sec
Reputation Power: 93
Send a message via AIM to baseballdude_ Send a message via MSN to baseballdude_ Send a message via Yahoo to baseballdude_ Send a message via Google Talk to baseballdude_
Man, isn't it just as easy to use CSS?

Reply With Quote
  #10  
Old April 21st, 2005, 12:10 AM
baseballdude_'s Avatar
baseballdude_ baseballdude_ is offline
Expert Learner
ASP Free Intermediate (1500 - 1999 posts)
 
Join Date: Feb 2005
Location: Wisconsin
Posts: 1,907 baseballdude_ User rank is Second Lieutenant (5000 - 10000 Reputation Level)baseballdude_ User rank is Second Lieutenant (5000 - 10000 Reputation Level)baseballdude_ User rank is Second Lieutenant (5000 - 10000 Reputation Level)baseballdude_ User rank is Second Lieutenant (5000 - 10000 Reputation Level)baseballdude_ User rank is Second Lieutenant (5000 - 10000 Reputation Level)baseballdude_ User rank is Second Lieutenant (5000 - 10000 Reputation Level)baseballdude_ User rank is Second Lieutenant (5000 - 10000 Reputation Level)  Folding Points: 22104 Folding Title: Starter FolderFolding Points: 22104 Folding Title: Starter Folder
Time spent in forums: 1 Week 5 Days 15 h 28 m 41 sec
Reputation Power: 93
Send a message via AIM to baseballdude_ Send a message via MSN to baseballdude_ Send a message via Yahoo to baseballdude_ Send a message via Google Talk to baseballdude_
Actually, like 10x easier.

Reply With Quote
  #11  
Old April 21st, 2005, 07:46 AM
Shadow Wizard's Avatar
Shadow Wizard Shadow Wizard is offline
Moderator From Beyond
Click here for more information
 
Join Date: Sep 2004
Location: Israel
Posts: 29,173 Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)  Folding Points: 586116 Folding Title: Super Ultimate Folder - Level 2Folding Points: 586116 Folding Title: Super Ultimate Folder - Level 2Folding Points: 586116 Folding Title: Super Ultimate Folder - Level 2Folding Points: 586116 Folding Title: Super Ultimate Folder - Level 2Folding Points: 586116 Folding Title: Super Ultimate Folder - Level 2Folding Points: 586116 Folding Title: Super Ultimate Folder - Level 2Folding Points: 586116 Folding Title: Super Ultimate Folder - Level 2
Time spent in forums: 3 Months 2 Weeks 1 Day 22 h 36 m 41 sec
Reputation Power: 2470
CSS and JavaScript are two different entities - most of the things you can with JS you can't do with CSS

Reply With Quote
  #12  
Old April 21st, 2005, 03:48 PM
elijathegold's Avatar
elijathegold elijathegold is offline
Senior Fire Wizard
ASP Free God 1st Plane (5500 - 5999 posts)
 
Join Date: Feb 2005
Location: Ashford, Kent. England
Posts: 5,651 elijathegold User rank is Captain (20000 - 30000 Reputation Level)elijathegold User rank is Captain (20000 - 30000 Reputation Level)elijathegold User rank is Captain (20000 - 30000 Reputation Level)elijathegold User rank is Captain (20000 - 30000 Reputation Level)elijathegold User rank is Captain (20000 - 30000 Reputation Level)elijathegold User rank is Captain (20000 - 30000 Reputation Level)elijathegold User rank is Captain (20000 - 30000 Reputation Level)elijathegold User rank is Captain (20000 - 30000 Reputation Level)elijathegold User rank is Captain (20000 - 30000 Reputation Level)  Folding Points: 1988630 Folding Title: Super Ultimate Folder - Level 4Folding Points: 1988630 Folding Title: Super Ultimate Folder - Level 4Folding Points: 1988630 Folding Title: Super Ultimate Folder - Level 4Folding Points: 1988630 Folding Title: Super Ultimate Folder - Level 4Folding Points: 1988630 Folding Title: Super Ultimate Folder - Level 4Folding Points: 1988630 Folding Title: Super Ultimate Folder - Level 4Folding Points: 1988630 Folding Title: Super Ultimate Folder - Level 4Folding Points: 1988630 Folding Title: Super Ultimate Folder - Level 4Folding Points: 1988630 Folding Title: Super Ultimate Folder - Level 4
Time spent in forums: 2 Months 2 Weeks 2 Days 4 h 37 m 4 sec
Reputation Power: 303
I've already got to use this in a project at work - It made something complicated really simple, reducing a day or so's effort to just under an hour!!

Elija
(who feels like a kid in a candy store)

Reply With Quote
  #13  
Old April 22nd, 2005, 07:30 AM
Shadow Wizard's Avatar
Shadow Wizard Shadow Wizard is offline
Moderator From Beyond
Click here for more information
 
Join Date: Sep 2004
Location: Israel
Posts: 29,173 Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 22nd Grade (Above 100000 Reputation Level)  Folding Points: 586116 Folding Title: Super Ultimate Folder - Level 2Folding Points: 586116 Folding Title: Super Ultimate Folder - Level 2Folding Points: 586116 Folding Title: Super Ultimate Folder - Level 2Folding Points: 586116 Folding Title: Super Ultimate Folder - Level 2Folding Points: 586116 Folding Title: Super Ultimate Folder - Level 2Folding Points: 586116 Folding Title: Super Ultimate Folder - Level 2Folding Points: 586116 Folding Title: Super Ultimate Folder - Level 2
Time spent in forums: 3 Months 2 Weeks 1 Day 22 h 36 m 41 sec
Reputation Power: 2470
lol!! (kid ah? )
you can transfer the hours you saved for yourself into reputation points you know - dragons are always hungry!

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingCode Bank > client side JavaScript: iterating over elements and hooking event handlers


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump





 Free IT White Papers!
 
Create the Optimal Architecture for your Critical Applications
Warburton's the largest independently owned bakery in the UK faced a number of difficult challenges in providing the most robust yet efficient IT infrastructure for their organization's success. IBM's services combined with their xSeries servers created the perfect platform for their SAP environment with sufficient flexibility, and did so in very time effective fashion.

 
Five Best Practices for Deploying a Successful Service-Oriented Architecture
This white paper describes the benefits you can expect with SOA, and how IBM can help take your business there.

 
Gartner Magic Quadrant for Application Delivery Controllers
Gartner summarizes its view on Application Delivery Controllers, evaluates strengths and weaknesses of solutions, and provides Magic Quadrant reporting for a quick comparison across all vendors. Learn from Gartner how you can benefit from an all-in-one device like Citrix NetScaler that delivers the highest levels of availability, performance and security.

 
Knowledge is Power
What you don't know can hurt you, and is likely costing you money and increasing your security risks during an era of scarce resources. This white paper proposes six key strategies that enterprise security managers can use to improve their network defense posture.

 
Rationalizing the Multi-Tool Environment
The rationalized multi-tool approach is flexible, scalable and cost effective. It provides the necessary input to the IT service management business processes. It preserves prior investments in monitoring tools, empowers technologists to select the best tools with which to do their jobs, and enhances effective response to incidents.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2010 by Developer Shed. All rights reserved. DS Cluster 2 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek