[Proto-Scripty] Simple $( ) question

2008-11-06 Thread Scott
If I have an element: span id='foo'50/span Should I be able to say the following? var total = parseFloat($('foo')); Instead, I am getting a return value of: [object HTMLSpanElement] and parseFloat is returning NaN. Thanks in advance.

[Proto-Scripty] Re: Simple $( ) question

2008-11-07 Thread Scott
textContent/innerText or using innerHTML and stripping the tags? HTH, -- T.J. Crowder tj / crowder software / com On Nov 6, 2:06 am, Scott [EMAIL PROTECTED] wrote: If I have an element:   span id='foo'50/span Should I be able to say the following?   var total = parseFloat($('foo

[Proto-Scripty] Re: Collecting checked checkboxes

2010-01-11 Thread Scott
you could submit the entire form using request. $(formid).request({ method: 'post', onComplete:function(request){ alert(request.responseText); } }); On Jan 11, 12:11 am, Hussein B hubaghd...@gmail.com wrote: Hey, I have a checkbox in front of each row in my table. Upon clicking on

[Proto-Scripty] Re: Collecting checked checkboxes

2010-01-12 Thread Scott
my bad. I misunderstood your question. Ignore my response On Jan 11, 4:16 pm, Scott counterstre...@gmail.com wrote: you could submit the entire form using request. $(formid).request({ method: 'post',   onComplete:function(request){     alert(request.responseText);   } }); On Jan 11, 12

[Proto-Scripty] Re: how to pass question marks in fields using ajax updater

2010-01-27 Thread Scott
It looks like you are forming your parameters as you would a querystring ex: a=appleb=banana parameters for an Ajax.Updater or Request are usually set up like this: parameters: { a: 'apple', b: 'banana' } if you are still having trouble passing in a '?' you could also try changing the method to

[Proto-Scripty] Re: Having Effect.Opacity work with a Class and not an ID

2010-03-03 Thread Scott
This is how I'd do it. There might be an easier way also. var elements = $$('fade-in'); elements.each( function(element) { element.appear({ duration: 1.5 }); }); On Mar 3, 9:27 am, CaptainNoob jacobl...@gmail.com wrote: ul id=menu         li id=nav_home class=fade-ina href=/Home/a/li        

[Proto-Scripty] Re: Request object

2010-03-08 Thread Scott
You can write the response to the JSP page and in the form page use the onComplete event to return the response text $('myFormID').request({ method: 'post', onComplete: function(request) { alert(request.responseText); } }); so anything written in the JSP page (including html) will come

[Proto-Scripty] Re: Ajax.Request - can't get to work in Firefox, Chrome

2010-03-15 Thread Scott
I have had similar issues before in my applications. I have always assumes that they were caching issues. With the method as 'post' and adding the current date and time in the parameters field (or query string), I've been able to get past this issue. This is to make sure the url being called is

[Proto-Scripty] Re: how to update HTML with Ajax.Request

2010-03-18 Thread Scott
is (rating) being set somewhere or is that the id of the element? if it is the id then you will need to put single quotes around it ('rating') If you are using prototype/scriptaculous $('rating') is a shortcut of document.getElementById('rating') Also another shortcut is calling update on the

[Proto-Scripty] returning a value from a function calling a page with Ajax

2010-03-29 Thread Scott
I am trying to build a function that will return a value based on user input on a page loaded into a div using Ajax.Updater. So for example: function userChooser() { new Ajax.Updater('divID', 'userChooser.asp'); } alert(userChooser()); Inside userChooser.asp I would display a list that the

[Proto-Scripty] Sortable issue in IE

2010-04-21 Thread Scott
I have a page with thumbnail images that need to be sortable. In all browsers but IE this works great. In IE when i drag an item, the items do not shift to allow dropping. If I remove float:left; from the css it works but then my divs are not inline. (if i set display:inline; my divs will not

[Proto-Scripty] RE: returning a value from a function calling a page with Ajax

2010-06-03 Thread Scott
In case this replay didn't end up in the appropriate thread: http://groups.google.com/group/prototype-scriptaculous/browse_thread/thread/ db829a1d3ca58d79 REPLY: So here is my simple test using your method: I had to change the 'onSuccess' method in the updater to 'onComplete' it

[Proto-Scripty] Re: Scriptaculous and !--include virtual=xxx.html--

2010-06-21 Thread Scott
is your html file in a virtual directory? also this include tag will only work if your page is being hosted on an asp server or your local windows machine as a website through IIS On Jun 19, 6:56 am, Avram abas...@mitre.org wrote: I tried including the Scriptaculous code in an external html file

[Proto-Scripty] Re: Scalable Drag Drop (without noticeable lag)

2010-10-15 Thread Scott
When copying and pasting the html from my post, there are some extra line breaks or wrapping happening. Not much I can do about that i guess. just letting you know I didn't write it that way. -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us

[Proto-Scripty] Re: Scalable Drag Drop (without noticeable lag)

2010-10-18 Thread Scott
What I usually do is post it inline in the message (as you did), and *also* post it to Pastie.org and provide a link. Thanks T.J. Here's a url to my test code: http://pastie.org/1230063 Anyone got any ideas / suggestions (/improvements on my code)? -- You received this message because you

[Proto-Scripty] Firefox height:100% bug w/ prototype fix

2010-11-15 Thread Scott
/1300351 let me know what you think or if you have any suggestions to improve my code. (please exclude your opinions on standards compliance) - Scott -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email

[Proto-Scripty] Re: Scalable Drag Drop (without noticeable lag)

2010-11-15 Thread Scott
 am, Eric lefauv...@gmail.com wrote: Hi Scott, I didn't do much with drag/drop using scripty, but can't you just have one droppable (in your case it would be $('cats')) and find out which span was under the mouse when a drop occurs? In the same spirit, instead of adding a onmouseover event

[Proto-Scripty] Auto Submit on AutoComplete Selection Help

2009-05-18 Thread Scott Z
Can anyone point me in the right direction to making my form submit when a selection is made from the autocomplete suggestions? Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us

[Proto-Scripty] complete handler for effects.js

2009-08-26 Thread Scott Haines
in the more useful effect.js. Cheers, Scott Haines Newfront Creative http://www.newfrontcreative.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email

[Proto-Scripty] Re: complete handler for effects.js

2009-08-27 Thread Scott Haines
Just found that bug. Didn't know about afterFinish, is that automatically added within effects.js. I didn't have that function in my version of effects.js, would have saved me a bunch of time! - Scott On Aug 26, 1:16 am, Alex McAuley webmas...@thecarmarketplace.com wrote: You have put

Re: [Proto-Scripty] Re: form input not working

2010-09-11 Thread Scott Pickles
Nigel - Your second command to insert new begins with $('messageLbl'). Shouldn't that begin with $(scoreForm') since you're trying to add a new input element of type 'text'? Regards, Scott On Sep 11, 2010 7:12 AM, nigeke...@googlemail.com nigeke...@googlemail.com wrote: Blaine - Thanks