Support

  1. morgan_leecy
  2. General
  3. Saturday, September 17 2016, 11:41 PM
I have written a piece of jquery which works fine on a standalone website. Basically it watches for key presses on one of my form fields (by id) and when at least 4 characters are in place it checks the value of the field against a remote database until value prompts a true response.

On a standard HTML form on a standalone page it's fine (I replicated fields by name to exactly match my easy profile form)

I am now loading this into my site and it does nothing.. the reason for this is (I assume) it cannot see the field in easy profile.. it's just convinced it's not there and stops watching

have put the script before closing body tag, fires when document,ready (also tried window.load)

How can I include this script within easy profile to start watching the field when it has been generated?

Skeleton.php is more for functions, but I would need to then call this again on the form same problem, doesn't exist
morgan_leecy Accepted Answer
Pro
Sorted it

I had a static event

jQuery(document).on('click', '#jform_my_field', function(

Which contained my other script which now worked as the easy profile fields were in place
  1. more than a month ago
  2. General
  3. # 1
admin Accepted Answer
Admin
Hi,
sorry for late reply, it was a weekend for us.

Sorted it

Great, but I think you had some problem of your script, I have tried to add before the end of body this simple script, and it works.

jQuery(document).ready(function($){
$('#jform_firstname').bind('keyup blur',function(e){
alert('test');
});
});


Now I see your new function,and seems that in your previous script you had not trigger you function after document ready event. If you put function directly on code without document.ready the DOM will be not ready and your function will do nothing.
  1. more than a month ago
  2. General
  3. # 2
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.

Request Support

Support is currently Offline

Support Availability

Working days: Monday to Friday. The support staff is not available on weekends; in the most of cases tickets will not be answered during that time.

Reply time: Depending on the complexity of your support issue it's usually between a few minutes and 24 hours for paid members and about one week for free members. When we expect longer delays we will notify you.

Guidelines

Before you post: read the documentation and search the forums for an answer to your question.

When you post: include Site Details if you request a support (you can use the form below the reply in Site Details tab).

Auto Solved Question: If after a week the author of the post does not reply to a request by moderator, the question will be marked as resolved.

Language: only English

Search Users

Easy Profile® is not affiliated with or endorsed by Open Source Matters or the Joomla Project. Joomla is Free Software released under the GNU/GPL License.