Title: John Housholder's Replies | WordPress.org

---

# John Housholder

  [  ](https://wordpress.org/support/users/ahsodesigns/)

 *   [Profile](https://wordpress.org/support/users/ahsodesigns/)
 *   [Topics Started](https://wordpress.org/support/users/ahsodesigns/topics/)
 *   [Replies Created](https://wordpress.org/support/users/ahsodesigns/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/ahsodesigns/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/ahsodesigns/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/ahsodesigns/engagements/)
 *   [Favorites](https://wordpress.org/support/users/ahsodesigns/favorites/)

 Search replies:

## Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)

 *   Forum: [Reviews](https://wordpress.org/support/forum/reviews/)
    In reply to:
   [[Emma for WordPress] Be prepared to fuss with it a lot…](https://wordpress.org/support/topic/be-prepared-to-fuss-with-it-a-lot/)
 *  Plugin Author [John Housholder](https://wordpress.org/support/users/ahsodesigns/)
 * (@ahsodesigns)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/be-prepared-to-fuss-with-it-a-lot/#post-7919043)
 * Thanks so much for your comments and we hope you enjoy the new version! Please
   stay active in the reviews section as we look at these as we roll out new features.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Emma for WordPress] [Plugin: Emma Emarketing Plugin for WordPress] How to replace Placeholder with onfocus and onblur](https://wordpress.org/support/topic/plugin-emma-emarketing-plugin-for-wordpress-how-to-replace-placeholder-with-onfocus-and-onblur/)
 *  Plugin Author [John Housholder](https://wordpress.org/support/users/ahsodesigns/)
 * (@ahsodesigns)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-emma-emarketing-plugin-for-wordpress-how-to-replace-placeholder-with-onfocus-and-onblur/#post-2966026)
 * admittedly, i did not test the code i sent you, sadly we don’t have the time 
   to invest in custom alterations of the plugin, but we can help out in small ways.
   
   i mentioned using JS, as that is what this code is, `onblur="if (this.value==""){
   this.value="Email Address";}"` it’s inline JavaScript. it simply says: “when 
   this element receives focus, and if the value is empty, then make the value “
   Email Address” i cannot say why that would not work in IE or FF, that question
   is beyond the scope of support we offer. however, yes, it is better to include
   JS within the <head> or down below the footer of the page. there is an excellent
   online support forum for questions of this nature you may have heard of called
   [stackoverflow](http://stackoverflow.com) it is an invaluable resource and chances
   are, someone has already had the problem you’re having. ty for posting.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Emma for WordPress] [Plugin: Emma Emarketing Plugin for WordPress] Using PHP short_open_tags!](https://wordpress.org/support/topic/plugin-emma-emarketing-plugin-for-wordpress-using-php-short_open_tags/)
 *  Plugin Author [John Housholder](https://wordpress.org/support/users/ahsodesigns/)
 * (@ahsodesigns)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-emma-emarketing-plugin-for-wordpress-using-php-short_open_tags/#post-2954511)
 * that would be much appreciated, avioli, please send your altered version to [info@ahsodesigns.com](https://wordpress.org/support/users/ahsodesigns/replies/info@ahsodesigns.com?output_format=md),
   and tyty for the heads up on the donate button!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Emma for WordPress] [Plugin: Emma Emarketing Plugin for WordPress] How to replace Placeholder with onfocus and onblur](https://wordpress.org/support/topic/plugin-emma-emarketing-plugin-for-wordpress-how-to-replace-placeholder-with-onfocus-and-onblur/)
 *  Plugin Author [John Housholder](https://wordpress.org/support/users/ahsodesigns/)
 * (@ahsodesigns)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-emma-emarketing-plugin-for-wordpress-how-to-replace-placeholder-with-onfocus-and-onblur/#post-2965979)
 * you are absolutely correct, IE > 10 doesn’t care for the placeholder attribute.
   
   please feel free to modify the plugin to your liking, but do keep in mind anything
   modded will be overwritten in an update.
 * The reason for the syntax error is the way single and double quotes are handled
   in php,
 * everything on the right of the = is getting concatenated into the variable on
   the left, since the plugin uses single quotes, the statement: this.value==’Email
   Address’ causes php to think the end of those single quotes is over.
 * all you have to do is replace those single quotes with double ones.
 *     ```
       $emma_form .= '<input id="emma-email" class="emma-form-input" type="text" name="emma_email" size="30" onfocus="if (this.value=="Email Address")
       {this.value="";}" onblur="if (this.value=="") {this.value="Email Address";}">';
       ```
   
 * a slight caveat, if i may, and i only bring it up because we’ve done the same
   thing elsewhere.
    by using JS to change the actual value of an input element,
   when the user clicks submit, that’s the value that will get processed in the 
   form. No worries for “Email Address”, as the plugin uses the internal WP function
   is_email() to validate email addresses, but if you were to do similarly for “
   First Name” and “Last Name”, if the user leaves in those default values, they’ll
   get passed to Emma.
 * thanks for posting!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Emma for WordPress] [Plugin: Emma Emarketing Plugin for WordPress] Using PHP short_open_tags!](https://wordpress.org/support/topic/plugin-emma-emarketing-plugin-for-wordpress-using-php-short_open_tags/)
 *  Plugin Author [John Housholder](https://wordpress.org/support/users/ahsodesigns/)
 * (@ahsodesigns)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-emma-emarketing-plugin-for-wordpress-using-php-short_open_tags/#post-2954456)
 * Hey avioli,
    thanks for catching that! it’s been fixed.

Viewing 5 replies - 1 through 5 (of 5 total)