Matteh Posted August 16, 2010 Share Posted August 16, 2010 Does anyone know what could be going wrong here?Everytime I turn on Ajax search it will remain set to yes (turned on).The moment I load any page of the front-end it reverts the Ajax Search in the back office to no (turned off).I'm not sure what information I should provide to try figure out this issue.. so if you want to know anything or see any page codes then just ask.It would be a great help if someone could figure this out as I've looked through the code so much and can't find anything that should cause the option to revert back.Thanks. Link to comment Share on other sites More sharing options...
jsmith Posted September 12, 2010 Share Posted September 12, 2010 Meme problème pour moi !Same problem for me !Dès qu'une page se charge l'option ajax se désactive.Je précise que j'utilise le module de recherche rapide dans la colonne de gauche, et j'ai désactivé celui du haut.Anytime a page from the front office is loaded, ajax automatically gets deactivated.I'm using the quicksearch box on the left column while having deactivated the top one.Any solution ? Link to comment Share on other sites More sharing options...
majko Posted September 12, 2010 Share Posted September 12, 2010 I have same problem?Can anybody help ???THX 4 solutionEDIT: on localhost wamp it works. But on internet doesn't Link to comment Share on other sites More sharing options...
jsmith Posted September 13, 2010 Share Posted September 13, 2010 Really disturbing anyway, i've found no solution yet Link to comment Share on other sites More sharing options...
MrBaseball34 Posted September 13, 2010 Share Posted September 13, 2010 Where is your Search Block hooked? Ajax Search only works when it is in the header.Don't ask me why, I have no idea why it would make a difference. Link to comment Share on other sites More sharing options...
MrBaseball34 Posted September 13, 2010 Share Posted September 13, 2010 If you want to try to see if it will work when it is hooked to the other columns, comment out this line in the hook where your block is installed (hookRightColumn or hookLeftColumn) in blocksearch.php: $this->_disabledSearchAjax(); Link to comment Share on other sites More sharing options...
rocky Posted September 14, 2010 Share Posted September 14, 2010 The search block must be in the "Header of pages" hook for the jquery.autocomplete.js and jquery.autocomplete.css to be included on your site. The autocomplete won't work without those files. Link to comment Share on other sites More sharing options...
MrBaseball34 Posted September 14, 2010 Share Posted September 14, 2010 Why is that Rocky? I would think that it would be explained *somewhere*... Link to comment Share on other sites More sharing options...
rocky Posted September 15, 2010 Share Posted September 15, 2010 Obviously, HTML doesn't support autocomplete, so Javascript must be used. It is placed in the "Header of pages" hooks because all CSS should be in the <head> tag, not the <body> tag. It makes sense to me.When the module is installed, it automatically puts the module in the "Header of pages" hook. I don't see why instructions saying "Do not remove this module from the header of pages hook" is required. Link to comment Share on other sites More sharing options...
MrBaseball34 Posted September 15, 2010 Share Posted September 15, 2010 so, why can't javscript be used in the left column or right column hooks?I just don't see that your explanation holds water. Link to comment Share on other sites More sharing options...
rocky Posted September 15, 2010 Share Posted September 15, 2010 The Javascript could, but the CSS shouldn't. Ideally, all CSS should be near the top of the file and all JS should be near the bottom. Link to comment Share on other sites More sharing options...
MrBaseball34 Posted September 15, 2010 Share Posted September 15, 2010 And that matters why? Including the CSS anywhere is no problem as long as it is not an include but a style tag. And including the JS where it is needed is definitely no issue. I fail to see why this is a problem at all if you layout your HTML in the block correctly. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now