[Proto-Scripty] Re: How to handle non-JavaScript browsers when using Ajax.Updaters for content

2008-09-12 Thread Dustin S
True. We actually dabble in Catalyst w/ Template Toolkit, but so far have actually found it far more intrusive that helpful to our online application, hence we're hand coding everything on the production site to-date [using handmade HTML, PHP, Prototype, LivePipe, and a dash of Scriptaculous!). I

[Proto-Scripty] User types freely on webpage and it jumps to a link...

2008-09-12 Thread beebul
Not sure this is the right group for this question, I'm looking for a bit of JavaScript functionality for a site... I have a huge html page with a big list of links and want the user to be able to type the beginning of the word of the link (not in a box just freely type) and it jumps to that link

[Proto-Scripty] Re: Drag&Drop and Ajax elements

2008-09-12 Thread LeCapitaine
Hi David, Thanks for your answer. I finnaly foud mlyself the solution the wonderful and magical eval() !!! What I did is to eval() all scripts of the document just after the innerHTML and it works. Cheers N. --~--~-~--~~~---~--~~ You received this message

[Proto-Scripty] Re: User types freely on webpage and it jumps to a link...

2008-09-12 Thread beebul
Just thought of a great comparison.. I want it to work like the phonebook in a mobile phone where you complete more and more of the name and it moves down the list accordingly. Cheers On Sep 12, 8:53 am, beebul <[EMAIL PROTECTED]> wrote: > Not sure this is the right group for this question, I'm

[Proto-Scripty] Re: Passing Dynamic Params with Autocompleter

2008-09-12 Thread ColinFine
On Sep 11, 2:12 pm, jmmg77 <[EMAIL PROTECTED]> wrote: > Maybe I'm missing something, but it seems like the autocompleter code > gets the elements default value when the page loads, but it doesn't > reflect any changes made to that element.  This is where I'm having > trouble.  Is there an onchan

[Proto-Scripty] Re: dragging a draggable into a sortable

2008-09-12 Thread Chrigu
is there already a solution on this topic? I have a similar problem, but i use three sortable lists. After dragging a item from list 3 to one of the others, the item sould stay in list 3. I have a sample on http://www.i-cons.ch/sample/list/ Thanks Chrigu On 19 Aug., 00:51, Georgie Porgie <[EMAIL

[Proto-Scripty] Re: How to handle non-JavaScript browsers when using Ajax.Updaters for content

2008-09-12 Thread bluezehn
My opinions on this are, if each page is going to be ajax'ed in, then why not just have them on a separate page right now anyway? You've obviously found a couple of huge problems with AJAX'ing content and I'd add a major third: history. It screws with the back buttons, especially if you don't sort

[Proto-Scripty] Re: Effect Slide problem in IE6

2008-09-12 Thread [EMAIL PROTECTED]
Hi everybody. Just another tips about that: If the Slide effect is still flickin' on IE try to put the correct codification on your html/php file, in my case UTF-8 This was the solution for me. --~--~-~--~~~---~--~~ You received this message because you are subsc

[Proto-Scripty] ajax prototype request indicator

2008-09-12 Thread Marcelius
Hello! I'd like to know if it is possible to add an 'system wide' notification when ANY Ajax.Request or Ajax.Updater is executed? I want to use this kind of behavior to show some sort of indicator to the user that content will be updated shortly, or when a request is pending. Yes I know I could u

[Proto-Scripty] Re: ajax prototype request indicator

2008-09-12 Thread bluezehn
I was trying to work out how to do this myself on Monday! The answer is Ajax Responders, http://www.prototypejs.org/api/ajax/responders . Note though that the API is wrong - onSuccess/onFailure/onXYZ callbacks are not available. The best solution to this I think is to switch on response.status in

[Proto-Scripty] Re: ajax prototype request indicator

