[Proto-Scripty] Re: Delete php

2009-07-21 Thread Alex McAuley
you may be able to get the clicked element with "this" Example. $('clones').observe('click',function(evt){ var elm = this; .. var e=this.id; - Original Message - From: Yan Kovyakh To: prototype-scriptaculous@googlegroups.com Sent: Tuesday, July 21, 2009

[Proto-Scripty] Re: Delete php

2009-07-21 Thread Alex McAuley
He has trouble getting the element in the first place Getting the split of it is not the problem Alex http://www.thevacancymarket.com - Original Message - From: "Chris" To: "Prototype & script.aculo.us" Sent: Tuesday, July 21, 2009 3:50 PM Subject: [Proto-Scripty] Re: Delete php

[Proto-Scripty] Re: Delete php

2009-07-21 Thread Alex McAuley
try the follwing then. $('clones').observe('click',function(evt,element){ var elm = element; if (elm.hasClassName('remove')){ evt.stop(); - Original Message - From: Yan Kovyakh To: prototype-scriptaculous@googlegroups.com Sent: Tuesday, July 21, 2009 3:

[Proto-Scripty] Re: Delete php

2009-07-21 Thread Alex McAuley
ment(); > if(elm.id){ > //your code goes here > } > }); > > Walter > > On Jul 21, 2009, at 11:10 AM, Alex McAuley wrote: > >> try the follwing then. >> >> $('clones').observe('click',function(evt,element){ >> var elm = element; &

[Proto-Scripty] Re: Delete php

2009-07-21 Thread Alex McAuley
x27;click',function(event){ var elm=Event.element(event);Rest of your code Solution 2. Listen to each inside the for the click like the following $$('#clones li').invoke('observe','click',function(event) { var elm=this; // this will now be the element (this.

[Proto-Scripty] Re: Delete php

2009-07-21 Thread Alex McAuley
and firebug says ? you have an undefined error in there for a start with evt.stop(); Alex Mcauley http://www.thevacancymarket.com - Original Message - From: "Yan Kovyakh" To: Sent: Tuesday, July 21, 2009 5:04 PM Subject: [Proto-Scripty] Delete php > > Both of the

[Proto-Scripty] Re: Delete php

2009-07-21 Thread Alex McAuley
table.defer(); } }); }); That works because i just tested it, it alerts 1234 for the follwing html and 4567 for the second list element. See the comments in the code to make it work for you. ID = foo_1234 ID = foo_4567 Alex Mcauley http://www.thevacancymar

[Proto-Scripty] Re: Delete php

2009-07-21 Thread Alex McAuley
change elm.up('li').remove(); to $(this).remove(); and it will remove the element that was clicked Alex Mcauley http://www.thevacancymarket.com - Original Message - From: "Walter Lee Davis" To: Sent: Tuesday, July 21, 2009 7:53 PM Subject: [Proto-Scripty] Re: D

[Proto-Scripty] Re: Need help for performantly creating tooltips

2009-07-21 Thread Alex McAuley
Good thing he said "performant" then init !! :P Alex Mcauley http://www.thevacancymarket.com - Original Message - From: "Diodeus" To: "Prototype & script.aculo.us" Sent: Tuesday, July 21, 2009 10:00 PM Subject: [Proto-Scripty] Re: Need help

[Proto-Scripty] Re: Delete php

2009-07-21 Thread Alex McAuley
its $_POST['clone'] not $_POST['the_id'] thats why !! Alex Mcauley http://www.thevacancymarket.com - Original Message - From: Yan Kovyakh To: prototype-scriptaculous@googlegroups.com Sent: Tuesday, July 21, 2009 10:22 PM Subject: [Proto-Scripty] Delete

[Proto-Scripty] Re: Need help for performantly creating tooltips

2009-07-21 Thread Alex McAuley
I love semantical arguments !! Alex Mcauley http://www.thevacancymarket.com - Original Message - From: "Richard Quadling" To: Sent: Tuesday, July 21, 2009 10:20 PM Subject: [Proto-Scripty] Re: Need help for performantly creating tooltips > > 2009/7/21 Alex McAu

[Proto-Scripty] Re: Need help for performantly creating tooltips

2009-07-22 Thread Alex McAuley
Chris. If you dont want to write your own may i suggest (proto fanboys dont scream blasphomy at me !!) http://flowplayer.org/tools/tooltip.html Its very very lightweight and very configurable (relies on jQuery) Alex Mcauley http://www.thevacancymarket.com - Original Message - From

[Proto-Scripty] Re: Need help for performantly creating tooltips

2009-07-22 Thread Alex McAuley
(about 30 lines iirc) HTH Alex Mcauley http://www.thevacancymarket.com - Original Message - From: "ColinFine" To: "Prototype & script.aculo.us" Sent: Wednesday, July 22, 2009 12:05 PM Subject: [Proto-Scripty] Re: Need help for performantly creating tooltips

[Proto-Scripty] Re: How do I implement this Prototype/AJAX effects on my page?

2009-07-22 Thread Alex McAuley
Effect.BlindUp and BlindDown will do it for you you also will want to look at effect queues in the github of scriptaculous HTH Alex Mcauley http://www.thevacancymarket.com - Original Message - From: "elggtester" To: "Prototype & script.aculo.us" Sent: We

[Proto-Scripty] Re: the problem of "this.XB.firstChild is null"

2009-07-22 Thread Alex McAuley
Your script and some XML / HTML might help !! Alex Mcauley http://www.thevacancymarket.com - Original Message - From: "chengshwu" To: "Prototype & script.aculo.us" Sent: Wednesday, July 22, 2009 8:40 AM Subject: [Proto-Scripty] the problem of "this.XB

[Proto-Scripty] Re: prototype Ajax.Request returning 12002 ONLY in IE on remote server.

2009-07-22 Thread Alex McAuley
Most browsers limit the number of simultanious requests and or paralel downloads not just IE Alex Mcauley http://www.thevacancymarket.com - Original Message - From: "David Dyer" To: "Prototype & script.aculo.us" Sent: Wednesday, July 22, 2009 6:07 PM Sub

[Proto-Scripty] Re: what causes this? prototype/javascript/php ?!

2009-07-26 Thread Alex McAuley
because its being sent as an array.. php cannot directly read javascript arrays and as such you have to json encode/decode it Alex Mcauley http://www.thevacancymarket.com - Original Message - From: "geoffcox" To: "Prototype & script.aculo.us" Sent: Sunda

[Proto-Scripty] Re: what causes this? prototype/javascript/php ?!

2009-07-26 Thread Alex McAuley
php's json_encode/decode functions... you may need to install them. Good luck Alex Mcauley http://www.thevacancymarket.com - Original Message - From: "geoffcox75" To: "Prototype & script.aculo.us" Sent: Sunday, July 26, 2009 6:23 PM Subject: [Proto-

[Proto-Scripty] Re: javascript slider value to php form post

2009-07-27 Thread Alex McAuley
;+v; window.sliderValue=v; } then you can add it to params easily params: { sliderValue: window.sliderValue; } Alex Mcauley http://www.thevacancymarket.com - Original Message - From: "autocat" To: "Prototype & script.aculo.us" Sent: Monday, July 27, 2009 7:43

