Re: [Rails-spinoffs] Addressing a class, rather than an id?

2005-12-07 Thread sam
t.Class.replace and a few other helpers, I'm sure you'll find your own extensions necessary but its a useful start. hth Sam (-i-am) ___ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

[Rails-spinoffs] Centering one Div within Another

2006-06-09 Thread Sam
Title: Message Is there a prototype.js or script.aculo technique to easily center one div within another?   SamC ___ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

RE: [Rails-spinoffs] Centering one Div within Another

2006-06-09 Thread Sam
- and it needs to work in IE 5.5, which is another level of difficulty.   I've tried writing a _javascript_ to get the height / width of both DIVs.  It isn't easy when either of the DIVs has height:auto;  height will return "null".   Sam    __

RE: [Rails-spinoffs] Centering one Div within Another

2006-06-09 Thread Sam
e interested. Even if it is restricted to the browsers supported by prototype.js (which is quite a few...) Sam ___ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

RE: [Rails-spinoffs] Centering one Div within Another

2006-06-09 Thread Sam
times, but Google doesn't pop up solutions.   Sam  ___ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

[Rails-spinoffs] Scripts.aculo Highlight (and others)

2006-06-10 Thread Sam
t; and restored the final background color to the "in progress" color.   I had to add code to gate requests to Highlight when in progress.  It required a modification to Highlight to callback on completion to open the gate.   Sam ___ Rails-s

[Rails-spinoffs] Tooltips

2006-06-10 Thread Sam
Title: Message   Anyone know of a tooltip extension which uses script.aculo or prototype?  e.g., hover a mouse on an object and pop-up a "help" dialogue?   Sam     ___ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrail

RE: [Rails-spinoffs] Tooltips

2006-06-12 Thread Sam
e that there are different kinds of tooltips.   Thanks,   Sam ___ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

[Rails-spinoffs] IE rendering of Sliders

2006-06-12 Thread Sam
ms to render correctly in IE 6 and 5.5 now.   Sam   ___ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

[Rails-spinoffs] Ajax - preloading images

2006-06-12 Thread Sam
o the DOM for the images to be loaded, or can I forget about that and assume the images will load?   Sam ___ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

RE: [Rails-spinoffs] Array.prototype.push()

2006-06-12 Thread Sam
at internal anomaly in the array was inducing this 5.5 behavior), I copied the array to a new variable, copied it back (overwriting the original). The loop worked fine after that. Sam ___ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org

[Rails-spinoffs] Code comments?

2006-06-12 Thread Sam
se findAll or another equivalency operator to test for the innermost equality and perform the assignment if it's true? Comments appreciated... Sam cssSelectorUpdate2:function(sSelector, sProperty, sValue) { // Update the property value for a specific sSelector

RE: [Rails-spinoffs] Loading CSS for AJAX apps.

2006-06-15 Thread Sam
= 'stylesheet'; csslink.type = 'text/css'; csslink.id = 'loadCSS'; head.appendChild(csslink) }   Nice.  I'd like to hear of any cross-browser support issues, or lack of.  I can see this being useful in my application if it works.  Has anyone tried this in Safari?   Sa

[Rails-spinoffs] Detecting Body Onload

2006-06-16 Thread Sam
ag...     which provides a better test... of course I could always     but I had wanted to keep my HTML markup JS free...  Is there a reliable way to test for body loaded and not include an onload handler in the HTML markup?   Sam ___ Ra

RE: [Rails-spinoffs] Detecting Body Onload

