[Proto-Scripty] BlindDown/BlindUp Editing

2009-02-22 Thread gecrscm
This is probably a stupid question... here goes. I have successfully added a toggleExpand that opens a panel using the BlindDown/BlindUp. I can't understand why I can only edit the main panel in Dreamweaver and not the content panel in Design view. It is very time consuming to have to edit each

[Proto-Scripty] draggable onEnd not executing in Safari

2009-02-22 Thread andras
hey all, i've created a very iphone-y slider element that is both restricted in overall movement horizontally (0-400px and it does not move vertically) and snaps to either side of the 400px container when it has passed the 200px mark and the drag has ended. It works perfect in firefox. In

[Proto-Scripty] Re: JSON form generator demo

2009-02-22 Thread nlloyds
Diodeus, On Feb 20, 3:32 pm, Diodeus diod...@gmail.com wrote: Hello Prototypers, I've been working on a JSON-based form generator that uses Prototype. Basically it allows you provide a form specification using JSON and the engine generates the output dynamically. It's still in the early

[Proto-Scripty] Using loop to add multiple records in mysql

2009-02-22 Thread zjoske....@gmail.com
My form has master-detail data in it. Every master record has 9 detail records. When I store the detail information I use ajax.request in a loop to call it 9 times to add the detail records to mysql database. However, it seems that the order in which the new records are added is not the same as

[Proto-Scripty] Re: Using loop to add multiple records in mysql

2009-02-22 Thread T.J. Crowder
Hi, By default, Ajax.Request is *asynchronous*, so that code won't wait for one to complete before it kicks off the next, so you'll end up with multiple outstanding calls to the server. If you have more than two outstanding calls, the odds are very high that the browser, server, or both will

[Proto-Scripty] Draggables inside overflow:auto div

2009-02-22 Thread Tof
Hi, I'm sure this question has already been asked, but all answers and/or patches I've found don't work for me. I have some draggables inside an overflow:auto div. When I try to drag one element, I can't drag it outside the parent div. I'm using scriptaculous 1.8.1, but I don't see any change

[Proto-Scripty] Returning additional data from Ajax.InPlaceEditor

2009-02-22 Thread dl
Is there some way that I can attach additional data when the in place edit returns? In my case the server side is written in PHP and the edited string is returned through an echo statement. Is there anyway to attach additional data about the status of the edit that can be accessed on the

[Proto-Scripty] Re: Observe Document Load extended methods not found

2009-02-22 Thread kstubs
Ignore the fact that I said the update is on a div element, and the object error you see is on a UL element, the failure is the same for both objects. On Feb 22, 3:52 pm, kstubs kst...@gmail.com wrote: I am observing the document load like this: document.observe('dom:loaded', pageReadyEvent);

[Proto-Scripty] Draggable using variable div name

2009-02-22 Thread craig
I'm generating div's dynamically based on the number of entries in a table, and I'd like to make them draggables as well but it's not working for me. I think the problem is with using a ruby variable inside the javascript: drag= drag (changed by the iterator by adding a char after each

[Proto-Scripty] Updating value of hidden form control

2009-02-22 Thread Hector Virgen
Hello, I am writing a plugin that takes a text input (input type=text/) and hides it using $(input).hide(). The plugin then uses other controls to update the value of the text input. I am using Element.writeAttribute() to update the value, but it does not seem to work when the input is hidden.

[Proto-Scripty] Re: Updating value of hidden form control

2009-02-22 Thread RobG
On Feb 23, 1:00 pm, Hector Virgen djvir...@gmail.com wrote: Hello, I am writing a plugin that takes a text input (input type=text/) and hides it using $(input).hide(). The plugin then uses other controls to update the value of the text input. I am using Element.writeAttribute() to update

[Proto-Scripty] Re: Draggable using variable div name

2009-02-22 Thread T.J. Crowder
Hi, Can't see any reason that wouldn't work, provided the Ruby variable has the same value both where the div is declared and where you're outputting your JavaScript (and provided that ID is unique within the document). You haven't accidentally allowed it to get incremented in the meantime or