[Pro] Site Search

Walter - this would be a giant leap with the Search Site function. Please let me know how you progress. I am at a standstill with the search function. The multi form direction is getting very complicated where Mals forms on the same page are concerned!

All the best

Trev


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I had to have it so if anyone wanted to search pages they had to return to the home page to enter the search field!

Haven’t tried this Trevor but what about having the search field on a separate page that is then inserted into your Mals pages via an iFrame?

David


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi David

What a great and simple idea - I frame never crossed my mind. I will give it a go and let you know how I get on.
Thanks for your time and input.

Trev


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

David

I gave your idea a go and I think it is almost there but as you will see from my test page below - upon entering the search term - say: optics - and clicking on the magnifying glass button the search page opens in the iframe. I have purposely made the iframe bigger so you can see the search page loading. So I just need a method for it to link to the search page.

http://www.orionoptics.co.uk/jag3/AG/ag8.html

Trev


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Here’s a recipe. Please follow these steps precisely. Everything about JavaScript is case-sensitive and everything about programming in general is pedantically exact. Actions listed below can all be found at the

  1. Start on one page of your site, so you can undo more easily. Select the Search field (and the HTML box surrounding it) and Cut to the clipboard.

  2. Create a new, blank page (nothing on it at all, empty master). Make sure the File Name field in the Inspector reads search_form.html. Paste. Move the search widget up to the top-left corner of the page.

  3. Apply the PHP Make Insert Page Action to the page. Leave the default settings on.

  4. Return to your original page, and draw a new HTML box directly in the spot where you want the search form to appear. Make note of the name of this box, change it to something meaningful if you like, and pay attention to case and spelling here. If Freeway changes the name in any way, accept those changes and write them down exactly.

  5. Apply the Protaculous 2 Action to the page. Click on the DOM Loaded Observer button, and paste in the following code; REPLACING THE WORD placeholder with whatever name you copied down in the precious step.

  6. Preview in a browser, and see if your search form appears. Post a link to it (live on the Web) if it does not, and we can have a look in a debugger.

    new Ajax.Updater(‘placeholder’, ‘search_form.html’, {
    method: ‘get’
    });

Walter

On Nov 24, 2013, at 12:36 PM, t50ufo wrote:

David

I gave your idea a go and I think it is almost there but as you will see from my test page below - upon entering the search term - say: optics - and clicking on the magnifying glass button the search page opens in the iframe. I have purposely made the iframe bigger so you can see the search page loading. So I just need a method for it to link to the search page.

http://www.orionoptics.co.uk/jag3/AG/ag8.html

Trev


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Walter

Ok I have followed your steps carefully and uploaded - page here:

http://www.orionoptics.co.uk/jag3/AG/ag10.html

search bar not showing showing

Trev


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Trev

Did you copy the text from the FWT website?

If you did then instead actually type it into FW or at least paste it into a plain text editor first before recopy/paste into the P2 action.

I think you are picking up encoded entities instead of plain text.

David


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thanks Dave

I did indeed just copy from the page - I have now copy to and repasted from Text editor and re-uploaded - no change

Trev


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Still seeing the same error

Remove P2 from the page and publish.

Reapply P2 and carefully type in the text and try again.

D


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

OK did that - still not showing

T


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I don’t see any sign that you have applied the Protaculous 2 Action to this page. The Prototype.js file isn’t there. I also see jQuery in this page, which Protaculous 2 should deal with, but may not, because you’re not using the Action to add that library. If you’re using Page / HTML Markup to add jQuery to this page, locate just that link, delete it, and then use Protaculous 2 to add it like this:

  1. Click the triangle left of “Additional JavaScript libraries” to open the first field.
  2. In the Name field, enter jquery-1.5.2.min.
  3. In the URI field, enter http://www.microsofttranslator.com/static/lib/jquery-1.5.2.min.js

Publish again. You should now have Prototype and jQuery, sitting in a tree…

Walter

On Nov 25, 2013, at 3:46 PM, DeltaDave wrote:

Still seeing the same error

Remove P2 from the page and publish.

Reapply P2 and carefully type in the text and try again.

D


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

You have curly quotes in your JavaScript. Please make sure that you are typing “dumb” typewriter quotes instead of “smart” curly quotes.

Walter

On Nov 25, 2013, at 4:03 PM, t50ufo wrote:

OK did that - still not showing

T


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

It also appears that the search_form.html page is not at the same level as the example page

http://www.orionoptics.co.uk/jag3/search_form.html

D


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Well here is where it is at now
Totally not right
I removed the translate markup from the page to simplify

http://www.orionoptics.co.uk/jag3/AG/ag10.html

Trev


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Move your search_form.html page into the AG folder

D


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Ah - got it now! Pleased to report I now have Walter’s solution working and DeltaDave’s iframe method too!
2 working solutions for a problem I really do think Softpress should address. I would NEVER have got this to work - so can’t thank Walter and David enough for their time and assistance to people like me on this forum.

All the best guys

Trev


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options