[Proto-Scripty] Re: My Interface works in IE but not in Firefox? Any Ideas?

2009-06-11 Thread Alex McAuley
You have an error in your Javascript somewhere i think it is here LINE 6 of cssverticalmenu.js var ultags=document.getElementById(menuids[i]).getElementsByTagName("ul") try changing it to var ultags=$(menuids[i]+' ul'); to debug put var ultags=$(menuids[i]+' ul'); alert(ultags.length); retu

[Proto-Scripty] Re: MouseOut & MouseOver

2009-06-11 Thread Alex McAuley
Sorry the question makes no sense Any chance you could be a bit more clear in what you want then we will be better able to assist you Regards Alex - Original Message - From: "Elie" To: "Prototype & script.aculo.us" Sent: Wednesday, June 10, 2009 11:46 PM Subject: [Proto-Script

[Proto-Scripty] Re: Getting checked checkbox values

2009-06-11 Thread Alex McAuley
Updated your code to include if the checkbox is checked!! http://pastie.org/508323 HTH Alex - Original Message - From: "jhicks" To: "Prototype & script.aculo.us" Sent: Wednesday, June 10, 2009 6:18 PM Subject: [Proto-Scripty] Getting checked checkbox values > > I've got a group o

[Proto-Scripty] Re: Bizzarre goings on

2009-06-10 Thread Alex McAuley
ion/json') { var data=d.responseText.evalJSON(); } else { .. This has saved me hours of work Regards Alex - Original Message - From: "Richard Quadling" To: Sent: Wednesday, June 10, 2009 11:02 AM Subject: [Proto-Scripty] Re: Bizzarre goings on > >

[Proto-Scripty] Re: Bizzarre goings on

2009-06-10 Thread Alex McAuley
somehting else Is this possible with prototypejs Regards Alex - Original Message - From: "Richard Quadling" To: Sent: Wednesday, June 10, 2009 10:31 AM Subject: [Proto-Scripty] Re: Bizzarre goings on > > 2009/6/10 Alex McAuley : >> >> As i said it was

[Proto-Scripty] Re: Bizzarre goings on

2009-06-10 Thread Alex McAuley
To: Sent: Wednesday, June 10, 2009 10:32 AM Subject: [Proto-Scripty] Re: Bizzarre goings on > > 2009/6/10 Richard Quadling : >> 2009/6/10 Alex McAuley : >>> >>> As i said it was working and nothing changed except one line an - > >>> if($('overlay&

[Proto-Scripty] Re: Bizzarre goings on

2009-06-10 Thread Alex McAuley
- Original Message - From: "Alex McAuley" To: Sent: Wednesday, June 10, 2009 10:26 AM Subject: [Proto-Scripty] Re: Bizzarre goings on > > As i said it was working and nothing changed except one line an - > > if($('overlay')) {...} > > whihc i have now removed

[Proto-Scripty] Re: Bizzarre goings on

2009-06-10 Thread Alex McAuley
numbers and charachters do not match what is going on!! - Original Message - From: "Richard Quadling" To: Sent: Wednesday, June 10, 2009 10:17 AM Subject: [Proto-Scripty] Re: Bizzarre goings on 2009/6/10 Alex McAuley : > > The JSON returned is ok - this was the first t

[Proto-Scripty] Re: Bizzarre goings on

2009-06-09 Thread Alex McAuley
The JSON returned is ok - this was the first thng i checked Here is the returned JSON.. {"Error":"No","ErrorMessage":"None","Refresh":"1"} As you can see from that and the code i pastebinned there is no trailing comma anywhere.. and it -was- working perfectly fine then just stopped !! Thi

[Proto-Scripty] Re: Copying Prototype into an iframe

2009-06-09 Thread Alex McAuley
why not call it with "top" or "parent" top.function.. works fine in vanilla JS so i dont see why it wont work in prototype - Original Message - From: "Jim Higson" To: "Prototype & script.aculo.us" Sent: Tuesday, June 09, 2009 9:49 AM Subject: [Proto-Scripty] Copying Prototy

[Proto-Scripty] Re: Why does document.viewport.getDimensions() not work without a DOCTYPE?

2009-06-08 Thread Alex McAuley
This has been discussed many times before .. if i recall correctly its somehting to do with Quirksmode HTH Alex - Original Message - From: "kimbaudi" To: "Prototype & script.aculo.us" Sent: Monday, June 08, 2009 5:58 PM Subject: [Proto-Scripty] Why does document.viewport.getDimension

[Proto-Scripty] Re: Returning scriptaculous drag/drop elements via ajax

2009-06-08 Thread Alex McAuley
I have done alot of work with dragging and dropping and have probably come across this problem before!!... Can you post your code to a pastebin so we can see whats happening and maybe can fix it for you Regards Alex - Original Message - From: "T.J. Crowder" To: "Prototype & script.a

[Proto-Scripty] Re: unecpected error after .update(..) and .focus()

2009-06-07 Thread Alex McAuley
1 is element which is inserting in divs children throught .update () method On 6 июн, 20:04, "Alex McAuley" wrote: > is that meant to be $('input1') or is input1 referenced somewhere ? > > > > - Original Message - > From: "buda" > To

[Proto-Scripty] Re: unecpected error after .update(..) and .focus()

2009-06-06 Thread Alex McAuley
is that meant to be $('input1') or is input1 referenced somewhere ? - Original Message - From: "buda" To: "Prototype & script.aculo.us" Sent: Saturday, June 06, 2009 3:33 PM Subject: [Proto-Scripty] unecpected error after .update(..) and .focus() > > I do > > var cont = '... innerHT

[Proto-Scripty] Re: Last table row

2009-06-05 Thread Alex McAuley
TY muchly Regards Alex - Original Message - From: "Szymon Wilkołazki" To: Sent: Friday, June 05, 2009 11:33 AM Subject: [Proto-Scripty] Re: Last table row > > Jeztah wrote: >> Morning... >> >> Very silly and easy question but my brain isn't working today >> >> How can i get the l

[Proto-Scripty] Re: Event.toggle

2009-06-05 Thread Alex McAuley
You dont need all those Event.observe(window one will do !!!... If you want to toggle something after some time just do something like var timerOuting=setTimeout(function() { $('foo').toggle; },5000); // 5 seconds will toggle foo after 5 seconds of window loading if you put it in a wrappe

[Proto-Scripty] Re: HTML breaks JSON

2009-06-05 Thread Alex McAuley
uced broken HTML output again. On Jun 4, 5:24 pm, "Alex McAuley" wrote: > You need to do it a bit differently with php json_encode/decode ... i had > this problem when i first started using it > > where you send post data (JSON) as p > > $post=str_replace('\&qu

[Proto-Scripty] Re: Working outside loop, but not inside

2009-06-04 Thread Alex McAuley
with your method. I'm just curious to see how you would accomplish what we're discussing. Rick On Thu, Jun 4, 2009 at 6:48 PM, Alex McAuley wrote: My point still stands that it is a simple example... when we delve deeper into more complex examples it becomes garder and har

[Proto-Scripty] Re: Working outside loop, but not inside

2009-06-04 Thread Alex McAuley
et monitoring from one server to one client machine isnt proof of anything. Anyway... glad we could open that up to more conversation. Rick On Thu, Jun 4, 2009 at 4:28 PM, Alex McAuley wrote: That was a very basic example i wrote !!... Plus your code is not re-usable whic

[Proto-Scripty] Re: Working outside loop, but not inside

2009-06-04 Thread Alex McAuley
s.com/misc/demo-ps-list-0011.php i left the js in the main file so you could reference. dig it. Rick On Thu, Jun 4, 2009 at 12:20 PM, Alex McAuley wrote: @Rick -- Okay here is a good one. A very dynamic site where you need to pull varying variables -- excuse

[Proto-Scripty] Re: HTML breaks JSON

2009-06-04 Thread Alex McAuley
You need to do it a bit differently with php json_encode/decode ... i had this problem when i first started using it where you send post data (JSON) as p $post=str_replace('\"', '"', $_POST['p']); $json=$post; $d=json_decode($json,true); foreach($d as $key=>$val) { .. do what you will

[Proto-Scripty] Re: Working outside loop, but not inside

2009-06-04 Thread Alex McAuley
@Rick -- Okay here is a good one. A very dynamic site where you need to pull varying variables -- excuse the psudeo code !! just proving its needed sometimes !! funciton doSomething({options}) { new Ajax.Updater(options.element,options.url, { meth

[Proto-Scripty] Re: Working outside loop, but not inside

2009-06-03 Thread Alex McAuley
would recommend using single quotes for echoing to reduce the load on the php ... (as Rick suggested!!) - Original Message - From: "Alex McAuley" To: Sent: Thursday, June 04, 2009 7:38 AM Subject: [Proto-Scripty] Re: Working outside loop, but not inside > > you have at

[Proto-Scripty] Re: Working outside loop, but not inside

2009-06-03 Thread Alex McAuley
you have at least one syntax error here Random Text that doesn't matter"; There is no space between id='' and style=''. put a space in and try it again! - Original Message - From: "craig" To: "Prototype & script.aculo.us" Sent: Thursday, June 04, 2009 12:13 AM Subject: [Pro

[Proto-Scripty] Re: [OT] someone know a good book from certificates x509

2009-06-03 Thread Alex McAuley
Google is your friend !! - Original Message - From: Miguel Beltran R. To: prototype-scriptaculous@googlegroups.com Sent: Wednesday, June 03, 2009 4:53 PM Subject: [Proto-Scripty] [OT] someone know a good book from certificates x509 Hi list, first my apologize for this off-t

[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

[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
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: 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: 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
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: 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
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: 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
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: 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: 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
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
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: 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: 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
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-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-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
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: 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: 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: 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: 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: 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-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-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: 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: 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: 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: 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: 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: 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: 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
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: 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: 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: 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: 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: 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: 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: 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: 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
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: 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: 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
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
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: 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: 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: 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: 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: 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: 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: 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: 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
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
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
;',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
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: 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: 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: 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: 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: 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: 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: $() 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: $() 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: 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
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: 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: 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: 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: 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: 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

<    1   2   3   4   5   6   7   >