Tuesday, October 16, 2012

Jquery Firefox won't submit form

I was attempting submit a cart checkout page to a hosted order form. I was submitting the form via a jquery call after modifying the form by removing some un-necessary elements and modifying the form action. This worked fine in IE/Chrome but not FF. In FF the form was not submitted. It was apparently due to the removing of the extra elements. I found this post that helped me out:

http://stackoverflow.com/questions/6347433/form-will-not-submit-if-remove-is-used

I was using ASP.NET button as using the submit behavior. I removed the asp.net button and replace it with a plain old html input button and it worked great!

Here is some sample code:

Input Button:

<input type="button" name="btnPayment" value="Checkout" onclick="update();" id="btnPayment">


Javascript:

function update() {



Hope that helps!!!

Tuesday, October 9, 2012

TheThe Image Slider Plugin: Stops working after two images

Ok. I worked on an issue with the TheThe Image Slider which is a plugin for a WordPress site. It is a basic image slider that has several options of showing numerous images. The problem was after a couple of images the slider seemed to stop working. Of course, after searching for a solution, I found the question asked many times with no solution. So I investigated further and hours later found the problem was very simple.

I changed the Transition Time setting from 9000 (ms) to 900 (ms). So maybe the image slider was not stuck but rather waiting 9000 ms? Seems like I waited longer that 9 seconds to confirm it was not moving on. Anyway, I don't know if this was the default setting. I was given the problem to solve so I don't know the initial state of the plugin just that changing it fixed it...

Hope that helps someone!