On Jun 17, 1:31 am, "T.J. Crowder" wrote:
> Is the script tag including that JS file *below* the script tag that
> contains the document.observe call? If so, move it above it.
It's way above. All my external .js files are called on the head of
the html. First one called is prototype, then scrip
The documentation on Ajax.Request, for the "method" option, says:
method 'post' The HTTP method to use for the request. The
other
widespread possibility is 'get'. As a Ruby On Rails special, Prototype
also reacts to other verbs (such as 'put' and 'delete' by actually
using 'pos
We're not getting this done by pasting little bits of code back and
forth. You're missing something in here, the server process that does
the clone in the database has to return the new ID -- that's the only
place it can come from. If you go back to my example, I had the last
line of the
Perfect! Thank you. It works now.
--~--~-~--~~~---~--~~
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 prototype-scriptaculous@googlegroups.com
To unsubscribe fr
Maybe add it on "onSuccess" too ! just to be safe!
- Original Message -
From: "anthony"
To: "Prototype & script.aculo.us"
Sent: Wednesday, June 17, 2009 5:30 PM
Subject: [Proto-Scripty] Re: Prototype and forms
Here was the problem.
I should have been calling the function (getAdjForm
Always nice to find your own mistakes and learn from them - well done!
On Wed, Jun 17, 2009 at 12:30 PM, anthony wrote:
>
> Here was the problem.
>
> I should have been calling the function (getAdjForm) using onComplete:
>
> function getTerritories() {
>
>var params = $('createAdjForm')
Maybe I'm nuts but you're calling
setMovie() in the body tag
meanwhile... you have an Ajax.Request getting some data that will call...
setMovie() when successful
So... i suspect, that onload starts playing, then the ajax request finishes
and resets your player.
I dont recommend onload='' ev
Before I take a look at your issue... I have a rewrite of CurvyCorners that
i did that makes it run way faster. I was using it in a project and was
annoyed by how long it took to render the corners. I can't say its any
cleaner, but I corrected an unecessary loop. I've attched the rewrite to
this em
I'm quite positive that it's something wrong with your script, because
on drop (clone) this gets inserted in html:
(x)Description
Instead of being:
Description
(x)
For some reason it creates 2 instances instead of one (both of the
above). If you drag out items in ascending order by the id (1,2,3
> No harm in
> asking!https://prototype.lighthouseapp.com/projects/8886-prototype/overview
>
Thank you for the reference.
I found this interesting ticket on the subject:
https://prototype.lighthouseapp.com/projects/8886/tickets/634-no-exception-on-error-in-oncreate-method-of-ajaxrequest
Tobie L
Here was the problem.
I should have been calling the function (getAdjForm) using onComplete:
function getTerritories() {
var params = $('createAdjForm').serialize();
new Ajax.Updater(
"territories",
"url(array('controller'=>'index', 'action'=>'get-
territories'))
Sure. You have to use a className for the handles, since you
presumably have more than one of them. You cannot have the same ID
more than once in any given page. If you do, you get either
unpredictable results or nothing, depending on how pedantic the
browser or code is feeling that partic
is it run inside a dom:loaded wrapper ?
- Original Message -
From: "piers"
To: "Prototype & script.aculo.us"
Sent: Wednesday, June 17, 2009 4:14 PM
Subject: [Proto-Scripty] Need help resolving conflict between Proto and Uize
frameworks
>
> I know it's probably a lousy idea but I have
Because the contents are from an AJAX request and they dont exist in the
DOM probably .
OR..
They are outside the tag
Paste full code to a pastie and we can help
- Original Message -
From: "anthony"
To: "Prototype & script.aculo.us"
Sent: Wednesday, June 17, 2009 4:52 PM
Ok, I have found a better way to explain this.
var params = $('createAdjForm').serialize();
alert(params);
This does not show the form elements that were included via:
Why is that the case?
On Jun 17, 9:06 am, anthony wrote:
> Thanks for the cleanup. I have made those changes. Feel free to
I know it's probably a lousy idea but I have both prototype and uize
referenced in the of my document:
[code]
[/code]
The only time I use a prototype function in the of the document
is to create a function that plays a movie when a thumbnail is
clicked.
The function is:
[code]
fun
I've assigned a handle on my sortable and it works fine in Firefox but
not at all in IE. In IE you can use any of the elements in the LI to
reorder the list. I would like to only be able to use the "REORDER"
element to reorder the list. Any suggestions?
Item Name - Date - Detail - REORDER
Hi, everybody!
I'm a Brazilian WebDev and I've found a script to round corners
without images (Script's name is Curvy Corners:
http://www.curvycorners.net/demos/).
I was trying to round corners of the draggables, but they lose your
functions.
Some help?
Regards.
Rafael
--~--~-~--~---
Thanks for the cleanup. I have made those changes. Feel free to post
others. The problem I have is that the form had two dynamic places:
and
There is an onChange that calls the javascript function getTerritories
() allows the
to display which has a form element
called territory. At the end of
Hi,
thx a lot! It works!
On 16 Jun., 14:55, ColinFine wrote:
> On Jun 15, 1:41 pm, "T.J. Crowder" wrote:
>
> > 2. Alternately, use a document fragment[1][2]. This is to a large
> > extent what document fragments are for -- holding copies of things and
> > mucking about with them off-to-the-
Sorry, "holy war" reads a lot stronger than I meant it to. I'm just
frustrated by the utter bollocks that comes out of the W3C more often
than not.
-- T.J.
On Jun 17, 9:44 am, "T.J. Crowder" wrote:
> @kangax & Rob:
>
> I didn't mean to step into someone's holy war here. By "seems to be
> reco
> Maybe a clarifying line in the docs would help here,
> e.g.
I'm with you; open a ticket on Lighthouse[1] and assign it to me?
[1] https://prototype.lighthouseapp.com/projects/8886-prototype/overview
-- T.J. :-)
On Jun 17, 8:33 am, steffenb wrote:
> OK, I read those two points on Event#stop,
@kangax & Rob:
I didn't mean to step into someone's holy war here. By "seems to be
recommended" I meant what I said earlier, used in the unit tests and
such.
Let's just change them to something reasonable and move on.
-- T.J.
On Jun 17, 7:10 am, RobG wrote:
> On Jun 15, 5:48 pm, "T.J. Crowde
Hi,
> When I replace pollDoScroll.defer(); with pollDoScroll.delay(0);
> everything works.
That's weird, since xyz.defer() is functionally equivalent (with a bit
more overhead) to xyz.delay(0.01).
> How is the process to get in tough with the Prototype devels?
http://prototypejs.org/contribute
Hi,
> The updateTeamList is a function in a .js file that is used by this
> page.
Is the script tag including that JS file *below* the script tag that
contains the document.observe call? If so, move it above it.
If that's not it, I'd pick up with #3 on this list:
http://proto-scripty.wikidot.c
I have a page with a simple sortable UL, with the id attribute
"lister". I'm using the following code:
document.observe("dom:loaded", function() {
Sortable.create('lister',{tag:'li', onUpdate:updateTeamList});
});
However, when the page is loaded, IE7 gives me the following errors:
A Ru
OK, I read those two points on Event#stop, but still believed
Event#stop would prevent any further event processing, as the method
name indicates. Maybe a clarifying line in the docs would help here,
e.g.
Note: further observers on the same element will be called despite
Event#stop.
Steffen
On
27 matches
Mail list logo