[Proto-Scripty] Re: Position.includeScrollOffsets=true and Draggable inside a scrolling div ?

2008-12-18 Thread astilla
Anyone have any ideas on this please? Still getting the problem - everything else works perfectly, just the drag offset when the pane the draggables are in is scrolled down any amount. Used to work fine on a Sortable, doesn't seem to work with Draggables On 16 Dec, 14:01, astilla

[Proto-Scripty] Re: Modal window pop-up

2008-12-18 Thread Alex Mcauley
if you want a prototype based modal window then try this http://scripteka.com/script/litbox .. its is very configurable and with a little javascript knowledge you can make it ajaxified with requests to fill the window with anything you like . I used it as a base to build my own as i

[Proto-Scripty] Re: Using Event.observe and checking for childNodes in a parent

2008-12-18 Thread Alex Mcauley
I would look at the observe in a different way ... by that i mean observe the element that you are hovering not the whole window this way the event will bubble up the DOM and can be stopped as bubbling goes up the document not down.. this is a quick and dirty tooltips script i wrote a

[Proto-Scripty] Re: Improving FPS Speeds

2008-12-18 Thread Craig
Thanks for your reply. I'm self taught javascript im afraid so unaware of the best way to do things and I coded the sliders a while ago. Will take on board what you said and also do some research into best practices. If you have any recommendations on what to read would be much appreciated

[Proto-Scripty] Re: Extending Event has a Bug ?

2008-12-18 Thread fero
On Dec 17, 11:52 pm, kangax kan...@gmail.com wrote: On Dec 17, 1:51 pm, fero elf...@gmail.com wrote: [...] I think it is quite a bug because I have to check for Prototype.Browser.IE variable. I'm pretty sure there's *no* bug in nonexistent `Event.addMethods` ; ) Yes, you are truly right

[Proto-Scripty] Re: Problem (propably logical one) with dynamic fadein / fadeout for a navigation menu

2008-12-18 Thread Chris
Hi, thanks for your hints, I managed to get it right that way. The code is a bit different from yours, because I dont want multiple effects to overlap. I also added a short timeout, so the effects have enough time to finish. If someone is running into similiar problems, here is the full code

[Proto-Scripty] Re: Sorting on a JSON array

2008-12-18 Thread George
Just wondering if anyone had any ideas about how to sort JSON data. I'm sure there must be an easy way. Many thanks George On Dec 16, 12:43 pm, George george.bea...@googlemail.com wrote: Hi Folks, I wondered if there was a way to sort a JSON array.  Here's an example: var RS =  [ {id: 1,

[Proto-Scripty] Re: Nested JSON problem

2008-12-18 Thread George
Hi Jason, Forgive me if I've misunderstood the question, but hopefully this might help. As far as I know, you can infinitely nest your JSON data if that's what you want to do. I've noticed some fundamental problems with your JSON you pasted in your post which may just be typos, but need to be

[Proto-Scripty] Re: Nested JSON problem

2008-12-18 Thread jason maina
Hi George, Thanks for the input. Well, the data is converted to json by php from a nested array after extracting the data from a database thus the reason why there's flowerset and flowers. Im finally through with it, it looks kinda complicated in the nesting element but it somehow while

[Proto-Scripty] Re: Namespacing/Loading module

2008-12-18 Thread Chris Wash
I found Package on www.scripteka.com See http://code.google.com/p/kproto/ On Dec 17, 11:40 am, Chris Wash chris.w...@gmail.com wrote: Has anyone implemented a namespacing and importing module the likes of YUI's Namespace/Loader or Dojo's declare/provide/require? Please don't tell me one

[Proto-Scripty] Re: Sorting on a JSON array

2008-12-18 Thread Chris Wash
You're not seeing this work? Looks like it works as you expect, at least when looking at it with Firebug: testSortBy : function () { var RS = [ {id: 1, dateFrom: 20090101, dateTo: 20090309, tariff: [

[Proto-Scripty] Re: Nested JSON problem

2008-12-18 Thread Richard Quadling
2008/12/18 jason maina jason.ma...@gmail.com: Hi George, Thanks for the input. Well, the data is converted to json by php from a nested array after extracting the data from a database thus the reason why there's flowerset and flowers. Im finally through with it, it looks kinda

[Proto-Scripty] Re: Adding properties to all form elements

2008-12-18 Thread Diodeus
I don't believe html properties elements are extensible. All you can do is add css class names. On Dec 17, 12:29 pm, Kupido kup...@hotmail.com wrote: I need to extend all form elements with some properties. To add my own methods, I use: Object.extend(Form.Methods, {     method1: function ()

[Proto-Scripty] Re: Nested JSON problem

2008-12-18 Thread George
You learn something every day! Many thanks for that Richard. On Dec 18, 4:16 pm, Richard Quadling rquadl...@googlemail.com wrote: 2008/12/18 jason maina jason.ma...@gmail.com: Hi George, Thanks for the input. Well, the data is converted to json by php from a nested array after

[Proto-Scripty] Re: Adding properties to all form elements

2008-12-18 Thread kangax
On Dec 18, 11:16 am, Diodeus diod...@gmail.com wrote: I don't believe html properties elements are extensible. All you can do is add css class names. Actually they are. At least in Mozilla: HTMLFormElement.prototype.foo = 5; document.createElement('form').foo; // 5 [...] -- kangax

[Proto-Scripty] Re: Adding properties to all form elements

2008-12-18 Thread Kupido
Unfortunately I need my application to be compatible with IE too... :( What about the initialization function? Object.extend(Form.Methods, { initialize: function (form) { form = $(form); form.property1 = 'test'; form.property2 =

[Proto-Scripty] Re: Nested JSON problem

2008-12-18 Thread jason maina
Is it to mean that it cant support a large 'recordset' ? On 12/18/08, Richard Quadling rquadl...@googlemail.com wrote: 2008/12/18 jason maina jason.ma...@gmail.com: Hi George, Thanks for the input. Well, the data is converted to json by php from a nested array after extracting the data

[Proto-Scripty] Re: Adding properties to all form elements

2008-12-18 Thread kangax
On Dec 18, 12:18 pm, Kupido kup...@hotmail.com wrote: Unfortunately I need my application to be compatible with IE too... :( What about the initialization function? Object.extend(Form.Methods, {         initialize: function (form)         {                 form = $(form);                

[Proto-Scripty] Re: Using Event.observe and checking for childNodes in a parent

2008-12-18 Thread Calvin Lai
Thanks Alex! I'm going to give that a shot...and I see what you mean by seeing it in a different way. I'll let you know how it goes. -- Calvin Lai Business Development http://dealspl.us On Thu, Dec 18, 2008 at 1:27 AM, Alex Mcauley webmas...@thecarmarketplace.com wrote: I would look at the