[Proto-Scripty] Re: Error in IE8

2009-07-28 Thread Alex McAuley
Check the script that is calling it. Alex Mcauley http://www.thevacancymarket.com - Original Message - From: "stegel" To: "Prototype & script.aculo.us" Sent: Tuesday, July 28, 2009 2:59 AM Subject: [Proto-Scripty] Error in IE8 > > I am running prototype.

[Proto-Scripty] Re: ternary operators

2009-07-28 Thread Alex McAuley
In my usual "Not enough coffee" moments i just used an If/Else instead lol Not sure why i was trying to cut code using a tenary ... We live and learn Sorry for useless post Alex Mcauley http://www.thevacancymarket.com - Original Message - From: "Jeztah&q

[Proto-Scripty] Re: Error in IE8

2009-07-28 Thread Alex McAuley
Most scripts on a page are evaluated by the interpereter first. COmment out all of your functions and see if its still happening Alex Mcauley http://www.thevacancymarket.com - Original Message - From: "stegel" To: "Prototype & script.aculo.us" Sent: Tuesda

[Proto-Scripty] Re: Event.stop(event);

2009-07-29 Thread Alex McAuley
I should add the bottom Event.stop(event); after the ajax request is not an option as i dont want it stopped there incase somethign went wrong in the request - i would like the click to follow the href and work as normal. Alex Mcauley http://www.thevacancymarket.com - Original

[Proto-Scripty] Re: Event.stop(event);

2009-07-29 Thread Alex McAuley
Found an easier way Added "asyncronous: false," to the ajax options!! Thanks for input Alex Mcauley http://www.thevacancymarket.com - Original Message - From: "Daniel Rubin" To: Sent: Wednesday, July 29, 2009 12:33 PM Subject: [Proto-Scripty] Re: Event.stop(

[Proto-Scripty] Re: Firefox v3.5

2009-07-29 Thread Alex McAuley
that has a space in it no ? ID's are not allowed spaces Alex Mcauley http://www.thevacancymarket.com - Original Message - From: "evrim" To: "Prototype & script.aculo.us" Sent: Wednesday, July 29, 2009 12:29 PM Subject: [Proto-Scripty] Re: Firefox v

