[Proto-Scripty] Re: AJAX Tabs Widget
I'm now looking for/at tab controls that support ajax calls. The few that I've found are pretty static in that you can assign tab A to a specific AJAX request but you have no ability to dynamically create/destroy tabs. LivePipe Control.Tabs: http://livepipe.net/control/tabs + somewhere on github is extended AJAXified version or (based on LivePipe, added possibility to load content into tab via AJAX request) http://javascripts.svn.sourceforge.net/viewvc/javascripts/javascripts/js.ui/js/ui/control.tabs.js?revision=322view=markup (it isn't self-sufficient, it requires CSS and other JS files from the same project - ask me for details if you want) -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/e6ESu2NmfY4J. 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: The buzz is MVC
Nobody answered... so I'll try to explain my point of view. In short words: I don't need full JavaScript MVC framework. I am working on Java web applications (J2EE or Spring based, running on JBoss or Tomcat respectively). There are already MVC stacks on server side (Struts + JSP, JSF + XHTML, Wicket + HTML, Spring MVC etc.) - they have Java objects for Model, another Java objects for Controller, and HTML-based markup files for View which is rendered into HTML and returned to client. Another (pure JavaScript) MVC framework on client side is redundant - rendering of Model into View (HTML) is perfectly done on server. Client needs Controller (to work with UI widgets) and part of Model (object identifiers etc.). Controller sends AJAX requests with needed parameters to the server, and server returns rendered HTML, which can be inserted into DOM, and optionally script with Model changes. No Model to View rendering is done on the client side, all View templates are stored in HTML-based text files (JSP, HTML). This way gives possibility to describe few basic AJAX workflow templates and implement them in single place using event delegation and single global observer (http://javascripts.svn.sourceforge.net/viewvc/javascripts/javascripts/js.ui/js/ui/behavior.ajaxify.js?revision=303view=markup): 1. User clicks on a link. AJAX request is sent to the server. Result is inserted into desired container. (AJAX tabs, product descriptions, gallery next/prev links etc.) 2. User clicks on a link. AJAX request is sent to the server. Result is shown in modal box (lightbox, full-sized images, dialogs). 3. User submits form. Submission is intercepted, form data is sent via AJAX. Result is inserted into desired container (votes, comments, etc.) -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/QnnQdDupFmYJ. 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] Re: Future of Prototyp.js
I'm actually planning on taking whatever is still available on scripteka and rehosting it on github so that others can find it, see examples of it working, post issues and comment on the scripts Good idea! Do you have something to show already? Examples and issue tracking sounds good. -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/OvY44Z4adecJ. 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: domo and protoype.js
Domo http://domo-js.com/ From the J2EE developer's point of view it looks like return back to 2000s, to Servlets and tons of HTML/CSS markup in code. IMHO all advanced Java developers agree that moving HTML markup from Java code into separate JSP files was great step forward. -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/OZ8N-sCXLCwJ. 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: domo and protoype.js
What is domo? Share a link please. -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/_0QkXgH3wG4J. 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: Getting prototype javascript issue on Googl chrome - ripple emulator
Is your code working in Chrome and other browsers? IMHO error is not in Prototype - all tests and code for document.getElementsByClassName work in Ripple emulator. Maybe you are invoking document.getElementsByClassName() for wrong or non-existent object (not HTML element). -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/Wb3MuOgsz4kJ. 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] Event On click behavior with selector
1. How checkbox is related to clicks on radio buttons? 2. bindAsEventListener(this) isn't needed - bind(this) is enough. 3. Handler in Element#on retrieves clicked element as second argument, no need to find it via var elm = e.findElement(); 4. elm.getValue() for checkbox will return true or false - case 'athlete' has no sense - is this OK? this.__z__chkClicksthis = this.form.on('click','input[type=checkbox]', this.__chkClicks.bind(this)); __chkClicks: function(e, elm) { this.form.select('div.container').invoke('hide'); this.form.select('input[type=checkbox]').without(elm).invoke('setValue', false); var chk_val = elm.getValue(); var show_layer = $F(elm) ? 'div.true_container' : 'div.false_container'; this.form.down(show_layer).show(); switch(chk_val) { case 'athlete': var input = $('qf_athlete').show().down('input'); input.setValue(_msoC.msouser.name); this.__qf.Search(input.getValue()); break; } }, -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/aawca9SMor4J. 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: Customization event on click and when there is no characters
Try to format your code. It's an unreadable mess. Or, even better, try to make working example on jsfiddle.net. -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/XL9k96yH4IQJ. 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: Getting prototype javascript issue on Googl chrome - ripple emulator
Which platform/runtime you have selected in Ripple? -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/Ap1D4ILwyLAJ. 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: Getting prototype javascript issue on Googl chrome - ripple emulator
document.body.getElementsByTagName exists in Ripple. Can you give more details (stack trace, small code sample etc.)? -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/zR7VhA2gyqcJ. 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: Getting prototype javascript issue on Googl chrome - ripple emulator
Which version of Prototype you use? As far as I can see almost all unit tests pass on this emulator. Maybe error is in your code. -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/LhvTeIQ0TWMJ. 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: anyone experiencing issues in IE10
1. Fix all markup errors (check in W3C validator). 2. Place CSS links before any scripts. 3. Move all scripts from onload, onmouseout and other attributes into script. 4. Move that script into separate file. 5. Do not use document.images, document.layers, document.forms. Use $() instead of document.getElementById(). Learn Prototype. My Prototype 1.7 applications work fine in IE10 (as in all other Grade A browsers). -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/niQcB1qKBtMJ. 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: Old 1.6.1 library
Sizzle may need to escape special chars in CSS selector like this '[ui\:draggable=true]' or '[ui\\:draggable=true]' - not sure about count of backslashes, but I've already met similar error in Sizzle. -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/hh5YibA7fxwJ. 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: Adding a new method 'getSubmitButton' to Form
I am planning to add a new method to Form Element named 'getSubmitButton' to easily access the submit button of a form. I am ready to provide the patch and tests for it. Will that be useful? Which submit button? Form may have many submit buttons simultaneously, either input type=submit / or button type=submit. Also form may not have submit buttons at all, then pressing Enter in input field will submit form, and clicking on input type=image / will work as submit button. -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/o8YeLmolMs4J. 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: Big problem in Explorer 8
In global_utils.js progressbar stuff has wrong width (progressBarWrapperInternalWidth===NaN), because of this IE cannot set element.style.width to NaNpx. -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/w2SC078Zq5cJ. 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: Big problem in Explorer 8
this._progressBar.getStyle() returns null for marginLeft and marginRight - parseInt(null) === NaN - setStyle({width:NaNpx}) throws error. -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/Nq4_OhFD46cJ. 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: pluck.pluck.pluck
Something like function getUrls(tweet) { return tweet.mediaActivityJSON.entities.urls; } tweets.each(getUrls); -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/vMk3MTge27cJ. 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: Trouble toQueryString() and Dates
Make please example at jsfiddle.net -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/_LRTb5-dxmoJ. 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: problem by prototype clonePosition ??
Yes, this is a bug 1372https://prototype.lighthouseapp.com/projects/8886/tickets/1372-elementcloneposition-uses-border-box-widthborder-box-height. Method will add border width and padding of original to the content size - offsetWidth/offsetHeight return border-box dimensions, but CSS style works with content-box dimensions. -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/K_IFUXDQOQ0J. 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: Memory is always growing when attaching am event. Even if I destroy everything.
What is var result = number(6); Also why you use eventFunc.bind(element) that's nonsense - you can always retrieve element from your event. Is memory growing constantly by 136Kb for each invocation of start()? In other words, if you calling start() 100 times, will your browser use 62Mb? Also make please short test example on jsfiddle.net. -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/5L5AN14ZuxQJ. 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: Memory is always growing when attaching am event. Even if I destroy everything.
http://jsfiddle.net/TnBfr/ - tested in sIEve - somewhere stays reference to SPAN. http://jsfiddle.net/TnBfr/5/ - no leak in sIEve -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/0B7XSQr-XtUJ. 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: Eliminating mistakes in the code base, questions about and suggestions for the mailing list and the community.
Ticket 1231https://prototype.lighthouseapp.com/projects/8886/tickets/1231-elementpositionedoffset-subtracts-margin-left-from-top-margin-top-from-left is about 1 year old and still not fixed... Sad but true. -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/vS1vcLcHkTcJ. 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: Eliminating mistakes in the code base, questions about and suggestions for the mailing list and the community.
About eachSlice. If you think you can fix documentation - please make pull request on github. Do you have more errors/mistakes? -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/14l95S_xqJwJ. 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: Prototype's selector as well as eq in Jquery
$(#table-id td:nth-child(2)) will select 2nd cells in all rows of table with id table-id -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/1lO-8ck8qY4J. 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 Request: receive base64 encoded image in responseText
Is response empty in network sniffer/web inspector? Or in javascript code? The response is already empty in web inspector. Very bad You should check if it is actually written to HTTP response (maybe response is already flushed). If I return some HTML in addition to my base64 string the HTML arrives in response. There is some problem in your server code. You should see returned base64 string in response in Web Inspector/network sniffer. the js code here: http://pastebin.com/Y9SFVxKq http://pastebin.com/CeREQhtd - cleaned up version, try this, you had extra space between parameter name and value in your code, also element manipulations were ineffective. -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/BT1nuMIBfdcJ. 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] Remove horizontal gaps in puzzle demo
#puzzle { line-height: 0; } should be enough -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/9pbqmUhJKtUJ. 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: from 1.6.0.1 to 1.7.1: alternative to Event.cache and ._eventID?
In prototype 1.6.0.1 I used to use Event.cache[formElement._eventID] to check if an element has attached events. Why do you need such check at all? If you need to remove all event observers from element - there is #stopObserving(), if you need to remove from element and its children - there is #purge(). Look at https://github.com/victor-homyakov/VisualEvent/blob/master/js/parsers/prototype1.7.js - this code enumerates attached event handlers. -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/tBFOZrZJ_gAJ. 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 Request: receive base64 encoded image in responseText
I checked the response header and it's Content-Type: text/html; charset=UTF-8. Unfortunately I couldn't check the response because it's empty. Is response empty in network sniffer/web inspector? Or in javascript code? Printing the return-part in my controller I got the correct base64-encoded string. You should check if it is actually written to HTTP response (maybe response is already flushed). I checked prototype api docs and it says, the response is going to be eval'd before it shows up in browser. So what to do? Simply change the response content type? Is there any base64-Type? How are you processing response? Please show your code (here or in jsfiddle.net) or give a link to test site. Ajax.Response#responseText should be filled from XMLHttpRequest#responseText no matter which Content-Type is in response. -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/NHOK8gu2ZJ0J. 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: Event observer not working in version prototype 1.7 but works fine in 1.5
Yes these are loaded properly, here are the include order of these file Can you verify this in your browser? Also, there may be syntax error in some of javascript files. Try to comment them one by one until error message (Uncaught Error: ExecJS::ProgramError: Unexpected token: operator (*) (line: 9987, col: 4, pos: 392034)) disappears. -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/Ime0qNGytm8J. 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] Any reason why this might not work?
Would this construction: e._prototypeStorage = e._prototypeStorage || {} fall afoul of the issue that Jason pointed out? Would IE bork the assignment because the key wasn't in hash form and quoted? It will work fine. I've not found any specific property name which will require quotes ONLY in IE - just use characters [A-Za-z_$] and such property name will not require quotes (except of course reserved javascript words). -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/ZQApIHKJGG0J. 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] Any reason why this might not work?
I've had many instances where a javascript block would work in modern standards compliant browsers yet fail silently in IE until I put quotes in, single or double. Please, show any example of such code. -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/JU36qhMzEcAJ. 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: Event observer not working in version prototype 1.7 but works fine in 1.5
1. /assets/preload.js:1 http://yoopedia.dev/assets/preload.js 1. Uncaught ReferenceError: Form is not defined yoo:361http://yoopedia.dev/mainpage/yoo#_=_ 1. Uncaught ReferenceError: Form is not defined yoo:549http://yoopedia.dev/mainpage/yoo#_=_ 1. Uncaught ReferenceError: gY is not defined yoo:860http://yoopedia.dev/mainpage/yoo#_=_ 1. Uncaught ReferenceError: YAHOO is not defined postload.js:7http://yoopedia.dev/assets/postload.js 1. Uncaught ReferenceError: YAHOO is not defined yoo:1019http://yoopedia.dev/mainpage/yoo#_=_ 1. Uncaught ReferenceError: YAHOO is not defined Is Prototype and Yahoo properly loaded before your script? -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/m-MVga0ob5cJ. 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: Any reason why this might not work?
It may fail because this code may overwrite element's properties (and in some browsers like IE and Opera some attributes, mapped as element properties). E.g. $(someInput).store(name, foo).store(type, bar); Better will be some separate container to store values inside, but this leads to back-porting element storage back to Prototype 1.6: // storage container nested in each element if(typeof Element.store == 'undefined'){ Element.addMethods({ store: function(e, k, v){ e._prototypeStorage = e._prototypeStorage || {}; e._prototypeStorage[k] = v; }, retrieve: function(e, k){ e._prototypeStorage = e._prototypeStorage || {}; return (e._prototypeStorage[k]); } }); } // storage container in closure (function(){ if(typeof Element.store == 'undefined'){ var storage = {}; function uid(e) { // TODO return some uid for element like in Prototype 1.7 } Element.addMethods({ store: function(e, k, v){ var id = uid(e); storage[id] = storage[id] || {}; storage[id][k] = v; }, retrieve: function(e, k){ var id = uid(e); storage[id] = storage[id] || {}; return (storage[id][k]); } }); } })(); -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/TH_WyncdHx0J. 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] Any reason why this might not work?
Internet explorer doesn't like object definitions without quotes around the names Hmm... example from Prototype 1.7 sources: Object.extend(methods, { getStorage: getStorage, store: store, retrieve: retrieve }); Quotes are required for properties matching reserved words (class etc.) or containing characters forbidden in identifiers (spaces, colons etc.), and browser name/version doesn't matter. -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/VRlsqLkyyzMJ. 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: Event observer not working in version prototype 1.7 but works fine in 1.5
Form.YooEventObserver = Class.create({Abstract.EventObserver, { minQueryLength: 3, getValue: function() { // return YAHOO.util.Connect.setForm(this.element); //return Form.serialize(this.element); }, // ... other methods }); -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/DN9d5jY2VpwJ. 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] Enumerate all classes
Hello! I need some more ideas how to enumerate all classes - find at runtime (in browser) all classes created with Class.create(). My initial approach: function enumerateClasses() { for (var p in window) { var c = window[p]; if (Object.isFunction(c) !Object.isUndefined(c.superclass) !Object.isUndefined(c.subclasses) c.prototype c.prototype.initialize) { console.log(p, c); } } } but this works only for classes like Hash and Template, and doesn't work for classes in a namespace like Ajax.Request. -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/041-T0uN6m0J. 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: equal height problem with nested divs in product grid
// select all div.item element within the current div.product-grid element var columns = r.select('div.item'); // make each div.item element as high as the current div.product-grid element columns.invoke('setStyle', {height: rowHeight + 'px'}); Try to set minHeight to desired value as equalHeights plugin for jQuery does. -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/pd7o9WcpZ1QJ. 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: PrototypeJS memory leak when using Class.create()
Theoretically it is needed when you want to explore hierarchy of classes, practically it was used only once in jPlex http://code.google.com/p/jplex/ -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/cWhaJB0oSucJ. 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] Re: run function with AJAX.Updater
Here is the page being called . . . script type=text/javascript sayHi = function(){ alert ('Hi'); }; /script input type=button value=Click Me onclick=sayHi()/ My problem is that if I replace *alert* with *document.write* then the page gets replaced with a new page. I thought the idea behind AJAX.Updater was to replace the DIV with new data, or in this case the result of the function. *So in my newbie logic the DIV should get replaced with the text generated by document.write.? * You cannot use document.write() after your initial page is finished loading (in other words you cannot use document.write in fragments requested via AJAX). You should use DOM manipulation methods like Element#insert() or Element#update(). -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/wZ5b8XOL4cwJ. 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: prototyp.js is receiving a null value
First fix missing *.js and *.gif files and incorrect markup. -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/A4of2UOIkWIJ. 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 with element.setattribute
Hello! You can do it in many ways: 1. Create an empty placeholder for hidden input (div at the bottom of your form). You can then easily replace content of this div and don't care about multiple inputs: addElement: function () { $(totalsContainer).update('input type=hidden id=finaltons value=' + totaltotal + '/input'); } 2. Create this hidden input in your form on server (in other words, input should always exist), then just replace its value: addElement: function () { $(finaltons).setValue(totaltotal); } 3. Combine both ways: check for existence of element (if not exists - then create it), then update its value: addElement: function () { var input = $(finaltons); if (!input) { input = new Element({type: hidden, id: finaltons}); $(formtons).insert(input); } input.setValue(totaltotal); } -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/kcV7l5b_sIIJ. 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.serialize for multiple selects broken in 1.7.0.0?
When using v1.6.0.2 and serializing a form with a multiple select list, I would get its value like myselect[]=foomyselect[]=bar. In v1.7.0.0 it's posting the value like myselect[]=foo,bar. This does not work properly on the backend (Rails). Is this expected behavior? Yes, Prototype 1.7 serializes select-multiple in this way (comma-separated), because this is how String.interpret() and encodeURIComponent() work for arrays of values retrieved from select element, although browsers natively serialize exactly as Prototype 1.6 - each value separately. Cry aloud - maybe developer will revert this back to more browser-compatible way. -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/LY_KCcxp_wcJ. 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: Correct use Event.on form submit
That is not conveniently tied to any event handler, so what is the convenient means of disconnecting it, as in __eventHandler.stop(); ? Sorry, I've not completely understood this phrase. I'll repeat myself: // start observer - bindAsEventListener isn't needed this.__z__handleSubmit = this.form.on('submit', this.__handleSubmit.bind(this)); // stop observer this.__z__handleSubmit.stop(); -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/aybuwVFGdvUJ. 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: Correct use Event.on form submit
Is this correct? this.__z__handleSubmit = this.form.on('submit', this.__handleSubmit. bindAsEventListener(this)); Is the bindAsEventListener necessary? I want to get back the Event Handler so I can later destroy it with: this.__z__handleSubmit.stop(); this.__handleSubmit.bind(this) should be enough http://proto-scripty.wikidot.com/prototype:tip-you-probably-don-t-need-bindaseventlistener -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/EbOYyQsKdy8J. 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: Drag'n drop and strange z-index issue
In short words, B element after dragging becomes z-index: 0 instead of original z-index: auto and establishes new local stacking context. The logic in startDrag()/finishDrag() methods should be fixed to properly restore initial z-index for z-index: auto (now it defaults to 0). -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/c-orftaAN-cJ. 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: Drag'n drop and strange z-index issue
How can it be fixed? in startDrag() (dragdrop.js): if (this.options.zindex) { // FIXED z-index: auto - z-index: 0 // was this.originalZ = parseInt(Element.getStyle(this.element, 'z-index') || 0, 10); this.originalZ = Element.getStyle(this.element, 'z-index'); this.originalZ = this.originalZ ? parseInt(this.originalZ, 10) : auto; this.element.style.zIndex = this.options.zindex; } -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/WmpE-9eb4r4J. 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] The callee (server [not server application]) is not available and disappeared
Maybe try Object.toJSON() and then String#evalJSON()? You'll be transferring to main context single string. -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/w2NzLzz1DeIJ. 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: Prototype v1.6.0.2 - Changing $ Dollar Currency to £ Sterling
It is very doubtful to me that someone was able to write OOP code (e.g. return this.sub_total() + this.tax()), CSS selectors, properly use inject() in calculations but wasn't able to replace character in string literals. -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/FxxjTjoR4bAJ. 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: Prototype v1.6.0.2 - Changing $ Dollar Currency to £ Sterling
Try to use unicode \u00a3 instead of single character £ -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/-RT66iGyuVEJ. 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: a few widgets
Hi! Do you use any source formatting tools? Formatted source will be easier to develop/support. -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/2MFEGz44Sh8J. 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: a few widgets
I created a few widgets for the prototype and script.aculo.us. See here https://github.com/fntzr/astra_z In your Get started instruction script goes before link - some people probably will literally copy this sample. Would be more correct to show that styles should be included before scripts (more browsers will be able to parallelize download). Also in your code parseFloat(Prototype.Version) will work only for major version numbers like 1.6, 1.7. What about minor versions like 1.7.0.1? -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/K9SUb7XScxYJ. 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: Function#methodize
Where is the second argument in multiplier()? I'll try to explain in example: function multiplier(obj, times) { times = isNaN(times) ? 2 : times; if (typeof obj.value != 'undefined') { return obj.value * times; } else { alert(obj + ': does not have a value property!'); } } obj_a.multiply = multiplier.methodize(); multiplier(obj_a, 2); // same as obj_a.multiply(2); obj_a.multiply(2); // same as multiplier(obj_a, 2); -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/84q1tp9qt6YJ. 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: The callee (server [not server application]) is not available and disappeared
IMHO this happens because you make connections between objects of different windows (opener and popup): arrXXX in popup window points to objects from opener, opener element attributes point to strings/functions belonging to particular popup window (which is really closed). Array in opener window != Array in each popup window, and object references between different windows are OK only while both windows exist. Try to return single result from popup and make everything in code of opener window. -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/YGK3VG3pOgkJ. 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] Re: Ajax.Request fails, while vanilla XHR works fine
It seems to be an issue on their server (BaseHTTP/0.3 Python/2.7.1+ according to FireBug). I'll file a bug and see what happens. XHR without setRequestHeader sends usual 'GET' request: Request URL: http://zip.elevenbasetwo.com/?zip=a Request Method: GET Status Code: 404 Not Found *Request Headers* Accept: */* Accept-Charset: windows-1251,utf-8;q=0.7,*;q=0.3 Accept-Encoding: gzip,deflate,sdch Accept-Language: ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4 Connection: keep-alive Host: zip.elevenbasetwo.com Origin: https://groups.google.com User-Agent: Mozilla/5.0 (X11; Linux i686) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.142 Safari/535.19 *Response Headers* Access-Control-Allow-Origin: * Connection: close Content-Type: text/plain Date: Fri, 13 Apr 2012 09:16:07 GMT Server: BaseHTTP/0.3 Python/2.7.1+ XHR with any setRequestHeader sends first 'OPTIONS' request (so-called preflighthttps://developer.mozilla.org/En/HTTP_Access_Control#Preflighted_requests ): Request URL: http://zip.elevenbasetwo.com/?zip=a Request Method: OPTIONS Status Code: 501 Not Implemented *Request Headers* Accept: */* Accept-Charset: windows-1251,utf-8;q=0.7,*;q=0.3 Accept-Encoding: gzip,deflate,sdch Accept-Language: ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4 Access-Control-Request-Headers: x-xxx, origin Access-Control-Request-Method: GET Connection: keep-alive Host: zip.elevenbasetwo.com Origin: https://groups.google.com User-Agent: Mozilla/5.0 (X11; Linux i686) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.142 Safari/535.19 *Response Headers* Connection: close Content-Type: text/html Date: Fri, 13 Apr 2012 09:20:32 GMT Server: BaseHTTP/0.3 Python/2.7.1+ It seems that some browsers (like Firefox and WebKit-based) may send CORS requests without preflight for text/plain resources when no additional headers are set. In other cases they send preflighted 'OPTIONS' request, which is not implemented in this 'BaseHTTP/0.3 Python/2.7.1+' server. -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/6xIQrvgSIqsJ. 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: qUnit equivalent for Prototype?
Is qunit not working when Prototype is on page? AFAIK it isn't depending on any framework http://docs.jquery.com/Qunit To use QUnit, you have to include its qunit.js http://code.jquery.com/qunit/qunit-git.js and qunit.css http://code.jquery.com/qunit/qunit-git.css files and provide a basic HTML structure for displaying the test results -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/o7rXDAWHsBYJ. 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.Request fails, while vanilla XHR works fine
Same browser (Safari.latest) on the same computer, the Prototype method gives me a security failure (Origin [my host] is not allowed by Access-Control-Allow-Origin.) while the long-hand XHR (inside a Prototype observer) just works without any comment: Two differences I can notice: 1. Prototype sets request headers 'X-Requested-With', 'X-Prototype-Version', 'Accept' with setRequestHeaders() - you don't 2. Prototype calls send with null argument this.transport.send(null); // Prototype vs client.send(); // your raw XHR If you can test your code with these two changes - will it raise error? $('zip').observe('change', function(evt) { var client = new XMLHttpRequest(); client.open(GET, http://zip.elevenbasetwo.com?zip=http://zip.elevenbasetwo.com/?zip= + $F(this), true); client.onreadystatechange = function() { if(client.readyState == 4) { var data = client.responseText.evalJSON(); $('city').setValue(data.city); $('state').setValue(data.state); }; }; *client.setRequestHeader('X-Requested-With', 'XMLHttpRequest'); client.setRequestHeader('X-Prototype-Version', '1.7'); * *client.setRequestHeader('Accept', 'text/javascript, text/html, application/xml, text/xml, */*');* client.send(*null*); }); -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/6dUgLVmeJQkJ. 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.Request fails, while vanilla XHR works fine
Is header 'Access-Control-Allow-Origin' present in responses for both examples? -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/99KTZ-IvHG8J. 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.Updater output garbled only on iPhone first load
This turned out to be a page loading/timing issue. The original poster resolved it by switching from document.observe('dom:loaded… to Event.observe(window,'load'… Does dom:loaded not trigger correctly on the iPhone or something? It sounds possible. Prototype now has 4 ways to detect that DOM is loaded: 1. 'DOMContentLoaded' event on document - for all browsers with standard document.addEventListener() method 2. 'onreadystatechange' event on document - for the rest, standards-incompatible, without document.addEventListener() (IE8-) 3. document.documentElement.doScroll('left') - the same browsers as previous 4. 'load' event on window - universal fallback Some other implementations (e.g. Ext Corehttp://docs.sencha.com/core/source/EventManager.html- see initDocReady()) are explicitly checking document.readyStatein WebKit-family. -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/mBPou4iOu8UJ. 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.Updater output garbled only on iPhone first load
Is the response header `Content-Type` always properly set? (e.g. Content-Type: text/html;charset=UTF-8) -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/UvAHoBag7zsJ. 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.Updater output garbled only on iPhone first load
When a user loads my page for the first time on an iPhone, the two portions of the page generated by an Ajax.Updater call are garbled - they look as if a binary file were injected into the page or the character map was scrambled. If the user then reloads the page, or uses the page's tabs to navigate around via Ajax.Updater requests, everything is then fine. It's only the very first time the page is I would try to capture requests/responses in first and second time and compare if they are same (in other words, assure problem isn't somewhere on the server side). -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/F1jzzP8rQ7cJ. 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: Object doesn't support property or method 'observe'
I am having a problem with a plug in I am using. ContentFlow. It works fine in all browsers except IE8 and 7, Are you talking about jQuery plugin ContentFlow? Then try to use jQuery.noconflict() http://api.jquery.com/jQuery.noConflict/ -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/BgwqLLqsDbMJ. 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: IE display problems using protoype.js
This is on the prototype.js file (version 1.5.0) all other browsers are fine Do you have tried to update to newest Prototype and Scriptaculous versions? Also you maybe forgot to use $() on element before invoking methods from Prototype and Scripty - this is common problem in IE. -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/7X2EPzUU78UJ. 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: Remove certain text from the title attribute
I want to delete the a href=http://www.google.com; and the / a If I understood, you need to read about string operations and regular expressions in JavaScript, e.g. from https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/replace -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/zMccAzqmZ0MJ. 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: Using Scriptaculous for slide down effect in some dynamic JS:
new Effect.SlideDown(expandEle, {duration: 3}); , But to no avail What exactly is not working? You can make example at jsbin.com - we can find some solution faster. -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/AK8fW97j_IcJ. 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: IE invalid calling object addMethods
Thanks for the tip Victor. I do try to decode with IE, and I am using IETester, but my primary box is IE9, so it is a bit tricky. I suppose if I didn't have all your help I'd be forced to undust and old machine! I use Vista + IE8 + latest IE9 platform preview + IETester (with IE6...IE8 and IE9 platform preview) -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/Uee2Vf8zn9EJ. 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] Confused on setValue encoding
Is this supported across all the browsers? I'm still hoping to get some input on the setValue method and the encoding that takes place behind the sheets. I'd like to use this method and don't understand the behavior. setValue() for hidden input just assigns element.value = value; without any encoding. Values are encoded before form submission. -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/G0KdvOFKupYJ. 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: IE invalid calling object addMethods
You shouldn't pass non-functions to Element.addMethods(SELECT, {}). You have fields like __ddObject in your _selectOptions - they are causing error while IE tries to methodize() them. -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/eeQdd5VNVTkJ. 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: IE invalid calling object addMethods
NOTE: doesn't work in IE9, but seems to work in IE7, and IE8. This example doesn't work in FF 10 also. -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/bv154TqHGekJ. 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: IE invalid calling object addMethods
Whoops, I was wrong :) The problem is in _selectOptions.size() - there is already property named `size` in HTMLSelectElement (at least both in IE and FF) and in cannot be overwritten properly. -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/G99YYMoAoF8J. 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.Autocompleter doesnt work on firefox
Using Prototype 1.7, Scriptaculous 1.9, Ajaxtags 1.5.7-SNAPSHOT - all autocompleters are working fine in any imaginable browser, including Firefox 3.6 - 10.0. -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/5Tjz0r1LvKAJ. 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: Order of Event Handler
Hello! I just thought there would be a common pattern to this problem as i almost can't believe that we're the first ones that need to 'pause' event handlers without removing them. Yes, this is a common problem without easy solution. As T.J. Crowder said, better try to find another solution. Regarding the stop() i think we got some NS problems as prototype and jQuery is mixed on many different spots and the whole namespacing isn't consistent. There is a special no conflict mode in jQuery: docshttp://docs.jquery.com/Using_jQuery_with_Other_Libraries API http://api.jquery.com/jQuery.noConflict/. -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/wQpy_YAkokcJ. 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] Re: no compatibility google add and my class (prototype)
1. You cannot use the name `Error` - there is already global object named Errorhttps://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error. Try with another name. 2. You can shorten your code a bit: var User = Class.create({ // methods }); -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/Xth81vpsHpwJ. 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: cant quite figure out how to process multiple forms to one processing script.
1. Element identifiers should be unique, in other words, if any form or field has identifier - it should not repeat in other forms. 2. When submitting form via script, it has option for the name of desired submit button, e.g. for form with two submit buttons: form id=formId2 input type=submit name=submitButtonName1 value=1 / input type=submit name=submitButtonName2 value=2 / /form script $(formId2).serialize({submit:submitButtonName2}) will give serialized result as if the second button was pressed. 3. Also you can have single form on page, and many buttons which just trigger form submission explicitly, e.g. button onclick=sendForm('submitButtonName3');Submit 3/button -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/YjJQCwFBI5UJ. 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: no compatibility google add and my class (prototype)
What is var Errror; Error = { }; (note the difference between *Errror* and *Error*) -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/EVbMZKNLXmcJ. 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: patches to autocompleter
On browsers other than FF, clicking on the scroll bar would cause a loss of focus, which would hide the results window. I've fixed this too ;) -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/Iv0vmTjs9oMJ. 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. controls.js Description: application/javascript
[Proto-Scripty] Re: patches to autocompleter
Hello! One of the big issues I rand into was the way different browsers handle scrolling the results window, and how the window controls is treated as a loss of focus in some browsers. Do you can describe this with more words? I cannot remember such problem, at least as the big issue. I implemented the code Craig posted in this thread from 2/2009: http://groups.google.com/group/prototype-scriptaculous/browse_thread/thread/ee29de995b4e000d ... but that introduced some other aberrant behavior, such as the results box not going away after selection. selection by mouse click or key press? Would love to see how other people have solved some of these issues. 1. Replaced some of deprecated Position.xxx methods 2. Wrapped update.clonePosition in try-catch - source of frequent IE errors with Prototype 1.7 3. Replaced bindAsEventListener() with bind() 4. Modified keyboard observers: keypress for ENTER/ESC in IE, keydown for ESC in WebKit and keydown for the rest of keys 5. iframe shim only for IE6, not for IE7+ 6. Proper z-index for iframe 7. Fixed bug in getEntry() for empty this.update 8. Added scrollIntoView() in updateChoices() 9. Fixed bug with invalid cached tokenBounds in getTokenBounds() -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/u-zfL2er4bAJ. 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: Select range of array items
automagically :) -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/je-nzPkGXDEJ. 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: patches to autocompleter
Hello! ...everyone who was using autocompleter in production has a couple of patches :( let's start to share? -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/UWK-6804m_AJ. 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: I need to get what class is creating in initialize method
this.constructor -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/PyRvfGebg24J. 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: I need to get what class is creating in initialize method
As part of scriptaculous' unit test: testAnonSubclass: function() { var C1 = Class.create({ method1: function() { return C1; } }), C2 = Class.create(C1, { method2: function() { return C2; }, createSubclass: function() { return Class.create(this.constructor, { method3: function() { return subclass; } }); } }); var o2 = new C2(), C3 = o2.createSubclass(), o3 = new C3(); this.assertInstanceOf(C1, o2, o2 instanceOf C1); this.assertInstanceOf(C2, o2, o2 instanceOf C2); this.assertInstanceOf(C1, o3, o3 instanceOf C1); this.assertInstanceOf(C2, o3, o3 instanceOf C2); this.assert(Object.isFunction(o3.method1), o3.method1); this.assert(Object.isFunction(o3.method2), o3.method2); this.assert(Object.isFunction(o3.method3), o3.method3); } -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/xhtjEXT7B7oJ. 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: Event.on bound to element only
Don't worry - use Function#bind(): Event.on($(id), click, function (event, element) { // this === element === $(id) }); var object = {}; Event.on($(id), click, function (event, element) { // this === object // element === $(id) }.bind(object)); -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/bDK1W3iLsPcJ. 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: Where is ver. 2.0 is coming?
1. Declaration with value assignment 2. Declare loop variables and cache length inside of for() - this can increase performance http://jsperf.com/caching-array-length/67 - caching length outside of for() is slower in almost all results (all Firefox and Safari, IE9 and some Chrome results) 3. Unnecessary return values Example can be rewritten as: SelectParser.select_to_array = function(select) { var parser = new SelectParser(), _ref = select.childNodes; for (var _i = 0, _len = _ref.length; _i _len; _i++) { parser.add_node(_ref[_i]); } return parser.parsed; }; yet another real example: CoffeeScript (with use of Prototype): class Chosen extends AbstractChosen ... no_results_clear: - nr = null nr.remove() while nr = @search_results.down(.no-results) CoffeeScript translated to JavaScript: Chosen.prototype.no_results_clear = function() { var nr, _results; nr = null; _results = []; while (nr = this.search_results.down(.no-results)) { _results.push(nr.remove()); } return _results; }; and pure JavaScript: var Chosen = Class.create(AbstractChosen, { ... no_results_clear: function() { this.search_results.select(.no-results).invoke(remove); }, ... }); -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/FBTDmhOjgWoJ. 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] Re: Where is ver. 2.0 is coming?
Take a look at RightJS http://rightjs.org/ - it is very close to Prototype+Scripty, and (still) has very operative support at Google groupshttps://groups.google.com/forum/?hl=rupli=1#%21forum/rightjs -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/_PGxK7wwpb8J. 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] Re: Where is ver. 2.0 is coming?
Also CoffeeScript sometimes generates very ugly code. Example: CoffeeScript: SelectParser.select_to_array = (select) - parser = new SelectParser() parser.add_node( child ) for child in select.childNodes parser.parsed Generated JavaScript: SelectParser.select_to_array = function(select) { var child, parser, _i, _len, _ref; parser = new SelectParser(); _ref = select.childNodes; for (_i = 0, _len = _ref.length; _i _len; _i++) { child = _ref[_i]; parser.add_node(child); } return parser.parsed; }; -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/deEMCdQYgz0J. 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] Is someone working on Scripty2?
Is Scripty2 still developed? Or it is as alive (half-dead, actually) as Prototype? I've posted tickets on both projects in Lighthouseapp but no response... -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/XDjF2Tiv9uUJ. 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: BGEffects: Animate your background images!
Cool -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/mOo4ab0uQ-UJ. 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: decisions decisions -- json - ajax - html and dom kungfu
So you plan to receive JSON from server, then convert it to HTML and insert into page? HTML fragments are much easier in writing/validating/processing. -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/DAxhHxaBOFkJ. 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: Prototype AJAX call IE6 - not working
[offtop] Jessica, do you know about much shorter synonym of document.getElementById()? [/offtop] -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/QhSgSlhmf0sJ. 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: method ON vs OBSERVE
Here is the code (borrowed from some project) I'm using for bubbling focus and blur events: /** * Bubbling focus:in and focus:out events. * Usage: * document.on(focus:in, selector, focusHandler); // on focus * document.on(focus:out, selector, blurHandler); // on blur */ (function() { // custom stripped version of Event.findElement function element(event) { //var node = Event.extend(event).target; var node = event.target || event.srcElement; return Element.extend(node.nodeType == Node.TEXT_NODE ? node.parentNode : node); } // custom optimized version of event firing var fire = document.createEvent ? (function fireDOM(element, eventName) { if (element == document !element.dispatchEvent) { element = document.documentElement; } var event = document.createEvent('HTMLEvents'); event.initEvent('dataavailable', true, true); event.eventName = eventName; event.memo = {}; element.dispatchEvent(event); }) : (function fireIE(element, eventName) { var event = document.createEventObject(); event.eventType = 'ondataavailable'; event.eventName = eventName; event.memo = {}; element.fireEvent(event.eventType, event); }); function focusInHandler(event) { //Event.findElement(event).fire(focus:in); fire(element(event), focus:in); } function focusOutHandler(event) { //Event.findElement(event).fire(focus:out); fire(element(event), focus:out); } if (document.addEventListener) { document.addEventListener(focus, focusInHandler, true); document.addEventListener(blur, focusOutHandler, true); } else { document.observe(focusin, focusInHandler); document.observe(focusout, focusOutHandler); } })(); -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/CKUmXBHB7ZMJ. 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: What performs better? 30 observers on specific elements or 1 Observer observing every click?
you suggest adding one special class or attribute to all clickable elements, so that in my observer I can check for that class/attribute in the very first line minimizing the amount of if statements yes PLUS you suggest to delegate the triggered event to the [clicked] element to module/class/etc., which is responsible for processing events on elements of this type so that I don't have one big eventhandler and can keep a good software structure? exactly Also you can develop new modules without changing main event handler, and add/remove elements in document dynamically. -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/4P2bGPMHmugJ. 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: Done but with errors on when page loads.
You are trying to invoke methods on not extended element in IE8, right? E.g. instead of $(element).fire(some:thing) you are using element.fire(some:thing). -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/r1R5tMbY3zQJ. 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: Rant - IE7 Sucks
I think there is some problem in your code, because code similar to your description exists e.g. in Scriptaculous: Effect.Base = Class.create({ position: null, start: function(options) { ... }, ... }); Effect.Parallel = Class.create(Effect.Base, { initialize: function(effects) { this.effects = effects || []; this.start(arguments[1]); }, ... }); and we definitely know it works in IE7. -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/cXcXgCyEXswJ. 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] Re: Form.Serialize returning nada
Problem is somehow related to XHTML and IE9. If you occasionally serve document as xhtml+xml, document should pass validation to work in browser. I've noticed form name=... in your example, but *name* attribute is obsolete for *form* tag in XHTML1.0, or maybe you have *nbsp;* somewhere in your markup. You can invoke $('myform').serialize() in debugger console at any time - this may reveal some clues. -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/Kp0Uc3wWl2cJ. 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] Re: Form.Serialize returning nada
I used the form name attribute as a way of knowing which AJAX module to call on behalf of that form. That allows my dofill() to serve many forms. This can be made via CSS classes, not name attributes. I've seen very few pages of any type that validates 100% 1-2 errors/warnings does not matter. In your example EVERY tag is invalid for XHTML document. and browsers accomodate this and that's one reason why there are soo many differences in how browsers act on a given page. When document is [almost] valid (possibly with few errors/warnings), then there are actually very small differences between browsers. we were able to narrow it down to a problem we could duplicate and once duplicated it was easy to find (but harder to fix). Show minimal example, please. It is very interesting. Like I said though, the key is not just in changing the doctype but you also have to force compatibility mode. This, to me, is a greater issue as it indicates a bug somewhere in either IE9 or prototype... but regardless of where it is, it causes prototype to fail. Have you tried the latest Prototype 1.7? -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/3kG2evEY2J0J. 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: Prototype's Event system need to be fixed
I've seen on github that event system is reworked, but this is still work in progress. You can download bleeding-edge version and test for yourself. -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/9JuLj3h4z-IJ. 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: An idea from jQuery which might be borrowed to Prototype
Jon Dow == John Doe? ;) -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/2jp7KMInIvAJ. 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: What performs better? 30 observers on specific elements or 1 Observer observing every click?
You can use some dispatching mechanism, e.g.: 1. HTML: all your clickable elements have special class or attribute like a class=widget chooserchooser/a or a data-widget-type=chooserchooser/a 2. JS: your single observer finds somehow your desired element and dispatches event accordingly to the special class of element (chooser in this sample) var widgetType = element.readAttribute(data-widget-type) || ; if (widgetType Widgets[widgetType]) { Widgets[widgetType].handleEvent(element); } -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/tekiC8jpxlMJ. 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: I'm stuck: Can't open window in combination with jQuery libs
After jQuery.noConflict() all the functionality of jQuery is still accessible - just replace $ with jQuery everywhere you need to use jQuery. Look at documentation http://api.jquery.com/jQuery.noConflict/. -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/SVWl5ZtFoiYJ. 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: Acceptable nicks(s) For Prototype.js
For me it is just Prototype (without dot-j-s) -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/mhngjWsE3-sJ. 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: about IExplorer failure
GET requests are idempotenthttp://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html: the side-effects of N 0 identical requests is the same as for a single request, so from the browser and proxy point of view repeating GET requests should return the same result, and they can instantly use cached previous result. -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/1xe1xWjBNm0J. 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.