Erm.. i am not sure if i really understood what you are trying to do. It sounds that you can't edit the template you are refer to so.. you should have a look on the script.aculo.us Builder functions. With them you can create your dropdown with _javascript_ and "attach" it anywhere in the DOM of your result or searchpage. No need to edit HTML then.

var myFormID = 'search';
var myDropDown = Builder.node('select', {name:'searchtype'}, [
   Builder.node('option', {value:'1'}, ['fruits']);
   Builder.node('option', {value:'2'}, ['music']);
   Builder.node('option', {value:'3'}, ['cars']);
]);
$(myFormID).appendChild( myDropDown );

I hope this helps you.

On 6/16/06, Stripe-man < [EMAIL PROTECTED]> wrote:
Hi there...

I have a html page that i have to use as a template page for an exucuting CGI file. (search engine).  that source can not be modified on that CGI.

The CGI file pulls in the template file and provides a way to format the resulting CGI output.  (the htm template have has CSS in it to formate the CGI resulting page)
of cource with html being stateless .. i have no way to put a feed drop down on that htm template that is populated from the Db.  Least by conventional methods...

Is it possible to feed a drop down onto an HTML page that populated from a DB using  and then post the result to the page (once form is submitted)?  IE.. a list of authors or something?

This does not sound like an easy thing to do..

Thanks for any help in this matter...

Terry




_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs



_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to