jquery

Position jQuery UI Dialog Relative to Link or Page Element

Demonstration of positioning a jQuery UI dialog relative to a link or radio buttons. Question from stackoverflow.com. It could be adapted to position under or next to any element on a page. It would work nicely as a form field hint dialog or help dialog. Two demos are below. One for a single element and […]

Tags ,
.net Google Analytics

Google Analytics Click Event Tracking on LinkButton in ASP.NET (VB)

Google Analytics integration with .NET web parts requires more planning and execution than with straight HTML. To apply dynamic event tracking to a LinkButton we can attach a function to the OnClientClick attribute of the LinkButton. First, a review of how the event tracking method is set up directly from Google: category (required) The name […]

Tags ,
Web development

For JavaScript Disabled: Simple <noscript> Solution

For the 1 – 2% of users that might have JavaScript turned off there is a simple <noscript> css solution. This is somewhat better than a forced redirect which could interfere with search engine optimization. In the head section, add a <noscript> tag that hides the main content or a section of the main content. […]

Tags
jquery

jQuery Ajax Get XML Parsing Error: no element found Location: moz-nullprincipal

This error in Firefox XML Parsing Error: no element found Location: moz-nullprincipal:{dd117028-da50-7b48-9a90-51f90c48ea9e} Line Number 1, Column 1 was seen on a xml get request using jQuery’s ajax function in this manner: The fix was making sure the XML was valid and changing the dataType to html. By the way, the ajax request to get an […]

Tags ,
jquery

jQuery UI Autocomplete Widget with Perl and MySQL

As a follow up to the jQuery UI Autocomplete Widget with PHP and MySQL post, I did one with Perl as the backend. The jQuery UI folks have released an autocomplete widget that is pretty slick. This example uses Perl as the backend. This example will use US states and territories to populate the autocomplete. […]

Tags ,