try this
new Draggable(newElement,{
handle: 'thehandleID',
starteffect: function() {
// some function
},
endeffect : function () {
// some function
I'm trying to execute a function when an object is done being dragged
(ie: onEnd). The function checks to make sure the draggable is inside
the parent div I want it to stay in. I can get it to work now as long
as I pass no variables to the function. if I do, the function
executes onload, and NOT
Hi T.J.,
Thanks for the clear explanation regarding the viewport's height. I did
expect the body element's height to be the viewport's height and I was wrong
to make that assumption. Since Prototype javascript library seems to iron
out various cross-browser implementations of native javascript (I
Hi Diodeus,
as i wrote, i ran the code several times without errors, but other
times it crashed.
I can really exclude an error in the server-side code. I replaced my
code with a simple Perl one line script "print '123test';" and even
with this simple code it sometimes worked, sometimes didn't...
All I can suggest is performing some error-trapping in your server-
side code to see where it's crapping-out.
On May 5, 2:55 pm, Nobody wrote:
> Hi guys,
> i got a problem with prototype in connection with a perl script. I'm
> performing AJAX-requests with Ajax.Request of prototype calling a p
Please post the URL.
On May 6, 7:00 am, lesserone wrote:
> Hi all I am using Prototype & script.aculo.us.
>
> All I want to do is use a horizontal slider with a list of images.
>
> If I do not use a master page then it all works in IE but not in
> Firefox.
>
> If I use a master page still nothin
Hi,
> I am running the vendor code and my prototype code from the same folder
> on the same server with almost the same file name.
So, something else is going on. :-) I'd recommend walking through the
call using a debugger (Firebug[1], for instance). If you're not even
seeing the call get init
Hi,
You need to apply a small patch to your prototype.js
Instead of " while ((element = element.parentNode) && element !=
document.body", put:
while ((element = element.parentNode) && element != document.body &&
Object.isElement(element))
I have the 1.6.1_rc2 and the patch is to apply in Line 2411
IE6 sucks dont support it .. if developers stop supporting it then it
will force change in the industry and we wont have these headaches anymore!
- Original Message -
From: "virchete"
To: "Prototype & script.aculo.us"
Sent: Wednesday, May 06, 2009 4:05 PM
Subject: [Proto-Scripty]
hello,
I have been looking for the solution in the web and I didn't find
anything. My problem appears only in IE and works fine in Firefox. The
problem is the following:
-The first time that I write something I don't receive the list. If
you stop writting (for example 1 second) and then continu
Hi,
> Yes, I could control this as output mostly comes from source files
> that have been automatically generated (MDA approach) but I think this
> solution would break browser file cache.
It wouldn't, but you couldn't have known that as you couldn't see the
wiki article. :-)
> I couldn't check
On May 6, 12:49 pm, sandy wrote:
> Hi all,
>
> Still i am stuck on the same issue as above i.e. nothing is happening
> on dropping the image in panel-2.I am able to drag the iamge from
> panel-1 to panel-2 but the Droppable.add(...) is not firing .The whole
> code is same as above posted .
>
>
Hi all I am using Prototype & script.aculo.us.
All I want to do is use a horizontal slider with a list of images.
If I do not use a master page then it all works in IE but not in
Firefox.
If I use a master page still nothing in Firefox and the Images are not
hidden but all of them show please h
Thanks for your quick and complete answer! I've followed your hints
and I think that I've reached an elegant (but maybe not performant)
solution.
> String#evalScripts uses String#extractScripts[4], which uses this
> regex repeatedly to build an array of the contents of script tags:
> ']*>([\\S\\s
I suggest you make a stripped-down version instead of expecting people
to pore over hundreds of lines of code, which you didn't even bother
to remove the commented-out parts.
On May 6, 3:27 am, sandy wrote:
> Hi all ,
>
> I am doing image drag and drop functionality in asp.net, the drag
> functi
Also when I tried to do a cross domain call before that didn't work I
thought I got an access denied error. This isn't even trying to make
the call. I have a proxy setup to view the traffic and I see the call
to my page the code is on and a call to the prototype.js file, but it
doesn't even appe
I am running the vendor code and my prototype code from the same folder
on the same server with almost the same file name. The only difference
is I added pt to the filename that my prototype code is trying to run
from.
http://server_a/ajaxIG.html is the vendor code and it calls
http://server_b/c
Hi all,
Still i am stuck on the same issue as above i.e. nothing is happening
on dropping the image in panel-2.I am able to drag the iamge from
panel-1 to panel-2 but the Droppable.add(...) is not firing .The whole
code is same as above posted .
And server side means,all the script in .cs file a
Hi,
> Is there a work around to force Prototype to leave JavaScript source
> files inclusions after Ajax updates?
Nothing built into Prototype. If you search through Lighthouse[1] or
this group (I forget which) there was a discussion about possibly
adding that at some stage. In the meantime, I
Hi,
> Ok I get that you can't request across domains
It's more than domains, it's origins, which goes all the way to the
(apparent) machine level. If you have a page served from (say)
http://server_a/somepage.html you _cannot_ use XHR (the vendor's code
or Prototype) to do a request to (say) ht
Well, I can't say for sure but it looks like IEs rendering of tables
is probably to blame. After converting the page to display the table
data using divs IE now has the links active.
On May 2, 4:27 pm, xander wrote:
> I'm using the toggle effect to show/hide a table row in a list of
> events (ex
Hi Paul,
Just to add to that, I'm guessing the height was "wrong" because you
were expecting the body element's height to be the viewport's height.
The body element's height is determined by its content (barring CSS
rules to the contrary), not the height of the viewport. Try this CSS:
body {
Hi all ,
I am doing image drag and drop functionality in asp.net, the drag
functionality is working fine but my drop functionality is not working
fine so i need help.
I am getting the error in prototype.js file in line number 1903 "var
value = element.style[style];" element is null. and i ma stuc
Hi guys,
i got a problem with prototype in connection with a perl script. I'm
performing AJAX-requests with Ajax.Request of prototype calling a perl
script for performing the backend functions.
Somehow i get random "500 Internal Server Error" messages. I tried so
many things (checking permissions,
Hi,
Our application has been enhanced with an asynchronous circuit (based
over the Prototype's Ajax class) that is able to load and navigate
through usecases in a modal window.
When calling an usecase action in a asynchronous way, the circuit
returns only the needed HTML content (and not a full
Bertrand wrote:
> Thanks for your kind answer, it did help a lot.
It should help, as it tells you are looking for the problem in wrong
place. Try to look for the problem in your own code and not blame
prototype.js when you're not sure.
I think the problem you might have is the lack of DOCTYPE
26 matches
Mail list logo