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

Pages: 1 ... 9 10 [11] 12 13 ... 30   Go Down

#201: 16-May-2007, 05:39 PM

redstormj
Posts: 117

Hi all, is there a way to have a search landing page where I can send in variables in the link I use to request it so I can link to any search result page from anywhere?

so lets say my search result page is id=50 I could make links like:

http://.../index.php?id=50&searchword=somekeyword

then the search engine will fetch the available results and display?

Regards,
Jose R. Lopez

#202: 16-May-2007, 07:21 PM

TrinitySEM
Posts: 22

I was going through my 0.9.5 installation's headers and I noticed a 404 on the following:

GET /assets/snippets/AjaxSearch/search.gif HTTP/1.1

I searched the code and the html and js and I'm not finding a call to search.gif

I'm wondering if anyone knows what might be causing this?

Thanks for the help!

Anybody have an idea on this one?

#203: 16-May-2007, 07:31 PM

Testers

ZAP
Posts: 1,619

Hi all, is there a way to have a search landing page where I can send in variables in the link I use to request it so I can link to any search result page from anywhere?

so lets say my search result page is id=50 I could make links like:

http://.../index.php?id=50&searchword=somekeyword

then the search engine will fetch the available results and display?
I would imagine you could just add

Code:
if(isset($_GET['search']) && !(isset($_POST['search']))) $_POST['search']=$_GET['search'];

to the top of the snippet code to do that.

Then you could just use http://.../index.php?id=50&search=somekeyword (where index.php?id=50 is your search landing page).

I haven't tested this, but I don't see why it wouldn't work...
"Things are not what they appear to be; nor are they otherwise." - Buddha

"Well, gee, Buddha - that wasn't very helpful..." - ZAP

Useful MODx links: documentation | wiki  | forum guidelines  | bugs & requests  | info you should include with your post | commercial support options

#204: 21-May-2007, 10:44 AM


TXRX
Posts: 136

WWW
Is there the ability to search Template Variables? I've got a setup where I've got a drop down TV I'd like to have searched and picked up etc. Any pointers?
cheers

TXRX
p i x e l  p u s h e r  e x t r o d i n a i r e       
       A x i s  A n i m a t i o n . c o m

#205: 21-May-2007, 05:52 PM

Coding Team

doze
Posts: 4,111

....Boom!

heliotrope should have tvexplorer available pretty soon, it can search from tvs.
New MODx wiki! Please help up with documentation efforts! || Old Wiki

"He can have a lollipop any time he wants to. That's what it means to be a programmer."

#206: 21-May-2007, 06:16 PM

Coding Team
heliotrope
Posts: 2,535

WWW
Hi folks,

Thx Doze for speaking about tvexplorer.

I've almost finished tvexplorer but haven't finished the module tveditor.

@TXRX: If you're interested in testing tvexplorer, let me know by sending me a PM.
I will send you the source and will help you to create your first form.

:-)

#207: 23-May-2007, 07:00 PM

ejcross
Posts: 229

Just another day at the office...

WWW
Ok, strange problem just cropped up on my site....Not real sure what is going on, but the "searching"  image is spinning, and the stop button is showing at all times.

I am running 0.9.5 with AS 1.6 and you can see the site here:

http://www.ejcross.com

Got me stuck as it just showed up last night when I finally got FURLS to work right.

#208: 24-May-2007, 03:41 PM

mollyr
Posts: 4

 Roll Eyes

search is not finding a simple word that is used repeatedly throughout the site.

but it searches for default value once you click on it after being clicked a first time....


any suggestions?

#209: 26-May-2007, 08:26 PM

Moderators

MotSmart
MODx RTL Guru.
Posts: 923

WWW
im not able to use ajaxsearch when i set the manager language to persian?
the only thing chages is some black-color overflow of search input box instead of rolling menu of ajaxsearch.
FYI: there is no persian language in ajaxsearch package?
im working on this to get it right... any advise to get to the right way?

EDIT: ive solved the above issue, there was some RTL template conflict b/w css and ajaxsearch, but faced a new one Tongue see the second screenshot...
seems to me that persian language string is rendered under different charset encoding there?
is there any configuration related to encoding in AjaxSearch that i've missed to set it to utf-8?

thanks


* Untitled-21654165415.gif (3.59 KB, 324x59 - viewed 170 times.)