2006-06-16 Thread Sam
Title: Message  >  Or, in script (assuming you're using prototype) >  Event.observe(window, "load", myHandler);  I wasn't aware that window load did the job.  I'll look into it.   Did I read somewhere that window load waits for all images o

RE: [Rails-spinoffs] Detecting Body Onload

2006-06-16 Thread Sam
ls.org/ticket/5414   indicating a patch is supplied for prototype.js for "faster" onLoad handling.   Anyone have an idea when the beta of this copy of prototype.js will be available?   Sam ___ Rails-spinoffs mailing list Rails-spinoffs@lists

RE: [Rails-spinoffs] Detecting Body Onload

2006-06-19 Thread Sam
n. This is the only event-markup on my page(s), and it seems a reasonable trade-off. So... I have a couple of questions: How much better is it to have a class to handle event dispatching Onload rather than hardcoding the event? Second - are there any (significant) unresolved cross-browser issu

[Rails-spinoffs] PNG and Alpha-Transparency

2006-06-19 Thread Sam
handle PNG images.   I don't want to write one if it's been done before.   Sam     ___ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

RE: [Rails-spinoffs] PNG and Alpha-Transparency

2006-06-19 Thread Sam
ocked") yet the page appears fully rendered. I wonder what's up with that, and that makes (3) problems that need answers. I'm digging away, if anyone knows the answer, it could save me some time. Sam ___ Rails-spinoffs mailing lis

RE: [Rails-spinoffs] PNG and Alpha-Transparency

2006-06-19 Thread Sam
Thank you everyone for forwarding the references to so many good PNG solutions. I was able to resolve my issues posted earlier and can now say some of the solutions seem very good. Dean Edward's solution is neat in that it doesn't require wrapping the with spans and the http://webfx.eae.net/dht

RE: [Rails-spinoffs] PNG and Alpha-Transparency

2006-06-19 Thread Sam
Title: Message Ken,Thanks for the snippet.  It was so short even I could understand the code.Here's a snippet to modify the filename on mouseover / mouseout for pngs in IE or whatever browser.  IT checks for the filter style and if present, modifies that attribute, not the src attribute. fun

RE: [Rails-spinoffs] Multiple Ajax.Request or Ajax.Updater

2006-06-20 Thread Sam
method: 'post' }); Looks like there's no parameters. Would method: 'get' perform any better? 3 seconds? Is there a network problem or a large chunk of data? Sam ___ Rails-spinoffs mai

[Rails-spinoffs] Implementing a boolean "switch" in a Class

2006-06-20 Thread Sam
ther method that I've missed?  Did prototype.js extend __proto__ to work in IE?   Sam   ___ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

RE: [Rails-spinoffs] Implementing a boolean "switch" in a Class

2006-06-21 Thread Sam
nction?  Without __proto__, there's no way to reach back to the constructor without knowing the constructor's name?   Sam   ___ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

RE: [Rails-spinoffs] Implementing a boolean "switch" in a Class

2006-06-21 Thread Sam
Title: Message Also... you said:** After declaring the Class, I've never had to mess with a class before.:-) you're still thinking of _javascript_ as a classical OO language, when it's not. Embrace the power of the prototype.Yes, my problem is getting to the point where this "feels" right. 

RE: [Rails-spinoffs] Implementing a boolean "switch" in a Class

2006-06-21 Thread Sam
Title: Message Hmm, interesting. Frankly, i have no idea about the constructor thing -- half expected it to throw an error. But I'm still not sure why you're so reluctanct to use the main prototype; this is what it's for. Ultimately, you're looking for a way to use an instance to _get_at_ the

RE: [Rails-spinoffs] Implementing a boolean "switch" in a Class

2006-06-21 Thread Sam
Title: Message Not sure... but i'd start by inspecting it, using various different "classes"...for (var p in oMyInstance.constructor){ alert("p = " + oMyInstance[p]);}  Seems to point to nothing in Firefox anyway, the only property returned is:  color='purple';  

[Rails-spinoffs] Ajax in IE 5.5 / Win 98

2006-06-22 Thread Sam
Title: Message Are Ajax requests available in IE 5.5 / Win 98?   Sam     ___ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

RE: [Rails-spinoffs] Ajax in IE 5.5 / Win 98

2006-06-22 Thread Sam
URL.  I don't have much diagnostic code... ;-)     loadPageError:  function(request) {   alert('An error occurred loading the URL: ' + this.URL);  }, Does the parameter (request) or the "this" object hold error information that I can alert?   Sam

