Hi,
i have this code:
div style=display: none id=test
Hello
/div
div id=test
Bye
/div
div id=link
?php //echo link_to_function(Link, $('test').toggle()) ?
a href=# onclick=$('test').toggle() Click here/a
/div
What i expected: each time you click Click here, Hello or Bye is
showed.
Hi thanks,
On Jan 29, 2:59 pm, Walter Lee Davis wa...@wdstudio.com wrote:
then look at Element.update for one possible way to do this with a single DIV.
I tried but i dont know how to do it.
Another way would be to have two different elements (with distinct
IDs), and then set them to
Thanks,
Those were exactly the kinds of workarounds I was looking for.
Still wouldn't it make more sense for Prototype to handle this...?
On Jan 28, 11:08 am, T.J. Crowder t...@crowdersoftware.com wrote:
Hi,
If the goal is to unhide __with an effect__ and you don't want to use
inline styles
Here's what worked.
I did this:
var url = 'site.lasso?fuseaction=ajax.famMbr_nestedForm';
var target = 'ajax_famMbr_div';
var myAjax = new Ajax.Updater(target, url, {method:'get',
parameters: {a: $F('member_nm'), b: $F('member_address'), c: $F
('member_ph'), d: $F('member_email'), e:
I'm sorry, I was wrong - I incorrectly described the function
declaration in inherited object
Thanks for response
On 28 янв, 00:23, T.J. Crowder t...@crowdersoftware.com wrote:
Hi,
As quoted, that code is fine and will work if you do this:
var x = new TObj();
x.metod1();
...that will call