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!
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.
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
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.
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.
Apply the PHP Make Insert Page Action to the page. Leave the default settings on.
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.
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.
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.
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:
Click the triangle left of “Additional JavaScript libraries” to open the first field.
In the Name field, enter jquery-1.5.2.min.
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.
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.