[Proto-Scripty] Return value onSuccess

2010-08-18 Thread Canino_latino
Hi, I'm trying to return value from onSuccess I saw somes posts but it doesn't help me. this is my code: function nick(nano){ var respuesta = ; var parametros=nickk=+encodeURIComponent(nano); new Ajax.Request('chat.php',{ method: 'GET', parameters: parametros, onSuccess:

Re: [Proto-Scripty] Should be simple - using up() with css class

2010-08-18 Thread David J. Hamilton
On Tue, Aug 17, 2010 at 1:47 PM, Rhiq ndba...@gmail.com wrote: I obviously don't get the way up() works.  Using the generated HTML below: tr class=sd_type ChildOfClass10 ChildOfCat8 open id=type-18 [snip] /tr [snip] tr id=part-47 class=sd_part ChildOfType18 ChildOfClass10 ChildOfCat8 [snip]

[Proto-Scripty] Re: Return value onSuccess

2010-08-18 Thread T.J. Crowder
Hi, The problem with your `nick` function is that it expects to be able to return a value it's gotten from the server, but the call to the server is *asynchronous* -- your function returns before the call completes, and so your function always returns . You _could_ make the ajax call synchronous

[Proto-Scripty] Re: Script.aculo.us + Prototype scripts not working on my server

2010-08-18 Thread Eric
I did see this strange behavior on a couple of computers (same code of course working nicely on other computers). My fix was to stop using scriptaculous.js and include directly all scriptaculous modules I needed (in your case, effects.js should be enough). However, unless you need your site to

[Proto-Scripty] Re: Introducing AutoTable, new Table/Grid widget

2010-08-18 Thread Eric
Hi On Aug 15, 5:12 pm, Blaine blaine.simp...@admc.com wrote: The way you suggest how to hand the sort gesture is how I implemented it first.  The result is terrible because the th click and drag ... Why do you have a a in your th? You could use the mouseup of the th. In order to avoid

[Proto-Scripty] Ajax.Updater issue with swf in IE

2010-08-18 Thread greeny
Hi all. This is my first post here and I want to compliment everyone for the good job everyone is doing here. I´m having an issue with IE and flash. when using Scriptaculous Ajax.Updater to a div, the content that has some swf in it, loads normally (actually very) well in every browser. But

[Proto-Scripty] Re: Appending a template evaluation to an HTML element.

2010-08-18 Thread ChrisH
I was using the innerHTML method to produce a table of forms. I had to change to the DOM element method because I couldn't address the form elements created by the innerHTML method and the whole purpose was to be able to submit another ajax request with data from the forms. Should the form

[Proto-Scripty] how to modify a part of an a href=...

2010-08-18 Thread Erwin
I have the following html code in my page li style=display: none; id=show_user class=basic_link a href=/admin/users/4c6a275ea326cb01f401?locale=enShow User/a /li I would like to modify the id part of the href (4c6a275ea326cb01f401) between the '/admin/users/' string and the

Re: [Proto-Scripty] Re: instantiate class problem on IE

2010-08-18 Thread Loris Menghi
The fact remains that IE7 does not instantiate the class -- 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-scriptacul...@googlegroups.com. To unsubscribe from this group, send email to

Re: [Proto-Scripty] how to modify a part of an a href=...

2010-08-18 Thread Walter Lee Davis
On Aug 18, 2010, at 11:51 AM, Erwin wrote: I have the following html code in my page li style=display: none; id=show_user class=basic_link a href=/admin/users/4c6a275ea326cb01f401?locale=enShow User/a /li I would like to modify the id part of the href (4c6a275ea326cb01f401)

[Proto-Scripty] Re: how to modify a part of an a href=...

2010-08-18 Thread greeny
On 18 Ago, 16:51, Erwin yves_duf...@mac.com wrote: I have the following html code in my page  li style=display: none; id=show_user class=basic_link      a href=/admin/users/4c6a275ea326cb01f401?locale=enShow User/a /li I would like to modify the id part of the href

Re: [Proto-Scripty] how to modify a part of an a href=...

2010-08-18 Thread Dave Kibble
you might find this regular expression useful: var myRegExp = /(^.*?)([^\/]*)\?(.*$)/; var match = myRegExp.exec(link.href.toString()); alert(match[1] + '\n' + match[2] + '\n' + match[3]); -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us

[Proto-Scripty] Re: Introducing AutoTable, new Table/Grid widget

2010-08-18 Thread Blaine
Re. the click drag, I'm mulling over different options. As I said previously, I don't like it that the user gets no feedback until they start the drag motion. Since you indicate that several users have no problem with that, I'll probably end up doing it that way. Very useful information that

[Proto-Scripty] Re: Appending a template evaluation to an HTML element.

2010-08-18 Thread T.J. Crowder
Hi, Should the form elements of an innerHTML assignment be addressable after its insertion? Yes, but there are browser bugs around both forms and tables (mostly but not entirely IE bugs). The good news is that Prototype includes workarounds for them, so if you use Element#update rather than

[Proto-Scripty] Re: instantiate class problem on IE

2010-08-18 Thread T.J. Crowder
Hi, The problem is that you have a dangling comma at the end of your object literal (after the definition of the `srotola` function). IE considers dangling commas fatal parsing errors; most other browsers have no problem with them. Here's are two examples of dangling commas: var obj = {

[Proto-Scripty] Re: how to modify a part of an a href=...

2010-08-18 Thread Erwin
thanks a lot , will keep it in my PrototypeTricks folder On 18 août, 19:27, Dave Kibble davekib...@gmail.com wrote: you might find this regular expression useful: var myRegExp = /(^.*?)([^\/]*)\?(.*$)/; var match = myRegExp.exec(link.href.toString()); alert(match[1] + '\n' + match[2] + '\n'

[Proto-Scripty] Re: how to modify a part of an a href=...

2010-08-18 Thread Erwin
Thanks a lot, unfortunately the is number is not a static value .. this is why I want to modify it when user selects a checkbox in a list On 18 août, 19:00, greeny netpl...@gmail.com wrote: On 18 Ago, 16:51, Erwin yves_duf...@mac.com wrote: I have the following html code in my page  li

[Proto-Scripty] Re: how to modify a part of an a href=...

2010-08-18 Thread Erwin
Thanks a lot, I am using RoR, but now (Rails 3) requires people to get a better knowledge of js... I'll need to work on it On 18 août, 18:21, Walter Lee Davis wa...@wdstudio.com wrote: On Aug 18, 2010, at 11:51 AM, Erwin wrote: I have the following html code in my page li style=display: