[Proto-Scripty] Extreme beginner

2009-01-03 Thread openrijal
Hi all. Greetings. I am extreme beginner in this field. I am using CodeIgniter though, I don't know how to incorporate script aculos and prototype in it. Can u forward me a tutorial or something similar. Thank you. --~--~-~--~~~---~--~~ You received this message

[Proto-Scripty] Event.observer with mouseup?

2009-01-03 Thread Per
Hi, I'm new to protocoljs, but it's this thing I'm trying to do, and it doesn't work. It drives me mad. Anyway, I try to do this with protocoljs: body onmouseup=alert('hi'); This was how I wrote it, but it doesn't work: Event.observer(window,'mouseup',alert('hi')); What is the right way to do

[Proto-Scripty] Re: Calling other website server url

2009-01-03 Thread Walter Lee Davis
Nope. Google single origin policy for the reason why. Walter On Jan 2, 2009, at 3:02 AM, Jagan wrote: I want to call different website url in ajax.request method. is it possible? is there any way to call Ex: i am in xyz.com/home.jsp. In this page i want to call new

[Proto-Scripty] Re: IE and Element#up

2009-01-03 Thread T.J. Crowder
Hi Joris, I felt a bit stupid asking such a basic question is there some documentation on these kinds of differences per browser? No need to feel stupid, we're all new at some point. I found when starting out with Prototype that it paid me back very well indeed to read the API from beginning

[Proto-Scripty] Re: Event.observer with mouseup?

2009-01-03 Thread T.J. Crowder
Hi Per, This was how I wrote it, but it doesn't work: Event.observer(window,'mouseup',alert('hi')); There are a couple of problems with that code. First, you're calling Event.observer (with an 'r' at the end); the method is Event.observe (no 'r'). The second problem is that you're calling

[Proto-Scripty] Re: Event.observer with mouseup?

2009-01-03 Thread Walter Lee Davis
Try doing this instead: //put the following in a script block near the bottom of your html var foo = function(){ alert('howdy') }; Event.observe(window,'mouseup',foo); Note that the function is called Event.observe, not Event.observer. Also any reference to a function inside of an observer

[Proto-Scripty] Re: Event.observer with mouseup?

2009-01-03 Thread T.J. Crowder
Also any reference to a function inside of an observer needs to be in the form of an anonymous function, not a literal function itself. Doesn't have to be anonymous. Named functions are fine: function myMouseUpThingy() { alert('Howdy'); } // later Event.observe(window, 'mouseup',

[Proto-Scripty] Re: Extreme beginner

2009-01-03 Thread Walter Lee Davis
GIYF: http://codeigniter.com/wiki/AJAX_for_CodeIgniter/ Walter On Jan 2, 2009, at 5:39 AM, openrijal wrote: Hi all. Greetings. I am extreme beginner in this field. I am using CodeIgniter though, I don't know how to incorporate script aculos and prototype in it. Can u forward me a

[Proto-Scripty] Re: Calling other website server url

2009-01-03 Thread T.J. Crowder
Nope. Google single origin policy for the reason why. Or same origin policy. Here's the top hit when you do: http://en.wikipedia.org/wiki/Same_origin_policy HTH, -- T.J. Crowder tj / crowder software / com On Jan 3, 4:37 pm, Walter Lee Davis wa...@wdstudio.com wrote: Nope. Google single