Topic: Support/Comments for AjaxSearch  (Read 154819 times)

Pages: 1 ... 11 12 [13] 14 15 ... 30   Go Down

#241: 8-Jul-2007, 08:23 AM

Moderators

AHHP
Posts: 397

Salut capitan,

WWW
Hi;
Finally i could solve my problems with Ajax Search(Grin) and now i have a question about result links,
I use Ajax Search 1.6 like below:
Code:
main template codes
........

                                  <div>
                                           <frame>
                                                          search box and results
                                           </frame>
                                  </div>
</body></html>
when a result link is clicked, new page appears in the frame,
is it possible to open links in main page(which includes search box) like usual links opening?
OR in a new window(using target)?


Thanks
 AHHP

#242: 11-Jul-2007, 10:22 AM


robot
Posts: 113

I'm looking for the best way to approach integrating a web user search..

Could it be possible to use/modify this snippet to either of these things:

1-Search specific MySQL tables? (example: search the web_user_attributes table)
..or..
2-Show  results from within the a page as separate items (example: shows each list item on the page being searched as a separate result)

any help greatly apprectiated.
drew.liverman

#243: 11-Jul-2007, 12:21 PM

Moderators

AHHP
Posts: 397

Salut capitan,

WWW
[sorry robot],
I found the solution of my problem with ajax search, i have a link in my template that use JS files(prototype or scriptaculous):
Code:
<a id="closebutton" onclick="Effect.toggle('searchcontainer','Appear'|'BlindDown','duration:3.0')">search</a>
if i use ajax search in page (use mootools.js) the link and search won't work and i must remove one of them, so i must either remove search or link from pages to using one of them well.
in the other words mootools.js is not compatible with prototype.js or scriptaculous.js and this problem forced me call AjaxSearch in a frame to use both.
so i must select one of them to use,
OR
use ajaxsearch in external page like frames that causes this problem(two post later) for me,
OR
find a solution for compatible problem.
please help me to use them well Wink

Thanks
 AHHP
« Last Edit: 12-Jul-2007, 11:30 AM by albert_hp »

#244: 21-Jul-2007, 09:17 AM

Administrator

smashingred
Posts: 1,422

Jay Gilmore

WWW
Bugfix Request

Kyle,

Could you please mod the /assets/snippets/AjaxSearch/includes/template.inc.php so that the <input> elements are not nested in the <label> elements. This is not valid markup in any strict Doctype. This therefore is a bug.

Code:
//Form Template
'form' => '
<form [+as.formId+]action="[+as.formAction+]" method="post">
<label for="ajaxSearch_input">
<input id="ajaxSearch_input" type="text" name="search" value="[+as.inputValue+]"[+as.inputOptions+] />
</label>
<label for="ajaxSearch_submit">
<input id="ajaxSearch_submit" type="submit" name="sub" value="[+as.submitText+]" />
</label>
</form>',
Should be as follows:
Code:
//Form Template
'form' => '
<form [+as.formId+]action="[+as.formAction+]" method="post">
<label for="ajaxSearch_input">Search</label>
<input id="ajaxSearch_input" type="text" name="search" value="[+as.inputValue+]"[+as.inputOptions+] />

<label for="ajaxSearch_submit"> </label>
<input id="ajaxSearch_submit" type="submit" name="sub" value="[+as.submitText+]" />

</form>',

This will solve other people's constant problem with validation.

Thanks for such a great snippet though!

Jay

#245: 21-Jul-2007, 10:55 AM

Foundation

rthrash
Posts: 11,353

WWW
Jay, I think you're a bit confused on the validation. Inputs nested in their corresponding labels are completely valid. Both elements are inline elements, and inline elements can always be nested. Nesting block elements in inline elements however is invalid (e.g., a P in a SPAN).

Here's a quick test for you to check yourself: http://modxcms.com/formtest.html (Validates XHTML 1.0 Strict)

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html>
<head>
    <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
    <title>Form Test</title>
   
</head>
<body>
<form action="#" method="get" accept-charset="utf-8">
    <fieldset>
        <label for="inputtest"><input type="text" id="inputtest" value="Continue &rarr;" /></label>
        <label for="submittest"><input type="submit" id="submittest" value="Continue &rarr;" /></label>
    </fieldset>
</form>
</body>
</html>
MODx is a content managmeent framework that allows web professionals to turn over sites to end-users for daily maintenance without worrying. Please help us help you when asking for assistance and read the wiki. Searching the forums from the top level helps, too.
Ryan Thrash
MODx Co-Founder
Principal @ Collabpad
work productively.
work intelligently.
work together.

#246: 21-Jul-2007, 10:29 PM

Administrator

smashingred
Posts: 1,422

Jay Gilmore

WWW
Ryan,
I  have reread the spec and agree. Don't like to be wrong but like to learn new things. Thanks for calling me on my error.

All the best,

Jay

#247: 22-Jul-2007, 09:16 AM

Foundation

rthrash
Posts: 11,353

