[Proto-Scripty] Re: Ajax.Updater home-brew autocompletion timing issue

2009-03-02 Thread Alex Mcauley
Jonny .. i wrote this a few months back and forgot about it ... Its the basics you will need to achieve what you want to do Any questions please ask http://proto-scripty.wikidot.com/prototype:how-to-throttle-ajax-requests Regards Alex - Original Message - From: Alex Mcauley

[Proto-Scripty] Password field as hint

2009-03-02 Thread chocopaste
Hey all, I'm using a handy function written by Thomas Fuchs for using an input field as a hint. The problem is, I want to use a password field as a hint also. I tried doing things like $('password').type = 'text', things like that to change the type on the fly, but IE doesn't support this. I

[Proto-Scripty] Re: Password field as hint

2009-03-02 Thread Quleczka
Hi, I had the same problem yesterday. Basic simple working example is here: http://dl.getdropbox.com/u/530105/input.html. Just check it - all in one file. Script which I've created last night which is working on all input fields on a page is here http://pastie.org/404519. It is really messy

[Proto-Scripty] Re: Password field as hint

2009-03-02 Thread Quleczka
Uppps, second script is not working in IE. Forget about it. Simple solution for one password field you still have here http://dl.getdropbox.com/u/530105/input.html. You can also change it to add mockpassword input dynamicly in your script. I then tried cloning the node and replacing it, but

[Proto-Scripty] Re: Password field as hint

2009-03-02 Thread Quleczka
Version with second field added in script http://dl.getdropbox.com/u/530105/input2.html --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to

[Proto-Scripty] clonePosition - problem in IE and Opera