2008-09-12 Thread T.J. Crowder
Curiously enough, that's exactly the scenario the docs talk about: http://www.prototypejs.org/api/ajax/responders -- T.J. Crowder tj / crowder software / com On Sep 12, 9:35 am, Marcelius <[EMAIL PROTECTED]> wrote: > Hello! > > I'd like to know if it is possible to add an 'system wide' > notifica

[Proto-Scripty] Re:Livepipe

2008-09-12 Thread jason maina
HI all, Wondering whether I have to have ruby to use livepipe??? --~--~-~--~~~---~--~~ 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@google

[Proto-Scripty] Re: Effect Slide problem in IE6

2008-09-12 Thread [EMAIL PROTECTED]
Hi everybody. Just another tips about that: If the Slide effect is still flickin' on IE try to put the correct codification on your html/php file, in my case UTF-8 This was the solution for me. --~--~-~--~~~---~--~~ You received this message because you are subs

[Proto-Scripty] Re: Get value from table cell when table row have checkbox checked

2008-09-12 Thread ColinFine
On Sep 12, 5:10 am, Daniel Lopes <[EMAIL PROTECTED]> wrote: > Thanks Diogo... this fix my problem: > > function check_entries(){ >         sum = 0; >         $$("#entries_list input:checked").each( function(e) { >                 value = $("value_"+$(e).id).innerHTML; >                 value = c

[Proto-Scripty] Re: Trouble with Element.extend in cross-window interaction in IE

2008-09-12 Thread Jonas Rosenqvist
I ran in to something similar, ended up having to lift out the essential functions for the "in new window" function into a separate class for it to work in IE. Ugly as hell but it was the only way. On 11 Sep, 09:00, dolzenko <[EMAIL PROTECTED]> wrote: > Say we have two windows. Window2 operates (

[Proto-Scripty] Effects.toggle messes up the overflow style

2008-09-12 Thread Hugo Palma
I'm using the Effects.toggle effect on a div that has the "overflow: auto" attribute on it's style. The problem is that the execution of the effect clear the overflow attribute so it's no longer set to "auto" after the effect executes. This only happens with the script.aculo.us toggle effect. If

[Proto-Scripty] Re: Drag and Drop between Lists

2008-09-12 Thread david
Hi Chrigu, > 1) I use 3 lists. I can drag and drop items from every list to the > others or within the list. This ist just perfect for list 1 and 2. But > list 3 sholud always stay the same. Even if i drag a item out of the > list, the item should stay in the list and a copy of the item should >

[Proto-Scripty] Re: Drag&Drop and Ajax elements

2008-09-12 Thread david
Hi, I'm surprise of such a resolution, but I'm quite sure you could tro something else :)) But as it's work -- david On 12 sep, 10:17, LeCapitaine <[EMAIL PROTECTED]> wrote: > Hi David, > > Thanks for your answer. > I finnaly foud mlyself the solution the wonderful and magical > eval(

[Proto-Scripty] Re: Effects.toggle messes up the overflow style

2008-09-12 Thread david
Hi Hugo, depending on effect, sometime scrtiptaculous change CSS properties, the only method i found was to check before the effect the CSS propertiy, save it and on afterFinish event, set the saved value. -- david On 12 sep, 13:11, Hugo Palma <[EMAIL PROTECTED]> wrote: > I'm using the Effects.

[Proto-Scripty] Re: a problem with IE

2008-09-12 Thread zaher ghaibeh
will i dont hardcode any thing since i deal with url as variables taken from db , so that i dont care about hardcode the domain . On Sep 12, 7:55 am, "Justin Perkins" <[EMAIL PROTECTED]> wrote: > On Thu, Sep 11, 2008 at 11:21 PM, zaher ghaibeh <[EMAIL PROTECTED]> wrote: > > > can i ask you where

[Proto-Scripty] Re: Trouble with Element.extend in cross-window interaction in IE

2008-09-12 Thread david
Hi dolzenko, If I understand, you extend the window1 with window2 object ??? Why not extending with static method, so event if a window is present or not, the element is extend -- david On 11 sep, 09:00, dolzenko <[EMAIL PROTECTED]> wrote: > Say we have two windows. Window2 operates (and extend

[Proto-Scripty] Re: Livepipe

2008-09-12 Thread Diodeus
Dunno. This group has nothing to do with Ruby. On Sep 12, 7:19 am, "jason maina" <[EMAIL PROTECTED]> wrote: > HI all, > Wondering whether I have to have ruby to use livepipe??? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[Proto-Scripty] Re: Get value from table cell when table row have checkbox checked

2008-09-12 Thread RobG
On Sep 12, 12:53 pm, Daniel Lopes <[EMAIL PROTECTED]> wrote: > This not solution when you want use grids... table are not for layout, > right use is to display data, layout must be maded in divs. That makes no sense at all. I wasn't suggesting your use of a table is wrong, but that you use the

[Proto-Scripty] Re: Livepipe

2008-09-12 Thread jason maina
Sorry I entered the wrong email address. On Fri, Sep 12, 2008 at 4:07 PM, Diodeus <[EMAIL PROTECTED]> wrote: > > Dunno. This group has nothing to do with Ruby. > > On Sep 12, 7:19 am, "jason maina" <[EMAIL PROTECTED]> wrote: > > HI all, > > Wondering whether I have to have ruby to use livepip

[Proto-Scripty] Re: Effects.toggle messes up the overflow style

2008-09-12 Thread Hugo Palma
That worked great, thanks for the tip. Cheers, Hugo On Sep 12, 1:16 pm, david <[EMAIL PROTECTED]> wrote: > Hi Hugo, > > depending on effect, sometime scrtiptaculous change CSS properties, > the only method i found was to check before the effect the CSS > propertiy, save it and on afterFinish eve

[Proto-Scripty] Re: User types freely on webpage and it jumps to a link...

2008-09-12 Thread Justin Perkins
Yes you could just setup a keyup observer on the entire document, the two problems that I see right away is that any keyboard shortcuts the user already uses may or may not work any longer depending on how you write your code. Secondly, depending on the size of the list of links, the script may ta

[Proto-Scripty] Re: Using onEnd event to perform external procedure

2008-09-12 Thread Matt Foster
Yeah, think about it, you drop something then everything goes blank and you wait while the page is reloaded, it just seems that interface model would make for a jarring experience. Recreating that state could be a PIA by itself where if you just sent your data via an XHR your state would be solid

[Proto-Scripty] Re: User types freely on webpage and it jumps to a link...

2008-09-12 Thread Matt Foster
I don't know about this "entire document" idea, if they're freely typing anywhere, A) As Justin mentioned shortcuts such as ctrl T for a new tab might be broken, and B) They're going to have no idea what they've already typed nor have any idea how many times they've hit backspace when trying a new