[Proto-Scripty] Re: Event.stop(event);

2009-07-29 Thread Alex McAuley
easier to leave it as it is (working) than add more lines of code. Alex Mcauley http://www.thevacancymarket.com - Original Message - From: "Tobie Langel" To: "Prototype & script.aculo.us" Sent: Wednesday, July 29, 2009 1:45 PM Subject: [Proto-Scrip

[Proto-Scripty] Re: Firefox v3.5

2009-07-29 Thread Alex McAuley
Misread sorry Alex Mcauley http://www.thevacancymarket.com - Original Message - From: "evrim" To: "Prototype & script.aculo.us" Sent: Wednesday, July 29, 2009 1:59 PM Subject: [Proto-Scripty] Re: Firefox v3.5 No there is not a space in ID e is expression

[Proto-Scripty] Re: Event.stop(event);

2009-07-29 Thread Alex McAuley
Thanks for the advice Alex Mcauley http://www.thevacancymarket.com - Original Message - From: "Tobie Langel" To: "Prototype & script.aculo.us" Sent: Wednesday, July 29, 2009 2:28 PM Subject: [Proto-Scripty] Re: Event.stop(event); > > For the sake of ar

[Proto-Scripty] Re: Masked Input in Prototype

2009-07-29 Thread Alex McAuley
why not just port the jquery one... wont take long ! Alex Mcauley http://www.thevacancymarket.com - Original Message - From: "Celso" To: "Prototype & script.aculo.us" Sent: Wednesday, July 29, 2009 10:22 PM Subject: [Proto-Scripty] Re: Masked Input in Prototyp

[Proto-Scripty] Re: Effect.Morph query

2009-07-30 Thread Alex McAuley
Can you give an example of your code in a pastebin and i will ammend it to do what it needs to. Regards Alex Mcauley http://www.thevacancymarket.com - Original Message - From: "Andrew Dodd" To: "Prototype & script.aculo.us" Sent: Thursday, July 30, 2009

[Proto-Scripty] Re: Effect.Morph query

2009-07-30 Thread Alex McAuley
A couple of things i would do. First i would remove the onlick and assign the elements a classname something like this will work http://pastie.org/565060 HTH Alex Mcauley http://www.thevacancymarket.com - Original Message - From: "Andrew Dodd" To: "Prototype &a

[Proto-Scripty] Re: Event onDrop on Sortable class

2009-07-30 Thread Alex McAuley
There is some options in draggable onEnd: function() {} HTH Alex Mcauley http://www.thevacancymarket.com - Original Message - From: "Christophe" To: "Prototype & script.aculo.us" Sent: Wednesday, July 29, 2009 10:53 PM Subject: [Proto-Scripty] Event

[Proto-Scripty] Re: ternary operators

2009-07-30 Thread Alex McAuley
Sorry you missed the point i was trying to achieve. I wanted the operator to in essence evaluate 2 responses for example. alert('Element Does not exist'); alert('The second responsee'); However it cannot be achieved so it must be done usung if/else.. Regard

[Proto-Scripty] Re: ternary operators

2009-07-30 Thread Alex McAuley
the original post is signed with my name !! Alex Mcauley http://www.thevacancymarket.com - Original Message - From: Rick Waldron To: prototype-scriptaculous@googlegroups.com Sent: Thursday, July 30, 2009 7:31 PM Subject: [Proto-Scripty] Re: ternary operators Huh? Jeztah

[Proto-Scripty] Re: ternary operators

2009-07-30 Thread Alex McAuley
Me too !!! Alex Mcauley http://www.thevacancymarket.com - Original Message - From: Rick Waldron To: prototype-scriptaculous@googlegroups.com Sent: Thursday, July 30, 2009 7:39 PM Subject: [Proto-Scripty] Re: ternary operators Hehe. I guess i missed that. I read

[Proto-Scripty] Re: ternary operators

2009-07-30 Thread Alex McAuley
thanks TJ, The alert() was just an example - perhaps a bad one! ... i did not however consider the || version. Regards Alex Mcauley http://www.thevacancymarket.com - Original Message - From: "T.J. Crowder" To: "Prototype & script.aculo.us" Sent: Thursda

[Proto-Scripty] Re: Effect.Morph query

2009-07-31 Thread Alex McAuley
onlick)!! Alex Mcauley http://www.thevacancymarket.com - Original Message - From: "Andrew Dodd" To: "Prototype & script.aculo.us" Sent: Friday, July 31, 2009 9:54 AM Subject: [Proto-Scripty] Re: Effect.Morph query Hi Thanks for the help, I tried the above in

[Proto-Scripty] Re: Effect.Morph query