2009-03-02 Thread zero
This code works in firefox 2, firefox3 and chrome but in in opera, ie6, ie7 olive div appear in wrong place when u scroll list. In ie it goes up and in opera down. Why, any solution?. style ul{margin: 200px 0px;padding: 0px;list-style: none;background-color: blue;overflow:

[Proto-Scripty] How to correct the following code?

2009-03-02 Thread SamuelXiao
My code is to preview webpages when user move mouse over a/a. At the same time, my code has other parts using Prototype periodicalupdater. The following code can work well independently: // javascript preview program start var ci; var xPos,yPos; Event.observe(window,'load',function(){

[Proto-Scripty] User triggered download with no page refresh.

2009-03-02 Thread Richard Quadling
Hi. I'm currently using an iframe to act as a report downloader. The user enters some criteria which is generated dynamically as they change options. They then click a document button (PDF, XLS, DOC) and this is sent to the server for validation. The result is a key for the Crystal Reports. The

[Proto-Scripty] Re: User triggered download with no page refresh.

2009-03-02 Thread zero
On page that iframe load u can put code: script type=text/javascript parent.name_of_some_js_function(); /script Works for me in all browsers. On 2 Mar, 14:21, Richard Quadling rquadl...@googlemail.com wrote: Hi. I'm currently using an iframe to act as a report downloader.

[Proto-Scripty] Re: User triggered download with no page refresh.

2009-03-02 Thread Alex Mcauley
yes you can call from the iframe a function in the parent easily Or, you can read the iframe contents by traversing its DOM and looking for elements (inputs or things) just as easily as traversing the parent container HTH Alex - Original Message - From: zero

[Proto-Scripty] Re: User triggered download with no page refresh.

2009-03-02 Thread Richard Quadling
2009/3/2 zero zero.zero1...@gmail.com: On page that iframe load u can put code: script type=text/javascript                parent.name_of_some_js_function(); /script Works for me in all browsers. On 2 Mar, 14:21, Richard Quadling rquadl...@googlemail.com wrote: Hi. I'm currently using

[Proto-Scripty] Re: User triggered download with no page refresh.

2009-03-02 Thread Richard Quadling
2009/3/2 Richard Quadling rquadl...@googlemail.com: 2009/3/2 zero zero.zero1...@gmail.com: On page that iframe load u can put code: script type=text/javascript                parent.name_of_some_js_function(); /script Works for me in all browsers. On 2 Mar, 14:21, Richard Quadling

[Proto-Scripty] Re: How do sort a hash.

2009-03-02 Thread Richard Quadling
2009/3/2 Richard Quadling rquadl...@googlemail.com: Hi. This might be one of the those odd situations where there is no answer, but I have a hash coming from PHP via JSONP to JS/Prototype. In IE and FF, the ordering is maintained. In Chrome the order is not maintained. The key part is

[Proto-Scripty] Re: How do sort a hash.

2009-03-02 Thread kangax
On Mar 2, 9:58 am, Richard Quadling rquadl...@googlemail.com wrote: Hi. This might be one of the those odd situations where there is no answer, but I have a hash coming from PHP via JSONP to JS/Prototype. In IE and FF, the ordering is maintained. In Chrome the order is not maintained.

[Proto-Scripty] Re: How do sort a hash.

2009-03-02 Thread Richard Quadling
2009/3/2 kangax kan...@gmail.com: On Mar 2, 9:58 am, Richard Quadling rquadl...@googlemail.com wrote: Hi. This might be one of the those odd situations where there is no answer, but I have a hash coming from PHP via JSONP to JS/Prototype. In IE and FF, the ordering is maintained. In

[Proto-Scripty] Re: validation for alphanumeric field/sequence

2009-03-02 Thread Eric
Hi, On Feb 4, 10:50 pm, Michael mich...@vermontsnows.com wrote: Hi - I want to use this validation for an alphanumeric field. I apologize for beating a dead horse, but since the list of possible choices is closed, why don't you just use a SELECT element? :o) Anyways, it was very interesting

[Proto-Scripty] Re: JSON form generator demo

2009-03-02 Thread Diodeus
Hi Rob, No, I haven't made a comparison. I have built client-side form generators before but have used XML for the form schema. JSON is obviously faster than XML. Generating the entire form server-side and inserting it as a single block would obviously be faster than generating fields one at a

[Proto-Scripty] Re: How do sort a hash.

2009-03-02 Thread kangax
On Mar 2, 11:23 am, Richard Quadling rquadl...@googlemail.com wrote: 2009/3/2 kangax kan...@gmail.com: On Mar 2, 9:58 am, Richard Quadling rquadl...@googlemail.com wrote: Hi. This might be one of the those odd situations where there is no answer, but I have a hash coming from PHP

[Proto-Scripty] Re: does prototype abstract canvas usage to both IE mozilla?

2009-03-02 Thread greghauptmann
Hi guys, I've just come across http://jalava.buildyourownapps.com I'm just seeing now that for a diagram editor there seems to be 2 approaches from what I can tell, one based on real drawing (e.g. raphaeljs, or canvas tag), and the other using the capabilities of layout inherit using

[Proto-Scripty] IE7 Timers Memory Leaks?

2009-03-02 Thread BearState
Hidie-ho, Well Ok, I've used setTimeout a few times in my code to delay resuming run of a code module until Ajax.Request() has had time to do its thing. And the use of the timer is cyclic as the user may repeat the operation over and over again, but in different parts of the page. And ...

[Proto-Scripty] Re: Prototype effects below flash animation

2009-03-02 Thread Ângelo Rigo
I need the prototype div stay over a flash animation ? how can it be done ? Today i open a bigger image using the code in this post and the flash animation appears over the bigger image Thank´s in advance On 28 fev, 12:46, Walter Lee Davis wa...@wdstudio.com wrote: I'm not sure this will help

[Proto-Scripty] Re: IE7 Timers Memory Leaks?

2009-03-02 Thread BearState
Hi Tobie, You don't live over in Scott's Valley, do you? Used to know a Tobie way back when. OK so, xtimer = setTimeout( { doSomething( arg1, arg2, arg3 ); }, 500); is using the function's return? How do I specifiy a function to setTimeout when it has args? Holy Simple Minded Idiot

[Proto-Scripty] Re: Password field as hint

2009-03-02 Thread Walter Lee Davis
See if this would help you. It's based on the classic A List Apart article, but just written now off the top of my head: div id=outer form action= method=get accept-charset=utf-8 plabel for=nameName/labelinput type=text name=name value= id=name //p

[Proto-Scripty] Re: IE7 Timers Memory Leaks?

2009-03-02 Thread Alex Mcauley
myTimeout=setTimeout(function(var,var2,var3,var4) { global x,y,z; alert('foo = bar'); },5000); whats wrong with that ? I dont think this leaks memory so why should any timeout leak memory Alex - Original Message - From: BearState wixelb...@yahoo.com To: Prototype script.aculo.us