[Proto-Scripty] onSuccess not found in prototype.js and HTTP status 200 and 304 not found

2008-09-09 Thread liketofindoutwhy
In the currently latest version of prototype.js http://www.prototypejs.org/assets/2008/1/25/prototype-1.6.0.2.js there is no def for onSuccess? yet when I use Ajax.Request(url, { onSuccess : function(r) { ... }it works... So is it defined some where else? I was mainly looking for the con

[Proto-Scripty] getting cursor position onEnd of drag

2008-09-09 Thread alpineedge3
Hi, I need to record the new position of a dragged div. I know the starting position, so my plan is to calculate the change in screen cursor positions from drag to drop, and add to the div's position. my problem is that window.event.screenX or window.event.screenY are not working within the new D

[Proto-Scripty] Re: Executing javascript in ajax html response

2008-09-09 Thread gurel
I'm having a very similar problem!! I have a form of 3 steps and I'm using Ajax.Request to update the contents of a div between the steps and also do some other checks. >From step1 to step2 everything is fine. I submit my form and get a new div (with some html+js) to replace the first step with

[Proto-Scripty] reference to undefined property responder[callback] .. looking for some clarification

2008-09-09 Thread Erwin
Hi guys, I wrote the following code : $$('ul#list_works > li.clicked').each( function(x) { x.removeClassName('clicked'); } ); which seems to work fine, but I can see the follwoing error in the js console : Warning : reference to undefined property responder[callback] source file : http://local

[Proto-Scripty] Re: onSuccess not found in prototype.js and HTTP status 200 and 304 not found

