-
☆ A M B ☆
- 24,524 Posts
I believe that if you make your form template with no line breaks or spaces between the tags IE won’t add that extra space. I know for sure it does this with lists, but I’m not 100% positive about other container tags.
Thanks sotwell for your answer.
Regarding :
"1/ With IE, unnecessary lines are added. These lines disrupt the css display by pushing down the input form"
the trouble comes from a language file (francais-utf8.inc.php) which includes line breaks and strange caracters.
I will correct the file and now it’s ok.
Regarding :
" 2/ Opaque color output results window is always visible with IE 6.0 even without results", i haven’t found the solution.
I don’t know how i could take into account IE specificities in the style property. Any suggestions ?
-
MODX Staff
- 2,502 Posts
@knightknight
You are right it does work. It is not a perfect way as it will not show any text if images are off and you are using a bg image; it will show the text if you have the css off. Why someone would have CSS off and images on this is beyond me though. There are probably better ways to handle styling of submits either using a button element instead with the foreground text being generated by the value attribute or some other. It is not the most accessible method if you are concerned about that sort of thing.
Author of zero books. Formerly of many strange things. Pairs well with meats. Conversations are magical experiences. He's dangerous around code but a markup
magician.
Blog ✦
Twitter ✦
LinkedIn ✦
GitHub
hi there,
a site i am building has an extensive FAQ-type page which requires a search facility. is it possible to have AjaxSearch search only a specified doc id and it’s children? if not are there any other modx search snippets that might do this?
i also have a regular full site search, so is it possible to have 2 instances of AjaxSearch on the same site?
many thanks!
-
MODX Staff
- 2,502 Posts
Help!
I have an install of AjaxSearch on a site and it worked great on my local host server enviroment but since uploading to production server it has stopped working. Originally I thought it had to do with having the fURLs off and the site being in a subdir but now it is live and I hav e fURLs working and I have reinstalled the AjaxSearch files. I just seem to be getting the (thinking) image with no results showing.
Any idea what might be the cause?
Here is the url:
http://www.nqnh.ca/
Please help!
Jay
Author of zero books. Formerly of many strange things. Pairs well with meats. Conversations are magical experiences. He's dangerous around code but a markup
magician.
Blog ✦
Twitter ✦
LinkedIn ✦
GitHub
-
MODX Staff
- 2,502 Posts
Arghh!?!?!?! >:(
I am still having this problem with AjaxSearch and have looked at the post response using the FireBug Extension for Firefox and it shows an Apache error response of 406 for the search output (in HTML) below:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML><HEAD>
<TITLE>406 Not Acceptable</TITLE>
</HEAD><BODY>
<H1>Not Acceptable</H1>
An appropriate representation of the requested resource /index-ajax.php could not be found on this server
.<P>
<HR>
<ADDRESS>Apache/1.3.37 Server at nqnh.ca Port 80</ADDRESS>
</BODY></HTML>
Any ideas as to the cause of a 406 error?
Please help! Thanks,
Jay
Author of zero books. Formerly of many strange things. Pairs well with meats. Conversations are magical experiences. He's dangerous around code but a markup
magician.
Blog ✦
Twitter ✦
LinkedIn ✦
GitHub
-
MODX Staff
- 2,502 Posts
[SOLVED]!!!
I figured out my problem.
I did a search for xmlHttpRequest and (my hostname) and found that sometimes Apache’s mod_security can cause problems with AJAX applications.
I added the following lines to my .htaccess file and now everything works like a charm.
SecFilterEngine On
SecFilterSelective "REQUEST_URI" "/index-ajax.php" "allow,nolog"
Since my host is still using Apache 1.3.3 and PHP as CGI vs my home stack which is Apache 2.2.X and PHP 5 as Apache Module.
Hope this helps someone else.
Author of zero books. Formerly of many strange things. Pairs well with meats. Conversations are magical experiences. He's dangerous around code but a markup
magician.
Blog ✦
Twitter ✦
LinkedIn ✦
GitHub
@smashingred,
The submit -textindent worked in FF but IE 7 is having none of it. IE7 will display both image and text version of the button. Don’t have an IE fix using the method you posted?
Please bare with me if this has been answered before, I couldn’t find it:
How can I pass variables into templates.inc.php, like TVs from the searchresult-docs? Or I could ask in another way; Where does the content in the [+as.pagetitle+] come from?
What I try to make is to show a picture from the searchresult-docs-content in front of every link on the searchresult-page.
I use MODx 0.96 and AjaxSearch 1.6
Thanks!
I think, thererfor I am! But what I am, and why...?
-
☆ A M B ☆
- 24,524 Posts
Line 153 of AjaxSearch.php:
$resultPlaceholders = array(
'[+as.resultClass+]' => 'AS_ajax_result',
'[+as.resultLinkClass+]' => 'AS_ajax_resultLink',
'[+as.resultLink+]' => $resultLink,
'[+as.longtitle+]' => $row['longtitle'],
'[+as.pagetitle+]' => $row['pagetitle'],
'[+as.description+]' => $resultDesc,
'[+as.extract+]' => $resultExtract,
);
It gets these $row values from the doSearch() function, which is called in line 67, after sanitizing the POST values for the search. The function is defined in line 118 of AjaxSearch.inc.php, and there are a number of different queries built, depending on the search type.