[Proto-Scripty] evalScripts and functions

2009-05-25 Thread Michael
I understand how Prototype works with regards to the removal of script tags after evaling the results of an Ajax request. However, I was doing some research and am now starting to wonder why the way I declare functions works. According to the Prototype documentation, you need to declare the

[Proto-Scripty] Canceling all effects for an element

2009-05-25 Thread Jaryl Sim
I've searched for this on the documentation and on the board, but I'm not finding anything on this. How do you cancel all the current effects? Is there something like: $('element').effects.cancel(); --~--~-~--~~~---~--~~ You received this message because you are

[Proto-Scripty] Re: MySQL - order ID

2009-05-25 Thread WLQ
Seems like I can't connect your script, I made to divs with cart and timeline. But nothing happens, can you tell me what else to create apart of javascript? On 24 Maj, 18:45, Walter Lee Davis wa...@wdstudio.com wrote: Could you post an example of what you're trying to run on Pastie or   jsbin

[Proto-Scripty] Re: MySQL - order ID

2009-05-25 Thread WLQ
Seems like I can't connect your script, I made to divs with cart and timeline. But nothing happens, can you tell me what else to create apart of javascript? On 24 Maj, 18:45, Walter Lee Davis wa...@wdstudio.com wrote: Could you post an example of what you're trying to run on Pastie or   jsbin

[Proto-Scripty] Re: MySQL - order ID

2009-05-25 Thread Walter Lee Davis
You need to have an application set up on your server to receive a request from the page, process it, and return a value. The example I gave was extracted from a working application. There is a server side component to my solution that would not make any sense to you because it has

[Proto-Scripty] Re: how to set focus after using an effect?

2009-05-25 Thread Walter Lee Davis
All of the effects fire an afterFinish() function, if one is provided in the options hash. Walter On May 25, 2009, at 8:38 AM, claus.k...@googlemail.com wrote: Is there something like onComplete: for the effects? I do no see anything like that in the docs...

[Proto-Scripty] Re: how to set focus after using an effect?

2009-05-25 Thread Maarten
On 25 mei, 14:38, claus.k...@googlemail.com claus.k...@googlemail.com wrote: Hello everyone, Hi, [...] Is there something like onComplete: for the effects? I do no see anything like that in the docs... The callback function you're looking for is called afterFinish(), see for example the

[Proto-Scripty] script a licious slider update with effect scrollto

2009-05-25 Thread bambam007
I am using the slider and mouse scroll to scroll inside a div Now i want to add anchor button. so when i click the button, the specified div scrolls to the ID. and the slider updates accordingly. You can see my code at http://www.codingforums.com/showthread.php?p=820484#post820484 with this I

[Proto-Scripty] Re: MySQL - order ID

2009-05-25 Thread WLQ
Yeah, but what I don't understand is how your script connects with a database, I mean what are the cart, timeline, cart-active... are? I've noticed we have some trouble understanding one another, can we talk somewhere like msn? On 25 Maj, 16:05, Walter Lee Davis wa...@wdstudio.com wrote: You

[Proto-Scripty] Re: Canceling all effects for an element

2009-05-25 Thread david
Hi Jaryl Sim, The cancel function exist, but inside the scriptaculous Effect Object. So you need to save each scriptaculous Effect Object and call the cancel method for each. this is a simple exemple: var Effect1=$('element').Morph({duration:1,style:'background- color:#ff'}); var

[Proto-Scripty] Re: evalScripts and functions

2009-05-25 Thread david
Hi Mickael, I just look at the prototype documentation, and did not find any note about: According to the Prototype documentation, you need to declare the function and assign it to a global variable: myFunction = function() {alert('hi');} Could you please point me out where it is written,

[Proto-Scripty] blind up and down effect not working smoothly

2009-05-25 Thread Max
Hello, I am not that proficient with these scripts and can't seem to work out details so the script works smoothly. The idea is when you rollover the main navigation blocks, (events, advocacy, community, marketplace, local wic) a blind down occurs that contains the submenu items. This part

[Proto-Scripty] Element.Methods target.positionedOffset() not supported in IE

2009-05-25 Thread bkausbk
Hello, as I found out, the Element.Method positionedOffset() is not working in IE 8. Is there a workaround for this? I try to call it in my click event handler like this: var target = (event.target) ? event.target : event.srcElement; var offs = target.positionedOffset(); I want to get the

[Proto-Scripty] Re: how to set focus after using an effect?

2009-05-25 Thread claus.k...@googlemail.com
On 25 Mai, 16:10, Maarten maartenwie...@gmail.com wrote: Is there something like onComplete: for the effects? I do no see anything like that in the docs... The callback function you're looking for is called afterFinish(), see for example the following

[Proto-Scripty] Re: blind up and down effect not working smoothly

2009-05-25 Thread david
Hi max, first notice is that you use DOM0 event, and set onmouseover onmouseout inside HTML Element, this is not good, prefer using the Element.Observe that permit to register event. doc at http://prototypejs.org/api/element/observe But this not the problem. The problem appear as you say when

[Proto-Scripty] Re: evalScripts and functions

2009-05-25 Thread kangax
On May 24, 10:24 am, Michael mich...@michaelminella.com wrote: I understand how Prototype works with regards to the removal of script tags after evaling the results of an Ajax request. However, I was doing some research and am now starting to wonder why the way I declare functions works.