[Proto-Scripty] Safe Browser Resize

2010-02-09 Thread kstubs
I'm trying to write the following jquery sample code in prototype. I am stuck, and do not understand the following: http://noteslog.com/personal/projects/wresize/1.1/jquery.wresize.js this.each( function() { if ( this == window )

[Proto-Scripty] How can I pause and resume PeriodicalExecuter?

2010-02-09 Thread kimbaudi
Hi, does anybody know how I can pause and resume Prototype's PeriodicalExecuter? Basically, I have a simple example script that periodically executes every 1 second, but I want there to be a 5 second delay for each 5th time the script is executing. Here is the link to the example script I posted

[Proto-Scripty] Re: divide one long table into multiple 40 rows

2010-02-09 Thread T.J. Crowder
> That really should be handled serverside IMO. Otherwise all the data > is downloaded upon initial page call when all you need is one page > worth at that point. For me it totally depends. You can have a *lot* more rows of data in memory as an array of JavaScript objects without taking a performa

Re: [Proto-Scripty] get a file from intranet server

2010-02-09 Thread DJ Mangus
I'm confused. Are you wanting to call up a local file? Or are you running a webserver on that vista machine? You really should install a webserver on the machine first and then ask in the place where they support your server rather than hereas this question isn't really about prototype. Sent from

Re: [Proto-Scripty] divide one long table into multiple 40 rows

2010-02-09 Thread DJ Mangus
That really should be handled serverside IMO. Otherwise all the data is downloaded upon initial page call when all you need is one page worth at that point. Sent from my phone so please pardon any spelling errors. On Feb 9, 2010, at 10:20 AM, albert kao wrote: > Instead of displaying one long t

Re: [Proto-Scripty] divide one long table into multiple 40 rows

2010-02-09 Thread Alex Wallace
Something like: $("long-table").select("tr").eachSlice(40, function(rows) { var table = new Element("table"); rows.each(function(tr) { table.insert(tr); }); $(document.body).insert(table); }); That would leave you with all of the table rows moved into new tables with 40 rows each (t

[Proto-Scripty] divide one long table into multiple 40 rows

2010-02-09 Thread albert kao
Instead of displaying one long table with many rows and use the scroll bar to look at the data. Is it possible to divide the table so that each screen will display at most 40 rows? The user click the "Next", "Previous" buttons to go to the next or previous page. or the "1", "2", "3", ... to go to a

[Proto-Scripty] get a file from intranet server

2010-02-09 Thread albert kao
How to get (download) a file from intranet server with Prototype ? e.g. the file is C:\dir1\data.txt and the Windows Vista server IP address is 192.168.0.112. -- You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group,

[Proto-Scripty] Re: Error: this.handles[0] is undefined

2010-02-09 Thread Stephan
Oh forgot to post my code. Sorry its all a bit of a mess but hope you will be able to see what I am making wrong. div.slider { width:px; margin:10px 0; background-color:#ccc; height:10px; position: relative; } div.slider div.handle { width:10px; height:15px; background

[Proto-Scripty] Error: this.handles[0] is undefined

2010-02-09 Thread Stephan
Hello, I have created a little tool that lets me resize and crop images online. It is working great. Now I have taken the code and pasted into another website and I get the following error Error: this.handles[0] is undefined Source File: http://**/javascript/slider.js Line: 54 Does someo

[Proto-Scripty] Re: Ajax Request PDF to IFRAME

2010-02-09 Thread T.J. Crowder
Blast (I *hate* double posting), forgot to say: By "theIFrameName" in that code I mean literally the value of a `name` attribute on the `iframe` tag (*name*, not *id*). -- T.J. :-) On Feb 9, 3:05 pm, "T.J. Crowder" wrote: > Hi, > > > It must be a post to the server, not a get. > > Okay, that's a

[Proto-Scripty] Re: Ajax Request PDF to IFRAME

2010-02-09 Thread T.J. Crowder
Hi, > It must be a post to the server, not a get. Okay, that's a *few* more lines of code: var markup, form; markup = "" + "" + "" + ""; $(document.body).insert({bottom: markup}); form = $('___unique_form_id___'); form.submit(); form.remov

Re: [Proto-Scripty] Re: Ajax Request PDF to IFRAME

2010-02-09 Thread Peter De Berdt
Generate a form with the necessary values in the iFrame and submit the form. That's all I can think off right now. On 09 Feb 2010, at 01:03, kstubs wrote: It must be a post to the server, not a get. On Feb 8, 4:22 pm, "T.J. Crowder" wrote: Hi, Is this possible? Possible? It's downright