I'm trying to validate against a remote request, but the result is pulling in template info as well - throwing off my true/false response. This works fine outside of Joomla, but I'm not finding a way of fixing it in Joomla.



jQuery( "#modalform" ).validate({
    rules: {
        chosen_domain: {
            required: true,
            minlength: 4,
            remote: "index.php?option=com_component&task=checkDomain&tmpl=component"
    messages: {
        chosen_domain: {
            required: "Required input",
            minlength: jQuery.validator.format("Please, at least {0} characters are necessary"),
            remote: jQuery.validator.format("{0} is already in use"),


  <body class="contentpane">
    <div id="window-mainbody" class="window-mainbody">
      <div id="system-message-container">

  • 1
    What happens if you add &format=raw after &tmpl=component?
    – Lodder
    Nov 1, 2014 at 10:02
  • That did it, thanks! I should have seen that... Make it a comment, and I'll accept it.
    – James
    Nov 1, 2014 at 23:40

1 Answer 1


You need to add &format=raw at the end of the URL so it will look like the following:


Hope this helps

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.