[Proto-Scripty] Re: User types freely on webpage and it jumps to a link...

2008-09-12 Thread bluezehn
I think a scriptaculous autocompleter is the best solution to this problem. You don't want to muck about with where the user is on a page unless you absolutely have to, and an autocompleter doesn't have to work like it's a "drop down". You can just change the population of the ul and leave it as a

[Proto-Scripty] Re: Effects.toggle messes up the overflow style

2008-09-12 Thread jdalton
Scriptaculous should really backup the styles before applying the effect and then set them back again. You can report this as a bug to: http://prototype.lighthouseapp.com/projects/8887-script-aculo-us - JDD --~--~-~--~~~---~--~~ You received this message because yo

[Proto-Scripty] Re: Livepipe

2008-09-12 Thread Walter Lee Davis
No, just JavaScript. http://goodserviceguide.com uses it, and it's written in PHP. Walter On Sep 12, 2008, at 7:19 AM, jason maina wrote: > HI all, > Wondering whether I have to have ruby to use livepipe??? > > --~--~-~--~~~---~--~~ > --~--~-~--~~-

prototype-scriptaculous@googlegroups.com

2008-09-12 Thread achernin
prototype.js, Version: '1.6.0.2', Line 3462 focusFirstElement: function(form) { form = $(form); form.findFirstElement().activate(); return form; }, this code is unsafe. findFirstElement() function returns empty value, if form has no elements. look at this: var elements = $(form

[Proto-Scripty] Unsetting value in Autocompleter

2008-09-12 Thread Jack
Hi, I'm using 1.8.1 autocompleter as shown below: new Ajax.Autocompleter("companyName", "companyHint", "abc.php", {paramName: "companyName", minChars: 1, indicator: 'inprogress', callback: null, afterUpdateElement: getSelectedId}); function getSelectedId(text, li) { $('company_id').va

prototype-scriptaculous@googlegroups.com

2008-09-12 Thread kangax
On Sep 12, 11:44 am, achernin <[EMAIL PROTECTED]> wrote: > prototype.js,  Version: '1.6.0.2', Line 3462 > >   focusFirstElement: function(form) { >     form = $(form); >     form.findFirstElement().activate(); >     return form; >   }, > > this code is unsafe. findFirstElement() function returns e

[Proto-Scripty] autocompleter does not work with contents pasted by using mouse

2008-09-12 Thread Jack
Hi, I'm using 1.8.1 autocompleter. Question 1: I've observed that when copy paste the search string using keyboard in the text box, it displays hints. However, if I copy paste the same stuff using mouse, then the hints are not displayed at all. I think the even is placed on keydown or so

[Proto-Scripty] Re: Autocompleter causes browser window to "jump around" on up/down arrow

2008-09-12 Thread AlexArno
Hi, I'm encountering the same issue, has anyone found a workaround for this yet? Cheers Alex On Aug 29, 11:28 pm, jrochkind <[EMAIL PROTECTED]> wrote: > I'm seeing an issue with the Autocompleter where, after the popup > select menu div comes up, if you use the up or down arrow to navigate > th

[Proto-Scripty] Re: autocompleter does not work with contents pasted by using mouse

2008-09-12 Thread Justin Perkins
On Fri, Sep 12, 2008 at 11:57 AM, Jack <[EMAIL PROTECTED]> wrote: > Question 1: > I've observed that when copy paste the search string using keyboard > in the text box, it displays hints. However, if I copy paste the same > stuff using mouse, then the hints are not displayed at all. I think >

[Proto-Scripty] Re: Livepipe

2008-09-12 Thread kangax
On Sep 12, 7:19 am, "jason maina" <[EMAIL PROTECTED]> wrote: > HI all, > Wondering whether I have to have ruby to use livepipe??? Nope. You don't need to. -- kangax --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "P

[Proto-Scripty] Re: autocompleter does not work with contents pasted by using mouse

2008-09-12 Thread Jack D
Hi Justin, Thanks for your reply. Can you give me exact code & where to add for mouse event? Regarding 2nd solution, do I just need to replace line 316 with the below line? return this.element.value.substring(bounds[0], bounds[1]); Will there be any impact on any other part of the

[Proto-Scripty] Re: Unsetting value in Autocompleter

2008-09-12 Thread Jack D
Hello, Can anyone help me in the below issue? Thanks! On Fri, Sep 12, 2008 at 9:30 AM, Jack <[EMAIL PROTECTED]> wrote: > > Hi, > I'm using 1.8.1 autocompleter as shown below: > > new Ajax.Autocompleter("companyName", "companyHint", "abc.php", > {paramName: "companyName", minChars: 1, ind

[Proto-Scripty] Not Extending Function on IE

2008-09-12 Thread FernandezPablo
Hi, I'm having a problem with prototype. this code breaks in IE 6 $("formId").submit.wrap(function(proceed){}) because "wrap" is undefinded. any ideas? Thanx! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Proto

[Proto-Scripty] Re: Not Extending Function on IE

2008-09-12 Thread Ken Snyder
FernandezPablo wrote: > Hi, I'm having a problem with prototype. > > this code breaks in IE 6 > > $("formId").submit.wrap(function(proceed){}) > > because "wrap" is undefinded. > > any ideas? Thanx! You're going to want to observe the submit event instead of altering the native submit function:

[Proto-Scripty] Re: autocompleter does not work with contents pasted by using mouse

2008-09-12 Thread Justin Perkins
You do not want to alter the source code of scriptaculous, or at least I would not recommend it since whenever you update your library to a newer version you will lose those changes. You need to *extend* those classes/modules in a separate JS file that is included after the controls.js file is inc

[Proto-Scripty] Re: Not Extending Function on IE

2008-09-12 Thread FernandezPablo
I can't use that, because the function does not fire. Maybe because this script is inside a Tiles Component (Struts) ? wrap is working wonderfully in FF, does anyone know why it breaks in IE and how to solve it? On Sep 12, 4:04 pm, Ken Snyder <[EMAIL PROTECTED]> wrote: > FernandezPablo wrote: >

[Proto-Scripty] Re: autocompleter does not work with contents pasted by using mouse

2008-09-12 Thread Jack D
Hi Justin, Thanks for the prompt solution. I copied the below code in a file called abc.js & included it in the calling program. But, I'm getting error in IE 6. It works fine in Firefox. It gives me error in IE: Expected identifier, string or numer Can you please help me? Thanks! On

[Proto-Scripty] Re: autocompleter does not work with contents pasted by using mouse

2008-09-12 Thread Jack D
Hi Justin, Sorry for my previous quick reply. The code works fine. There was semicolon which is not required. Code works fine although I still have a question. When I pasted text using mouse, it didn't display the hints. I've to at least click once in the text box to get the hint. Wi

[Proto-Scripty] Re: Not Extending Function on IE

2008-09-12 Thread kangax
On Sep 12, 3:24 pm, FernandezPablo <[EMAIL PROTECTED]> wrote: > I can't use that, because the function does not fire. > Maybe because this script is inside a Tiles Component (Struts) ? > > wrap is working wonderfully in FF, does anyone know why it breaks in > IE and how to solve it? It "breaks" b

[Proto-Scripty] Re: JSON, ASP.NET and Date's

2008-09-12 Thread Kruncher
Ah right, yes that makes perfect sense. What if the date were to be serialized as "new Date(...)"? For example, var input = new String("{ dob:new Date(1220453756681+0100) }"); var evaluated = input.evalJSON(); var v1 = evaluated.dob.toString(); // v1 ==> "Wed Sep 03 2008 15:55:56 GMT+0100 (GMT

[Proto-Scripty] Re: Ajax - bookmarking, back button, etc..

2008-09-12 Thread phoenix
Hi, I developed and put online a small library that offers an integrated and flexible solution: The components and History Ajax.History allow you to manage browsing history very easily. You can see examples and documentation online at: http://www.prototypextensions.com Of course, the use of onh

[Proto-Scripty] Re: a problem with IE

2008-09-12 Thread kangax
On Sep 12, 8:00 am, zaher ghaibeh <[EMAIL PROTECTED]> wrote: > will i dont hardcode any thing since i deal with url as variables > taken from db , so that i dont care about hardcode the domain . Then why can't you store those urls in DB as relative ones? -- kangax --~--~-~--~~---

[Proto-Scripty] IE6 fires unexpectedly 'onclick' when pressing ENTER

2008-09-12 Thread mocambo
I have produced an simple example! http://www.hot.ee/mocambo/test_input_ie.html (For testing issues all of Prototype.js removed) Focus input field or document body and press ENTER. It fires Click on Button 1 all times. Where IE stores reference to this default button ? Maybe it's possible set N

[Proto-Scripty] Prototype, Scriptaculous, and IE6 and IE7 bug

2008-09-12 Thread John Nicely
I've been vexing myself trying to figure out what's going on here for the last few hours. I'm trying to get the site [url]http://www.bellezzasi.com[/url] set up to have a sliding menu so that the menu is always present when the user scrolls down or up. The script is only active on the following