We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 21419
    • 84 Posts
    I’m in the process of setting up AjaxSearch on a site I’m converting to ModX from another CMS. I’ve only used AjaxSearch once before and had no problems. With this implementation, I am getting an empty character before the <form> tag is written.

    The output looks like this (from Safari’s inspector)
    </div>
    "  "
    <form id="ajaxSearch_form"  action="area-information.php" method="post">
        <fieldset>
    


    I can’t find any place where a newline or anything is actually inserted before the form tag is rendered, yet it is showing up on my pages. And it’s obtrusive as it’s screwing with the layout. I’ve removed all extra spaces from the layout elements and even adjusted the layout.tpl.html so there are no empty spaces. Can’t seem to get rid of it.

    Any ideas?
      • 5811
      • 1,717 Posts
      I think that you should check the language file used. Like on this post, if the language file used have a weird character, as thiis file is included, you could get it.
        • 21419
        • 84 Posts
        That was my other post and this is the same site I’m dealing with. I fixed the language to correct the other problem. This "empty character" is still showing up though. I went through and zapped all of the tpl files and converted to ASCII. Still... empty character.

        http://dev.hhiconcours.com/events/savannahhilton-head-speed-classic.php

        I also went through and zapped/converted to ASCII all of the files in the AjaxSearch directory.

        SOLVED
        ------
        I reinstalled the plugin and went through all of the template files, converting their encoding to Non-lossy ASCII and that eliminated the problem (layout.tpl.html). Thanks for the help.