 |
Browser version detection in Javascript
Paul Hayman (366 views)
Browser version detection in Javascript
#c#var ns4 = (navigator.appName.indexOf("Netscape")>=0 &&
#c# parseFloat(navigator.appVersion) >= 4 &&
#c# parseFloat(navigator.appVersion) < 5)? true : false;
#c#
#c#var ns6 = (parseFloat(navigator.appVersion) >= 5 &&
#c# naviga
|
 |
Geting the position of the mouse pointer (cursor) in JavaScript (Works in IE7)
Paul Hayman (1244 views)
Geting the position of the mouse pointer in JavaScript (Works in IE7)
The following function will return the position of the mouse pointer based on the event. It actually works in IE7.
#c#function getPosition(e) {
#c# e = e || window.event;
#c# var cursor = {x:0, y:0};
#c# if (e.
|
 |
Get the Top and Left location of an element with JavaScript
Paul Hayman (240 views)
The following code will return the top and left position for an element.
#c#var ns4 = (navigator.appName.indexOf("Netscape")>=0
#c# && parseFloat(navigator.appVersion) >= 4
#c# && parseFloat(navigator.appVersion) < 5)? true : false;
#c#var ns6 = (parseFloat(navigator.app
|
 |
Set Input Focus on a Control Programatically Added to an ASP.Net Page
Paul Marshall (829 views)
Set Input Focus on a Control Programatically Added to an ASP.Net Page
This little problem had the potential to drive me nuts for hours, I was fortunate to stumble over a blog with 100s of comments re problems of this nature and how to solve it. Most of the discussion was about using JavaScript
|
 |
Custom Validators using Client Side JavaScript
Paul Marshall (1908 views)
Custom Validators using Client Side JavaScript
In my latest project I am really enjoying using the Ajax Control Toolkit, particularly the ModalPopupExtender.
I've been using the popup panels to capture data, but I needed to validate the data that a user enters into certain fields. ASP.net's
|
 |
Firefox doesn't use parentElement, it uses parentNode
Paul Hayman (796 views)
Firefox doesn't use parentElement, it uses parentNode
JavaScript in FireFox doesn't support the function parentElement. You should use parentNode instead.
Example:
#h#myElement.parentNode;
|
 |
Activating flash automatically with javascript
Andrew Clark (858 views)
Activating flash automatically with javascript
I find it really annoying when you go to a website and you have a flash movie or flash navigation and you have to click on the flash to activate it before you can start interacting with it. With a little bit of javascript you can automatically acti
|
 |
Image reflection the easy way!
Andrew Clark (3128 views)
Image reflection the easy way
After seeing the nice new reflection effects in some wpf/e examples from Microsoft and other sites that use reflection in their logo. I wanted to start using them on images in my sites. I started by opening photoshop and making the reflection part of the image, th
|
 |
Web service calls from javascript using ATLAS (part 3) - Complex properties
Dave Howard (3187 views)
Web service calls from javascript using ATLAS (part 3) - Complex properties
#$#<a href="http://www.dotnetkicks.com/kick/?url=http://www.geekzilla.co.uk/View7DA902AA-513E-48D2-AD02-0F1A1946A999.htm"><img src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http://www.gee
|
 |
Web service calls from javascript using ATLAS (part 1)
Dave Howard (3712 views)
Web service calls from javascript using ATLAS (part 1)
#$#<a href="http://www.dotnetkicks.com/kick/?url=http://www.geekzilla.co.uk/View91E6FCCB-DB0A-499C-A2CC-9854452D2086.htm"><img src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http://www.geekzilla.co.uk/View91E6FC
|
 |
Not using Google Analytics? You should be!
Paul Marshall (4956 views)
Not using Google Analytics? You should be
Over the past few days I have received a number of comments regarding a recent article I published about re-directing a Page by Appending an HTTP Header, and linking this with '''Google's Analytics''' '''PPC tracking''' for '''Affiliate''' click-throug
|
 |
TAB inside input boxes
Barrington Haynes (4749 views)
TAB inside input boxes
When you want to insert a TAB character inside a textarea (or a textbox) in a web page, you press TAB key and the focus moves to another field in the page instead of a TAB character being inserted into the textarea. The problem is that TAB key is reserved for web pages to
|