[Proto-Scripty] Autocompleting text fields (customized)

2008-10-30 Thread srid
Hello In the To field when you type the letter 'a', the first item in the drop down list is the Ada Noel, how do I capture the e-mail address, basically I want to set a hidden field in the form with the email address selected. thanks in advance Sridhar --~--~-~--~~~-

[Proto-Scripty] Re: New Script.aculo.us combination effect: Wipe (beta)

2008-10-30 Thread T.J. Crowder
Cool James! -- T.J. :-) On Oct 29, 4:50 pm, Diodeus <[EMAIL PROTECTED]> wrote: > After being annoyed by a Flash-based solution for the same > functionality, I decided to write a "wipe" effect for Scriptaculous. > It's in beta, and not quite ready for release. > > new Effect.Wipe('content',{'newI

[Proto-Scripty] Re: Iframe issue with IE7 (probably 6)

2008-10-30 Thread T.J. Crowder
> Thomas, > Some sample code and HTML would help immensely. +1 for that. Thomas, if you can create a small, self-contained example demonstrating the problem and post it to Pastie[1], I expect folks will be able to help you figure out how to deal with the IE problem. [1] http://pastie.org -- T.J

[Proto-Scripty] Document.domainName issue

2008-10-30 Thread pradeep
Hi, i am using prototype js , i have become fan of it after using it extensively, i had one request for you. while communicating in between the same domain from parent to window...i face some problems example: i have abc.pradeep.com in window, inside an iframe i am calling xyz.pradeep.com when

[Proto-Scripty] upload progress bar....(feature request)

2008-10-30 Thread pradeep
Hai, i am doing multiple file upload, however i have planned to show...upload progress bar...(i,e the amount of file uploaded in sync with client sice progress bar)... Do you have any solution ..how to do this using prototype and struts & jsp's any example along with the solution will be very

[Proto-Scripty] Re: Document.domainName issue

2008-10-30 Thread T.J. Crowder
Hi, Just to be clear about the question: It sounds like you're familiar with the Same Origin Policy and you're using Document.domainName to deal with it. Are you saying the problem is that Opera doesn't support that and still thinks the SOP is being violated? And you're looking for a suggestio

[Proto-Scripty] How to extend Element with single "public" method and few "private" methods?

2008-10-30 Thread szimek
Hi, I've never written anything in javascript besides some simple event handlers. I'm trying to write a simple script for ajaxified tabs and I'd like to be able to simply call $('some-id').tabs(); to initialize them - similarly as it works in jQuery plugin. Here's a sample code: Object.extend(

[Proto-Scripty] Re: Document.domainName issue

2008-10-30 Thread spradeepkumar
Dear crowder, Happy to see a instant support. I am aware of SOP. , i think we can access our sub-domains by putting document.domain = maindomainname : ex: xyz.pradeep.com abs.pradeep.com are my sub domians now at abs.pradeep.com i have an application which i am trying to open from xyz.prade

[Proto-Scripty] Re: Document.domainName issue

2008-10-30 Thread spradeepkumar
sorry there is a typo in my previous maili am unable to do this in opera ...should be replaced instead of "but in opera i am able to do this" On Thu, 30 Oct 2008 spradeepkumar <[EMAIL PROTECTED]> wrote > Dear crowder, > > Happy to see a instant support. I am aware of SOP. ,

[Proto-Scripty] Re: Autocompleting text fields (customized)

2008-10-30 Thread ColinFine
[I hate top-posting, but that seems to the the norm here] Use 'informal' [1] Make your ajax call return Ada Noel[EMAIL PROTECTED] etc. Then have a CSS rule span.hide {display:none} The CSS will ensure that only the name is displayed to the user, but the Ajax.Autocomplete takes only the text wh

[Proto-Scripty] Re: How to extend Element with single "public" method and few "private" methods?

2008-10-30 Thread darrinholst
> > How can I define "private" methods for tabs function, so that onclick > event handler can use this "private" function, instead of anonymous > one? > Is this what you're looking for? Object.extend(Element.Methods, { tabs: function(element, options){ var saySomething = function() {

[Proto-Scripty] Re: Stopping page from moving back to top

2008-10-30 Thread jason maina
Thanks so much it worked like a charm :) On Mon, Oct 27, 2008 at 7:55 PM, Gabriel Gilini <[EMAIL PROTECTED]>wrote: > Place this inside anFunction: > evt.stop(); > > it stops the default behavior of the current event, which in your case is > following a link. > > ps: shouldn't it be called aFuncti

