Posts tagged ‘ajax’

SimpleModal Contact Form (SMCF) 1.2.3 Released

Sunday, April 5th, 2009

Charles found an issue with the validation code – it was requiring a subject even when the subject field was disabled.

A fix has been made and uploaded to the WordPress plugin repository. You should see the update available shortly.

Thanks Charles!

For more information and the download, please visit the SMCF WordPress Plugin Page.

SimpleModal Contact Form (SMCF) 1.2.2 Released

Tuesday, March 31st, 2009

SMCF 1.2.2 includes the following changes:

  • Upgraded SimpleModal to 1.2.3
  • Added addslashes() function for smcf_messages JavaScript object to prevent localization issues
  • Added stripslashes() function for the email message
  • Removed 70 character limit for wordwrap() function – defaults to 75
  • Added wp_page_menu() and wp_list_pages() filter to dynamically add smcf-link class to a contact menu link
  • Changed format of validation messages – requires translation updates

If you are using wp_list_pages() or wp_page_menu(), this release makes it a lot easier to use SMCF without having to modify any source files. All you need to do is enter the matching link title on the SMCF options page.

I’ve also modified the email message to use the default wordwrap of 75 characters and have removed the slashes added by magic_quotes.

Translators: Updates were made to the verbiage, so if you would be so kind to update your translations, I’d appreciate it!

For more information and the download, please visit the SMCF WordPress Plugin Page.

SimpleModal Contact Form (SMCF) 1.1 Released

Thursday, March 13th, 2008

SMCF 1.1 includes the following changes:

  • Fixed image pre-loading to actually pre-load ;)
  • Added new effects on form open and close
  • Added a security feature
  • Added optional subject and cc sender form elements
  • Added common classes to form elements
  • Renamed all classes and ID’s to prevent collisions
  • Added WordPress translation ability on text elements (__() and _e() functions)
  • Upgraded to SimpleModal v1.1.1 and jQuery 1.2.3
  • Moved SimpleModal and SMCF JavaScript file loading to the footer

For more information and the download, please visit the SMCF WordPress Plugin Page.

SimpleModal Contact Form (SMCF) 1.0 Released

Sunday, January 6th, 2008

SimpleModal Contact Form (SMCF) is an Ajax powered modal dialog contact form for WordPress.

The project and all of the information about it is hosted on WordPress.org.

If you have any feedback regarding the plugin, please let me know.

SimpleModal v1.1 Released

Friday, January 4th, 2008

There are three new options and the handling of data has been revamped. For more details, including documentation, demos, tests and downloads, visit the project page.

I’m finishing up a WordPress plugin based on SimpleModal, which should be ready soon. The Contact link above is powered by the new WordPress plugin.

jQuery bug – Ajax ‘no-cache’ parameter

Monday, December 3rd, 2007

In jQuery 1.2.1, when using the $.ajax function with cache: false, jQuery appends a parameter with the current timestamp to the URL. This parameter makes the URL unique and therefore prevents subsequent request from being retrieved from the browser cache.

However, the code that adds this ‘no-cache’ parameter does not check to see if it already exists and so under certain circumstances you can end up with URL’s that look like:

http://mysite.com/file.html?_=1196716041523&_=1196716462963&_=1196716464245

It certainly makes the URL unique :)

I opened a ticket and submitted a patch, which was quickly optimized by a jQuery developer, davidserduke.

It’s nice to see a project with responsive, helpful developers.