[Proto-Scripty] observe by class name

2009-08-17 Thread Russell Keith
I am building a css table using div elements. I am trying to observe all the DIVs with a class name of oddRow but I keep getting JS errors. This is my first attempt at observing an entire class. Can someone please point me in the right direction. I thought the $$ method returned an array so I wo

[Proto-Scripty] Re: observe by class name

2009-08-17 Thread Russell Keith
prototype-scriptaculous@googlegroups.com [mailto:prototype-scriptacul...@googlegroups.com] On Behalf Of Russell Keith Sent: Monday, August 17, 2009 11:48 AM To: prototype-scriptaculous@googlegroups.com Subject: [Proto-Scripty] observe by class name I am building a css table using div elements. I am trying t

[Proto-Scripty] checkboxes

2009-09-14 Thread Russell Keith
I have the following code that works just fine. I can't figure out how to tell how many check boxes are checked. I want to limit it to four check boxes. Any help would be appreciated, or even a point in the right direction. $$('input.check').each(function(elem){ elem.observe('click', functi

[Proto-Scripty] Re: checkboxes

2009-09-14 Thread Russell Keith
p://www.thevacancymarket.com - Original Message - From: "Richard Quadling" To: Sent: Monday, September 14, 2009 4:52 PM Subject: [Proto-Scripty] Re: checkboxes 2009/9/14 Russell Keith : > I have the following code that works just fine. I can’t figure out how to > tell h

[Proto-Scripty] Slightly off topic about CSS

2009-09-18 Thread Russell Keith
I have the following CSS class I am adding with Element.addClassName tr.selected{ background: url(/images/ArrowSelection.gif) no-repeat; background-color: #AA; } My issue is that it is also adding the background image to each in the . Any idea how to stop t

[Proto-Scripty] Observe new elements

2009-09-23 Thread Russell Keith
If I am adding elements to a page after the DOM is loaded, how do I add my existing Element.observe to it? Russell --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post

[Proto-Scripty] Forms

2009-10-29 Thread Russell Keith
Ok, maybe I'm just being dense, but I am reading the API for forms and I am getting nothing from it. What is proper use of the $F utility and what can it do for me? I have read the Form.Element.getValue and it means nothing to me. I have this form: " />

[Proto-Scripty] Re: Forms

2009-10-29 Thread Russell Keith
009, at 11:08 AM, Russell Keith wrote: > Ok, maybe I'm just being dense, but I am reading the API for forms > and I am getting nothing from it. > > What is proper use of the $F utility and what can it do for me? I > have read the Form.Element.getValue and it means nothi

[Proto-Scripty] Re: Forms

2009-10-29 Thread Russell Keith
egroups.com] On Behalf Of Russell Keith Sent: Thursday, October 29, 2009 10:28 AM To: prototype-scriptaculous@googlegroups.com Subject: [Proto-Scripty] Re: Forms Then how is $F() any different than $()? Also, any idea why I can't get my form to submit. I have been all over Google and

RE: [Proto-Scripty] simple show / hide

2010-01-15 Thread Russell Keith
Give this a try and see if it shows what you need. You should be able to take this example and run with it. http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en"> Element.Observe Example //wait until the DOM is loaded document.obse

[Proto-Scripty] Focus on element in iFrame.

2010-02-08 Thread Russell Keith
I have an iframe on a page with an ID of 'generateID'. There is a field on the page loaded in the iframe with and ID of 'type'. I want the 'type' field to have focus when I make the iframe visible. I want to do it from the parent window. I have tried the code below. Is there a way to make this

RE: [Proto-Scripty] Re: Focus on element in iFrame.