RE: [Rails-spinoffs] Ajax in IE 5.5 / Win 98

2006-06-22 Thread Sam
method: "GET" and IE 5.5 / Win98 is working fine now.   Seems to me that this is a rare error, but prototype.js would be a better place for this fix... especially since line 674:     if (this.options.method == 'get' && parameters.length > 0) will fail if the

RE: [Rails-spinoffs] Ajax in IE 5.5 / Win 98

2006-06-22 Thread Sam
Title: Message I think the fix for Ajax 501 error in prototype.js would be to force the method to upper case on the transport.open line 679     this.transport.open(this.options.method.toUpperCase(), this.url,   Sam ___ Rails-spinoffs mailing

RE: [Rails-spinoffs] Ajax in IE 5.5 / Win 98

2006-06-22 Thread Sam
Title: Message I don't have any idea how to log a bug report so if anyone here would do it that would be fine with me.   Sam     -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gregory HillSent: Thursday, June 22, 2006 3:26 PMTo: rails-spi

RE: [Rails-spinoffs] Ajax in IE 5.5 / Win 98

2006-06-22 Thread Sam
I'd encourage you to learn. It's good for the soul. And it tastes great. AND it's less filling. http://dev.rubyonrails.org/ OK. I've submitted a ticket with the patch. Sam ___ Rails-spinoffs mailing list Rails-spinoffs@l

RE: [Rails-spinoffs] multi file uploader

2006-06-23 Thread Sam
Looks good. How about posting a URL explaining how it works ? Sam ___ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

[Rails-spinoffs] OT: Debugging iBook --- help

2006-06-23 Thread Sam
cond,  any suggestion as to a good _javascript_ debugger for Safari?   Sam ___ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

[Rails-spinoffs] JavaScript Compression

2006-06-25 Thread Sam
Title: Message Is there a good windows-based _javascript_ compressor which will reliably compress script aculo and prototype?   Sam     ___ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman

RE: [Rails-spinoffs] JavaScript Compression

2006-06-25 Thread Sam
http://dojotoolkit.org/docs/compressor_system.html Sounds promising. I'll see if I can survive the setup ! ;-) Sam ___ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

RE: [Rails-spinoffs] JavaScript Compression

2006-06-25 Thread Sam
d amazingly, everything ran the first time. Compressed prototype.js, script aculo, windows and more... I imagine the success of this compression engine is due to the hooks into the Mozilla JavaScript engine to get the parsing correct... I'm happy to have found this tool. Sam ___

RE: [Rails-spinoffs] JavaScript Compression

2006-06-26 Thread Sam
Title: Message Can _javascript_ files be gzip'ed in advance, stored on a server and delivered reliably to all browsers?  Any browser exceptions?   Sam     ___ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org

RE: [Rails-spinoffs] Prototype Ajax event handlers

2006-06-26 Thread Sam
is sometimes I need to .bind(this) to the event handlers: e.g., OnComplete: showBusy()... Oops, there's the problem. You didn't include parens to invoke your handler. Sam ___ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Re: [Rails-spinoffs] Drag'n'drop DOM elements between (I)FRAMEs

2006-06-26 Thread sam
and create the illusion of a seamless "drag". But I've never actually seen it done - and as you can imagine it would be prone to all kinds of problems with missed events. Also, it should go without saying that all partipating documents would have to be under the same doma

[Rails-spinoffs] Ajax - Inserting selected elements from request.responseText

2006-06-26 Thread Sam
uggestion for a method to copy only the innerHTML of 'source'  ?   Sam       ___ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

RE: [Rails-spinoffs] Re: Ajax - Inserting selected elements fromrequest.responseText

2006-06-27 Thread Sam
Sam wrote: > After retrieving a URL using an Ajax.Request... > > function onComplete (request, json) { > // request.responseText holds the entire page > > Only the content contained in elementID = 'source' is intended for display > > At this time

RE: [Rails-spinoffs] Re: Ajax - Inserting selected elementsfromrequest.responseText

2006-06-27 Thread Sam
s a regular practice and I shouldn't worry about it, I think I could walk away from this problem. BTW: I don't want to use an iFrame to hold the document. I'm trying to keep the page frameless. Sam ___ Rails-spinoffs mailing list

[Rails-spinoffs] iframe ... does it have an innerHTML ?

2006-06-27 Thread Sam
Title: Message If I dynamically create a hidden iframe, how could I add a document in a string to that element?   e.g.,   var sDocument = 'Hello world.';   I've tried several variations of appendChild, innerHTML, document.innerHTML, createTextNode.   Argh! _

RE: [Rails-spinoffs] iframe ... does it have an innerHTML ?

2006-06-28 Thread Sam
..  fire a body onload event or what?   are you sure it doesn't reset the context of the iframe alone? (hopeful look)       .. so using innerHTML avoids the context reset altogether...   thanks     Sam     ___ Rails-spinoffs mailing list

RE: [Rails-spinoffs] iframe ... does it have an innerHTML ?

2006-06-28 Thread Sam
erHTML have benefits / features that the other does not?   Sam   ___ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

RE: [Rails-spinoffs] iframe ... does it have an innerHTML ?

2006-06-28 Thread Sam
_javascript_.   Your solution is truly a correct solution too. I was just trying to help the new guy.   The new guy appreciates your help...   Sam  ___ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman

RE: [Rails-spinoffs] Event.observe for href

2006-06-28 Thread Sam
I'd like to have an onclick triggered by a href, but since href's don't have id's, how do I use the Event.observe syntax with an href? Just put an ID on the href. It's allowed. ___ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http

RE: [Rails-spinoffs] Looking for Javascript IDE

2006-06-29 Thread Sam
Title: Message Do any of these IDE environments have built-in FTP which will move "modified" files to the remote site?   Sam   ___ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/list

RE: [Rails-spinoffs] Ajax.Request abort question

2006-06-29 Thread Sam
ot; button on a browser before the page is fully loaded.   Sam   ___ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

RE: [Rails-spinoffs] Ajax.Updater

2006-06-29 Thread Sam
rrect.   BTW:  I've observed that when onFailure is called, onComplete is called immediately after.  I was surprised, and it changes what processing is expected in each handler.   Sam     -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Martinez,

RE: [Rails-spinoffs] Ajax.Request synchronization (onSuccess beforeonComplete?)

2006-06-30 Thread Sam
Title: Message Not sure if (2) is suggesting overlapping execution, but onComplete will be called after your onSuccess handler exits.   Sam     -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Hirn, JosephSent: Friday, June 30, 2006 10:34 AMTo

RE: [Rails-spinoffs] javascript woes with radio button groups

2006-06-30 Thread Sam
If all else fails, setup a 100ms periodic timer event handler. Loop thru the radio buttons, and you can decide when to move on from there. Sam ___ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman

RE: [Rails-spinoffs] iframe ... does it have an innerHTML ?

2006-07-01 Thread Sam
applying observers to that content using EventSelectors without any problem.   But I'd like to be safe.  Is there a safer way to know when the DOM tree is ready before applying observers ?   Sam ___ Rails-spinoffs mailing list Rails-spi

[Rails-spinoffs] Firefox Progress Indicator

2006-07-03 Thread Sam
side-effect.  I think I would have seen it before.   Sam   ___ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

[Rails-spinoffs] Text sizing

2006-07-05 Thread Sam
ent the wheel again; has anyone seen anything like this done elsewhere?   Sam ___ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

RE: [Rails-spinoffs] Text sizing

2006-07-05 Thread Sam
hich is why I'm thinking there ought to be a JavaScript to do the job. I'll look around for one, then try to write one if nothing is out there. Sam -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andrew Kaspick Sent: Wednesday, July 05, 2006 1

RE: [Rails-spinoffs] Text sizing

2006-07-05 Thread Sam
d be provided on the page to increase or decrease the font-size for IE. This is the path I am planning to take since there are no other effective solutions. I'm trying to decide if a slider or some other UI mechanism e.g. plus (+) and minus(-) controls might be better or more obvious. S

RE: [Rails-spinoffs] Re: Text sizing

2006-07-06 Thread Sam
ld be needed. The fault is in IE not your web page. Good point, but I develop web pages for customers who require accessibility in the contract. IE is part of the mix of browsers. I have to chop stones in the pit the way I'm told. Sam ___ Rail

RE: [Rails-spinoffs] Text sizing

2006-07-06 Thread Sam
> Default font sizes: Firefox 18px, IE 16pt. This amounts to about 2px of > difference in the defaults > Setting body {font-size:12px} (or any fixed size) will set both IE and > Firefox identical display sizes. To avoid diminishing the accessibility, a > user control should be provided on the pa

RE: [Rails-spinoffs] Re: Text sizing

2006-07-07 Thread Sam
gt;<SPAN class=234474315-07072006> if (navigator.userAgent.indexOf('Firefox') > -1) {document.body.style.fontSize = '66%';}   If anyone can shorten it a bit, thanks in advance.   Sam  ___ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

[Rails-spinoffs] What effect is this

2006-07-09 Thread Sam
and until centered in the display.   Can "grow" do this with the right positioning?   Sam     ___ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

RE: [Rails-spinoffs] prototype hash method

2006-07-10 Thread Sam
Title: Message Is it easy to explain the difference between a hash   var myHash = {a: 'value for a'}   and an object   var myObject = {a: 'value for a'}   Sam ___ Rails-spinoffs mailing list Rails-spinoffs@lists.

RE: [Rails-spinoffs] prototype hash method

2006-07-10 Thread Sam
Sam wrote: > Is it easy to explain the difference between a hash > > var myHash = {a: 'value for a'} > > and an object > > var myObject = {a: 'value for a'} There is no difference between those.

[Rails-spinoffs] Making HTML display-able on a page

2006-07-10 Thread Sam
Title: Message For error reporting purposes, I'd like to take the data returned from an Ajax call, which should contain HTML, and display that HTML in an error reporting page.   Does prototype.js have a method which will convert an HTML string to display format?

[Rails-spinoffs] Hiding an event to launch a debug window

2006-07-10 Thread Sam
some other technique which casual visitors would not stumble upon?   Sam ___ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

RE: [Rails-spinoffs] Hiding an event to launch a debug window

2006-07-11 Thread Sam
eys during the onClick event?   Sam Sure can... inspect the event object... i forget the exact names of the properties you want, but http://www.w3schools.com is great for looking this stuff up...and instead of Ctrl Alt, might i suggest something harder to guess, like: up, up, down,

RE: [Rails-spinoffs] Hiding an event to launch a debug window

2006-07-11 Thread Sam
Title: Message I appreciate the posts and regret requesting what is obvious to many, but I wasn't sure what was meant by "this stuff" below.   Sam   -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ryan GahlSent: Monday, J

RE: [Rails-spinoffs] Hiding an event to launch a debug window

2006-07-11 Thread Sam
Title: Message Thanks.  I appreciate your response and acknowledge that this question was too off-topic for this forum.   Sam   -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Justin McCormackSent: Tuesday, July 11, 2006 10:49 AMTo

RE: [Rails-spinoffs] Re: Documenting Prototype...

2006-07-20 Thread Sam
ould improve if there were any developer interaction.. At a bare minimum, planned release dates would be a real confidence boost. Better yet, some interaction in this forum. No feedback, in addition to a languishing "pre" release, is unacceptable. Sam (C)

[Rails-spinoffs] Prototype.js extension libs

2006-07-24 Thread Sam
Title: Message Hope this isn't too OT or obvious.  I'd like to know if there are useful prototype.js extensions beyond the list I've compiled.   This is the list of complimentary software extensions which are based on prototype.js.   Any others?   Rico http://openrico.org/rico/demos.page?de

[Rails-spinoffs] XML Question

2006-07-24 Thread Sam
have in mind is pulling the XML file using Ajax, then xPath to get the bits I need.   Am I on the right path and does prototype have an xPath capability?   Sam ___ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrail

RE: [Rails-spinoffs] XML Question

2006-07-24 Thread Sam
Title: Message If this XML file isn't a DOCTYPE (not a html/body/tag document), should I expect Ajax responseXML to build out an xml-doctree or should I move on to xPath?   Sam   -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of

[Rails-spinoffs] IE 7 to be a mandatory update

2006-07-27 Thread Sam
Title: Message http://news.com.com/Microsoft+tags+IE+7+high+priority+update/2100-7350_3-6098500.html?tag=nefd.lede   Is anyone testing rails, script and other suites on the IE 7 platform?   Sam ___ Rails-spinoffs mailing list Rails-spinoffs

[Rails-spinoffs] New Microsoft IDE

2006-07-27 Thread Sam
res I consider mandatory for web development (e.g., templates).   Sam   ___ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

RE: [Rails-spinoffs] New Microsoft IDE

2006-07-27 Thread Sam
le developers can work on the same website.  Better would be integrated source control.   There are many other features are important in an IDE but there are many IDEs to choose from which offer these features.    HTML page templates, not so many choices.   Sam -Original Message

RE: [Rails-spinoffs] XML Question

2006-07-28 Thread Sam
Title: Message   ... is the responseXML below available only in Mozilla?  I get nada in IE.   Sam -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kjell BublitzSent: Monday, July 24, 2006 4:19 PMTo: rails-spinoffs

RE: [Rails-spinoffs] XML Question

2006-07-28 Thread Sam
was testing on my local hard-disk / no server).  Posting to a server solves this problem.  I can (will) live with that.   Sam -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Hill, GregSent: Friday, July 28, 2006 1:37 PMTo: rails-spinoffs@lis

RE: [Rails-spinoffs] XML Question

2006-07-28 Thread Sam
Title: Message Greg,   OK, there's objects in objects.  Nice...   For debugging purposes, what's the simplest way to convert the entire returned object to a string for inspection?   Sam -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On

[Rails-spinoffs] innerText idea??

2006-08-08 Thread Sam
Any info on how good/bad/ugly is the cross-browser support for: var sText = obj.innerText || obj.textContent; Sam ___ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman

[Rails-spinoffs] requestHeaders: ['cache-control', 'no-cache', 'pragma', 'no-cache'],

2006-08-09 Thread Sam
Ajax.Request    ... does   requestHeaders: ['cache-control','no-cache','pragma','no-cache'], apply to both GET and PUT operations?   Can I ensure a page I retrieve will not be cached by the browser using Ajax.Request, GET?   Sam   _

[Rails-spinoffs] Parsing Querystring

2006-08-11 Thread Sam
Is there a function somewhere which will take a string containing a URL and return an object with all the querystring key / value pairs?   Sam   ___ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org

RE: [Rails-spinoffs] requestHeaders: ['cache-control', 'no-cache', 'pragma', 'no-cache'],

2006-08-12 Thread Sam
Thanks for the suggestion. I'll give it a try.   Sam From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ryan GahlSent: Wednesday, August 09, 2006 2:31 PMTo: rails-spinoffs@lists.rubyonrails.orgSubject: Re: [Rails-spinoffs] requestHeaders: ['cac

RE: [Rails-spinoffs] Parsing Querystring

2006-08-12 Thread Sam
> There is one such function exactly: > > String.toQueryParams() > > var url = 'http://test.com/?this=test&perfect=true'; > var params = url.toQueryParams(); > I don't know how I missed this. I'm guessing I had "

RE: [Rails-spinoffs] Prototype $$ Question

2006-08-12 Thread Sam
sfies $$('#tree .node .nodeChildren') once for nodeID node_1, and again for nodeID node_3.   Sam ___ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

RE: [Rails-spinoffs] Prototype $$ Question

2006-08-13 Thread Sam
could use $$('.nodeChildren') which will match each .nodeChildren only once.   Sorry if I'm not understanding your concern.  Maybe someone else can clear up the confusion.   Sam     From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Brian

RE: [Rails-spinoffs] Prototype $$ Question

2006-08-13 Thread Sam
> > Looks like a bug to me, Brian. I gave two examples of css selectors which ensure that the same node wouldn't be returned more than once. Seemed more productive than declaring the software broken. Sam ___ Rails-spinoffs mailing

[Rails-spinoffs] Shorthand for "IN"

2006-08-13 Thread Sam
arm1) { if( {2:2, 5:5, 9:9, 17:17}[parm1] ) { // Is parm1 equal to 2, 5, 9 or 17?   This seems more verbose that what I recall.    What's a good shorthand technique for testing whether a value is in a set?   Sam     ___ Rails-spinoffs mai

RE: [Rails-spinoffs] XML Question

2006-08-13 Thread Sam
o I get the value of attr?  It seems it should be   request.requestXML.getElementsByTagName('Module')[0].attr // but it doesn't exist...   Any ideas?   Sam     From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of SamSent: Friday, July 28, 2006 1:17 PMTo:

[Rails-spinoffs] Inspecting an object

2006-08-14 Thread Sam
7;m considering using a function to convert the object to JSON for display.   What other solutions might be better?   Sam   ___ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

RE: [Rails-spinoffs] XML Question

2006-08-14 Thread Sam
amazement, it's working for me too.  I wish I knew why.  Nothing has changed here.   Sam         From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of SamSent: Sunday, August 13, 2006 10:29 PMTo: rails-spinoffs@lists.rubyonrails.orgSubject: RE: [Rails-spinoffs]

[Rails-spinoffs] OK. I'm confused again.

2006-08-14 Thread Sam
Prototype.js can be humbling. Just when I think I've got a handle on how to read inside-out, I find something I've never seen before and can't get my head around. I am chasing down a bug in my code which uses Element.classNames, so I wandered off in prototype.js to see how classNames worked. Co

RE: [Rails-spinoffs] Parsing Querystring

2006-08-14 Thread Sam
> Just out of curiousity Sam, I notice that you are a frequent poster to > this list. Are you writing anything specific or just having fun with > javascript and prototype? Anything you can show off here? > I'm working on an environment to host e-learning course content. Unfo

[Rails-spinoffs] Completely off-topic, so flame me

2006-08-15 Thread Sam
="" // I never do this   href="" // this is what I do, but I read void(0) is deprecated over null?   should I use something else?   Sam     ___ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

RE: RE: [Rails-spinoffs] Completely off-topic, so flame me

2006-08-15 Thread Sam
Thanks everyone for your suggestions. I'm off to experiment. If I find anything useful, I'll post back. Sam ___ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

RE: RE: [Rails-spinoffs] OK. I'm confused again.

2006-08-15 Thread Sam
> It creates a new class/object representing the class names. The class > is called Element.ClassNames and it is extended by Enumerable. That > means you can iterate through the element's class names. Pretty cool. "Extended by Enumerable". Thanks. Now I know where to look. A good answer usually

RE: [Rails-spinoffs] Completely off-topic, so flame me

2006-08-15 Thread Sam
> Exactly that is also my problem. Oky not mine but also a > customer of mine > wants the shift click. > Statement: Shift click does the same as click but opens in new window" > Problem: I have some functionality that changes a area you could name > display-area. The customer now argues that he ex

RE: [Rails-spinoffs] Completely off-topic, so flame me

2006-08-16 Thread Sam
I agree with the issues you describe below. These are real-world problems when designing web pages for general audiences. I doubt the inventors of "open in tab" and "open in new window" could foresee these issues. Sam > -Original Message- > From: [EMAIL PR

[Rails-spinoffs] Keeping controls in the display

2006-08-16 Thread Sam
  I have a few controls (submit buttons), which would be nice to keep in the display area when users vertically scroll to the bottom of the page.   Which Script Aculo function would I use to do this?   Sam     ___ Rails-spinoffs mailing list Rails

  1   2   >