Re: [Proto-Scripty] Combo box?
LivePipe project http://livepipe.net/control/selectmultiple 2011/7/26 Shane McCarron halindr...@gmail.com Does anyone know of a *stable* combobox implementation that uses Prototype? -- Shane McCarron halindr...@gmail.com -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en. -- Best Regards, Vladimir Tkach +972-54-7574166 tea...@gmail.com http://teamco-anthill.blogspot.com/ http://www.google.com/search?q=teamco-anthillpov=113485037116411478549usg=__MJmWqpqtgaTxQA8ZMBvE3etiB1Q= -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.
Re: [Proto-Scripty] Keep the state of the effect after refresh or reload.
You can store state in session (server side) or in cookies (browser - client side) And on each loading page you can check state status before continue 2010/4/21 david c mnc...@kitsch-nitsch.com I have a scriptaculous fold effect above the header that enables me to hide the flash movie once it has played. The problem is that once you navigate to a different part of the site (klick on an About link for example) the page reloads and the script resets so the movie is no longer hidden. What I would like is for the movie to stay hidden or shown, whatever the user chooses, no matter where on the page you are. This is the code (I just copy/pasted it from the demos) and it works just great: div id=fold ?php wp_swfobject_echo(http:/imagesx/logo303.swf, 900px, 300px); ?/div ul lia href=# onclick=Effect.Fold('fold'); return false;Hide/ a/li lia href=# onclick=$('fold').show(); return false;Show/a/ li /ul I am not a programmer, I'm a designer who wants to expand my knowledge, but I have only the very basic understanding about javascript, php and so on ... VERY basic. I hope someone could help me out - I get the feeling that this is a more advanced group, but I searched the net over and over and found no solution. Anyway - thank you in advance. -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptacul...@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.comprototype-scriptaculous%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en. -- Best Regards, Vladimir Tkach +972-54-7574166 tea...@gmail.com http://teamco-anthill.blogspot.com/ http://www.google.com/search?q=teamco-anthillpov=113485037116411478549usg=__MJmWqpqtgaTxQA8ZMBvE3etiB1Q= -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptacul...@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.
Re: [Proto-Scripty] Re: element.observe('keyup') is just skyrocketing in Google Chrome :s
Use prototype style for css : function ajuster_taille() { $(this).setStyle({height: this.scrollHeight + 'px'}) } 2010/1/16 Jinsa jf.wesq...@gmail.com Hey, I just fixed it with this: function ajuster_taille() { this.style.height = 0; this.style.height = this.scrollHeight + 'px'; } Hope it will help someone having the same trouble ;) Bye :) On Jan 14, 1:09 pm, Jinsa jf.wesq...@gmail.com wrote: Hi all! I've done a simple prototype script to expend the textarea size of a form. It works perfectly with IE / Firefox but it's doing a strange stuff with Google Chrome. Just take a look:http://www.jinsa.fr/coms/test.php My function doing the resize is named ajuster_taille, here we go: function ajuster_taille() { this.style.height = this.scrollHeight + 'px'; } And I just binded it to an observer with keyup parameter: function bindTestElements() { $('msg').observe('keyup', ajuster_taille); } Event.observe(window, 'load', bindTestElements); So, do you think it's a problem we may advert prototype core team or may be just a Google Chrome misunderstanding? I'm trying to find a tip to patch that bug so if you have one just let me know :) Thanks! -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptacul...@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.comprototype-scriptaculous%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en. -- Best Regards, Vladimir Tkach +972-54-7574166 tea...@gmail.com http://teamco-anthill.blogspot.com/ http://www.google.com/search?q=teamco-anthillpov=113485037116411478549usg=__MJmWqpqtgaTxQA8ZMBvE3etiB1Q= -- You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptacul...@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.
Re: [Proto-Scripty] Uploading an image with Ajax.request
do post form to iframe 2009/12/12 Andy Daykin daykina...@gmail.com Hello, I was wondering if this is possible to do: I want to upload an image using Ajax.request like such: var form = $('addimage'); new Ajax.Request('http://myurl.com/uploadImage.php', { method: 'post', parameters: { image: $(form['image']).getValue() } } So far I haven't been able to access the image with php, I have been using $_FILES['file']['name'] to try and access the image, but I can't get it. Do I have to use an iframe for this, or will it work somehow using Ajax.request and trying to get the file in the form? Thanks, -Andy Daykin -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptacul...@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.comprototype-scriptaculous%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en. -- Best Regards, Vladimir Tkach +972-54-7574166 tea...@gmail.com http://teamco-anthill.blogspot.com/ http://www.google.com/search?q=teamco-anthillpov=113485037116411478549usg=__MJmWqpqtgaTxQA8ZMBvE3etiB1Q= -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptacul...@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.
Re: [Proto-Scripty] Uploading an image with Ajax.request
Like this one solution: http://github.com/markcatley/responds_to_parent 2009/12/12 Andy Daykin daykina...@gmail.com Hello, I was wondering if this is possible to do: I want to upload an image using Ajax.request like such: var form = $('addimage'); new Ajax.Request('http://myurl.com/uploadImage.php', { method: 'post', parameters: { image: $(form['image']).getValue() } } So far I haven't been able to access the image with php, I have been using $_FILES['file']['name'] to try and access the image, but I can't get it. Do I have to use an iframe for this, or will it work somehow using Ajax.request and trying to get the file in the form? Thanks, -Andy Daykin -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptacul...@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.comprototype-scriptaculous%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en. -- Best Regards, Vladimir Tkach +972-54-7574166 tea...@gmail.com http://teamco-anthill.blogspot.com/ http://www.google.com/search?q=teamco-anthillpov=113485037116411478549usg=__MJmWqpqtgaTxQA8ZMBvE3etiB1Q= -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptacul...@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.
[Proto-Scripty] Re: code transform
http://docs.jquery.com/Core/jQuery.noConflict 2009/11/2 Albertus albertus.pu...@gmail.com is that posible to transform function where build by jquery into prototype? -- Best Regards, Vladimir Tkach +972-54-7574166 tea...@gmail.com http://teamco-anthill.blogspot.com/ http://www.google.com/search?q=teamco-anthillpov=113485037116411478549usg=__MJmWqpqtgaTxQA8ZMBvE3etiB1Q= --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~--~~~~--~~--~--~---
[Proto-Scripty] Re: Help me with hashes
var MyObj={ obj1:{ prop: ['А', 'C', 'D', 'E'] }, obj2:{ prop: ['B', 'C', 'D', 'E'] }, obj3:{ prop: ['А', 'E'] }, obj4:{ prop: ['D', 'E'] } } var newObj = {} Object.keys(MyObj).each(function(k,v){ MyObj[k].prop.each(function(x,y){ if(typeof newObj[x]==undefined){newObj[x]=[]} newObj[x].push(k) }) }) newObj 2009/10/29 Buda budari...@gmail.com Help me please, this operation is best I have an object var MyObj:{ obj1:{ ... prop: ['А', 'C', 'D', 'E'] ... }, obj2:{ ... prop: ['B', 'C', 'D', 'E'] ... }, obj3:{ ... prop: ['А', 'E'] ... }, obj4:{ ... prop: ['D', 'E'] ... } } I neet to get a new hash like this Props:{ A: ['obj1', 'obj3'], B: ['obj2'], C: ['obj1', 'obj2'], D: ['obj1', 'obj2', 'obj4'], E: ['obj1', 'obj2', 'obj3', 'obj4'], } -- Best Regards, Vladimir Tkach +972-54-7574166 tea...@gmail.com http://teamco-anthill.blogspot.com/ http://www.google.com/search?q=teamco-anthillpov=113485037116411478549usg=__MJmWqpqtgaTxQA8ZMBvE3etiB1Q= --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~--~~~~--~~--~--~---
[Proto-Scripty] Re: Help me with hashes
nop but answer in english please thanks 2009/10/29 budarin budari...@gmail.com Спасибо Владимир, помогло! *From:* prototype-scriptaculous@googlegroups.com [mailto: prototype-scriptacul...@googlegroups.com] *On Behalf Of *Vladimir Tkach *Sent:* Thursday, October 29, 2009 3:02 PM *To:* prototype-scriptaculous@googlegroups.com *Subject:* [Proto-Scripty] Re: Help me with hashes var MyObj={ obj1:{ prop: ['А', 'C', 'D', 'E'] }, obj2:{ prop: ['B', 'C', 'D', 'E'] }, obj3:{ prop: ['А', 'E'] }, obj4:{ prop: ['D', 'E'] } } var newObj = {} Object.keys(MyObj).each(function(k,v){ MyObj[k].prop.each(function(x,y){ if(typeof newObj[x]==undefined){newObj[x]=[]} newObj[x].push(k) }) }) newObj 2009/10/29 Buda budari...@gmail.com Help me please, this operation is best I have an object var MyObj:{ obj1:{ ... prop: ['А', 'C', 'D', 'E'] ... }, obj2:{ ... prop: ['B', 'C', 'D', 'E'] ... }, obj3:{ ... prop: ['А', 'E'] ... }, obj4:{ ... prop: ['D', 'E'] ... } } I neet to get a new hash like this Props:{ A: ['obj1', 'obj3'], B: ['obj2'], C: ['obj1', 'obj2'], D: ['obj1', 'obj2', 'obj4'], E: ['obj1', 'obj2', 'obj3', 'obj4'], } -- Best Regards, Vladimir Tkach +972-54-7574166 tea...@gmail.com http://teamco-anthill.blogspot.com/ http://www.google.com/search?q=teamco-anthillpov=113485037116411478549usg=__MJmWqpqtgaTxQA8ZMBvE3etiB1Q= -- Best Regards, Vladimir Tkach +972-54-7574166 tea...@gmail.com http://teamco-anthill.blogspot.com/ http://www.google.com/search?q=teamco-anthillpov=113485037116411478549usg=__MJmWqpqtgaTxQA8ZMBvE3etiB1Q= --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~--~~~~--~~--~--~---
[Proto-Scripty] Re: Ajax.Responders
); if (this.options.evalJS == force || (this.options.evalJS this.isSameOrigin() contentType contentType.match(/^\s*(text|application)\/(x-)?(java|ecma)script(;.*)? \s*$/i))) { this.evalResponse(); } } try { (this.options[on + state] || Prototype.emptyFunction)(response, response.headerJSON); Ajax.Responders.dispatch(on + state, this, response, response.headerJSON); } catch (e) { this.dispatchException(e); } if (state == Complete) { this.transport.onreadystatechange = Prototype.emptyFunction; } } function () { var m = this.url.match(/^ \s*https?:\/\/[^\/]*/); return !m || m[0] == #{protocol}//#{domain}# {port}.interpolate({protocol: location.protocol, domain: document.domain, port: location.port ? : + location.port : }); } function (name) { try { return this.transport.getResponseHeader(name) || null; } catch (e) { return null; } } function () { try { return eval ((this.transport.responseText || ).unfilterJSON()); } catch (e) { this.dispatchException(e); } } function (exception) { (this.options.onException || Prototype.emptyFunction)(this, exception); Ajax.Responders.dispatch(onException, this, exception); } Perhaps this is one for the Devs!! It goes without saying i think that at any time a request is going on it would be very handy to know where the result of that request is heading to (the element) and the element that called it (so we can disable / enable it when the request is Completed) Perhaps it would be a nice edition to Prototype2.0 while i hack mine to pieces! All help welcome Thanks in advance Alex -- Best Regards, Vladimir Tkach +972-54-7574166 tea...@gmail.com http://teamco-anthill.blogspot.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~--~~~~--~~--~--~---
[Proto-Scripty] Re: Ajax.Responders
|| (this.options.evalJS this.isSameOrigin() contentType contentType.match(/^\s*(text|application)\/(x-)?(java|ecma)script(;.*)? \s*$/i))) { this.evalResponse(); } } try { (this.options[on + state] || Prototype.emptyFunction)(response, response.headerJSON); Ajax.Responders.dispatch(on + state, this, response, response.headerJSON); } catch (e) { this.dispatchException(e); } if (state == Complete) { this.transport.onreadystatechange = Prototype.emptyFunction; } } function () { var m = this.url.match(/^ \s*https?:\/\/[^\/]*/); return !m || m[0] == #{protocol}//#{domain}# {port}.interpolate({protocol: location.protocol, domain: document.domain, port: location.port ? : + location.port : }); } function (name) { try { return this.transport.getResponseHeader(name) || null; } catch (e) { return null; } } function () { try { return eval ((this.transport.responseText || ).unfilterJSON()); } catch (e) { this.dispatchException(e); } } function (exception) { (this.options.onException || Prototype.emptyFunction)(this, exception); Ajax.Responders.dispatch(onException, this, exception); } Perhaps this is one for the Devs!! It goes without saying i think that at any time a request is going on it would be very handy to know where the result of that request is heading to (the element) and the element that called it (so we can disable / enable it when the request is Completed) Perhaps it would be a nice edition to Prototype2.0 while i hack mine to pieces! All help welcome Thanks in advance Alex -- Best Regards, Vladimir Tkach +972-54-7574166 tea...@gmail.com http://teamco-anthill.blogspot.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~--~~~~--~~--~--~---
[Proto-Scripty] Re: Form.request() file upload problem in ie6
Browsers force us to use file inputs for uploads, which are impossible to style. Moreover, form-based uploads look obsolete in modern ajax applications. We can use flash to solve this problem, but javascript works nice too. http://teamco-anthill.blogspot.com/2009/01/ajax-file-upload.html 2009/7/5 webbear1000 normpo...@hotmail.com You could try YUI uploader if you're prepared to use Flash http://developer.yahoo.com/yui/uploader/ -- Best Regards, Vladimir Tkach +972-54-7574166 tea...@gmail.com http://teamco-anthill.blogspot.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~--~~~~--~~--~--~---
[Proto-Scripty] Re: How to get size of div before showing?
Fast solution - $(div.my).hide(); - update div's content by ajax / js - get $(div.my).height() / width() - $(div.my).show() 2009/6/30 serenobs seren...@gmail.com Hi. I'd like to know the size of div before showing. For example, .my { position: absolute; } with this css, size is not determined yet. I want to place this div at center of viewport after calling Ajax.updater But I can get only initial size unless show element. How can I get right size? -- Best Regards, Vladimir Tkach +972-54-7574166 tea...@gmail.com http://teamco-anthill.blogspot.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~--~~~~--~~--~--~---
[Proto-Scripty] Re: resize problem.
screen its reserved word in js 2009/7/1 serenobs seren...@gmail.com I missed it. I'm using prototype 1.6.1.RC3. On 7월1일, 오후6시08분, serenobs seren...@gmail.com wrote: Hi again :) I'm new to prototype, javascript and I got many problems so please understand my bunch of questions :) Here is my question. I'd like to replace my div when window resized. I coded like below: script function onBodyLoad() { var onResize = function(e) { var viewport = document.viewport.getDimensions(); var screen = $('screen'); var s_view = screen.getDimensions(); screen.style.positon = 'absolute'; screen.style.left = (viewport.width - s_view.width)/2+'px'; screen.style.top = (viewport.height - s_view.height)/2+'px'; }; Element.observe(window, 'resize', onResize);}; /script body onLoad=new onBodyLoad() I can see onResize was called. But IE, viewport.width returns 0, and FF returns right number. and both screen element doesn't move its position. What's wrong with above code? -- Best Regards, Vladimir Tkach +972-54-7574166 tea...@gmail.com http://teamco-anthill.blogspot.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~--~~~~--~~--~--~---
[Proto-Scripty] Re: Design question for forms
Some changes: script type=text/javascript language=JavaScript document.observe(dom:loaded, function(){ if ($('adjType').value.length 0){ $('submittingTerritory').show(); }} ); /script form ... More HTML ... tr id=submittingTerritory style=display:none td bOther Territory/b /td td ?php echo $this-formSelect(' otherTerritory', $this- shortTerritory, array(onChange=getTerritories()), array (=Select a Territory) + $this-shortTerritories) ? /td /tr 2009/6/26 anthony mrsmi...@gmail.com I am trying to figure out if I have a dynamic form, whether or not it is better to make use of many hide show functions or just Ajax Updaters and div elements. Let me give you a example of something I cannot get to work: script type=text/javascript language=JavaScript Event.observe(window,'load',function(){ if ($('adjType').value == ){ $('submittingTerritory').hide(); }} ); /script form ... More HTML ... div id=submittingTerritory tr td bOther Territory/b /td td ?php echo $this-formSelect('otherTerritory', $this- shortTerritory, array(onChange=getTerritories()), array (=Select a Territory) + $this-shortTerritories) ? /td /tr /div When the page loads, I don't want it to show. But it shows anyway. If I put an alert in that function it works, so I know it s not failing the if statement. -- Best Regards, Vladimir Tkach +972-54-7574166 tea...@gmail.com http://teamco-anthill.blogspot.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~--~~~~--~~--~--~---
[Proto-Scripty] SyntaxError: unterminated string literal
Prototype gsub error? $H({s:'\'}).toJSON() Result : SyntaxError: unterminated string literal -- Best Regards, Vladimir Tkach +972-54-7574166 tea...@gmail.com http://teamco-anthill.blogspot.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~--~~~~--~~--~--~---
[Proto-Scripty] Re: SyntaxError: unterminated string literal
OK Thanks for your comments 2009/5/21 Richard Quadling rquadl...@googlemail.com 2009/5/21 Chris Sansom ch...@highway57.co.uk: At 17:24 +0300 21/5/09, Vladimir Tkach wrote: Prototype gsub error? $H({s:'\'}).toJSON() Result : SyntaxError: unterminated string literal I /think/, though the experts hereabouts will confirm or otherwise, that JavaScript thinks the \ is escaping the quote that comes after it. To do what you want, I believe you'd have to escape the backslash in turn: $H({s:'\\'}).toJSON() I hope that's right! -- Cheers... Chris Highway 57 Web Development -- http://highway57.co.uk/ Why do you necessarily have to be wrong just because a few million people think you are? -- Frank Zappa Yep. \ is a magic character in many languages. \r \n \t to name just 3 things (return, newline, tab). \\ is to allow the escape character through. Watch out when building JS code from other languages. ?php $s_JavaScriptString = 'document.write(\'John O\\\'Connor\');'; echo $s_JavaScriptString; ? for example. Ok. Bad example, but as you start passing the text through different engines, the \ needs to be escaped for each level. So, PHP generating JS generating HTML content ... having anything to escape has to be done carefully. -- - Richard Quadling Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498r=213474731 Standing on the shoulders of some very clever giants! -- Best Regards, Vladimir Tkach +972-54-7574166 tea...@gmail.com http://teamco-anthill.blogspot.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~--~~~~--~~--~--~---
[Proto-Scripty] Re: Keypress event
WTF? It's work fine for each browser: - install firebug / firebug lite (F12 to open console) - use console.log('event') instead of alert so, u've got result like this one Event.observe('shared_field_description','keypress',function(e) { console.log(e); }); textarea id=shared_field_description class=normal rows=20 name= shared_field[description] cols=40 keypress charCode=102, keyCode=0 keypress charCode=114, keyCode=0 keypress charCode=116, keyCode=0 keypress charCode=102, keyCode=0 keypress charCode=115, keyCode=0 -- Best Regards, Vladimir Tkach +972-54-7574166 tea...@gmail.com http://teamco-anthill.blogspot.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~--~~~~--~~--~--~---
[Proto-Scripty] Re: Prevent iframe / break-away
try to use beforeunload event 2009/3/18 Karlson azagnio...@gmail.com Hi, I am trying to prevent iframe breakout. This is how i attempted to do it in head section of my HTML document: function windowUnload(evt) { evt.stop(); } Event.observe(window, 'unload', windowUnload); $('ifr').observe('unload', windowUnload); //Event.observe(window, 'unload', function(event) { // Event.stop(event); //}); 'ifr - the id of my iframe. My code does not work. Is it possible at all with prototype? What am i doing wrong, can some one give me some feedback? Regards, Karlson -- Best Regards, Vladimir Tkach +972-54-7574166 tea...@gmail.com http://teamco-anthill.blogspot.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~--~~~~--~~--~--~---
[Proto-Scripty] Re: SliderDown strange jump
Hi Jorge Look at this code: a onclick='this.addClassName(activo); fechaSliders(sliderMeio,div1); new Effect.toggle(div1, slide,{queue:end}); return false;' class=sliderLink activo href=#span class=funcaoEquipaEdição e Condução:/span PAULA MOURA PINHEIRO/a U use for a.sliderLink style display block Just add to this style to attributes - width (recomended attribute for display:block) - height: auto; 2009/3/17 galrito jorge.galr...@gmail.com Hello, I don't know if this problem has been addressed before, but I did a search in the group and I didn't find anything so here it goes: I have a site where I use the Effect.SlideDown extensively, but in one page I have some problems. There's a strange jump in some slides. You can check here: http://camaraclara.rtp.pt/#/equipa/ and then open the first link, where it says Edição e Condução, for instance. There's more on that page with the same problem: the slide jumps in the middle. I have no idea what's happening there, so maybe anyone knows what's going on and can help me :) Thank you very much. Galrito -- Best Regards, Vladimir Tkach +972-54-7574166 tea...@gmail.com http://teamco-anthill.blogspot.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~--~~~~--~~--~--~---
[Proto-Scripty] Re: SliderDown strange jump
nop :) 2009/3/17 galrito jorge.galr...@gmail.com Yes, it was just a matter styling the width :) Thank you very much for your help. Galrito On 17 Mar, 10:33, Vladimir Tkach tea...@gmail.com wrote: Hi Jorge Look at this code: a onclick='this.addClassName(activo); fechaSliders(sliderMeio,div1); new Effect.toggle(div1, slide,{queue:end}); return false;' class=sliderLink activo href=#span class=funcaoEquipaEdição e Condução:/span PAULA MOURA PINHEIRO/a U use for a.sliderLink style display block Just add to this style to attributes - width (recomended attribute for display:block) - height: auto; 2009/3/17 galrito jorge.galr...@gmail.com Hello, I don't know if this problem has been addressed before, but I did a search in the group and I didn't find anything so here it goes: I have a site where I use the Effect.SlideDown extensively, but in one page I have some problems. There's a strange jump in some slides. You can check here:http://camaraclara.rtp.pt/#/equipa/and then open the first link, where it says Edição e Condução, for instance. There's more on that page with the same problem: the slide jumps in the middle. I have no idea what's happening there, so maybe anyone knows what's going on and can help me :) Thank you very much. Galrito -- Best Regards, Vladimir Tkach +972-54-7574166 tea...@gmail.com http://teamco-anthill.blogspot.com/ -- Best Regards, Vladimir Tkach +972-54-7574166 tea...@gmail.com http://teamco-anthill.blogspot.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~--~~~~--~~--~--~---
[Proto-Scripty] Re: asynchronous file upload
Nice solution for progress bar ajax upload Ajax progress indicator with prototypehttp://teamco-anthill.blogspot.com/2009/01/ajax-progress-indicator-with-prototype.html src( http://www.caboo.se/articles/2008/3/27/ajax-progress-indicator-with-prototype ) Ajax file uploadhttp://teamco-anthill.blogspot.com/2009/01/ajax-file-upload.html Browsers force us to use file inputs for uploads, which are impossible to style. Moreover, form-based uploads look obsolete in modern ajax applications. We can use flash to solve this problem, but javascript works nice too. View an usage examples for jqueryhttp://valums.com/wp-content/uploads/ajax-upload/demo-jquery.htmand prototypehttp://valums.com/wp-content/uploads/ajax-upload/demo-prototype.htmwith various options. Download - jquery.ajax_upload.0.9.jshttp://valums.com/wp-content/uploads/ajax-upload/jquery.ajax_upload.0.9.js (7KB) - jquery.ajax_upload.0.9.min.js http://valums.com/wp-content/uploads/ajax-upload/jquery.ajax_upload.0.9.js (3KB) - prototype.ajax_upload.0.9.js http://valums.com/wp-content/uploads/ajax-upload/prototype.ajax_upload.0.9.js (7KB) - prototype.ajax_upload.0.9.min.jshttp://valums.com/wp-content/uploads/ajax-upload/prototype.ajax_upload.0.9.js (3KB) http://valums.com/ajax-upload/ -- Best Regards, Vladimir Tkach +972-54-7574166 tea...@gmail.com http://teamco-anthill.blogspot.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~--~~~~--~~--~--~---