* 2nd-ScreenShot.gif (11.2 KB, 365x299 - viewed 173 times.)
« Last Edit: 26-May-2007, 08:41 PM by MotSmart »
[Search] [Add-ons] | [MODx Lovers Don't miss this link!]
[Documentation] [Wiki]
[Persian support forum]
[RoadMap] [SVN] [RTL SVN Branch] [Development] [Trac] [FishEye+Crucible] [Confluence] | [My Google Code]
[برای دسترسی به راهنمای فارسی به  » وبگاه مادایکس فارسی « و یا به » انجمنهای پشتیبانی فارسی مادایکس « مراجعه کنید]
A Person is Either your Brother in Faith or Your Equal in Humanity. - Imam Ali.  # Discover Islam. | # Discover Middle East @ PressTV.Creation of Earth and Sky and the birth of Adam
BBC, CNN, FOX, MSNBC: Israeli officials: We don't want to kill (AKA Genocide) innocent people of Gaza. ~ Stupid Me, Myself: So why don't you stop doing so?!

#210: 27-May-2007, 09:35 AM

Coding Team
Jesse R.
Posts: 788

WWW
Is there a way to have AjaxSearch not show snippet calls and html information in the results?  For an example of what I am talking about, take a look here:

http://www.blueskyvineyard.com/

Search for "sweet wine"... and look at the content under "Home" and "Wine Selection"

The site is currently using AjaxSearch 1.6 on RC-3
Jesse R.
Consider trying something new and extraordinary.
Illinois Wine

Have you considered donating to MODx lately?
Donate now.  Every contribution helps.

#211: 31-May-2007, 02:35 AM

atma
Posts: 59

Born in USSR ☭

If you had problems with search not latin symbols (cyrillic In my case), offer my decision.
Replace in file AjaxSearch.js line ~111:
Code:
search: s,
with
Code:
search: unescape( encodeURIComponent( s ) ),
and line ~140:
Code:
    $('current-search-results').setHTML(decodeURIComponent(request));
with
Code:
    $('current-search-results').setHTML(decodeURIComponent( escape( request ) ));

Only it works in Firefox 1.5, Internet Explorer 6.0.2900.2180, Opera 9.0.8502, Camino 1.0.2, Safari 2.0.4

#212: 31-May-2007, 07:50 AM

Foundation

rthrash
Posts: 11,353

WWW
I'm assuming it also works in Firefox 2.0.x and IE 7, too?
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.

#213: 31-May-2007, 10:47 AM

atma
Posts: 59

Born in USSR ☭

I'm assuming it also works in Firefox 2.0.x and IE 7, too?
Yes, of course Smiley
Works in Firefox 1.5, Internet Explorer 6.0.2900.2180, Opera 9.0.8502, Camino 1.0.2, Safari 2.0.4 and higher.

#214: 1-Jun-2007, 06:44 AM


FuryDE
Posts: 319

Hello.

I got a little (hope so) problem with this snippet. I'm using modX 0.9.5 and updated AjaxSearch to the current version 1.6.

I added

Code:
[!AjaxSearch? &ajaxSearch=`0` &AS_landing=`30` &AS_showResults=`0`!]

to my template and on page ID 30 I added

Code:
[!AjaxSearch? &AS_showResults=`1` &AS_showForm=`0` &showMoreResults=`1`!]
to the content. I intentionally deactivated ajaxSearch because it's my first steps with this snippet. So now to my problem: The search does not find any results. I have tried many different searches but they all lead to nothing. At last, I think that it finds nothing for nothing is outpu. The source just shows a

Code:
<div id="ajaxSearch_output" style="opacity:0;"> </div>
Well, that opacity:0 is interesting, but this is not the problem yet.

Can anybody help me here? BTW: all pages of my site are currently set to be "searchable".

Thanks and greetings from the "Bierstadt Einbeck" in Germany
Martin

#215: 1-Jun-2007, 10:20 AM

nos
Posts: 135

Always there is the problem with AS and special chars - utf-8 (atma's patch doesn't work for me)

is it AS or the server config?

my personal dilemma is that my knowledge of IT at this time does not allow to move the AS coders or my hoster to act.

With a search the PHP request header allows utf8 und ISO-8859-1. The response header only delivers ISO-8859-1.  DB config is like this:
collation_connection     utf8_general_ci     ok
collation_database     utf8_general_ci     ok
collation_server     latin1_swedish_ci   Huh
I'm not allowed to change server configs. The Hoster surely doesn't want to  ("latin1_swedish_ci is a standard config in europe." he says).

One could say it is better to search the way FlexSearch for example does (that meens to change AS for more flexibility with hosters).

By the way: With &ajaxSearch=`0` search finds but is case sensitiv i. e. "über" doesn't find "Über" (in my 0.9.6 install).
Though modX is mostly an ingenious tool in my eyes (3. install), ...

#216: 1-Jun-2007, 12:51 PM

atma
Posts: 59

Born in USSR ☭

Always there is the problem with AS and special chars - utf-8 (atma's patch doesn't work for me)

is it AS or the server config?

Maybe you help this:
add in file AjaxSearch.inc.php after
Code:
$selected = mysql_select_db($database, $db) or die ("Cannot select database (connectForAjax)");

similar code (this in my case)
Code:
mysql_query("SET CHARACTER SET utf8;");
         mysql_query("SET NAMES 'utf8';");
         mysql_query("SET character_set_results = 'utf8';");
         mysql_query("SET collation_connection = 'utf8_general_ci';");

#217: 1-Jun-2007, 01:11 PM

Foundation

OpenGeek
MODx Co-Founder
Posts: 6,985

damn accurate caricatures...

WWW
Good call atma.  I thought this had been updated, but apparently not.  You only need the first call BTW:
Code:
mysql_query("SET CHARACTER SET utf8;");
See more information regarding this at http://dev.mysql.com/doc/refman/5.0/en/charset-connection.html; and in particular, this section describes how SET CHARACTER SET works...
Quote
SET CHARACTER SET is similar to SET NAMES but sets character_set_connection and collation_connection to character_set_database and collation_database. A SET CHARACTER SET x statement is equivalent to these three statements:

SET character_set_client = x;
SET character_set_results = x;
SET collation_connection = @@collation_database;

I'll make sure and get AjaxSearch updated and into the 0.9.6.1 release.
Jason Coward
MODx Co-Founder
xPDO Founder
CTO @ Collabpad
work productively.
work intelligently.
work together.
Light is just a vibration of a note too. Everything is. You've got to keep that in mind.
  Frank Zappa

#218: 1-Jun-2007, 05:20 PM

Moderators

MotSmart
MODx RTL Guru.
Posts: 923

WWW
This issue will be lost here, anybody made a bug/suggest yet?
« Last Edit: 1-Jun-2007, 05:22 PM by MotSmart »
[Search] [Add-ons] | [MODx Lovers Don't miss this link!]
[Documentation] [Wiki]
[Persian support forum]
[RoadMap] [SVN] [RTL SVN Branch] [Development] [Trac] [FishEye+Crucible] [Confluence] | [My Google Code]
[برای دسترسی به راهنمای فارسی به  » وبگاه مادایکس فارسی « و یا به » انجمنهای پشتیبانی فارسی مادایکس « مراجعه کنید]
A Person is Either your Brother in Faith or Your Equal in Humanity. - Imam Ali.  # Discover Islam. | # Discover Middle East @ PressTV.Creation of Earth and Sky and the birth of Adam
BBC, CNN, FOX, MSNBC: Israeli officials: We don't want to kill (AKA Genocide) innocent people of Gaza. ~ Stupid Me, Myself: So why don't you stop doing so?!

#219: 2-Jun-2007, 01:21 AM


MEGU
Posts: 890

WWW
Dear All,

I thank your great work, Ajaxserch.

> Dear MotSmart.
I have also same trouble with strange black box under the search box.
I think that Ajaxsearch do not work with to that state.
I checked about this trouble in detail.
The result, AjaxSearch has some trouble with CACHE, I think.

I tried the the following:

First, create a simple document like the following.
Code:
<html>
<head>
</head>
<body>
<div id="search">[!AjaxSearch? ajaxSearch=`1` &addJscript=`1`!]</div>
</body>
</html>
The template of document is blank.
Document cache is "YES".

Access to the page which created the above.
At first, Ajaxsearch would work normally.

And again, access to  this page (not REROAD).
(The word "Search here..." will appear in textbox).

In this situation, AjaxSearch do not work.

Next, Clear cache in the manager.
Again, access to this page.
AjaxSearch works.

The same phenomenon is caused in the sample web site.
Then, the strange black box will appear under the search box with IE(6).

Sincerely yours,
---*---*---*---*---*---
P.S.
If document cache is "NO", this issue would not be caused.
« Last Edit: 2-Jun-2007, 01:24 AM by MEGU »

#220: 2-Jun-2007, 09:24 AM

Moderators

MotSmart
MODx RTL Guru.
Posts: 923

WWW
Combination of ATMA and MEGU solutions worked like a charm for me... many thanks
[Search] [Add-ons] | [MODx Lovers Don't miss this link!]
[Documentation] [Wiki]
[Persian support forum]
[RoadMap] [SVN] [RTL SVN Branch] [Development] [Trac] [FishEye+Crucible] [Confluence] | [My Google Code]
[برای دسترسی به راهنمای فارسی به  » وبگاه مادایکس فارسی « و یا به » انجمنهای پشتیبانی فارسی مادایکس « مراجعه کنید]
A Person is Either your Brother in Faith or Your Equal in Humanity. - Imam Ali.  # Discover Islam. | # Discover Middle East @ PressTV.Creation of Earth and Sky and the birth of Adam
BBC, CNN, FOX, MSNBC: Israeli officials: We don't want to kill (AKA Genocide) innocent people of Gaza. ~ Stupid Me, Myself: So why don't you stop doing so?!
Pages: 1 ... 9 10 [11] 12 13 ... 30   Go Up
0 Members and 1 Guest are viewing this topic.