jQuery form.submit() not working

I was working on a basic html form recently. The form was using the jQuery validation plugin. Once validated I needed to submit the form using the jQuery .submit() function.
For some reason this was not working for me. After searching Google for a very long time and trying out lots of potential solutions I found the answer was a very simple change.
This was my issue. The name=”submit” was conflicting with the jQuery .submit() function.

<input type="submit" name="submit" value="Submit" />

It should have been:

<input type="submit" value="Submit" />

Fancybox and ASP .Net Forms

Fancybox is a great jquery plugin that allows you to display content; typically images, html or external websites over the top of your website.

I have used this plugin many times, but recently I used it to display a contact form on a .Net page. It worked perfectly fine in Chrome, but when it came to IE and Firefox the form was not behaving correctly. The form would try and submit even if it failed the validation. The form was also not hitting the server-side code which would process the form.

After a long time trying to figure out the issue and even trying alternative plugins I found this post. All I did was change the word ‘body’ to ‘form’ in the fancybox js file.

This is because the new elements we being created outside of the pages form which should be set to runat=’server’. Once it was set to create the elements in the pages form it all started working.

Some images return 404 error on wordpress site

I recently ran into an issue on a wordpress site I maintain. Images randomly stopped showing up on the site.
On further investigation I found that the images were just returning a 404 error.
After some searching the internet, I came across this article which basically said that it had something to do with the plugin ‘User Access Manager’.
The plugin adds a .htaccess file to the wp-content/uploads folder which stopped images being retrieved correctly.
The .htaccess file contains the following code

RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteRule (.*) /index.php?uamfiletype=attachment&amp;uamgetfile=$1 [L]