[Proto-Scripty] Ajax.Request and curtain

2009-06-25 Thread sclaflin
In IE7: If I create a div as a curtain that hides the rest of the page, but initially hidden, then unhide it before making an Ajax.Request, I find that click events on the curtain seem to get postponed until after the request completes (and my callback hides the curtain again). Which means that

[Proto-Scripty] Object.toJSON problem

2009-06-25 Thread maalek
Hi, I build webapp with lots use AJAX via Prototype.I have problem with Object.toJSON function. simple example from Prototype API http://www.prototypejs.org/api/object/toJSON var test = {name: 'Violet', occupation: 'character', age: 25, pets: ['frog', 'rabbit']}; Object.toJSON(test); ---

[Proto-Scripty] Re: Ajax.Request and curtain

2009-06-25 Thread T.J. Crowder
Hi, Is Ajax.Request somehow queuing up user events and refiring them after the request completes? No, it isn't. On IE7, it sounds as though your curtain div isn't where you think it is in the z order or something like that, and separately the click of the link seems to be being held up by

[Proto-Scripty] Re: Periodical Updater detect content change

2009-06-25 Thread Richard Quadling
2009/6/24 Aamchi aman.ra...@googlemail.com: Hi Richard, Your example works perfectly :-) Just a few minor things that I had to change to make it actually work (not being fussy, just if someone else finds this useful as well and wants to try it out): -The this operator didn't work for

[Proto-Scripty] Re: drag and drop tr from one table to another table.

2009-06-25 Thread Nivash Ramachandran
I Fixed the issue number 2. It was because I set position relative to tr alone, not to table element . But the invisible issue still exists (issue 1) On Jun 24, 10:03 pm, Nivash Ramachandran rniv...@gmail.com wrote: It's okay Rick .. On Jun 24, 9:59 pm, Rick Waldron waldron.r...@gmail.com

[Proto-Scripty] Re: php in files

2009-06-25 Thread Robaj
Ok I got the gist of it, you can't do what I wanted to do, interact with php through ajax after the page has loaded. Yes I know it can get strings and data from the server side code, but only if that content is html. eval doesn't work with files loaded after the page is loaded. and

[Proto-Scripty] Re: php in files

2009-06-25 Thread Richard Quadling
2009/6/25 Robaj robrass...@gmail.com Ok I got the gist of it, you can't do what I wanted to do, interact with php through ajax after the page has loaded. Yes I know it can get strings and data from the server side code, but only if that content is html. eval doesn't work with files loaded

[Proto-Scripty] Re: php in files

2009-06-25 Thread Alex McAuley
eval ( in PHP ) evaluates any code you pass into it as a variable or string I am now very confused into the question you are asking - Original Message - From: Robaj robrass...@gmail.com To: Prototype script.aculo.us prototype-scriptaculous@googlegroups.com Sent: Thursday, June

[Proto-Scripty] Re: php in files

2009-06-25 Thread Alex McAuley
Ahh i think i just sussed out what you were/are trying to do !!! You want the ajax response to be php code and the browser / server run that php code after the response !! i.e if your response to an Ajax call was `?php echo(1+1); ?`; you want that written in the page and have it evaluated by

[Proto-Scripty] Re: php in files

2009-06-25 Thread Richard Quadling
2009/6/25 Alex McAuley webmas...@thecarmarketplace.com eval ( in PHP ) evaluates any code you pass into it as a variable or string I am now very confused into the question you are asking Me too. -- - Richard Quadling Zend Certified Engineer :

[Proto-Scripty] Re: Port to ActionScript?

2009-06-25 Thread rlovtang
Yes, that's quite easy. But I hoped that someone already did that. On Jun 24, 12:55 pm, david david.brill...@gmail.com wrote: Hi rlovtang, I've never ear somethink like that, but as ACTIONSCRIPT IS ECMASCRIPT, isn't it easy to port prototype function to it ?? btw, it's just a guess, I did

[Proto-Scripty] Re: determine if dom:onload has happened yet?

2009-06-25 Thread disccomp
Shouldn't that check happen in the library? I don't think I've ever had this happen to me, but it sounds like it is something easily solved. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us

[Proto-Scripty] Re: drag and drop tr from one table to another table.

2009-06-25 Thread david
Hi Nivash, The problem is with the starteffect and endeffect which by default modify opacity of the dragged element. To avoid the invisibility problem, just declare the draggable this way: new Draggable('myr1',{ starteffect:function(){}, endeffect:function(){} }); new

