10 years ago
Topic

I know, that joomla 3.x uses bootstrap, both css and js. When I am filling in the registration form and my password is too short for example, I start getting those javascript tooltip error messages. I have added an ajax call to the registration where I check the availability of the username and email. I am getting my string message back succesfully with jQuery ajax. But How can I add that message to my username input field to be shown at the other tooltips?

Thank you!

Get a Book for SEBLOD
4229 Posts
Kadministrator
10 years ago
2
Level 1

Hi,

you could use $.ajax().done to append your response to the right page element

10 years ago
1
Level 2

Hi Klas!

Yes, I am trying to... :) I have my ajax call and my correct response back, it may sound stupid, but I can not make that response string to appear as a tooltip. 
I have JHTML::_('behavior.tooltip'); in template override. 
But, I have discovered that there is an availability validation for the username field. If you can help me in setting that up, that would be perfect form me!
So, I am in my site field view and clicked on number 3 Required/Validation stage.

There I can say that the field is required. A can also check the availability:

I have set the table for users, the column for username, the Key Coulmn to useraname and the fields to username.

It is not doing what I want, so I am not sure if I have set that up fine.

Thanks!

10 years ago
0
Level 3

Ok, it works, I have left the fields blank, and now it works!!! 

Thanks!

Get a Book for SEBLOD