Thanks so much for your reply... JS would work.. thast why I thought to email this list...
but i dont understand what Builder functions you are refering to on his site... please note that I am
fairly new to JS  and definatly new to this ajax stuff.  do you or would you happen to have a working example..

I can edit the template file.. but its the CGI file that I can not edit.

The CGI points to the template file internally.. (cant mod the CGI because its complied c++)
and the template is a htm file with only css info in it (the head tags)  I think thats why JS will work... in doing what im trying to do..
i hope.. does this make a little more sence ?

Tanks much ,
Terry

On 6/16/06, Kjell Bublitz <[EMAIL PROTECTED] > wrote:
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





--
"I have learned that you should'nt compare yourself to others - they are more screwed up than you think." ...unknown

"In the 60's, people took acid to make the world weird.  Now the world is weird and people take Prozac to make it normal." ..unknown
_____________________________
Terry Remsik
stripe-man.dyndns.org
[EMAIL PROTECTED]
_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to