Javascript

Does location.href work on a relative url?

I'm following an example for a button

<input type="button" value="click" onClick="location.href='http://qampanswers.com';" />

Which works fine. But mine needs to be location.href='/category/question-tags/php' which doesn't seem to work for me in firefox or chrome

Jquery rounded corners IE error

I've already solved the problem but just listing here as I couldn't google an answer I had to try everything before I found the solution.

I had a site which displayed a list of letters <a href="#" id="a" class="clajaxletter">a</a> ... through the alphabet depending upon if there were entries for the letter. On all pages it worked great in Firefox but in IE on certain pages I had an error in jquery rounded corners and the ajax calls from these letters

The pages were practically equivalent so couldn't figure it out.

How do I use a custom footer for some Pages

I want to add some javascript / tracking code to the footer of certain pages.

Should I add a customer .tpl file for the page or is there a way to add it from the admin to certain pages?

Attempting to remove an image from a product in Drupal / Ubercart error

While attempting to update a product on a site using Ubercart and Drupal I get the following error.

An unrecoverable error occurred. The uploaded file likely exceeded the maximum file size (25 MB) that this server supports.

There is no file being uploaded as I'm removing the current one I get this error and no upload form appears.

I'm using IE7, No issues in firefox though.

Help with reCaptcha on coldfusion site

I've been asked to place a recaptcha on a site using coldfusion. I'm using http://recaptcha.riaforge.org/ - ColdFusion reCAPTCHA tag and a quick demo worked perfectly.

But when I place it in my form it appears but none of the info from the captcha seems to be coming through.

I var dumped the form and there were no extra fields at all.

Any pointers here?

How would I add a script to the bottom of every page in Drupal

Whats the quickest way to add Google analytics to every page in my Drupal site. There are quite a few template files I don't want to add to every one of them.

Is there a way to add them to the footer of all of them?

Thanks, Charlie

Syndicate content