2009-07-31 Thread Alex McAuley
You;re more than welcome That will give you he basis on how to do this kinda stuff without onclick! Anything else just let me/the group know Regards Alex Mcauley http://www.thevacancymarket.com - Original Message - From: "Andrew Dodd" To: "Prototype & scr

[Proto-Scripty] Re: Effect.Morph query

2009-07-31 Thread Alex McAuley
dont exist after an Ajax.Updater. You should call it in the 'onSuccess' part of your ajax something like onSuccess : function() { initMorphing(); } HTH Regards Alex Mcauley http://www.thevacancymarket.com - Original Message - From: "Andrew Dodd" To: "Pro

[Proto-Scripty] Re: Eventchain click and drag

2009-07-31 Thread Alex McAuley
What was the original question ? Alex Mcauley http://www.thevacancymarket.com - Original Message - From: "ferion" To: "Prototype & script.aculo.us" Sent: Friday, July 31, 2009 12:35 PM Subject: [Proto-Scripty] Re: Eventchain click and drag > > Seems l

[Proto-Scripty] Re: Effect.Morph query

2009-07-31 Thread Alex McAuley
I would replace all of your code with the Ajax.Updater... http://pastie.org/566564 I have put most of it into the pastie above You will want to check it and replace your code with it if you are happy. Regards Alex Mcauley http://www.thevacancymarket.com - Original Message

[Proto-Scripty] Re: Effect.Morph query

2009-07-31 Thread Alex McAuley
erely a shortcut for document.getElementById()... Alex Mcauley http://www.thevacancymarket.com - Original Message - From: "Andrew Dodd" To: "Prototype & script.aculo.us" Sent: Friday, July 31, 2009 2:26 PM Subject: [Proto-Scripty] Re: Effect.Morph query Wicked. I've

[Proto-Scripty] Re: Effect.Morph query

2009-07-31 Thread Alex McAuley
Sorry ANdy Adjust the code form "params : {}" to "parameters" Typo -> My mistake. Alex Mcauley http://www.thevacancymarket.com - Original Message - From: "Andrew Dodd" To: "Prototype & script.aculo.us" Sent: Friday, Ju

[Proto-Scripty] Re: Effect.Morph query

2009-07-31 Thread Alex McAuley
In that i mean Change "params" to "parameters" ... incase that made no sense!! Alex Mcauley http://www.thevacancymarket.com - Original Message - From: "Alex McAuley" To: Sent: Friday, July 31, 2009 3:08 PM Subject: [Proto-Scripty] Re: Effect.Morph q

[Proto-Scripty] Re: Effect.Morph query

2009-07-31 Thread Alex McAuley
You have the PHP echoing out class=morphable instead of class="morphable" .. try changing that and it may work. Alex Mcauley http://www.thevacancymarket.com - Original Message - From: "Andrew Dodd" To: "Prototype & script.aculo.us" Sent: Friday, Jul

[Proto-Scripty] Re: Effect.Morph query

2009-07-31 Thread Alex McAuley
I'll consult the docs on morph to see if its compatible with TR's Some effects are and some are not. Alex Mcauley http://www.thevacancymarket.com - Original Message - From: "Andrew Dodd" To: "Prototype & script.aculo.us" Sent: Friday, July 31, 2009 4

[Proto-Scripty] Re: Effect.Morph query

