[Proto-Scripty] several requests - results come back out of order

2008-09-10 Thread doug
I am making a web page with autocomplete on search terms. Of course the responses do not come back in the order sent. How can I solve this problem? This is how I was thinking of doing it: Somehow mark all of the request objects with the order the request was sent out. If a request comes

[Proto-Scripty] Scriptaculous - Sound.play problem

2008-10-06 Thread Doug
, Doug --~--~-~--~~~---~--~~ 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 [EMAIL

[Proto-Scripty] Re: Scriptaculous - Sound.play problem

2008-10-10 Thread Doug
Yes, I've tried audio/wav and audio/x-wav. Neither work. I can see that it actually downloads the file, but it never gets played. Thanks for the help. Doug --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[Proto-Scripty] Re: Scriptaculous - Sound.play problem

2008-10-12 Thread Doug
Good suggestion. However, I have verified that the correct mime type is being received by the browser using Firefox. Thanks, Doug --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group

[Proto-Scripty] Javascript scope

2009-02-10 Thread doug
I have read about Javascript and scope and I still don't really understand it completely, particularly when it comes to Ajax.Updater. I don't really understand, for example why, if there is a variable window.myvar, some Javascript code would not be able to access it, and instead it would be

[Proto-Scripty] Re: Javascript scope

2009-02-11 Thread doug
Thanks for the advice every one. T. J. Crowder, I wonder if a div with style overflow:auto and a scrollbar on the side could act similar to a frame. I figured what makes things go wrong, but still not sure why. I bring up a lightbox similar to the one here:

[Proto-Scripty] tricky Ajax.Updater and document.write problem

2009-06-04 Thread doug
I was having trouble with using Ajax.Updater with evalScripts=true and a javascript block with document.write in it. What I am trying to do is, run some JS, and display the result of that JS inline. However, it seems to only display the results of the document.write, and none of the other

[Proto-Scripty] document.write Ajax.Updater alternative

2009-06-04 Thread doug
I think I'm gonna go with my previous solution. Here's part of the code I have so far. It works with PHP and the smarty framework. it hides email addresses to those not using Javascript (hopefully bots). $text = $address; global $smarty_mailto_span_count; $span_id=

[Proto-Scripty] extjs + prototype + myCalendar

2010-06-23 Thread doug
I am using extjs with prototype. I am using the calendar for extjs located here: http://www.feyasoft.com/myCalendar?tab=download The calendar works just fine without the prototype adapter. When I use it with prototype I get this error in Firefox: [Exception... Component returned failure code:

[Proto-Scripty] Re: extjs + prototype + myCalendar

2010-06-23 Thread doug
On Jun 23, 5:39 pm, doug douglass_da...@earthlink.net wrote: I am using extjs with prototype. I am using the calendar for extjs located here: http://www.feyasoft.com/myCalendar?tab=download The calendar works just fine without the prototype adapter. When I use it with prototype I get

[Proto-Scripty] finding absolute position of an element

2010-12-07 Thread doug
From searching and looking at the API docs, doesn't look like prototype is able to do this, but I thought I would ask anyway in case some one has an idea. I have a generic form generator library and in the forms generated, I need to be able to absolutely position a help div next to an image of

[Proto-Scripty] Re: finding absolute position of an element

2010-12-07 Thread doug
On Dec 7, 10:58 am, Richard Quadling rquadl...@gmail.com wrote: On 7 December 2010 15:34, doug douglass_da...@earthlink.net wrote: From searching and looking at the API docs, doesn't look like prototype is able to do this, but I thought I would ask anyway in case some one has an idea

[Proto-Scripty] Re: finding absolute position of an element

2010-12-08 Thread doug
On Dec 7, 12:12 pm, Richard Quadling rquadl...@gmail.com wrote: On 7 December 2010 16:17, doug douglass_da...@earthlink.net wrote: On Dec 7, 10:58 am, Richard Quadling rquadl...@gmail.com wrote: On 7 December 2010 15:34, doug douglass_da...@earthlink.net wrote: From searching

[Proto-Scripty] Re: finding absolute position of an element / IE7 browser detect?

2010-12-15 Thread doug
On Dec 7, 10:34 am, doug douglass_da...@earthlink.net wrote: From searching and looking at the API docs, doesn't look like prototype is able to do this, but I thought I would ask anyway in case some one has an idea. I have a generic form generator library and in the forms generated, I need

[Proto-Scripty] Re: finding absolute position of an element / IE7 browser detect?

2010-12-16 Thread doug
On Dec 16, 7:37 am, RobG rg...@iinet.net.au wrote: On Dec 16, 12:36 am, doug douglass_da...@earthlink.net wrote: [...] Any ideas on how I can do this without an IE7 browser detect? Let me know if this works in IE 7: URL:http://www.cinsoft.net/position.html -- Rob I can't get

[Proto-Scripty] Should Text Nodes Be Wrapped With An Element?

2009-03-14 Thread Doug Reeder
I'm writing a tree editor; initial HTML looks like this: ul class='treeroot' liimg class='toggle' src=open.gif border=0 id=folder1 alt=HTML ul id=branch1 liimg class='toggle' src=doc.gif alt=Tags, Tags, Tags/li liimg class='toggle'

[Proto-Scripty] Extending a document returned from an Ajax.Request

2009-03-15 Thread Doug Reeder
I'm writing an app which retrieves an RSS feed and processes it. I'd like to use the Prototype methods on it, but first it must be extended. The documentation says: extend extend(element) Extends element with all of the methods contained in Element.Methods and

[Proto-Scripty] multi-page apps -- code organization

2009-03-24 Thread Doug Reeder
I'm writing an app with three or four views, which are implemented as separate HTML pages. Any of the pages might be the first one loaded. Some code needs to be executed regardless of which page loads first, and some code is specific to each of the pages. Currently, I have code strewn

[Proto-Scripty] Importing Tag Soup Using AJAX

2009-04-04 Thread Doug Reeder
I need to import a variety of outlines, marked up in varying ways -- XOXO, HTML, XHTML, etc., without knowing what my app is receiving before it arrives. I use the Ajax object to access the content, and the text of the document always appears in the responseText field of the

[Proto-Scripty] Client-side File Processing

2009-04-13 Thread Doug Reeder
I'd like to allow the user to select a file from his/her filesystem, and process it locally. Due to heightened security (or at least the semblance thereof) the value of a file input element is just the name of the file, not the full path, in many modern browsers, so the file path can't

[Proto-Scripty] Recommended and Disrecommended DOM Methods

2009-04-17 Thread Doug Reeder
Is there a list of which DOM properties and methods are useful when using Prototype, and which are unnecessary, given the availability of Prototype methods? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype

[Proto-Scripty] Preserving Variables Through Page Load

2009-05-17 Thread Doug Reeder
It appears that calling location.assign() deletes all global variables (which is reasonable behavior for a web browser). However, I have a web application written as several pages. One good way to preserve data across page loads is to keep session info on the server. However, I would

[Proto-Scripty] use of $super

2009-06-08 Thread Doug Reeder
I'm having trouble using $super in methods other than initialize. var Reactor = Class.create({ initialize: function (name) { this.name = name; }, work: function (event) { console.log(default + this.name + working + Object.toJSON(event) ); } }); var

[Proto-Scripty] on0 handlers

2009-06-24 Thread Doug Reeder
the onSuccess handler! And if your webserver is overloaded or down, it's good to tell your users to wait a bit before trying again. I've updated the example at http://proto-scripty.wikidot.com/prototype:how-to-bulletproof-ajax-requests Doug Reeder reeder...@osu.edu http://reeder29.livejournal.com