[Proto-Scripty] Appending a template evaluation to an HTML element.

2010-08-17 Thread Richard Quadling
Hi. I've implemented a simple add new user button to my amend users page. The user list is only about 20 people, with name/email/pin/contracts/delete options. The button calls a template evaluation and that is within an update ... $('vsNewUsers').update($('vsNewUsers').innerHTML +

Re: [Proto-Scripty] Appending a template evaluation to an HTML element.

2010-08-17 Thread Richard Quadling
On 17 August 2010 12:59, Phil Petree phil.pet...@gmail.com wrote: === HTML save as index.html: html head script src=prototype.js/script /head body form id=myform table id=keytable   trtdKeyword/tdtdinput type=text

[Proto-Scripty] Safari problem in Accordion with Flash content

2010-08-17 Thread Walter Lee Davis
Can anyone explain why I might see the following? I have a simple Accordion effect made with Scriptaculous: var tog = function(){ var params = {duration:0.2}; if (this.next('p')) { Effect.toggle(this.next('p'),'blind',params);

[Proto-Scripty] scriptaculous causes body background to fail on safari and chrome

2010-08-17 Thread Guillaume Lepicard
Hi all, i have a very simple document: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; html xmlns=http://www.w3.org/1999/xhtml; head titleBG fail/title style type=text/css body { background-color: #00; color:#ff; }

[Proto-Scripty] Re: 4 different browsers - 4 different responses

2010-08-17 Thread T.J. Crowder
I don't see how this went too far afield at all -- at least not nearly enough to bother to comment on it. Richard had some Prototype-related code that wasn't doing what he wanted and he also mentioned the target attribute not being standards and so not wanting to use it. I told him how I do what

Re: [Proto-Scripty] Re: Appending a template evaluation to an HTML element.

2010-08-17 Thread Richard Quadling
On 17 August 2010 16:34, T.J. Crowder t...@crowdersoftware.com wrote: Hi, The original code: $('vsNewUsers').update($('vsNewUsers').innerHTML + tmpl_NewUser.evaluate({NewUserID : --i_NewUserID})); ...will require the browser to spin through the tree inside vsNewUsers and create an

Re: [Proto-Scripty] Re: prototype to populate select box via ajax

2010-08-17 Thread Phil Petree
T.J. YOU are a gentleman AND a scholar! I looked everywhere for how to do this! Hopefully this post will move up in the search engines and others can find it! One other question on this... What if the XML response is: data other stuffmore and more/stuff /other states state

Re: [Proto-Scripty] Re: prototype to populate select box via ajax

2010-08-17 Thread Phil Petree
Here is a completed function that will populate a select box with data in an XML format (XML format below): // fill the select dropdown list box // @ajax response (transport as returned above) // @id of the select field (defaults to elFieldName // @xml_data_node_name (our dataset uses 'state')

[Proto-Scripty] Re: Should be simple - using up() with css class

2010-08-17 Thread Fabien Ménager
up() looks for a matching ancester in the DOM, not a sibling (brother) that was before it in the DOM. I think this will work : $('part-47').up().down('tr.sd_type').id On 17 août, 22:47, Rhiq ndba...@gmail.com wrote: I obviously don't get the way up() works.  Using the generated HTML below:

[Proto-Scripty] Re: Weird Select list behavior in IE7

2010-08-17 Thread Nicholas
Hi all, I have solved my issue by by using: this.select.options[i] = new Option(opt.value, opt.key, null, false); rather than this.select.insert({'bottom': new Element('option', {'value':opt.key}).update(opt.value)}); Thanks to everyone who gave this some thought! (Sorry for the top