[Proto-Scripty] Re: scriptaculous draggable bug in ie7?

2008-12-15 Thread Alex Mcauley
2&cat=&lang=&cr=&sloc=&p=1 On Dec 15, 1:58 am, "Alex Mcauley" wrote: > perhaps it is trying to fire the default clicking for the href try to > substitue the href for a span or somehting and see if it stops it ... if > it > does then you need to add

[Proto-Scripty] Re: scriptaculous draggable bug in ie7?

2008-12-15 Thread Alex Mcauley
perhaps it is trying to fire the default clicking for the href try to substitue the href for a span or somehting and see if it stops it ... if it does then you need to add an event.stop to stop the default behaviour of the href element Regards Alex - Original Message - From: "

[Proto-Scripty] Re: Prototype Cross Site Ajax Request

2008-12-17 Thread Alex Mcauley
Thanks for the reply Swilk ... I did not see it appear in the email that gets sent tot the group !!! The toruble with a serverside proxy is that it doesnt carry images or anything thats not directly linked via http://www.example.com/js/file.js accross to the proxy I.e if the file is not

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

2008-12-18 Thread Alex Mcauley
nking of a prototype solution and not > necessarily the jQuery solution. > > But, in on the flip side i have the following: > > http://proto-scripty.wikidot.com/extras > > but i do agree, a tiny bit of research would have been more prudent. > > On Wed, Nov 26, 2008 at 9:43 A