WWW
Oh man you are a bigger man than I am for reading the spec, which is fraught with ambiguously and awkwardly worded things! John Gallant (world's greatest CSS bug documenter from positioniseverything.net) and I have spent hours at a time on more than one occasion trying to figure out what some obscure part of the spec means, and whether Fx, Saf or IE is getting it right. The spec in fact may state that the labels can't nest inputs, but Standardistas will moan if they don't pass the online validator from the w3c ... so sadly I code to the validator myself. Tongue
MODx is a content managmeent framework that allows web professionals to turn over sites to end-users for daily maintenance without worrying. Please help us help you when asking for assistance and read the wiki. Searching the forums from the top level helps, too.
Ryan Thrash
MODx Co-Founder
Principal @ Collabpad
work productively.
work intelligently.
work together.

#248: 22-Jul-2007, 11:45 AM

Administrator

smashingred
Posts: 1,422

Jay Gilmore

WWW
Ryan,

Just to point out for clarification: When a label wraps or nests an input it is the same as using the "for" attribute. This is what the W3C calls implied  labeling vs. implicit labeling (which is using the "for" attrib.) So it is completely fine to nest inputs and it is completely fine to omit the label value as the user agent is supposed to use the "name" attribute of the input as the label.

#249: 22-Jul-2007, 12:57 PM

Foundation

rthrash
Posts: 11,353

WWW
Very good info on wrapped inputs I definitely wasn't aware of ... thanks for sharing. Smiley
MODx is a content managmeent framework that allows web professionals to turn over sites to end-users for daily maintenance without worrying. Please help us help you when asking for assistance and read the wiki. Searching the forums from the top level helps, too.
Ryan Thrash
MODx Co-Founder
Principal @ Collabpad
work productively.
work intelligently.
work together.

#250: 23-Jul-2007, 03:22 PM


BBloke
Posts: 235

I'm having trouble with multiple word searches.  I can search for one word and get a very nice page.  I try two or more words (with highlighting) and the results start to show HTML code from introtext and content text.  I've been removing image descriptions and titles but I would prefer to keep them in. 

Is there a way to get it to render the right result or do I need to remove search hightlighting?

Thanks,

UPDATE:  I've tried to stop Search highlighting but disabling the plugin hasn't gotten anywhere.

« Last Edit: 23-Jul-2007, 03:37 PM by BBloke »
BBloke

#251: 27-Jul-2007, 04:07 AM

Jako
Posts: 107

WWW
I have a problem: It is that the ajaxSearch_output-box won't dissapere in MSIE 7 before search.
Same Problem here. With Safari/Opera/Firefox everything works fine.

Regards
Jako

#252: 27-Jul-2007, 04:54 AM

danielsl
Posts: 67

WWW
Is it possible to add option to disable mootools in ajaxSearch?

or how to do it manually

this library is very heavy, and is not much usefull for ajaxsearch tasks

#253: 27-Jul-2007, 07:28 AM

Foundation

rthrash
Posts: 11,353

WWW
If you want the ability to search and return results without reloading the page then mootools is required. If you're not interested in that you can use it wihout.
MODx is a content managmeent framework that allows web professionals to turn over sites to end-users for daily maintenance without worrying. Please help us help you when asking for assistance and read the wiki. Searching the forums from the top level helps, too.
Ryan Thrash
MODx Co-Founder
Principal @ Collabpad
work productively.
work intelligently.
work together.

#254: 28-Jul-2007, 04:06 PM

danielsl
Posts: 67

WWW
but the original ahah javascript reload
innerhtml
and also manipulate DOM
without any mootools
and about 2kb size

#255: 29-Jul-2007, 07:56 AM

Foundation

rthrash
Posts: 11,353

WWW
I'm sure you can do that then assuming it has the appropriate tools to perform the Ajax request.
MODx is a content managmeent framework that allows web professionals to turn over sites to end-users for daily maintenance without worrying. Please help us help you when asking for assistance and read the wiki. Searching the forums from the top level helps, too.
Ryan Thrash
MODx Co-Founder
Principal @ Collabpad
work productively.
work intelligently.
work together.

#256: 2-Aug-2007, 06:35 AM

Jako
Posts: 107

WWW
I have a problem: It is that the ajaxSearch_output-box won't dissapere in MSIE 7 before search. (See pictures below.)

Rename in your css:

Code:
#ajaxSearch_output { ...

to

Code:
#current-search-results { ...

Don't know why `style="opacity: 0"` in the snippet Code doesn't work with InternetExplorer 7 but applying the Stylesheet to the #current-search-results-DIV inside the #ajaxSearch_output-DIV fixes this problem.

Regards
Jako

#257: 8-Aug-2007, 05:20 AM

NZMarke
Posts: 3

Just noted that there's a parameter in the Snippet $minChars to restrict the minimum number of characters constituting a search term.

Wondered whether perhaps this could be a parameter that could be passed to the Snippet in future versions?

We had an issue recently where the site needed searches to work for a number of acronyms of 2 characters or more, and we had to change the value in the snippet rather than being able to set it in the Snippet call. Not a major, just thinking about having to remember to update this in the code later when/if we update to a later AjaxSearch version. Of course I'd have to remember to update it in the call if the change were to be made now so either way I'll just have to remember!

;-)

#258: 15-Aug-2007, 05:08 AM

myan24
Posts: 122

I love MODx!

Sorry if this has been posted before but is there a way to include private documents in the search results of ajaxsearch without a web user having to login?

Thanks!

#259: 15-Aug-2007, 01:49 PM

Foundation

rthrash
Posts: 11,353

WWW
myan24, I don't think so, but you might check the parameters in the code itself.
MODx is a content managmeent framework that allows web professionals to turn over sites to end-users for daily maintenance without worrying. Please help us help you when asking for assistance and read the wiki. Searching the forums from the top level helps, too.
Ryan Thrash
MODx Co-Founder
Principal @ Collabpad
work productively.
work intelligently.
work together.

#260: 20-Aug-2007, 09:04 PM

apmkk
Posts: 24

Hi.  I was wondering if there was a way to show Ajaxsearch results which include both the longtitle and the page title?  The problem with my television based site is that I have several pages that say "Season 01" but there is no way to tell which television show the results list is displaying.  Is there a way around this?  Could it be possible to list both the longtitle and the page title in one item/line?  Or, could it be possible to include some sort of breadcrumb to the pages showing in the results list?  (try the search yourself here)
Pages: 1 ... 11 12 [13] 14 15 ... 30   Go Up
0 Members and 1 Guest are viewing this topic.