Re: [Proto-Scripty] IE Sortable issue
For example, here is a Self-contained Non-failing Test: http://scripty.walterdavisstudio.com/drag-sort.html Please try this out in your failing browsers, and let me know if you are able to drag the first or last element in the list to a new position. The sort order will update below the list each time you re- order the list. Walter On May 2, 2011, at 5:06 PM, Walter Davis wrote: This is where the Self Contained Failing Test is useful. Try to make a static HTML version of your assembled page at the point where it fails. Use Firebug's inspector to see the rendered HTML including any client-side modifications and use copy and paste liberally to construct this Frankenpage in a text editor. Then confirm that it still fails for you, and if it does, post it somewhere where another pair of eyes can look at it. (Post a link here.) Walter On May 2, 2011, at 2:55 PM, Audrey Bowman wrote: I have been going through the page element by element to make sure it all validates (it includes different files based on forms being submitted). Still going through some of it, but everything so far has been fixed to validate. I rigged it so that it was only processing what had validated, and I am still unable to drag any elements down. Still works going up, though. On Mon, May 2, 2011 at 1:49 PM, Walter Davis wa...@wdstudio.com wrote: Make sure that your page is valid before anything else. If a script works in one browser/version and not others, that's a strong hint that the HTML is being interpreted in more than one manner. Valid HTML or XHTML is unambiguous. Walter On May 2, 2011, at 1:43 PM, Audrey Bowman wrote: Hi Walter, I've got it to work in IE8 now - closing out a form and starting a new one did it. And it sort of works in IE 7 now. I can drag objects up, but cannot drag elements below any of the lower elements. I'm sorting database results, identified by DIVS. Basically it's a multi-line formatted result set that I want users to be able to re- sort as necessary. Thanks for your help, Audrey On Mon, May 2, 2011 at 1:28 PM, Walter Davis wa...@wdstudio.com wrote: What is the HTML structure that you are sorting? Is it an UL with sortable LIs, or another structure? Walter On May 2, 2011, at 11:11 AM, Audrey wrote: I have a problem with the sortable function in IE (I've tested both 7 8). It does not occur in Firefox or Chrome. What is happening is that if a user tries to change the first element of my sortable list, it does the following: In IE7, it will not allow the user to change the position of the top element. It is draggable, but will not move the other elements. It simply adds a blank space at the top of the element list. Dragging elements other than the first works just fine. -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous@googlegroups.com . To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en . -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous@googlegroups.com . To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en . -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous@googlegroups.com . To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en . -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous@googlegroups.com . To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en . -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous@googlegroups.com . To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en . -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous@googlegroups.com. To
[Proto-Scripty] Ajax Call waits callback forever
Hello there ! It's been a (little) year since I've started using prototype.js. It's really great and it simplifies my dev life a lot ! I use it to develop a chat application (www.kraml.fr) and I use the PeriodicalUpdater to retrieve the new events. But, somehow, it happens that the call never retrieves the answer from the server, even if in Apache log I see that the page has been called by that user. For now, I try to escape the problem by putting a timeout on the call (from a script found on the web), but to avoid loosing information, I have to send a receipt, which is slowing my app, and is not really reliable as it can pend as the periodical call. I don't think it comes from the prototype library, but I thought people could have had an idea or even had the same problem. I'm looking actually at the PHP sessions, but am not really sure it has something to do with it. Thanks in advance, Regards, Julien. (tyrsensei on www.kraml.fr if you want to test on live) -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.
[Proto-Scripty] Re: forms trouble
Ok, so now I'm ignoring the buttons and just focusing on the form elements: There is now only one form - When submitted in search context, it displays a number of new form elements which are subsequently processed on re-submit. The problem is that the new form elements do not appear until the 'search' form has been submitted and prior to this, the JS code is complaining that the new elements are null. I've tried testing for these values being null or undefined without success. I'm really stuck here! How can I get the code to ignore undefined/null elements and process them if they are otherwise valid? Anyone? I'd really appreciate the help. Thanks Dave -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.
Re: [Proto-Scripty] IE Sortable issue
Thanks for all the assistance, Walter. I haven't had the chance yet to try the static page (Sometimes I feel like a chicken with my head cut off!) But I will post results when I am able in the next day or so. I am sure it's my code, as I seem to always feel like I'm drowning when it comes to troubleshooting - especially javascript. Thanks again! Audrey On Tue, May 3, 2011 at 10:52 AM, Walter Davis wa...@wdstudio.com wrote: For example, here is a Self-contained Non-failing Test: http://scripty.walterdavisstudio.com/drag-sort.html Please try this out in your failing browsers, and let me know if you are able to drag the first or last element in the list to a new position. The sort order will update below the list each time you re-order the list. Walter On May 2, 2011, at 5:06 PM, Walter Davis wrote: This is where the Self Contained Failing Test is useful. Try to make a static HTML version of your assembled page at the point where it fails. Use Firebug's inspector to see the rendered HTML including any client-side modifications and use copy and paste liberally to construct this Frankenpage in a text editor. Then confirm that it still fails for you, and if it does, post it somewhere where another pair of eyes can look at it. (Post a link here.) Walter On May 2, 2011, at 2:55 PM, Audrey Bowman wrote: I have been going through the page element by element to make sure it all validates (it includes different files based on forms being submitted). Still going through some of it, but everything so far has been fixed to validate. I rigged it so that it was only processing what had validated, and I am still unable to drag any elements down. Still works going up, though. On Mon, May 2, 2011 at 1:49 PM, Walter Davis wa...@wdstudio.com wrote: Make sure that your page is valid before anything else. If a script works in one browser/version and not others, that's a strong hint that the HTML is being interpreted in more than one manner. Valid HTML or XHTML is unambiguous. Walter On May 2, 2011, at 1:43 PM, Audrey Bowman wrote: Hi Walter, I've got it to work in IE8 now - closing out a form and starting a new one did it. And it sort of works in IE 7 now. I can drag objects up, but cannot drag elements below any of the lower elements. I'm sorting database results, identified by DIVS. Basically it's a multi-line formatted result set that I want users to be able to re-sort as necessary. Thanks for your help, Audrey On Mon, May 2, 2011 at 1:28 PM, Walter Davis wa...@wdstudio.com wrote: What is the HTML structure that you are sorting? Is it an UL with sortable LIs, or another structure? Walter On May 2, 2011, at 11:11 AM, Audrey wrote: I have a problem with the sortable function in IE (I've tested both 7 8). It does not occur in Firefox or Chrome. What is happening is that if a user tries to change the first element of my sortable list, it does the following: In IE7, it will not allow the user to change the position of the top element. It is draggable, but will not move the other elements. It simply adds a blank space at the top of the element list. Dragging elements other than the first works just fine. -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en. -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en. -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en. -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en. -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to