2010-02-08 Thread Russell Keith
Perfect!!! Thank you. Respectfully, J. Russell Keith Employee Systems Analyst American Airlines Federal Credit Union 817.931.4459 Direct 800.483.0944 Fax russell.ke...@aacreditunion.org -Original Message- From: prototype-scriptaculous@googlegroups.com [mailto:prototype-scriptacul

[Proto-Scripty] scrollTo

2010-03-22 Thread Russell Keith
I have a div that I am updating with text as processes complete. How can I use $(element).scrollTo(); to make sure it is always scrolled to the bottom? In my HTML I have this div In my js I have calls like this to update the user as to what is going on while they wait. $('msgCenterCont

RE: [Proto-Scripty] scrollTo

2010-03-22 Thread Russell Keith
I figured out I can do it like this. $('msgCenterContent').scrollTop = $('msgCenterContent').scrollHeight; From: prototype-scriptaculous@googlegroups.com [mailto:prototype-scriptacul...@googlegroups.com] On Behalf Of Russell Keith Sent: Monday, March 22, 2010 12

[Proto-Scripty] PeriodicalExecuter

2010-05-28 Thread Russell Keith
I have a PeriodicalExecuter that is calling a function every so often that makes several AJAX calls. I am not having any luck getting the PeriodicalExecuter to stop via the onFailure callback in the Ajax call. Is this possible? I see in the API doc that I can use stop() within the PeriodicalExecu

[Proto-Scripty] Ajax in IE7 vs. IE8

2010-05-28 Thread Russell Keith
Ok this doesn't make any sense to me. The following code works in IE8 but not IE7. The Ajax calls never get fired according to my proxy software. I don't have the luxury of firebug since I am relegated to IE here at work. Any ideas? http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd

RE: [Proto-Scripty] Ajax in IE7 vs. IE8

2010-05-28 Thread Russell Keith
It appears that IE7 doesn't like the port number added to the URL. Any thoughts on how to get around this? I have to have the port numbers. From: prototype-scriptaculous@googlegroups.com [mailto:prototype-scriptacul...@googlegroups.com] On Behalf Of Russell Keith Sent: Friday, M

RE: [Proto-Scripty] Ajax in IE7 vs. IE8

2010-05-28 Thread Russell Keith
prototype-scriptaculous@googlegroups.com [mailto:prototype-scriptacul...@googlegroups.com] On Behalf Of Russell Keith Sent: Friday, May 28, 2010 4:24 PM To: prototype-scriptaculous@googlegroups.com Subject: RE: [Proto-Scripty] Ajax in IE7 vs. IE8 It appears that IE7 doesn't like the port

[Proto-Scripty] observe any change in the window

2009-03-27 Thread Russell Keith
I have an iframe and I am using the onbeforeunload to prevent data loss. What I need to do is set a variable called save to 0 after any change is made within the frame. I tried this but it doesn't work: document.observe('change', function(){ save=0

[Proto-Scripty] need to call function from main script.

2009-03-30 Thread Russell Keith
I have several of these inputs in a form: Everything works great. What I need to do is update the input with a stored value, that is easy enough: $('authSign1').innerText = signer[1]; But I also need to fire the verifySigner() function and can't figure this one out. I have tried s

[Proto-Scripty] Re: need to call function from main script.

2009-03-30 Thread Russell Keith
Nevermind I figured it out. elem = $('authSign1'); verifySigner(elem); I feel like a bone head now. Sorry for the extra email. From: prototype-scriptaculous@googlegroups.com [mailto:prototype-scriptacul...@googlegroups.com] On Behalf Of Rus

[Proto-Scripty] url query string

2009-04-02 Thread Russell Keith
Does prototype or scriptaculous offer a way to parse a query string in a URL? I am creating a simple page that will redirect a user as a band aid for poor programming choices made by a vendor. I need this to all be done in JavaScript. I found several solutions on Google but wondered if prototyp

[Proto-Scripty] Get an array from PHP via Ajax.Request

2009-04-29 Thread Russell Keith
When doing calling Ajax.Request is there a way to take an array returned by PHP and read it into a JavaScript array? Or would I need to split the array in PHP to a comma separated string then read it back into an array in JavaScript? J. Russell Keith, MCDST Branch Suite Administrator

[Proto-Scripty] help with ajax.

2009-04-29 Thread Russell Keith
I got the pasted code form a vendor to make a call to their webservice. http://pastie.org/462963 I'm trying to do the same thing with proto but can't seem to get it to work. document.observe('dom:loaded', function() { new Ajax.Request(url, { method: 'post',

[Proto-Scripty] Re: help with ajax.

2009-05-05 Thread Russell Keith
I have dumbed down this code even more and still can't get the ajax request to fire. Any suggestions would be great. http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> http://www.w3.org/1999/xhtml"; /> Untitled Document

[Proto-Scripty] Re: help with ajax.

2009-05-05 Thread Russell Keith
f the Same Origin Policy imposed on JavaScript. Walter On May 5, 2009, at 5:26 PM, Russell Keith wrote: > > I have dumbed down this code even more and still can't get the ajax > request to fire. Any suggestions would be great. > > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-

[Proto-Scripty] Re: help with ajax.

2009-05-05 Thread Russell Keith
Ok I get that you can't request across domains, but it doesn't explain why my code on pastie (http://pastie.org/462963) works but the prototype code doesn't. J. Russell Keith, MCDST Branch Suite Administrator American Airlines Federal Credit Union 817.931.4459 Direct 8

[Proto-Scripty] Re: help with ajax.

2009-05-05 Thread Russell Keith
But terrain is the name of the server. I am sending xml data to a webservice on this server. J. Russell Keith, MCDST Branch Suite Administrator American Airlines Federal Credit Union 817.931.4459 Direct 817.931.9541 Fax russell.ke...@aacreditunion.org - Original Message - From

[Proto-Scripty] Re: help with ajax.

2009-05-06 Thread Russell Keith
I am running the vendor code and my prototype code from the same folder on the same server with almost the same file name. The only difference is I added pt to the filename that my prototype code is trying to run from. http://server_a/ajaxIG.html is the vendor code and it calls http://server_b/c

[Proto-Scripty] Re: help with ajax.

2009-05-06 Thread Russell Keith
esn't even appear to be trying to make the call to the web service. -Original Message- From: prototype-scriptaculous@googlegroups.com [mailto:prototype-scriptacul...@googlegroups.com] On Behalf Of Russell Keith Sent: Wednesday, May 06, 2009 8:15 AM To: prototype-scriptaculous@googlegro

[Proto-Scripty] Re: Trouble getting started with Prototype

2009-05-29 Thread Russell Keith
It appears the tag must have a closing tag . So this Should be this Russell -Original Message- From: prototype-scriptaculous@googlegroups.com [mailto:prototype-scriptacul...@googlegroups.com] On Behalf Of Alex Sent: Friday, May 29, 2009 12:11 AM To: Prototype & script.aculo.us Sub