[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 few

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

2009-01-05 Thread Alex Mcauley
Doesnt even need to be a function .. Event.observe(window, 'mouseup', function(event) { alert('foo '+ event); }); - Original Message - From: "T.J. Crowder" To: "Prototype & script.aculo.us" Sent: Saturday, January 03, 2009 5:50 PM Subject: [Proto-Scripty] Re: Event.observe

[Proto-Scripty] Re: new Ajax.request not working

2009-01-06 Thread Alex Mcauley
try unpacking the javascript below the function or adding the packed js above the function .. perhaps the interpreter is still unpacking or has not unpacked the js before the function is called ? - Original Message - From: "debbie" To: "Prototype & script.aculo.us" Sent: Sunday, Jan

[Proto-Scripty] Re: Opera and $$('.wrapper .class') seems not to work correctly

2009-01-13 Thread Alex Mcauley
if its any help the same thing happens in google chrome !! - Original Message - From: "Cyrus" To: "Prototype & script.aculo.us" Sent: Monday, January 12, 2009 5:27 PM Subject: [Proto-Scripty] Re: Opera and $$('.wrapper .class') seems not to work correctly Prototype 1.6.0.3 Opera 9.6

[Proto-Scripty] Re: Stoping observing

2009-01-15 Thread Alex Mcauley
The div isnt allways created by click .. its called by my method/function if and when i need it .. this is the trouble i am having ... At the moment ive got the method to check for a click (in my tests) and it finds the div (as you have put below - this was my first approach at it yesterday !!)

[Proto-Scripty] Re: asynchronous file upload

2009-01-15 Thread Alex Mcauley
asynchronous file upload via Ajax is impossible at the moment .. there is 2 ways to do it ... 1 is an iframe (takes minutes to set up) the other is flash - Original Message - From: "joe t." To: "Prototype & script.aculo.us" Sent: Thursday, January 15, 2009 2:26 PM Subject: [Proto-Scri

[Proto-Scripty] Re: Stoping observing

2009-01-15 Thread Alex Mcauley
I scrapped the idea and made it dissapear after a certain time .. was to much a headache !! - Original Message - From: "bflanagan" To: "Prototype & script.aculo.us" Sent: Thursday, January 15, 2009 2:38 PM Subject: [Proto-Scripty] Re: Stoping observing > > There's probably a correct

[Proto-Scripty] Re: Stoping observing

2009-01-15 Thread Alex Mcauley
Thanks TJ i didnt think about it like that, the second way would work ... its oky now as i just mke it fade away after 10 seonds or something Thanks again Alex - Original Message - From: "T.J. Crowder" To: "Prototype & script.aculo.us" Sent: Thursday, January 15, 2009 4:26 PM Subject

[Proto-Scripty] Re: Best way to apply an effect on page load?

2009-01-15 Thread Alex Mcauley
if you want to work out whats currently selected you can add a click event to the tab headings and store the value in a hidden field somewhere .. then you can allways access it whenever you need to Regards ALex - Original Message - From: "Matt" To: "Prototype & script.aculo.us" Se

[Proto-Scripty] Re: help with autocompleter

2009-01-21 Thread Alex Mcauley
for a start i wouldnt use var as a var in this line var = transport.responseText; ... try var foo=transport.responseText; instead - Original Message - From: "eulerss" To: "Prototype & script.aculo.us" Sent: Wednesday, January 21, 2009 6:31 PM Subject: [Proto-Scripty] help with a

[Proto-Scripty] Re: Prototype.js / jQuery conflict

2009-02-09 Thread Alex Mcauley
You can assign for instance $jq=jQuery.noConflict(); after you have loaded the jQuery library it works well with most of the plugins i have used as i mix and match my proto && Jquery in functions, i htink only in one jquery plugin did i have to go and change $() to $jq() to make it work,

[Proto-Scripty] Re: Recommendable Prototype based widgets

2009-02-09 Thread Alex Mcauley
scripteka.com - Original Message - From: "Joshua Partogi" To: "Prototype & script.aculo.us" Sent: Saturday, February 07, 2009 11:40 AM Subject: [Proto-Scripty] Recommendable Prototype based widgets > > Dear all, > > Can anyone recommend me a good widgets that is based on prototype? >

[Proto-Scripty] Re: Problems with AJAX/User agent

2009-02-09 Thread Alex Mcauley
be sure to call session_start(); in php @ the top of your page and your php script when doing this i had problems with sessions a few years ago when i moved to ajax controlled logins ... If you need to test whats happening behind the scenes ... just tell the ajax request to eval scripts a

[Proto-Scripty] Re: Simple slideup/slidedown effect won't work

2009-02-09 Thread Alex Mcauley
its also possibly to do with the minimum height needed to slide stuff in and out ive noticed before that elements under about 50px in different browsers dont do whats required this is more than likely somehting to do with the default height used by the browser html renderer (think of

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

2009-02-10 Thread Alex Mcauley
event.preventDefault(); or return false; - Original Message - From: "cyrusdev08" To: "Prototype & script.aculo.us" Sent: Tuesday, February 10, 2009 7:00 AM Subject: [Proto-Scripty] Event.stop(event) FF Issue > > Hello Every One > > I have one issue for Firefox > > I want to stop t

[Proto-Scripty] Re: Taboo Subject

2009-02-10 Thread Alex Mcauley
Thanks for the input ... i have coded many sites that work with and without and enhanced by JS ... the question i am asking is not how to achieve it but should we as developers be forcing the issue of making more interactive sites ... I am all for serverside code as thats where i began but its

[Proto-Scripty] Re: Possible prototype bug ?

2009-02-10 Thread Alex Mcauley
oops sorry my bad ... i posted the wrong function ... Here is the correct one $$('.cancel').each( function(element) { alert($(element).next()); // returns undefined ? alert($(element).next(0)); // returns undefined ? alert($(element).next(1)); // returns undefined ? alert($(element)

[Proto-Scripty] Re: Possible prototype bug ?

2009-02-10 Thread Alex Mcauley
i am not observing .. simply calling the alerts on each of $$('.classname').. Does that still take event as the first argument Thanks Alex - Original Message - From: "Walter Lee Davis" To: Sent: Tuesday, February 10, 2009 4:39 PM Subject: [Proto-Scripty] Re: Possible prototype bug ?

[Proto-Scripty] Re: Possible prototype bug ?

2009-02-11 Thread Alex Mcauley
Thanks SWilk ... i saved myself the hassle and changed the classname it was looking for instead !! - Original Message - From: "SWilk" To: Sent: Tuesday, February 10, 2009 5:24 PM Subject: [Proto-Scripty] Re: Possible prototype bug ? > > Hey, > > I think you are missing the point of E

[Proto-Scripty] Re: Taboo Subject

2009-02-11 Thread Alex Mcauley
r even 20% of actual users dont have JS enabled, but are only generating 5% of the traffic. I would say that if your app is "mostly" functional without JS, but you want to encourage it, to throw up a warning notice that the user's experience would be greatly improved if they did ha

[Proto-Scripty] Re: AJAX

2009-02-11 Thread Alex Mcauley
use firefox and firebug and see whats getting posted in the console log .. it should hell you to understand if Javascript is sending the data or not - Original Message - From: "Paul" To: "Prototype & script.aculo.us" Sent: Wednesday, February 11, 2009 12:53 AM Subject: [Proto-Scripty]

[Proto-Scripty] Re: Taboo Subject

2009-02-12 Thread Alex Mcauley
with, can be very dangerous from a security perspective. I > gues you probably know that already, it's just that what you said sent > some alarm bells ringing in my head! > > Good luck with your app, and maybe post back when you've made a > decision with your thinking as

[Proto-Scripty] Re: Centering

2009-02-13 Thread Alex Mcauley
because the body is not a dynamically added element !!! I want to add an element to the document dynamically and have it appear in the center of the screen no matter where the scroller is Thanks for the reply I sorted it Alex - Original Message - From: "asterix" To: "Prototype & sc

[Proto-Scripty] Re: Using the same onclick with SlideUp and SlideDown

2009-02-17 Thread Alex Mcauley
Craig.. Why not try removing the onclick and adding it to an observer Event.observe(window,'load', function() { $('foo').observe('click',function() { /* please change foloowing for a tenary oprator if needs be !! */ if($(this).style.display!='none') { Effect.S

[Proto-Scripty] Re: Selectively prevent onClick action ?

2009-02-20 Thread Alex Mcauley
look at Event.stop(event) ... that will stop it bubbling up the DOM but you need the event passed to the function HTH ALex - Original Message - From: "Jason Frisvold" To: Sent: Friday, February 20, 2009 1:58 PM Subject: [Proto-Scripty] Re: Selectively prevent onClick action ? > >

[Proto-Scripty] Re: Conflict event noAvailable

2009-02-24 Thread Alex Mcauley
use jQuery.noConflict(); and it wont conflict HTH Alex - Original Message - From: "David" To: "Prototype & script.aculo.us" Sent: Tuesday, February 24, 2009 1:01 PM Subject: [Proto-Scripty] Re: Conflict event noAvailable Finally i have commented all this function. Best regards Da

[Proto-Scripty] Re: $() work around for prototype

2009-02-26 Thread Alex Mcauley
when jQuery is loaded do $jq=jQuery.noConflict(); then $jq becomes jquery or just use jQuery() instead of $() - Original Message - From: "T.J. Crowder" To: "Prototype & script.aculo.us" Sent: Thursday, February 26, 2009 9:50 AM Subject: [Proto-Scripty] Re: $() work around for prototy

[Proto-Scripty] Re: Adding Scroll bars to list

2009-02-26 Thread Alex Mcauley
Firstly in your CSS you have float:centre There is no float:center as far as i know .. if there were it would be "center" <--- american spelling i also cannot see any Javascript in there to help you with - Original Message - From: "vanq69" To: "Prototype & script.aculo.us" Sent:

[Proto-Scripty] Re: $() work around for prototype

2009-02-26 Thread Alex Mcauley
bal safe. > > Oh well, I guess we're still in the Wild West era of JS coding... > > If I get feedback from them that is useful, I'll post it back to this > list for posterity. > > Thanks, > Boysenberry Payne > > > On Feb 26, 2009, at 3:56 AM, Alex Mcauley wr

[Proto-Scripty] Re: $() work around for prototype

2009-02-26 Thread Alex Mcauley
so that > might be my eventual solution. > Right now, I have emailed some folks at Digg to see if they have a > solution that doesn't require me to load prototype out of the natural > order it comes in using our current build. > > --Boysenberry > > > > On Feb 26, 200

[Proto-Scripty] Re: Adding Scroll bars to list

2009-02-26 Thread Alex Mcauley
p, thanks for the help so far :) On Feb 26, 1:18 pm, "Alex Mcauley" wrote: > Firstly in your CSS you have float:centre > > There is no float:center as far as i know .. if there were it would be > "center" <--- american spelling > > i also cannot see any Javasc

[Proto-Scripty] Re: Ajax.Updater home-brew autocompletion timing issue

2009-03-01 Thread Alex Mcauley
there is a completely easier way to do what you want and save memory on the client side and serverside ... If you can wait till monday i will post the code for you to do it Regards Alex - Original Message - From: "Jonny Nott" To: "Prototype & script.aculo.us" Sent: Saturday, Februa

[Proto-Scripty] Re: Ajax.Updater home-brew autocompletion timing issue

2009-03-02 Thread Alex Mcauley
Jonny .. i wrote this a few months back and forgot about it ... Its the basics you will need to achieve what you want to do Any questions please ask http://proto-scripty.wikidot.com/prototype:how-to-throttle-ajax-requests Regards Alex - Original Message - From: "Alex Mc

[Proto-Scripty] Re: User triggered download with no page refresh.

2009-03-02 Thread Alex Mcauley
yes you can call from the iframe a function in the parent easily Or, you can read the iframe contents by traversing its DOM and looking for elements (inputs or things) just as easily as traversing the parent container HTH Alex - Original Message - From: "zero" To: "Prototype &

[Proto-Scripty] Re: User triggered download with no page refresh.

2009-03-02 Thread Alex Mcauley
The way i do it in my custom CRM (for editing and downloading invoices (Mainly PDF's)) is to submit a form to a hidden Iframe which automatically calls the browser to open or download the document ... This is streamed in a similar way to your streaming that you mentioned earlier .. what i wo

[Proto-Scripty] Re: IE7 Timers & Memory Leaks?

2009-03-02 Thread Alex Mcauley
myTimeout=setTimeout(function(var,var2,var3,var4) { global x,y,z; alert('foo = bar'); },5000); whats wrong with that ? I dont think this leaks memory so why should any timeout leak memory Alex - Original Message - From: "BearState" To: "Prototype & script.aculo.us" Sent: Tuesday, M

[Proto-Scripty] Re: Ajax.Request and php global variable

2009-03-03 Thread Alex Mcauley
global how .. that doesnt really explain much If you mean globaly accessible to javascript then you need to do something like foo=$bar"); ?> alert(foo); ... otherwise please be more specific Thanks Alex - Original Message - From: "marioosh" To: "Prototype & script.aculo.u

[Proto-Scripty] Re: Ajax.Request and php global variable

2009-03-03 Thread Alex Mcauley
;',anotherParam: 'blah',yetAnotherParam: 'Boing'}, onComplete: function(transport) { var data=transport.responseText;alert(data); } }); }); HTH Alex - Original Message - From: "Alex Mcauley" To: Sent: Tuesday, March

[Proto-Scripty] Re: Ajax.Request and php global variable

2009-03-03 Thread Alex Mcauley
st and php global variable > > Alex Mcauley wrote: >> global how .. that doesnt really explain much >> >> >> If you mean globaly accessible to javascript then you need to do >> something >> like >> >> > $bar='bar'; >> echo("

[Proto-Scripty] Re: Ajax.Request and php global variable

2009-03-03 Thread Alex Mcauley
I am not sure that you can pass objects from php to javascript and back again ... You can pass javascript objects from php to javascript with serialization but i dont think php objects will pass correctly ... Perhaps there is a better way to do what you want, could you explain what you are tr

[Proto-Scripty] Re: Ajax.Request and php global variable

2009-03-03 Thread Alex Mcauley
I dont think sessions will cut it if he is trying to move around php objects async, process them and or add to them and return the same object ... - is all depends on what he is trying to do but for instance to set a session variable in PHP then retrieve that session variable later on in a

[Proto-Scripty] Re: Ajax.Request and php global variable

2009-03-03 Thread Alex Mcauley
ginal Message - From: "Szymon Wilkołazki" To: Sent: Tuesday, March 03, 2009 1:41 PM Subject: [Proto-Scripty] Re: Ajax.Request and php global variable > > Alex Mcauley pisze: >> Quoting does not allways matter when setting javascript vars ... >> >> Plus n

[Proto-Scripty] Re: Using Ajax.Responders onCreate to modify HTTP POST params

2009-03-03 Thread Alex Mcauley
you could addMethods the whole ajax class and add your own parameters .. see here : http://www.prototypejs.org/api/class/addMethods and add them at that point... This would be one solution Regards Alex - Original Message - From: "Cameron McCloud" To: "Prototype & script.aculo.us"

[Proto-Scripty] Re: passthrough of

2009-03-04 Thread Alex Mcauley
you might want to try something like this ... var element='someElementId'; var req=new Ajax.Request('/'+url, { evalScripts: false, // <-- notice "false" is not wrapped in quotes !! method: 'post', onSuccess : function(transport) { $(element).update(tra

[Proto-Scripty] Re: Creating Checked Radio buttons, not working in IE

2009-03-04 Thread Alex Mcauley
Yes walter is correct... As far as i know you cannot insert an element into another element if it does not exist in the DOM (as the element is still an object that resides in memory at the time) .. though i could be wrong - Original Message - From: "Walter Lee Davis" To: Sent: Wedn

[Proto-Scripty] Re: Processing Ajax.updater response before updating container

2009-03-06 Thread Alex Mcauley
is it php thats generating the reposnse .. If so you can just tell php to not output warnings .. example: ini_set('display_errors','0'); HTH Alex - Original Message - From: "Richard Quadling" To: Sent: Friday, March 06, 2009 3:34 PM Subject: [Proto-Scripty] Re: Processing Ajax.upda

[Proto-Scripty] Re: Simulating "focus"

2009-03-06 Thread Alex Mcauley
Yes thats because its the parent ... If you want to not bubble up the dom you need to look at Event.stop(event); HTH Alex - Original Message - From: "Lee Jenkins" To: Sent: Friday, March 06, 2009 4:06 PM Subject: [Proto-Scripty] Re: Simulating "focus" > > Lee Jenkins wrote: >> >>

[Proto-Scripty] Re: Ajax.Updater home-brew autocompletion timing issue

2009-03-11 Thread Alex Mcauley
Can you report the question again as it seems to be missing Thanks Alex - Original Message - From: "Jonny Nott" To: "Prototype & script.aculo.us" Sent: Wednesday, March 11, 2009 7:57 PM Subject: [Proto-Scripty] Re: Ajax.Updater home-brew autocompletion timing issue > > Thanks for th

[Proto-Scripty] Re: Stopping events ..

2009-03-18 Thread Alex Mcauley
Doh !! i knew it was something simple !! Thanks Alex - Original Message - From: "Walter Lee Davis" To: Sent: Wednesday, March 18, 2009 3:11 PM Subject: [Proto-Scripty] Re: Stopping events .. > > Has to be capital E event: > > Event.stop(event) > > Walter > > On Mar 18, 2009, at 1

[Proto-Scripty] Re: Stopping events ..

2009-03-18 Thread Alex Mcauley
alert(error) Event.stop(event); // does not work } - Original Message - From: "Alex Mcauley" To: Sent: Wednesday, March 18, 2009 3:42 PM Subject: [Proto-Scripty] Re: Stopping events .. > > Doh !! i knew it was something simple !! > > Thanks > Alex > -

[Proto-Scripty] Re: Stopping events ..

2009-03-18 Thread Alex Mcauley
would like to avoid inline JS if i can - if it cant be done then i will haveto use inline Alex - Original Message - From: "Alex Mcauley" To: Sent: Wednesday, March 18, 2009 3:45 PM Subject: [Proto-Scripty] Re: Stopping events .. > > It still does not work with &qu

[Proto-Scripty] Re: Stopping events ..

2009-03-18 Thread Alex Mcauley
alling Event.stop() at the very beginning of the script, before > anything else, then if there are no errors, call event.form.submit() > to carry on with the original submit event. > > Walter > > On Mar 18, 2009, at 11:45 AM, Alex Mcauley wrote: > > > > > It still does not w

[Proto-Scripty] Re: Shrinking JS

2009-03-20 Thread Alex Mcauley
Thanks but i wasnt looking to do it, i just had an idea !! Regards Alex - Original Message - From: "Richard Quadling" To: Sent: Friday, March 20, 2009 11:46 AM Subject: [Proto-Scripty] Re: Shrinking JS 2009/3/20 Richard Quadling : > 2009/3/20 Jeztah : >> >> After a little playing ov

[Proto-Scripty] Re: Shrinking JS

2009-03-20 Thread Alex Mcauley
PM Subject: [Proto-Scripty] Re: Shrinking JS > > 2009/3/20 Alex Mcauley : >> >> Thanks but i wasnt looking to do it, i just had an idea !! >> >> Regards >> Alex >> - Original Message - >> From: "Richard Quadling" >> To: >>

[Proto-Scripty] Re: Shrinking JS

2009-03-20 Thread Alex Mcauley
> > 2009/3/20 Alex Mcauley : >> >> ahh !! .. mine has mod_defalte and zlib compression all on the server >> anyway >> so i didnt need to !! ... >> >> I did notice that his method doesnt minify the files ... >> >> Each to their own >> >

[Proto-Scripty] Re: Is it a bug about getDimensions ?

2009-03-23 Thread Alex Mcauley
yes there is a bug somewhere ... i was doing something the other day that required it.. and my work around was var dims=$(document.body).getDimensions(); this seemed to work well with all browsers i tested on (ie7,8,FF3,FF2,Safari -Win,Opera9) HTH Alex - Original Message -

[Proto-Scripty] Re: Associative arrays vs hash

2009-04-02 Thread Alex Mcauley
why not push into the json object ? - Original Message - From: "Diodeus" To: "Prototype & script.aculo.us" Sent: Thursday, April 02, 2009 4:04 PM Subject: [Proto-Scripty] Re: Associative arrays vs hash The problem is in my case, I'm adding elements to the array as I go, as opposed t

[Proto-Scripty] Re: Last -1 In array

2009-04-29 Thread Alex McAuley
So'k as normal i just engaged my brain and thought of the solution as soon as i pressed "post" !!! Alex - Original Message - From: "Jeztah" To: "Prototype & script.aculo.us" Sent: Wednesday, April 29, 2009 3:58 PM Subject: [Proto-Scripty] Last -1 In array > > Hi > > I would like to

[Proto-Scripty] Re: Extracting methods from codebase

2009-04-30 Thread Alex McAuley
why cant you code your own insert function its not that hard ... You can probably do it in about 15 lines or so.. Alex - Original Message - From: "Bertrand" To: "Prototype & script.aculo.us" Sent: Thursday, April 30, 2009 4:47 PM Subject: [Proto-Scripty] Re: Extracting methods fro

[Proto-Scripty] Re: Extracting methods from codebase

2009-04-30 Thread Alex McAuley
ers are very talented and provide good code. Unfortunately, I'm kind of new to the whole javascript scene and I don't know how to handle all the cross-browser oddities, the corner cases, etc. So yeah sure I theoretically *could* code an update function. But now would it be that good? Don'

[Proto-Scripty] Re: using prototype tabs within a prototype horizontal accordion

2009-05-03 Thread Alex McAuley
Use firebug... it states the error as "Element Does not exist" ...so i would say reverse the load order for the 2 classes and it should be ok change your code to somehting like the following Event.observe(window, 'load', function() { var tabs = new tabset('container'); // name of div to crawl

[Proto-Scripty] Re: Catching right click

2009-05-05 Thread Alex McAuley
thanks TJ, i noticed kangax coded a really nice right click menu.. now normally i would use somehting like this but i need the menu to be filled with an ajax request response .. perhaps i will hack his to peices and see what i can do !!! Alex - Original Message - From: "T.J. Crow

[Proto-Scripty] Re: Catching right click

2009-05-05 Thread Alex McAuley
After hacking to pieces Kangax's right click menu i discovered it is not the right thing for me however i cannot see why the following code does not work seeing as i pass event to the anonymous function/.. $('foo').observe('click', function(event) { // alert(event); // alerted as a mou

[Proto-Scripty] Re: Catching right click

2009-05-05 Thread Alex McAuley
ent.stop(); alert('I Was right clicked'); } }); ----- Original Message - From: "Alex McAuley" To: Sent: Tuesday, May 05, 2009 2:03 PM Subject: [Proto-Scripty] Re: Catching right click > > After hacking to pieces Kangax's right click

[Proto-Scripty] Re: document.viewport.getDimensions() not working

2009-05-05 Thread Alex McAuley
It works fine for me on all browsers every time ... - Original Message - From: "Bertrand" To: "Prototype & script.aculo.us" Sent: Tuesday, May 05, 2009 7:13 PM Subject: [Proto-Scripty] Re: document.viewport.getDimensions() not working > > After some research online, it seems that A

[Proto-Scripty] Re: document.viewport.getDimensions() not working

2009-05-05 Thread Alex McAuley
your welcome.. please dont top the messages on the group as it makes it harder to know what response you are replying to - Original Message - From: "Bertrand" To: "Prototype & script.aculo.us" Sent: Tuesday, May 05, 2009 8:32 PM Subject: [Proto-Scripty] Re: document.viewport.getDimens

[Proto-Scripty] Re: help with ajax.

2009-05-05 Thread Alex McAuley
you cannot use ajax to send or recieve data from a URL it has to be a script on the SAME domain as the script is on If you want to use a remote domain then you will have to wrap it in a proxy with a server side language or perhaps the web service offers a script on thier domain .. by setti

[Proto-Scripty] Re: Ajax.Autocompleter error in IE 6

2009-05-06 Thread Alex McAuley
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]

[Proto-Scripty] Re: draggable onEnd calling function

2009-05-06 Thread Alex McAuley
try this new Draggable(newElement,{ handle: 'thehandleID', starteffect: function() { // some function }, endeffect : function () { // some function

[Proto-Scripty] Re: Keypress event

2009-05-07 Thread Alex McAuley
Yes i tried that and it did 'click' works and keypress works in everything except Firefox perhaps firefox just doesnt observe keypress on documents or elements and listens on input elements I will continue to investigate Ta Alex - Original Message - From: "Walter Lee Davis"

[Proto-Scripty] Re: Keypress event

2009-05-08 Thread Alex McAuley
- Original Message - From: "Alex McAuley" To: Sent: Thursday, May 07, 2009 7:26 PM Subject: [Proto-Scripty] Re: Keypress event > > Yes i tried that and it did 'click' works and keypress works in > everything except Firefox perhaps firefox just do

[Proto-Scripty] Re: Keypress event

2009-05-09 Thread Alex McAuley
you seem to have not read my post . Firefox wont listen on DIv/span/li elements... i know it works on textarea / input values. Alex - Original Message - From: Vladimir Tkach To: prototype-scriptaculous@googlegroups.com Sent: Saturday, May 09, 2009 10:10 AM Subject: [Proto

[Proto-Scripty] Re: Keypress event

2009-05-09 Thread Alex McAuley
2009/5/9 Alex McAuley you seem to have not read my post . Firefox wont listen on DIv/span/li elements... i know it works on textarea / input values. div/span/li can have focus? Is a bug from IE o FF? some other browser what do

[Proto-Scripty] Re: Ajax.Updater add instead of update?

2009-05-09 Thread Alex McAuley
use an oncomplete option in the ajax request ... onComplete : function(transport) { $('status').insert(transport.responseText); } - Original Message - From: Miguel Beltran R. To: prototype-scriptaculous@googlegroups.com Sent: Saturday, May 09, 2009 6:23 PM Subje

[Proto-Scripty] Re: Checking for similar (not exact) records using prototype

2009-05-10 Thread Alex McAuley
regex - Original Message - From: "Katherine" To: "Prototype & script.aculo.us" Sent: Sunday, May 10, 2009 8:16 PM Subject: [Proto-Scripty] Checking for similar (not exact) records using prototype > > Hi everyone. I wonder if there's less strict method for checking > whether a value e

[Proto-Scripty] Re: Getting the horizontal Sliding effect right...

2009-05-12 Thread Alex McAuley
the link is concatenated, please repost the link of the effect you are trying to achieve Thanks Alex - Original Message - From: "hlk" To: "Prototype & script.aculo.us" Sent: Tuesday, May 12, 2009 2:40 PM Subject: [Proto-Scripty] Re: Getting the horizontal Sliding effect right... an

[Proto-Scripty] Re: MySQL - order ID

2009-05-28 Thread Alex McAuley
this looks very over complicated If all you are trying to do is update a table on a droppable to remeber the order then its so simple you can do it in about 3 lines . I missed the original post .. if you re-post it i will write it for you Alex - Original Message - From: "Wal

[Proto-Scripty] Re: MySQL - order ID

2009-05-28 Thread Alex McAuley
ose bases. I > do know those three lines you refer to -- but they don't cover > everything that the OP wants to do. > > Walter > > On May 28, 2009, at 11:24 AM, Alex McAuley wrote: > >> If all you are trying to do

[Proto-Scripty] Re: MySQL - order ID

2009-05-28 Thread Alex McAuley
al Message - From: "Alex McAuley" To: Sent: Thursday, May 28, 2009 5:07 PM Subject: [Proto-Scripty] Re: MySQL - order ID > > In the mysql table create a unique index and use "INSERT IGNORE INTO" .. > the > rest can be achieved with array_unqiue() on the php end &

[Proto-Scripty] Re: MySQL - order ID

2009-05-29 Thread Alex McAuley
osition within > > the list where they were dropped. This is not possible as far as I've > > been able to do it. > > > Getting the unique ID either from Prototype or MySQL is trivial, and > > not really the actual problem here. > > > Walter > > >

[Proto-Scripty] Re: MySQL - order ID

2009-05-29 Thread Alex McAuley
ables. On a successful drop, I would generate a new > > > element, insert it into the sortable, re-initialize the sortable, and > > > then the user would need to drag the new element into position within > > > the list. > > > > What WLQ would like (what I

[Proto-Scripty] Re: MySQL - order ID

2009-05-29 Thread Alex McAuley
L - order ID > > I think Walter has given a very nice explanation on what I want. > > "What WLQ is trying to do is > have two lists of things, be able to drag an unlimited number of > copies from the first list into the second list, and have the > dropped > elements keep t

[Proto-Scripty] Re: xml namespacing and selecting with $$()

2009-06-01 Thread Alex McAuley
why are you useing double dollar ... have you tried with single ... $('pb:liveupdate') I dont know about namespacing but $$ returns an array as far as i know ... to get the first element of such an array you need to do $$('.classname')[0] Alex - Original Message - From: "chillid

[Proto-Scripty] Re: Revert sortable on return value true? Possible?

2009-06-01 Thread Alex McAuley
First a patch is needed http://dev.rubyonrails.org/ticket/7396 That tenery operator wont work in that situation you need to evaluate the return of the function onUpdate : function (el) { // do your code } revert : changeClass // function call And you change class must provide a boolean tru

[Proto-Scripty] Re: xml namespacing and selecting with $$()

2009-06-01 Thread Alex McAuley
stable) and 1.6.1 RC2 (the latest RC for the next release). If you have't tried 1.6.1, may be worth a go: http://prototypejs.org/download -- T.J. Crowder tj / crowder software / com Independent Software Engineer, consulting services available On Jun 1, 4:33 pm, "Alex McAuley" wrot

[Proto-Scripty] Re: Revert sortable on return value true? Possible?

2009-06-01 Thread Alex McAuley
function and I tried to pass "this" to revert:changeClass, but that didn't work. If I test for this.id in changeClass I get an undefined. Are the objects/variables Element, o, and n predefined? Thanks, Nathalie I will give it a try. On Jun 1, 10:44 am, "Alex Mc

[Proto-Scripty] Re: Problem with Ajax.Updater...

2009-06-02 Thread Alex McAuley
try URIencoding it .. Also if its post why are you sending it as key/value pairs . try the following to see if its whats messing it up var myAjax = new Ajax.Updater(target, url+'?'+pars, {method: 'post', parameters: foo: 'BAR'}); // notice i am sending your key value pairs in the URL stri

[Proto-Scripty] Re: Problem with Ajax.Updater...

2009-06-02 Thread Alex McAuley
You have a syntax error Internet explorer chokes on commas in JSON notation (i learnt the hard way on this) For example var foo= { method_1: funciton() { alert('Method 1 Baa'); }, // this is wrong as it needs no trailing comma } var foo= { method_1: funciton() { alert('M

[Proto-Scripty] Re: Problem with Ajax.Updater...

2009-06-02 Thread Alex McAuley
Did you read the las paragraph of my reply ?... Check if paramters expects an object or a variable, i think u will find it expects an Object parameters : { foo: 'BAR' } - Original Message - From: To: "Prototype & script.aculo.us" Sent: Tuesday, June 02, 2009 8:29 PM Subject: [Prot

[Proto-Scripty] Re: Revert sortable on return value true? Possible?

2009-06-02 Thread Alex McAuley
i'll investigate in the morning for you - Original Message - From: "terry-5-" To: "Prototype & script.aculo.us" Sent: Tuesday, June 02, 2009 5:48 PM Subject: [Proto-Scripty] Re: Revert sortable on return value true? Possible? > > Hi Alex, > > Thanks for being so patient. I deleted the

[Proto-Scripty] Re: Problem with Ajax.Updater...

2009-06-02 Thread Alex McAuley
make that 2 typos ! - Original Message - From: Rick Waldron To: prototype-scriptaculous@googlegroups.com Sent: Tuesday, June 02, 2009 10:01 PM Subject: [Proto-Scripty] Re: Problem with Ajax.Updater... I noticed you're missing a comma... var myAjax = new Ajax.Updater(tar

[Proto-Scripty] Re: Problem with Ajax.Updater...

2009-06-02 Thread Alex McAuley
I was not suggesting that at all - Original Message - From: To: "Prototype & script.aculo.us" Sent: Wednesday, June 03, 2009 1:06 AM Subject: [Proto-Scripty] Re: Problem with Ajax.Updater... > > @T.J. > I didn't say it's not valid, but Alex was suggesting to omit the comma > before on

[Proto-Scripty] Re: Problem with Ajax.Updater...

2009-06-02 Thread Alex McAuley
typo i assumed you would see that - Original Message - From: To: "Prototype & script.aculo.us" Sent: Tuesday, June 02, 2009 9:30 PM Subject: [Proto-Scripty] Re: Problem with Ajax.Updater... > > ok, I tried your suggestion but this doesn't work at all > > have you ever tried the syntax

[Proto-Scripty] Re: Revert sortable on return value true? Possible?

2009-06-03 Thread Alex McAuley
can you post the errors so i can see whats happening - Original Message - From: "terry-5-" To: "Prototype & script.aculo.us" Sent: Tuesday, June 02, 2009 9:20 PM Subject: [Proto-Scripty] Re: Revert sortable on return value true? Possible? > > Thanks Alex. > > > --~--~-~--~-

[Proto-Scripty] Re: Revert sortable on return value true? Possible?

2009-06-03 Thread Alex McAuley
sorry i cant read the = signs ... are they 3 equals ( = = =) or 2 (= =) - obviously without spaces !! - Original Message - From: "terry-5-" To: "Prototype & script.aculo.us" Sent: Wednesday, June 03, 2009 3:23 PM Subject: [Proto-Scripty] Re: Revert sortable on return value true? Poss

[Proto-Scripty] Re: Revert sortable on return value true? Possible?

2009-06-03 Thread Alex McAuley
I would have to say its an error in your function but i cant see where at the moment... i will deeper investigate when i've finished what i am doing Alex - Original Message - From: "terry-5-" To: "Prototype & script.aculo.us" Sent: Wednesday, June 03, 2009 3:23 PM Subject: [Proto-Scri

<    1   2   3   4   5   6   7   >