2009-07-31 Thread Alex McAuley
Onlick is bad ... Is it now in the Event.observe(window wrapper? Alex Mcauley http://www.thevacancymarket.com - Original Message - From: "Andrew Dodd" To: "Prototype & script.aculo.us" Sent: Friday, July 31, 2009 4:28 PM Subject: [Proto-Scripty

[Proto-Scripty] Re: Effect.Morph query

2009-07-31 Thread Alex McAuley
http://pastie.org/566774 you have a line ... $(elem).morph('oddrow');Which will not work as "oddrow" is not a style. Alex Mcauley http://www.thevacancymarket.com - Original Message - From: "Andrew Dodd" To: "Prototype & script.aculo.us"

[Proto-Scripty] Re: Escaping Input

2009-07-31 Thread Alex McAuley
You should always remove slashes from Json in php Example below.. I had a similar problem with a PHP app i developed and had to escape it properly Alex Mcauley http://www.thevacancymarket.com - Original Message - From: "infringer" To: "Prototype & script.acul

[Proto-Scripty] Re: Escaping Input

2009-07-31 Thread Alex McAuley
Sorry - Just tucked into my first beer ... not remove slashes ... Santitize the $_POST My mistake. Alex Mcauley http://www.thevacancymarket.com - Original Message - From: "infringer" To: "Prototype & script.aculo.us" Sent: Friday, July 31, 2009 5:49 PM Sub

[Proto-Scripty] Re: Beginners question, trouble with Event.stop in AJAX

2009-08-03 Thread Alex McAuley
If you are using "onsubmit" you need to do this ... onsibmit="return theCoolFunction();" then you may return false or true on certain things ... As TJ recommended i would stay away from these old style handlers and look at delegating it properly HTH

[Proto-Scripty] Re: Will remove() method on top DIV element automatically remove children of that element?

2009-08-03 Thread Alex McAuley
onclick will go as its a DOM0 style handler. Anything in the observe (attached as delegation) will not and you will have to remove manauly with stopObserving(); Alex Mcauley http://www.thevacancymarket.com - Original Message - From: "Kostil" To: "Prototype & scr

[Proto-Scripty] Re: Masked Input in Prototype

2009-08-03 Thread Alex McAuley
Or before the code do this... $jq=jQuery.noConflict(); then anything that you want to use jQuery's $ for just use $jq in its stead. HTH Alex Mcauley http://www.thevacancymarket.com - Original Message - From: "Matt Foster" To: "Prototype & script.aculo.us&q

[Proto-Scripty] Re: IE 8 Bug

2009-08-04 Thread Alex McAuley
Never mind i fixed it !.. Goddam IE8 i hate it already - only been using it 1 hour ! Alex Mcauley http://www.thevacancymarket.com - Original Message - From: "Jeztah" To: "Prototype & script.aculo.us" Sent: Tuesday, August 04, 2009 2:21 PM Subject:

[Proto-Scripty] Re: IE 8 Bug

2009-08-04 Thread Alex McAuley
addClassName() worked but the page had cached and not updated my code after refresh ... shut the browser and tried again - worked first time Now i am looking for a way to detect if the browser is IE8 or not as the css renders the same as FF in IE8 but not in IE7 ! Alex Mcauley http

[Proto-Scripty] Re: IE 8 Bug

2009-08-04 Thread Alex McAuley
Again found a fix . if(document.documentMode >= 8) { .. } For anyone interested - detects IE8 !! Alex Mcauley http://www.thevacancymarket.com - Original Message - From: "Alex McAuley" To: Sent: Tuesday, August 04, 2009 2:33 PM Subject: [

[Proto-Scripty] Re: Browser scroller position after Ajax.Update

2009-08-05 Thread Alex McAuley
Can you explain it a bit better please... i cant really understand what you mean by that Thanks Alex Mcauley http://www.thevacancymarket.com - Original Message - From: "DJJQ" To: "Prototype & script.aculo.us" Sent: Wednesday, August 05, 2009 8:22 PM Subject:

[Proto-Scripty] Re: Browser scroller position after Ajax.Update

2009-08-05 Thread Alex McAuley
what does the link look like ? Click me Like that ? Alex Mcauley http://www.thevacancymarket.com - Original Message - From: "DJJQ" To: "Prototype & script.aculo.us" Sent: Wednesday, August 05, 2009 9:33 PM Subject: [Proto-Scripty] Re: Browser scroller po

[Proto-Scripty] Re: Browser scroller position after Ajax.Update

2009-08-05 Thread Alex McAuley
just goto the href of the link. HTH Alex Mcauley http://www.thevacancymarket.com - Original Message - From: "DJJQ" To: "Prototype & script.aculo.us" Sent: Wednesday, August 05, 2009 9:42 PM Subject: [Proto-Scripty] Re: Browser scroller position after Ajax.

[Proto-Scripty] Re: Beginners question, trouble with Event.stop in AJAX

2009-08-05 Thread Alex McAuley
Seems the element does not exist... Does it exist in the DOM ? Alex Mcauley http://www.thevacancymarket.com - Original Message - From: "Ash" To: "Prototype & script.aculo.us" Sent: Wednesday, August 05, 2009 10:04 PM Subject: [Proto-Scripty] Re: Beginner

[Proto-Scripty] Re: Beginners question, trouble with Event.stop in AJAX

2009-08-05 Thread Alex McAuley
Ajax is Asyncronous so it gets executed along with other script ... ergo its not serial like php and other stuff your prolly used to... you can make a request synconous (script waits for the ajax request to finish before continuing but its not recommended Alex Mcauley http

[Proto-Scripty] Re: HTTP OPTION REQUEST with FireFox 3.5

2009-08-05 Thread Alex McAuley
Walter... The link in his post describes how to do XDR in FF3.5! Alex Mcauley http://www.thevacancymarket.com - Original Message - From: "Walter Lee Davis" To: Sent: Thursday, August 06, 2009 6:27 AM Subject: [Proto-Scripty] Re: HTTP OPTION REQUEST with FireFox 3.5 >

[Proto-Scripty] Re: dom:loaded & exceptions

2009-08-06 Thread Alex McAuley
In your first code $('toto') does not exist. Alex Mcauley http://www.thevacancymarket.com - Original Message - From: "Nicolas Terray" To: Sent: Thursday, August 06, 2009 12:47 PM Subject: [Proto-Scripty] dom:loaded & exceptions > > Hello, > >

[Proto-Scripty] Re: Detecting failure

2009-08-07 Thread Alex McAuley
Just change the script to adjust a little http://pastie.org/575168 HTH Alex Mcauley http://www.thevacancymarket.com - Original Message - From: "Krish" To: "Prototype & script.aculo.us" Sent: Friday, August 07, 2009 5:18 AM Subject: [Proto-Scripty] Dete

[Proto-Scripty] Re: RJS working in FF not in Safari

2009-08-07 Thread Alex McAuley
Dude i am not sure why you use prototype and then revert to native document.getElementById().. and other vanilla JS Try putting a in your table is required HTML in tables ... some browsers add it if its missing and some dont - Safari might be one that doesnt. Alex

[Proto-Scripty] Re: Sortable.create and onHover

2009-08-07 Thread Alex McAuley
is it not "onmouseover" ? Never knew there was an "onHover" Alex Mcauley http://www.thevacancymarket.com - Original Message - From: "Sebastien" To: "Prototype & script.aculo.us" Sent: Friday, August 07, 2009 11:24 AM Subject: [Proto-Scrip

[Proto-Scripty] Re: Example values input text

2009-08-07 Thread Alex McAuley
lue==element.defaultValue) { element.value=''; } }); $$('.access').invoke('observe','blur',function(element) { if(element.value!=element.defaultValue || element.value=='') { element.value=element.defaultValue; } }); }); (untested but shoul

[Proto-Scripty] Re: Getting keys from a JSON object returned from transport.responseText.evalJSON(); or for that matter any JSON object

2009-08-10 Thread Alex McAuley
You can prolly sort the order if you wanted it in some kind of order but its not needed in my opinion! Alex Mcauley http://www.thevacancymarket.com - Original Message - From: "T.J. Crowder" To: "Prototype & script.aculo.us" Sent: Monday, August 10, 2009

[Proto-Scripty] Re: Getting keys from a JSON object returned from transport.responseText.evalJSON(); or for that matter any JSON object

2009-08-10 Thread Alex McAuley
Matt foster wrote. var keys = $H(obj).keys(); http://prototypejs.org/api/hash/keys -- http://positionabsolute.net Alex Mcauley http://www.thevacancymarket.com - Original Message - From: ra kr To: Prototype & script.aculo.us Sent: Monday, August 10, 2009 5:0

[Proto-Scripty] Re: Making a Draggable-"pool"

2009-08-10 Thread Alex McAuley
Look @ the ghost option Alex Mcauley http://www.thevacancymarket.com - Original Message - From: "Drr" To: "Prototype & script.aculo.us" Sent: Monday, August 10, 2009 7:06 PM Subject: [Proto-Scripty] Making a Draggable-"pool" > > Hi, is it

[Proto-Scripty] Re: Responders

2009-08-12 Thread Alex McAuley
Thanks TJ, I'll look into it and see if i can hack something together Alex Mcauley http://www.thevacancymarket.com - Original Message - From: "T.J. Crowder" To: "Prototype & script.aculo.us" Sent: Wednesday, August 12, 2009 9:54 AM Subject: [Proto-Scripty]

[Proto-Scripty] Re: loading problem with IE and prototype (Fr, En)

2009-08-12 Thread Alex McAuley
Wrap the function in Event.observe(window,'load' The DOM is not loaded and cannot fire the bits to the relavtive element Somehing like Event.observe(window,'load',function() { var periode = new PeriodicalExecuter(f1,2); }); should do the trick HT

[Proto-Scripty] Re: Using Ajax.Updater posts the contain form

2009-08-13 Thread Alex McAuley
Can you explain it a bit better? I dont quite understand what is going on Alex Mcauley http://www.thevacancymarket.com - Original Message - From: "dpGoose" To: "Prototype & script.aculo.us" Sent: Thursday, August 13, 2009 9:18 AM Subject: [Proto-Scripty] Usin

[Proto-Scripty] Re: Observing a checkbox

2009-08-13 Thread Alex McAuley
Thanks Douglas My way works fine... That is not the issue... the issue is with change or click Thanks Alex Mcauley http://www.thevacancymarket.com - Original Message - From: "Douglas" To: Sent: Thursday, August 13, 2009 3:35 PM Subject: [Proto-Scripty] Re: Observing

[Proto-Scripty] Re: Observing a checkbox

2009-08-14 Thread Alex McAuley
Thanks TJ... I figured it was worth just using click in the end just to be on the safe side! Alex Mcauley http://www.thevacancymarket.com - Original Message - From: "T.J. Crowder" To: "Prototype & script.aculo.us" Sent: Friday, August 14, 2009 10:55 AM Sub

[Proto-Scripty] Re: How to disable draggables in script.aculo.us

2009-08-14 Thread Alex McAuley
Nizmo... It seems bizzare to me that you are using Draggables (which relies on prototypejs) yet you are still using vanilla JS methods to select dom nodes/elements. speed your code up with. $$('.box').each(function(element) { new Draggable(element, {ghosting:true}) }); //

[Proto-Scripty] Re: Dropping

2009-08-14 Thread Alex McAuley
I am sure that Droppables do that already dont they ? Alex Mcauley http://www.thevacancymarket.com - Original Message - From: "Floyd Resler" To: "Prototype & script.aculo.us" Sent: Thursday, August 13, 2009 9:55 PM Subject: [Proto-Scripty] Dropping >

[Proto-Scripty] Re: How to disable draggables in script.aculo.us

2009-08-14 Thread Alex McAuley
Speed up was the wrong term - which i realised when i pressed "Send" Alex Mcauley http://www.thevacancymarket.com - Original Message - From: "T.J. Crowder" To: "Prototype & script.aculo.us" Sent: Friday, August 14, 2009 12:17 PM Subject: [Proto-Scri

[Proto-Scripty] Re: Sortable onUpdate firing at the wrong time

2009-08-16 Thread Alex McAuley
If you want to do somehting like alert('blah'); you must wrap it in an anonymous function like this... onUpdate : function(event) { alert('Blah'); } Alex Mcauley http://www.thevacancymarket.com - Original Message - From: "JoJo" To: "Prototy

[Proto-Scripty] Re: "contact me" form by using prototype & scriptaculous ?

2009-08-17 Thread Alex McAuley
You can do it with both. Prototype will not send the email only the form element values to the script so you still need to use php or whatever on the backend. HTH Alex Mcauley http://www.thevacancymarket.com - Original Message - From: "zion" To: "Prototype & scr

[Proto-Scripty] Protocheck

2009-08-17 Thread Alex Mcauley
Afternoon peoples. Does anyone know if Protocheck is still maintained. I have it working on FF & IEx but it seems not to work properly on Chrome or Safari 4. The Crossed image (for an unchecked box) does not display properly. Thanks in advance Alex --~--~-~--~~~---~

[Proto-Scripty] Re: Which parameters to stopObserving are optional?

2009-08-18 Thread Alex McAuley
$('foo').stopObserving(); will stop observing all observers on id="foo" $('foo').stopObserving('click'); will stop click observers on id="foo" $('foo').stopObserving('change'); will stop change observers

[Proto-Scripty] Re: Prototype & grid/table maths

2009-08-19 Thread Alex McAuley
which parts of it are not working Alex Mcauley http://www.thevacancymarket.com - Original Message - From: "vk2tdt" To: "Prototype & script.aculo.us" Sent: Wednesday, August 19, 2009 6:46 AM Subject: [Proto-Scripty] Prototype & grid/table maths > > I

[Proto-Scripty] Re: onclick functionality in ajax

2009-08-20 Thread Alex McAuley
You need to re-observe the listeners Perhaps a pastie of your code would help us help you.. Alex Mcauley http://www.thevacancymarket.com - Original Message - From: "hass" To: "Prototype & script.aculo.us" Sent: Thursday, August 20, 2009 12:19 AM Subject:

[Proto-Scripty] Re: to NEW or not to NEW, that is the question

2009-08-20 Thread Alex McAuley
new defines an new instance of an Object / class. Some things dont need "new" and some do. It has nothing to dow tih Cross browser afaik Alex Mcauley http://www.thevacancymarket.com - Original Message - From: "Mojito" To: "Prototype & script.aculo.u

[Proto-Scripty] Ajax requests again

2009-08-20 Thread Alex Mcauley
earlier on in the month i posted on how to do some things with Ajax requests genericaly like adding a loading message to all requests and i got a couple of responses but not many. I've been giving it alot of thought and i cam up with addMethods as a way to add some things to the Ajax Class... Co

[Proto-Scripty] Re: POSTing a form via AJAX

2009-08-20 Thread Alex McAuley
Bill You need to observe the form submit. $('the-id-of-the-form').observe('submit',function(event) { /// do the ajax that TJ said... Event.stop(event); // will stop it doing its default action! }); Alex Mcauley http://www.thevacancymarket.com - Original M

[Proto-Scripty] Re: POSTing a form via AJAX

2009-08-20 Thread Alex McAuley
I replied to you with an example. I wrote Bill You need to observe the form submit. $('the-id-of-the-form').observe('submit',function(event) { /// do the ajax that TJ said... Event.stop(event); // will stop it doing its default action! });

[Proto-Scripty] Re: Div Fades

2009-08-20 Thread Alex McAuley
Jason. How are you calling these functions ? Are you using an tag by any chance Alex Mcauley http://www.thevacancymarket.com - Original Message - From: "Jason Frisvold" To: Sent: Thursday, August 20, 2009 9:17 PM Subject: [Proto-Scripty] Div Fades > > Hi ther

[Proto-Scripty] Re: Div Fades

2009-08-21 Thread Alex McAuley
,"); // check the syntax on this one!! showPopup(this, varz[0], varz[1]); Event.stop(event); // stops the continuing of following the href of the tag }); Its psuedo code but it will put you on the right track Alex Mcauley http://www.thevacancymarket.com - Original Message - F

[Proto-Scripty] Ajax.Responders

2009-08-22 Thread Alex Mcauley
In my quest to create a function that globaly tells a page when a request is going on with the ability to disable certain form elements i have been delving into Ajax.Responders. I stumbled upon this page http://www.mail-archive.com/rubyonrails-spino...@googlegroups.com/msg06312.html It basicall

[Proto-Scripty] Re: POSTing a form via AJAX

2009-08-22 Thread Alex McAuley
Your URL of the AJax.Updater needs wrapping in '' too -> currently its not enclosed in ' Alex Mcauley http://www.thevacancymarket.com - Original Message - From: bill To: prototype-scriptaculous@googlegroups.com Sent: Saturday, August 22, 2009 6:42 PM Subje

[Proto-Scripty] Re: Draggable Callbacks

2009-08-24 Thread Alex McAuley
example: onEnd : function() { alert('i ended'); } Alex Mcauley http://www.thevacancymarket.com - Original Message - From: "Rob" To: "Prototype & script.aculo.us" Sent: Sunday, August 23, 2009 7:29 AM Subject: [Proto-Scripty] Draggable Callbacks

[Proto-Scripty] Re: Draggable Callbacks

2009-08-24 Thread Alex McAuley
objects - you can find out those on the prototype api page Even if something passes back only the event you can always backtrack to the element with Event.element(event); Hope this helps Alex Mcauley http://www.thevacancymarket.com - Original Message - From: "Rob" To:

[Proto-Scripty] Re: to InnerHTML or not to innerHTML?

2009-08-24 Thread Alex McAuley
Molo: getValue will get the value of an element not its innerHTML. http://www.prototypejs.org/api/element/update i would use update(); $('someNode').update('My lovely html'); Alex Mcauley http://www.thevacancymarket.com - Original Message - From: &q

[Proto-Scripty] Re: to InnerHTML or not to innerHTML?

2009-08-24 Thread Alex McAuley
Sorry been a long day - i didnt read the message properly! Alex Mcauley http://www.thevacancymarket.com - Original Message - From: "Andy Daykin" To: Sent: Monday, August 24, 2009 4:46 PM Subject: [Proto-Scripty] Re: to InnerHTML or not to innerHTML? > > I think he

[Proto-Scripty] Re: effect.Toggle 'Blind' to the right or left??

2009-08-25 Thread Alex McAuley
Effect.BlindUp() Effect.BlindDown() You will probably need to adjust your code if you want it to go up / down On the github page there is some code for left/right too Alex Mcauley http://www.thevacancymarket.com - Original Message - From: "Metajake" To: "Prototype &a

[Proto-Scripty] Re: After Ajax call page div not always updated.

2009-08-25 Thread Alex McAuley
Could you post an example of your code to a pastie and send us the link - perhaps we can work out whats going on for you Alex Mcauley http://www.thevacancymarket.com - Original Message - From: "vunky" To: "Prototype & script.aculo.us" Sent: Tuesday, August

[Proto-Scripty] Re: ? of format of evalScripts

2009-08-25 Thread Alex McAuley
var request=new Ajax.Updater('element','/url',{ method: 'post', evalScripts: true, parameters : { id: id, page: page } }); request=null; - works fine... Its probably a syntax error in your retu

[Proto-Scripty] Re: yes, but Mootoolls do that -ImageMenu-

2009-08-25 Thread Alex McAuley
Its just an accordian that uses mouseover/out Alex Mcauley http://www.thevacancymarket.com - Original Message - From: DJ Mangus To: prototype-scriptaculous@googlegroups.com Sent: Tuesday, August 25, 2009 5:58 PM Subject: [Proto-Scripty] Re: yes, but Mootoolls do that

  1   2   3   4   5   6   7   >