[Proto-Scripty] mouseover/mouseout events firing off of childern elements.

2008-10-30 Thread Lastar_dev
I have taken a look at a few other threads and noticed that someone posted a bubbledFromChild function. This function isn't working for me and I'm not sure how to get around this issue. I'm attempting to overlay a div over another div which contains a few elements. The problem is that the mouse

[Proto-Scripty] Re: Event.observe working in Firefox but not IE6-7

2008-10-30 Thread Dave
Thanks kangax, I tried renaming the names as you suggested but it's still the same thing. In Firefox it works, in IE it doesn't. If I change the following line: Event.observe('events', 'change', function (e) { To observe one of the input elements instead Event.observe('event1', 'change', func

[Proto-Scripty] Re: evalJSON with array data

2008-10-30 Thread gedm
I was using the wrong brackets.() not [] Working fine now. Thanks for your help. On Oct 30, 3:09 pm, "T.J. Crowder" <[EMAIL PROTECTED]> wrote: > Hi, > > > var arrpeople = transport.responseText.evalJSON(true); > > alert(arrpeople.name);            //this line doesn't fail but It > > returns '

[Proto-Scripty] Re: How to extend Element with single "public" method and few "private" methods?

2008-10-30 Thread kangax
On Oct 30, 9:24 am, darrinholst <[EMAIL PROTECTED]> wrote: > > How can I define "private" methods for tabs function, so that onclick > > event handler can use this "private" function, instead of anonymous > > one? > > Is this what you're looking for? > > Object.extend(Element.Methods, { >     tabs

[Proto-Scripty] Re: IE issue when with 'new Element' : expected identifier, string or number

2008-10-30 Thread T.J. Crowder
Hi, Just put 'class' in quotes, it's a reserved word in JScript. The example in the docs[1] has it in quotes for that reason, I suspect. [1] http://www.prototypejs.org/api/element HTH, -- T.J. Crowder tj / crowder software / com On Oct 30, 3:49 pm, Brandon <[EMAIL PROTECTED]> wrote: > Internet

[Proto-Scripty] Re: New Script.aculo.us combination effect: Wipe (beta)

2008-10-30 Thread kangax
On Oct 29, 12:50 pm, Diodeus <[EMAIL PROTECTED]> wrote: > After being annoyed by a Flash-based solution for the same > functionality, I decided to write a "wipe" effect for Scriptaculous. > It's in beta, and not quite ready for release. > > new Effect.Wipe('content',{'newImg':'Images/Wipe3.jpg',du

[Proto-Scripty] script.aculo.us syntax ??

2008-10-30 Thread uncleroxk
Hi all, currently i am learning script.aculo.us.. and i have some question on a bit of syntax here.. //css #box { width: 300px; height: 300px; position: relative; background-color: #ddd; } //html //js script new Effect.Morph('box', {style:"left: 50px; top: 50px;",duration: 1.0}); ne

[Proto-Scripty] Re: script.aculo.us syntax ??

2008-10-30 Thread uncleroxk
edit $('box')..scale(150); TO $('box').scale(150); and addition this... //not working too $('box').move({x: "125px", y: "150px"}); --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us

[Proto-Scripty] IE issue when with 'new Element' : expected identifier, string or number

2008-10-30 Thread Brandon
Internet Explorer throws 'expected identifier, string or number' when it loads a JS script that contains a new Element statement, like this: new_song_info_div = new Element('div', {class : 'song_info'}); It took me a while to figure out this was the issue too, because the script debugger that co

[Proto-Scripty] Re: Event.observe working in Firefox but not IE6-7

2008-10-30 Thread kangax
On Oct 30, 11:32 am, Dave <[EMAIL PROTECTED]> wrote: > Thanks kangax, > > I tried renaming the names as you suggested but it's still the same > thing. In Firefox it works, in IE it doesn't.  If I change the > following line: > > Event.observe('events', 'change', function (e) { > > To observe one o

[Proto-Scripty] Effect.grow in a fixed height div

2008-10-30 Thread James
I'm using Effect.grow() to expand table rows in a fixed height div. In Firefox, the div overflows properly and everything is fine. In IE7, the all of the records grow past the bottom of the div momentarily, then disappear behind the div. This brief flash before the recovery looks unprofessional.

[Proto-Scripty] Re: script.aculo.us syntax ??

2008-10-30 Thread Diodeus
Try changing the way you position your element: #box { width: 300px; height: 300px; position: absolute; background-color: #ddd; } --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" g

[Proto-Scripty] Re: Effect.grow in a fixed height div

2008-10-30 Thread Diodeus
I think the problem is how tables are rendered, not because of the DIV itself. They seem to wait until the rest of the page has rendered before sizing themselves. You can really see it happen in this example:      Lorem

[Proto-Scripty] Re: Effect.grow in a fixed height div

2008-10-30 Thread James
Good news, I solved it by adding "position:relative" to the outer container div with the fixed height thanks to this post: http://snook.ca/archives/html_and_css/position_relative_overflow_ie/ I think you're assessment is correct, my experience matches your observation. Thanks for your response.

[Proto-Scripty] Re: IE issue when with 'new Element' : expected identifier, string or number

2008-10-30 Thread Brandon Casci
Thanks was it. Thanks for the help. Though a slew of new IE issues are popping up now, fun fun!. So it's probably a good and safe practice to quote all the element property names, right? On Thu, Oct 30, 2008 at 12:02 PM, T.J. Crowder <[EMAIL PROTECTED]>wrote: > > Hi, > > Just put 'class' in quo

[Proto-Scripty] Re: New Script.aculo.us combination effect: Wipe (beta)

2008-10-30 Thread Diodeus
Good idea. I'll add that in. Thanks. On Oct 30, 12:05 pm, kangax <[EMAIL PROTECTED]> wrote: > On Oct 29, 12:50 pm, Diodeus <[EMAIL PROTECTED]> wrote: > > > > > After being annoyed by a Flash-based solution for the same > > functionality, I decided to write a "wipe" effect for Scriptaculous. > >

[Proto-Scripty] Strange .update Error?

2008-10-30 Thread Jonathan Rosenberg
I'm having what I think is a weird problem with .update on IE. This statement fails: this._question.update("You") but this works this._question.update("You") It fails in the prototype.js code, but only on IE. Any thoughts? -- Jonathan Rosenberg Founder & Executive Director,

[Proto-Scripty] Element.update()

2008-10-30 Thread cyiam
HELP! This is the first time I have my script working for IE but not for Firefox. I have a 3 drop downs. The first dropdown dictates what will be shown on the second. And second drop down dictates the third. I use Ajax.Request() to get the drop down values from database. onSuccess, I call the func

[Proto-Scripty] Howto debug prototype

2008-10-30 Thread Martín Marqués
I'm working on an on progress system which was left, almost finished by a former employee, developed with prototype. As far as I can see, it uses the menuItem, ajaxtabs and Accordion (maybe some others), and I'm getting an alert from an error that gets catched in the menuItem: alert('Defined Java

[Proto-Scripty] Simple, unobtrusive way to open all links marked external

2008-10-30 Thread [EMAIL PROTECTED]
Hi guys, I'm learning the prototype library after coming from jQuery, and I'm trying to write a simple snippet that opens external links in a new window. This doesn't seem to work in Firefox, or Safari, and I'm not sure what I'm doing wrong here, I'm sure it's something really obvious, but I've

[Proto-Scripty] Sortable.create Issue with IE6 & 7

2008-10-30 Thread Paul Wesson
I'm using a pretty basic example that works just find in FireFox but does not work in IE 6 or 7. Have a look at this sample (not mine, but is what I used to create my code and I get the exact same problem): http://www.gregphoto.net/sortable/advanced/ If you take, say 3 items and drag them into

[Proto-Scripty] "Display:none" causes script.aculo.us sliders to initialize incorrectly!

2008-10-30 Thread jack7890
I've developed a set of sliders using script.aculo.us that allows my users to rate content. The sliders work perfectly. However, I'd like set the sliders to be hidden by default and to only appear when the user clicks a button. So I set the div that contains all the sliders to "display:none".

[Proto-Scripty] Re: IE issue when with 'new Element' : expected identifier, string or number

2008-10-30 Thread cyiam
You can try replacing the option class with className. On Oct 30, 1:08 pm, "Brandon Casci" <[EMAIL PROTECTED]> wrote: > Thanks was it. Thanks for the help. Though a slew of new IE issues are > popping up now, fun fun!. So it's probably a good and safe practice to quote > all the element property

[Proto-Scripty] Re: Strange .update Error?

2008-10-30 Thread cyiam
I couldn't get update to work correctly, so I ended up "clearing" the element out, then do an Element.insert. On Oct 30, 4:20 pm, "Jonathan Rosenberg" <[EMAIL PROTECTED]> wrote: > I'm having what I think is a weird problem with .update on IE. > > This statement fails: > >         this._question.

[Proto-Scripty] Ajax.Updater appears to drop plus signs

2008-10-30 Thread rev_robert
I have a form that submits user entered text from two different pages. In one page it is a regular form submit back to itself. In the other page, a javascript function uses Ajax.Updater to submit the form to a different page. When the form is submitted via Ajax.Updater plus (+) signs in the val

[Proto-Scripty] Re: Element.update()

2008-10-30 Thread Gabriel Gilini
Well, first of all, try quoting your hash keys like this: list.each(function(item){ var newOption = new Element('option', {'innerHTML':item.nm,'value':item.id}); selectList.insert({bottom:newOption}); }); If it still doesn't work, try us

[Proto-Scripty] Re: Element.update()

2008-10-30 Thread Gabriel Gilini
Forgot the quotes in selectList.insert({'bottom':newOption}) :P Gabriel Gilini www.usosim.com.br [EMAIL PROTECTED] [EMAIL PROTECTED] On Thu, Oct 30, 2008 at 11:35 PM, Gabriel Gilini <[EMAIL PROTECTED]>wrote: > Well, first of all, try quoting your hash keys like this: > list.each(function(item)

[Proto-Scripty] Re: Simple, unobtrusive way to open all links marked external

2008-10-30 Thread Gabriel Gilini
What's the error that the script's throwing? Also, are the elements in the result enum already extended[1]? If not, switch element.observ to $(element).observe. [1] http://prototypejs.org/learn/extensions Cheers Gabriel Gilini www.usosim.com.br [EMAIL PROTECTED] [EMAIL PROTECTED] On Thu, Oct

[Proto-Scripty] Re: Ajax.Updater appears to drop plus signs

2008-10-30 Thread Walter Lee Davis
On Oct 30, 2008, at 5:56 PM, rev_robert wrote: > > I put the window.alert in the function to see if opt.postBody had the > plus (+) signs in it before the call to Ajax.Updater, which it did. > > This is worrisome. Is there some documentation on which characters > Ajax.updater will pass through

[Proto-Scripty] Re: Strange .update Error?

2008-10-30 Thread Gabriel Gilini
Well, that's weird. It could be a bug, you should probably fill a ticket with some sample code and a copy of the error message at Lighthouse[1]. [1] http://prototype.lighthouseapp.com/projects/8886-prototype Cheers Gabriel Gilini www.usosim.com.br [EMAIL PROTECTED] [EMAIL PROTECTED] On Thu, Oc

[Proto-Scripty] Re: Autocompleting text fields (customized)

2008-10-30 Thread Sridhar
Hi Colin, Really appreciate your input. Sorry, I should've been more crisper with my requirement. Let me try to do that: When the user types in 'a', I still like the display of the drop down list with contact name and email address one below the other. When I select a contact from the list, I sti

[Proto-Scripty] Re: curry Misunderstanding?

2008-10-30 Thread kangax
On Oct 30, 2:30 am, "T.J. Crowder" <[EMAIL PROTECTED]> wrote: > > The "lost" context is easily "fixed": > > > sendState(email, $F('save-comments'), > > sph.fire.bind(sph).curry(doneEvent)); > > bind() accepts additional parameters for the function, so you don't > need the curry: > >     sendState(

[Proto-Scripty] Effect.toggle slide doesn't work well with unordered/ordered list elements

2008-10-30 Thread kimbaudi
Hi, I was inspired by http://www.exit404.com/2005/57/unobtrusive-persistant-scriptaculous-effects to create a menu that would expand and contract the menu whenever I click on the menu header. Instead of using Effect.BlindDown and Effect.BlindUp, I decided to use Effect.toggle to toggle the unord