[Proto-Scripty] Re: drag and drop tr from one table to another table.

2009-06-25 Thread david
Hi Nivash, I just have a look to your exemple in FF, and it did not work. If you need a cross browser solution, you should avoid table, and use li with div to render the line as a table. just a thought. -- david On 25 juin, 18:04, david david.brill...@gmail.com wrote: Hi Nivash, The

[Proto-Scripty] Re: drag and drop tr from one table to another table.

2009-06-25 Thread Nivash Ramachandran
Yes, You are correct. It is not working in Fire fox and even in chrome too. Thanks for your solution to the issue I reported. :) On Jun 25, 9:07 pm, david david.brill...@gmail.com wrote: Hi Nivash, I just have a look to your exemple in FF, and it did not work. If you need a cross browser

[Proto-Scripty] Re: Autocompleter shifts results to the right in IE8

2009-06-25 Thread G. Sharon Yang
I had the same issues with IE 8. Autocompleter div shifts to the right. It works fine in all other browsers. -S. On Wed, Jun 24, 2009 at 9:45 AM, David Taricodtar...@gmail.com wrote: Thanks for tracking that down! On Wed, Jun 24, 2009 at 3:48 AM, BillyRayPreachersSon

[Proto-Scripty] Re: Ajax POST problem with special characters

2009-06-25 Thread Jean Pierobom
Changing the line no 2643 (method Form.serializeElements) of prototype-1.5.1.2, works fine change -- //var key = element.name, value = $(element).getValue(); for -- var key = element.name, value = encodeURIComponent($(element).getValue()); You know an elegant solution for this scenario?

[Proto-Scripty] horizontel scrollbar

2009-06-25 Thread Bangthat headkid
hello everybody, im not really into javascript . just want to change my normal horizontel scrollbar to this one on this site http://www.elizabethweinberg.com/music/ that slider fuction is so awesome. love that minimal style. i have the prototype scriptaculous and the ?divslider 0.1? (dont know

[Proto-Scripty] Events ON IE Firefox Chrome

2009-06-25 Thread diegoturriaga
First that all sorry for my english... I have wrote this javascript events handlers: // use mode: $('id-control').observe('keyup', enMayusculas); function enMayusculas(evt) { evt.srcElement.value = evt.srcElement.value.toUpperCase(); } // use mode: $('id-control').observe('keyup',

[Proto-Scripty] Re: Object.toJSON problem

2009-06-25 Thread diegoturriaga
First that all sorry for my english :) im not 100% sure but remember that ? not is a valid character... you need to encode your data before submit your JSON I you are using POST method not is obvius but think in GET On 24 jun, 15:04, maalek maaa...@gmail.com wrote: Hi, I build webapp with

[Proto-Scripty] Re: Events ON IE Firefox Chrome

2009-06-25 Thread T.J. Crowder
Hi, First that all sorry for my english... No hay problema, es mucho mejor que mi español. Works fine on IE6, IE8 and Chrome But not is working on Firefox 3 :(I hasn't tested in others browsers) *How* is it not working? Which part is giving you trouble? What happens? When do you expect

[Proto-Scripty] Re: Ajax POST problem with special characters

2009-06-25 Thread T.J. Crowder
Hi, Can you replicate this with a recent version of Prototype[1]? 1.5.1.2 is very, very out of date. [1] http://prototypejs.org/download FWIW, -- T.J. Crowder tj / crowder software / com Independent Software Engineer, consulting services available On Jun 25, 8:59 pm, Jean Pierobom

[Proto-Scripty] Re: Object.toJSON problem

2009-06-25 Thread T.J. Crowder
Hi, I'm not seeing that behavior in any browser I tried, I always got the expected string. I tried IE7, FF3, Opera 9, Safari 3 for Windows, and Chrome 2. (Didn't trot out my IE6 and IE8 VMS.) Are you sure the problem isn't what you _do_ with the string? Perhaps if you pick up with Step #3

[Proto-Scripty] Re: determine if dom:onload has happened yet?

2009-06-25 Thread Jonathan Rochkind
Sweet, that works. Kind of. Sadly, if you are in the middle of a dom:loaded callback... document.loaded is still false. It's not true until after all the dom:loaded callbacks have been called. And it's if you are IN a dom:loaded callback, and you then try to add another dom:loaded listener --