2008-09-09 Thread T.J. Crowder
Hi, > In the currently latest version of prototype.js > ... > there is no def for onSuccess? yet when I use > > Ajax.Request(url, { onSuccess : function(r) { ... }it works... > > So is it defined some where else? Yes, *you're* defining it (above). Prototype calls it. > I was mainly lookin

[Proto-Scripty] Re: reference to undefined property responder[callback] .. looking for some clarification

2008-09-09 Thread T.J. Crowder
Hi, If you google "warning reference to undefined property" (without the quotes), you'll find several pages discussing this issue. It relates to Firefox's javascript.options.strict option, which sounds like a good idea but apparently has issues. HTH, -- T.J. Crowder tj / crowder software / com

[Proto-Scripty] Re: $$ not working?

2008-09-09 Thread ColinFine
On Sep 5, 4:28 pm, elduderino <[EMAIL PROTECTED]> wrote: > No it's not unique...the element is created on the fly and is a copy > of another elementi'm not worried about semantics here especially > as the element only a copy...this is a really complicated dragging and > dropping application

[Proto-Scripty] Re: Anyone else having Prototype problems on Google Chrome?

2008-09-09 Thread Sebastian
i am having the same problem (sometimes) and can not reproduce when the htmlelement is extended an when not. there is another bug filled for chrome: http://code.google.com/p/chromium/issues/detail?id=1058 ...but the attached example works for me with chrome. On 3 Sep., 23:08, kangax <[EMAIL PROTE

[Proto-Scripty] Re: more than one param for 'accept' in droppables api

2008-09-09 Thread ColinFine
On Sep 8, 10:12 am, elduderino <[EMAIL PROTECTED]> wrote: > I need to set more than one class for the accept param in the > droppables api.http://github.com/madrobby/scriptaculous/wikis/droppables > says  you can 'Set accept to a string or an array of strings > describing CSS classes' but i've t

[Proto-Scripty] Re: onSuccess not found in prototype.js and HTTP status 200 and 304 not found

2008-09-09 Thread liketo findoutwhy
I think in some situations, the XmlHttpRequest returns a status of 304 and at the same time provide the responseText or XML. http://prototype.lighthouseapp.com/projects/8886/tickets/331-status-304-not-checked-for-onsuccess-for-ajaxrequest status 304 not checked for onSuccess for Ajax.Request Re

[Proto-Scripty] Re: Prototype / Scriptaculous on Iphone

2008-09-09 Thread RobG
On Sep 9, 9:55 am, lawrencejob <[EMAIL PROTECTED]> wrote: > Sorry for the thread reincarnation Sorry? >, but I had a client wanting similar > recently. Similar to what? Do you mean trying to determine if touch events are supported? Here's a sample function that does just that: var touch

[Proto-Scripty] Re: Bug in scriptaculous-js-1.6.4

2008-09-09 Thread bluezehn
Yeah this absolutely is not a bug whatsoever with prototype or scriptaculous. It's an internet explorer issue by the sounds of things. Completely ignore javascript/prototype/scriptaculous for a while. Just try to get the following static html displaying properly in all browsers first: SpacesAft

[Proto-Scripty] Re: Form.Element#setValue

2008-09-09 Thread ColinFine
On Sep 8, 10:27 pm, "Justin Perkins" <[EMAIL PROTECTED]> wrote: > On Mon, Sep 8, 2008 at 3:35 PM, Alexey Bass <[EMAIL PROTECTED]> wrote: > > What I'm asking is that why this is not documented on Prototype site. > > Maybe it should be mentioned, but really Element#update is just using > innerHTML

[Proto-Scripty] Ajax.Responders: API is confusing!

2008-09-09 Thread bluezehn
[quote] Ajax.Responders API Page ... All callbacks in the life-cycle are available; actually, onCreate is only available to responders, as it wouldn’t make a lot of sense to individual requests: you do know when your code creates them, don’t you? It is triggered even before the XHR connection is o

[Proto-Scripty] Re: $$ not working?

2008-09-09 Thread bluezehn
Haven't read the whole topic but it looks like you could certainly make use of the Element#identify() method which will give the element a unique id (and return this id). You might alternatively want to call the down() method on the element which will traverse down the dom and return the first des

[Proto-Scripty] Re: Ajax.Responders: API is confusing!

2008-09-09 Thread Justin Perkins
On Tue, Sep 9, 2008 at 8:05 AM, bluezehn <[EMAIL PROTECTED]> wrote: > - but right now I can't register an onFailure. Maybe it's just not getting invoked when you are expecting it to? You might want to use the onException callback instead, or even have a global onComplete handler and then within t

[Proto-Scripty] Re: Ajax.Responders: API is confusing!

2008-09-09 Thread bluezehn
it's actually really strange and has gone beyond the scope of my js knowledge! Take a look at this code (may be syntax errors as it's from memory): Ajax.Responders.register({ onCreate: function(request, response) { request.url = 'somewherethatdoesntexist.php'; var spe

[Proto-Scripty] Float sortable causes newline

2008-09-09 Thread David Sveningsson
below the others on a new row. A testcase can be found here: http://ruri.sidvind.com/static-20080909.html I can't really figure out what I am doing wrong so any ideas would be great. Thanks! -- //*David Sveningsson [eXt]* Freelance coder | Game Development Student http://sidvind.com Thou

[Proto-Scripty] Re: Float sortable causes newline

2008-09-09 Thread Diodeus
I want to allow the user to sort. > > The sorting works great except when I move an image last in any group > which causes the image to appear below the others on a new row. > > A testcase can be found here:http://ruri.sidvind.com/static-20080909.html > > I can't really

[Proto-Scripty] Re: Float sortable causes newline

2008-09-09 Thread David Sveningsson
;> >> The sorting works great except when I move an image last in any group >> which causes the image to appear below the others on a new row. >> >> A testcase can be found here:http://ruri.sidvind.com/static-20080909.html >> >> I can't really figure

[Proto-Scripty] Re: Ajax.Responders: API is confusing!

2008-09-09 Thread darrinholst
The synthetic onSuccess, onFailure, and onXXX don't get dispatched to the Ajax.Responders. Don't know if that is by design or just because nobody had has a need for it, but it would be kind of handy. I've been doing the following for a generic failure handler... pretty - http://gist.github.com/9

[Proto-Scripty] Re: Bug in scriptaculous-js-1.6.4

2008-09-09 Thread Jack D
Hi bluezehn/Justin & All in this forums, THANKS FOR ALL YOUR HELP!!! I think I'm able to solve the issue with different way. Space issue varies from browser to browser. However, passing the value to the next form can be achieved using afterUpdateElement parameter. I just realized that

[Proto-Scripty] Re: Bug in scriptaculous-js-1.6.4

2008-09-09 Thread Jack D
Hi bluezehn/Justin & All in this forums, THANKS FOR ALL YOUR HELP!!! I think I'm able to solve the issue with different way. Space issue varies from browser to browser. However, passing the value to the next form can be achieved using afterUpdateElement parameter. I just realized that

[Proto-Scripty] Re: getting cursor position onEnd of drag

2008-09-09 Thread lfortin
Hi alpineedge3, First of all, try to use Event.positionX(event) and Event.positionY(event) instead. I assume that the chunk of code you gave as an example comes from a server-side language like php, so I will simplify this with raw JavaScript. If you want to get the cursor position, try someth

[Proto-Scripty] Re: Float sortable causes newline

2008-09-09 Thread Diodeus
group > >> which causes the image to appear below the others on a new row. > > >> A testcase can be found here:http://ruri.sidvind.com/static-20080909.html > > >> I can't really figure out what I am doing wrong so any ideas would be > >> great. Thanks! > >> -

[Proto-Scripty] Re: getting cursor position onEnd of drag

2008-09-09 Thread lfortin
alpineedge3, I just Googled 'window.event.screenX' and, you're right, it seems to be a valid native way to get the mouse coordinates. I just learned this new stuff today! :-) But as per my experience, calling an alert dialog in some dynamic/ anychronous JavaScript can cause trouble. Just try ge

[Proto-Scripty] Re: Float sortable causes newline

2008-09-09 Thread David Sveningsson
Diodeus skrev: > Did you put style='float:left' on your DIVs? Yes, and the divs is nicely floating next to each other at the beginning and they form a new nicely floating row below the original when moved. http://ruri.sidvind.com/static-20080909-2.html <--- Wrapping in div'

[Proto-Scripty] Re: Ajax.Responders: API is confusing!

2008-09-09 Thread jdalton
@Darrinholst could you please post a ticket about your issue: http://prototype.lighthouseapp.com/projects/8886-prototype/tickets/new I know some contributors have fixed this issue on there own during their own rewrites of the ajax portion of Prototype. It would be nice to tie it to a ticket so w

[Proto-Scripty] autocompleter does not work & indicator keeps showing when error on page

2008-09-09 Thread Jack
Hi, I've started using latest version 1.8.4 & I'm using it for Autocompleter. I've used following syntax to display the autocompleter: new Ajax.Autocompleter("companyName", "companyHint", "abc.php", {paramName: "companyName", minChars: 1, indicator: 'inprogress', callback: null, afterUpdateEle

[Proto-Scripty] Re: Saving the position of a graggable or a sortable in a cookie

2008-09-09 Thread fintch2309
I am trying to set a cookie during the onUpdate and it is not working. Please see the code below and as always any help is appreciated. ... ul id="blocks" class="block"> {content block='Recent Updates'} {content block='Search'} {content block='Calendar'} {content block='News'} {con

[Proto-Scripty] Re: autocompleter does not work & indicator keeps showing when error on page

2008-09-09 Thread Jack D
Hi All, The issue is resolved. This library is SUPER!!! Actually, the problem was on my server side code..Thanks again! Regards! On Tue, Sep 9, 2008 at 12:28 PM, Jack <[EMAIL PROTECTED]> wrote: > > Hi, > I've started using latest version 1.8.4 & I'm using it for > Autocompleter. I've u

[Proto-Scripty] How to display searched charaacters in autocomplete in Bold

2008-09-09 Thread Jack
Hi, I'm using 1.8.4 latest scriptaculous library for autocomplete functionality. Everything works Perfect! I would like to know if scriptaculous supports highligting the returned results. When I type say "a" in the textbox, then the scrollable options will appear with results which conta

[Proto-Scripty] Re: Executing javascript in ajax html response

2008-09-09 Thread Matt Petrovic
what's in the requested

[Proto-Scripty] Extending Object

2008-09-09 Thread sean
I'm working on a custom extension of a couple of functions to the Object class and was just wondering how prototype connects functions such as Object.inspect(variable); to variable.inspect(); So far I have: Object.extend(Object.prototype, { talk: function(object) {

[Proto-Scripty] Re: Extending Object

2008-09-09 Thread kangax
On Sep 9, 6:05 pm, sean <[EMAIL PROTECTED]> wrote: > I'm working on a custom extension of a couple of functions to the > Object class and was just wondering how prototype connects functions > such as Object.inspect(variable); to variable.inspect(); It doesn't : ) > > So far I have: > > Object.ex

[Proto-Scripty] Re: Draggable from one div to another

2008-09-09 Thread byrd48
Thank you and I apologize for the delayed response. What I ended up doing was to create an on click event for the image, which creates a new image, appends it to the document (not the div container) then follows the mouse and it worked quite well.Thanks, Jon On Aug 29, 12:50 am, patrick <[EMAIL

[Proto-Scripty] Draggable OnEnd Call External Function

2008-09-09 Thread byrd48
Hi, I would like to use the OnEnd event of the draggable to call an external function instead of putting it inline. The function itself will be probably 30-50 lines long and will be unwieldy inline. I prefer the function to reside in a js include page for easier debugging with FireBug. Is ther

[Proto-Scripty] Re: Ajax.Responders: API is confusing!

2008-09-09 Thread darrinholst
> @Darrinholst could you please post a ticket about your > issue:http://prototype.lighthouseapp.com/projects/8886-prototype/tickets/new > I really didn't have an issue with it, but I'm more than happy to make a contribution - http://prototype.lighthouseapp.com/projects/8886-prototype/tickets/334

[Proto-Scripty] Re: Draggable OnEnd Call External Function

2008-09-09 Thread lfortin
Hi byrd48, Of course, you can always define an external function and pass it later as an handler: var myExternalFunction = function(draggable, event) { // do your stuff for onEnd // you can use draggable and event objects } Also, to be sure that your external function is loaded from th