[Proto-Scripty] Re: Delay Required after Ajax.Request() ... How to?

2009-03-01 Thread Quleczka

Hi,

 It does mean that if you have code further down the list of things to
 do which is reliant on the result of the request, then it will have to
 wait as well.

 So, that code would have to be part of the onSuccess too.
 Hope this is understandable.

I'm new to Ajax as well but I understand how this is working.Still I
have problem with situation described in my post above - how to take
care about this things that have to wait as well in this case? Can
you help me with this?

I have Event.observe to the form submit action with function which
should check if the value typed in the on of input fields is already
in the database or not. This function use Ajax.request to check this
and have true/false response.

How can I make this to DO NOT submit the form before ajax response
will come? ... I have all necessary processing in onSuccess but there
is no chance to execute it cause form is submitted earlier.

What is standard way to deal with this kind of things?

This is only example I have problem with. I understand basic rule of
working with Ajax and it asynchronous nature :)

Quleczka
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---



[Proto-Scripty] Re: Delay Required after Ajax.Request() ... How to?

2009-03-01 Thread T.J. Crowder

Hi,

 How can I make this to DO NOT submit the form before ajax response
 will come?

There are a couple of ways you can do this.

1. Don't let them submit until the field is validated.

When the user changes the field, as soon as they leave it (or even as
soon as they change it) disable the submit button and fire off the
validation check; enable the submit button when the check comes back
showing it's okay, or show an error unobtrusively next to the field if
the value is a duplicate.  You've probably seen password strength
indicators that worked in a similar way.  That way, when the user
submits the form, the field has already been checked (not that race
conditions don't still apply, and you always validate user input on
the server anyway).

2. Do the submit via XHR rather than letting the browser do it.

A more significant change would be to not submit the form via the
usual browser mechanism at all.  Instead, intercept the form submit,
cancel it, disable the submit button and show some in progress
indicator, gather together the form field values (perhaps using
Form#serialize[1]), and submit the form via an Ajax.Request where the
server returns a JSON-formatted response saying either yes, all is
fine or no, there was a problem and listing the fields with
problems.  E.g., success might look like this:

{success: true}

...where failure might look like this:

{success: false, fieldErrors: [
myNiftyField:   There is already an entry with this value,
myOtherField:   Please supply a value, this field can't be
blank
]}

Your submission code handles the failure by highlighting the fields
and showing the errors next to them, that sort of thing.

One nice thing about this is that you can do most of your validation
code just once (on the server), rather than having to have it both on
the server (because you *always* have to validate user input on the
server) and on the client (for your users' convenience).

You'll want to submit the form to a different resource than the
location the browser would send it to, or add a parameter telling the
server that it's an XHR submission rather than a standard submission,
so the server can send back the appropriate response -- the JSON data
if submitted via XHR, or a page if submitted the old-fashioned way.
Unless you don't support browsers with JavaScript disabled.

One issue to be aware of is that Form#serialize has a couple of bugs
in it.  Specifically, it doesn't preserve the order of the fields
(which forms are supposed to do) and it doesn't allow for multiple
fields with the same name.  Those are being addressed in an upcoming
release, I think 1.6.1 (not 1.6.0.4).

The unofficial wiki[2] could use a really thoroughly-written, clear
example of form submission and error handling.  I won't have time for
the next three weeks or so, but if no one else has done it by then,
I'll look at doing it...

[1] http://prototypejs.org/api/form/serialize
[2] http://proto-scripty.wikidot.com

Last but not least, the other thing that's happening latey -- which
I've seen both good and bad examples of -- is people moving away from
the concept of submitting forms entirely.  Instead, when a user
edits a field, they validate and commit that edit (or say why they
can't) immediately when the user leaves the field (while the user is
doing something else on that page).  That way, the user doesn't change
something and forget to save the change, and things are more
interactive.  Still lots of places where you *don't* want to do that,
but something to keep in mind...

I'm sure there are a bunch of other options as well.

FWIW,
--
T.J. Crowder
tj / crowder software / com
Independent Software Engineer, consulting services available


On Mar 1, 9:35 am, Quleczka qulec...@gazeta.pl wrote:
 Hi,

  It does mean that if you have code further down the list of things to
  do which is reliant on the result of the request, then it will have to
  wait as well.

  So, that code would have to be part of the onSuccess too.
  Hope this is understandable.

 I'm new to Ajax as well but I understand how this is working.Still I
 have problem with situation described in my post above - how to take
 care about this things that have to wait as well in this case? Can
 you help me with this?

 I have Event.observe to the form submit action with function which
 should check if the value typed in the on of input fields is already
 in the database or not. This function use Ajax.request to check this
 and have true/false response.

 How can I make this to DO NOT submit the form before ajax response
 will come? ... I have all necessary processing in onSuccess but there
 is no chance to execute it cause form is submitted earlier.

 What is standard way to deal with this kind of things?

 This is only example I have problem with. I understand basic rule of
 working with Ajax and it asynchronous nature :)

 Quleczka
--~--~-~--~~~---~--~~
You received this message because you 

[Proto-Scripty] Re: Delay Required after Ajax.Request() ... How to?

2009-03-01 Thread Quleczka

Hi,

Thanks for your reply.

 There are a couple of ways you can do this.

 1. Don't let them submit until the field is validated.

:

The point is I wanted to change my validation from dynamic  (when
user  type or changes the fields) to on submit only :)

 2. Do the submit via XHR rather than letting the browser do it.

Ok, I was thinking about this solution and using From.serialize but I
didn't want to my site to much - just simply change one thing -
validate username on submit not while typing :)

 One nice thing about this is that you can do most of your validation
 code just once (on the server), rather than having to have it both on
 the server (because you *always* have to validate user input on the
 server) and on the client (for your users' convenience).

You are right but I already have both so it's not a problem.

 Last but not least, the other thing that's happening latey -- which
 I've seen both good and bad examples of -- is people moving away from
 the concept of submitting forms entirely.  

Can be nice but I want entire form to submit :)

So my question is still open - is there any way to check something
with ajax request on submit and submit form when you have true/false
response?


--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---



[Proto-Scripty] Re: Delay Required after Ajax.Request() ... How to?

2009-03-01 Thread Quleczka

By the way if I don't find any other solution soon I'll use
http://prototypejs.org/api/form/request probably to send entire form
and return some result.
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---



[Proto-Scripty] Re: Delay Required after Ajax.Request() ... How to?

2009-03-01 Thread Tobie Langel


 So my question is still open - is there any way to check something
 with ajax request on submit and submit form when you have true/false
 response?

Yes. Use Event#stop to prevent default submit action. Fire an ajax
request that does the validation. Show a validating indicator, upon
receiving the request back, just use $('my_form_id').submit() to
submit the form.

The reason this pattern is not used more often is that it somehow
defeats the purpose of ajax. If you're planning to validate on submit
only and on the server side, what's the point in doing it with an ajax
request ? That extra request is useless should the form validate, and
it represents a meager advantage over a synchronous request otherwise
(possibly reduced file size).

Best,

Tobie
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---



[Proto-Scripty] Re: I have a problem with building prototypejs with rake

2009-03-01 Thread Tobie Langel

This has changed indeed. We'll update the readme file accordingly.

Best,

Tobie

On Mar 1, 2:17 pm, buda www...@pochta.ru wrote:
 I dont know what is git command - I'm windows user
 I do as written on the site:

 Building Prototype from source
 prototype.js is a composite file generated from many source files in
 the src/ directory. To build Prototype, you’ll need:

 a copy of the Prototype source tree, either from a distribution
 tarball or from the Git repository (see below)
 Ruby 1.8.2 or higher (www.ruby-lang.org/)
 Rake — Ruby Make (rake.rubyforge.org/)
 RDoc, if your Ruby distribution does not include it
 From the root Prototype directory,

 rake dist will preprocess the Prototype source using ERB and generate
 the composite dist/prototype.js.
 rake package will create a distribution tarball in the pkg/
 directory.

 But its from some day stoped work properly :(

 On 1 мар, 09:33, Richard Quadling rquadl...@googlemail.com wrote:



  2009/2/28 buda www...@pochta.ru:

   Help me please

   On 27 фев, 21:50, buda www...@pochta.ru wrote:
   any dance with tambourine around

     $ git submodule init
     $ git submodule update

   doesnt help me :

   Early it was enough to call rake dist to make a file
   While now its so difficult???
   How to get the latest release???

   On 27 фев, 18:20, Richard Quadling rquadl...@googlemail.com wrote:

2009/2/27 buda www...@pochta.ru:

 C:\ruby\bin$ git submodule init
 '$' is not recognized as an internal or external command,
 operable program or batch file.

 On 27 фев, 16:57, Richard Quadling rquadl...@googlemail.com wrote:
 2009/2/27 buda www...@pochta.ru:

  I downloaded last build and I tried to make a library an error 
  braks
  the process

  C:\...f75029182a448b35788ea010bffbc884rake dist
  'rake' is not recognized as an internal or external command,
  operable program or batch file.

  C:\...f75029182a448b35788ea010bffbc884C:\ruby\bin\rake dist
  (in 
  C:/sstephenson-prototype-ae667274f75029182a448b35788ea010bffbc884/
  sstephenso
  n-prototype-ae667274f75029182a448b35788ea010bffbc884)

  You'll need Sprockets to build Prototype. Just run:

   $ git submodule init
   $ git submodule update

  and you should be all set.

  rake aborted!
  uninitialized constant Sprockets
  C:/sstephenson-prototype-ae667274f75029182a448b35788ea010bffbc884/
  sstephenson-pr
  ototype-ae667274f75029182a448b35788ea010bffbc884/rakefile:28:in
  `sprocketize'
  (See full trace by running task with --trace)

  Help me please

 Did you run the git commands that you were told to run?

 --
 -
 Richard Quadling
 Zend Certified Engineer 
 :http://zend.com/zce.php?c=ZEND002498r=213474731
 Standing on the shoulders of some very clever giants!- Скрыть 
 цитируемый текст -

 - Показать цитируемый текст -

$ is a unix command prompt.

You will need to get hold of git for windows. I'm not sure there is a
port of this. Instead, I use Cygwin.

   http://github.com/guides/using-git-and-github-for-the-windows-for-new...

--
-
Richard Quadling
Zend Certified Engineer 
:http://zend.com/zce.php?c=ZEND002498r=213474731
Standing on the shoulders of some very clever giants!- Скрыть 
цитируемый текст -

- Показать цитируемый текст -- Скрыть цитируемый текст -

   - Показать цитируемый текст -

  The latest release is 1.6.0.3 and that can be got 
  fromhttp://www.prototypejs.org/assets/2008/9/29/prototype-1.6.0.3.js

  The latest source is via git, but the build code has moved to using a
  library called Sprockets. So this is also required.

  I'm no expert with ruby and I had an issue with this on windows.

  Sam kindly fixed this and it now works as expected.

  It may be worth resetting your local store (something I also had a
  problem with) ...

 http://groups.google.com/group/prototype-core/browse_thread/thread/6e...

  Read through that thread to see how to reset your local copy.

  Richard.

  --
  -
  Richard Quadling
  Zend Certified Engineer :http://zend.com/zce.php?c=ZEND002498r=213474731
  Standing on the shoulders of some very clever giants!- Скрыть цитируемый 
  текст -

  - Показать цитируемый текст -
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---



[Proto-Scripty] Re: problem of preview a website using Prototype

2009-03-01 Thread SamuelXiao

Could someone please help me?  What I want to is to bind the variable
i to gotopreview(event,i) function, thus everytime the toplink
[i].onmouseover, there is a preview web page shown, I modify the code
to use listeners in the following fun, but firebug tells me getsid
[i].value is not defined, how can i pass the i value to gotopreview?
At the same time, it would not conflict other functions?

Event.observe(window,'load',function(){
var temp = document.getElementById('newtoplink');
var ntlink = temp.getElementsByTagName(a);
this.i = 0;
var temp = this;
for(var i =0;intlink.length;i++){

Event.observe(ntlink[i],mouseover,gotopreview.bindAsEventListener
(this));
}
});

function gotopreview(event,i){
var xPos, yPos;
xPos = Event.pointerX(event);
yPos = Event.pointerY(event);
var getpostid=document.getElementsByName(postid);
var getsid = document.getElementsByName(stdid);
var url = getOnePost.php;
var pars = stdid=+getsid[i].value + postid= + getpostid
[i].value;
new Ajax.Request(url,{
method:'get',
parameters: pars,
asynchronous: true,
onSuccess: function(transport){
$('previewWin').update(transport.responseText);
$('previewWin').style.top = parseInt(yPos) + 2 + px;
$('previewWin').style.left = parseInt(xPos) + 2 + px;
$('previewWin').style.visibility = visible;
$('previewWin').onmouseout = hidePreview;
}
});
}

function hidePreview(){
$('previewWin').style.visibility = hidden;
}

Any help would be appreciated.

On Feb 28, 8:43 pm, SamuelXiao foolsmart2...@gmail.com wrote:
 I am writing javascript code to show web page preview.  There are
 links in my website (e.g. 4 links), when user move mouse over each
 a/a (a class called toplink is assigned to each a tag), a
 preview content box is shown , it works well in the following way:

 window.onload = initAll;
 var xPos, yPos;
 var i;
 function initAll(){

         var elms = document.getElementsByClassName(toplink);

         for (i=0;ielms.length;i++)
         {
                  elms[i].onmouseover=function(v){
                                                                 return 
 function(event){gotopreview(event,v);}
                                                                 }(i)
         }

 }

 function gotopreview(event,i){

         xPos = Event.pointerX(event);
         yPos = Event.pointerY(event);
         var getpostid=document.getElementsByName(postid);
         var getsid = document.getElementsByName(stdid);
         var url = getOnePost.php;
         var pars = stdid=+getsid[i].value + postid= + getpostid
 [i].value;

         var myajax = new Ajax.Request(url,{
                 method:'get',
             parameters: pars,
                 asynchronous: true,
                 onSuccess: function(transport){
                         $('previewWin').update(transport.responseText);
                         $('previewWin').style.top = parseInt(yPos) + 2 + px;
                         $('previewWin').style.left = parseInt(xPos) + 2 + 
 px;
                         $('previewWin').style.visibility = visible;
                         $('previewWin').onmouseout = hidePreview;
                 }
         });

 }

 function hidePreview() {
         $('previewWin').style.visibility = hidden;

 }

 In my html page, is like:
 html
 head
 /head
 body
 a class=toplink value=XX/a
 a class=toplink value=XX/a
 a class=toplink value=XX/a
 a class=toplink value=XX/a
 /body
 /html

 For Server side, I check the code and it is ok.

 /* Above code works well */

 However, when it comes to make use of it with other Ajax code, it
 doesn't work.  The following code is not work:

 obj = new Object;
 obj.f1= eventHandler;
 var xPos,yPos;
 var i;

 // I am required to do Javascript in a OO way.
 window.onload =obj.f1;

 window.onunload = function(){};

 function eventHandler(){
         callPreview();
        deleteelse(); // ohter function;

 }

 function callPreview(){

         var elms = document.getElementsByClassName(toplink);
         for (i=0;ielms.length;i++)
         {
                  elms[i].onmouseover=function(v){
                                                                 return 
 function(event){gotopreview(event,v);}
                                                                 }(i)
         }

 }

 function gotopreview(event,i){

         xPos = Event.pointerX(event);
         yPos = Event.pointerY(event);
         var getpostid=document.getElementsByName(postid);
         var getsid = document.getElementsByName(stdid);
         var url = getOnePost.php;
         var pars = 

[Proto-Scripty] Re: Delay Required after Ajax.Request() ... How to?

2009-03-01 Thread T.J. Crowder

Hi,

 The point is I wanted to change my validation from dynamic  (when
 user  type or changes the fields) to on submit only :)

:-) !

 Ok, I was thinking about this solution and using From.serialize but I
 didn't want to my site to much - just simply change one thing -

Option #2 can be a smallish change, you don't need all the bells and
whistles. :-)  A very rough untested cut:
http://pastie.org/403783

That version still submits the form the old-fashioned way
(form.submit), since that would be minimal impact on your current
design.  But of course, you can replace that with something ajaxy if
you like.

FWIW,
--
T.J. Crowder
tj / crowder software / com
Independent Software Engineer, consulting services available


On Mar 1, 1:22 pm, Quleczka qulec...@gazeta.pl wrote:
 Hi,

 Thanks for your reply.

  There are a couple of ways you can do this.

  1. Don't let them submit until the field is validated.

 :

 The point is I wanted to change my validation from dynamic  (when
 user  type or changes the fields) to on submit only :)

  2. Do the submit via XHR rather than letting the browser do it.

 Ok, I was thinking about this solution and using From.serialize but I
 didn't want to my site to much - just simply change one thing -
 validate username on submit not while typing :)

  One nice thing about this is that you can do most of your validation
  code just once (on the server), rather than having to have it both on
  the server (because you *always* have to validate user input on the
  server) and on the client (for your users' convenience).

 You are right but I already have both so it's not a problem.

  Last but not least, the other thing that's happening latey -- which
  I've seen both good and bad examples of -- is people moving away from
  the concept of submitting forms entirely.  

 Can be nice but I want entire form to submit :)

 So my question is still open - is there any way to check something
 with ajax request on submit and submit form when you have true/false
 response?
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---



[Proto-Scripty] Re: Delay Required after Ajax.Request() ... How to?

2009-03-01 Thread Quleczka

Hi,

 Yes. Use Event#stop to prevent default submit action. Fire an ajax
 request that does the validation. Show a validating indicator, upon
 receiving the request back, just use $('my_form_id').submit() to
 submit the form.

Thanks for hint :)

I was testing Event.stop but somehow I was thinking about it only in
context of failed validation inside my onSuccess function. I just
haven't thought about stoping even earlier before ajax request and
then just submiting form by myself.

 If you're planning to validate on submit only and on the server side, what's 
 the point in doing it with an ajax
 request ?

No I have 2 functions to run on sumbit:

- nice validation of many other fields in browser
- simple checking if username is taken by ajax request

If it is taken I don't want to submit form and reload the whole page
agan - that's all :)

Thanks a lot :)
Quleczka
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---



[Proto-Scripty] Re: Creating Ajax.InPlaceEditor dynamically ... confusing the hell out of me.

2009-03-01 Thread BearState


Never mind!

What I found is that the fix I put in for the 'onSuccess' in
Ajax.Request() still did not satisfactorilly allow time to return the
value from the CGI.  Thought it did, but it didn't.   Refer to the
thread on 'Delay Required after Ajax.Request() ... How to?' for more
info.

I went back to using setTimeout() on the split part of the function
and was then able to get the editor working.

BearState


On Mar 1, 11:36 am, BearState wixelb...@yahoo.com wrote:
 Hello again ...

 I want to thank the folks in this group.  It's a good sounding board
 to keep from bashing away for hours on end.  Nice quick responses from
 here have helped, especially while my head's been fogged over with the
 flu.

 Thanks.

 New Problem ...

 I have been able to successfully load up Ajax.InPlaceEditor objects
 and have them work during the load of my page using observe
 (DOM:LOAD).

 No problem.

 But I want to cure the problem of having multiple editors on my page.
 I want to create the editor on the fly and thus, solve two problems.
 1)  Only one editor object at any one time and 2) If I create a new
 object and insert it into the page, I can create an editor for it.

 But ... ( the awful 'but' )

 I can't for the life of me, get the damn thing to work.

 I create divs for the controls ...

 div id='edClick' /div
 div
 script id='edAjax' language=javascript!--
 //--/script
 /divBR

 Then I have a function to put the editor in play ...

 function editIT() {

     \$\(edClick).replace(A HREF='#' id='editThis'editThis/A);

     var theEditor =  var newEditor = new Ajax.InPlaceEditor
 ('theText'', 'thescript.cgi', +
                      { rows:10,cols:100,textBetweenControls:'  ', +
                      okControl:'link', +
                      externalControlOnly:true,
 externalControl:'editThis', +
                      callback: function(form, value) { return \
 \theID=1value=\\ +escape(value) } +
                      } );;

     \$\(edAjax).replace(theEditor);
     \$\(edClick).click();

 }

 No Go.

 I've tried just doing the new Ajad.InplaceEditor() in the function,
 out of it, here, there, everywhere, but No Go.

 What am I doin wrong?

 BearState
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---



[Proto-Scripty] Re: Delay Required after Ajax.Request() ... How to?

2009-03-01 Thread BearState


Woops!

Take that back.  It is NOT working right using onSuccess instead of
setTimeout() over the split part of the module.   Thought it was, but
it was not.  After having a hell of a time trying to dynamically plug
the InPlaceEditor, I found out that onSuccess has little to do with
successfully returning anything from the script.

BearState


On Mar 1, 11:21 am, BearState wixelb...@yahoo.com wrote:
 Thanks for the advice folks,

 Using onSuccess is the ticket.

 BearState

 We live, we learn ( we get over the flu! )

 On Mar 1, 7:21 am, Quleczka qulec...@gazeta.pl wrote:



   Option #2 can be a smallish change, you don't need all the bells and
   whistles. :-)  A very rough untested cut:http://pastie.org/403783

  Thanks T.J.

  Your idea is similar to the one described above by Tobie. I've just
  missed the point that I can stop events earlier and add submit my form
  inside ajax callback. I don't know why but all the time I was thinking
  about stoping event inside one of callbacks.

  Thanks again guys - that's exaclty what I needed :)

  Quleczka

  p.s. I haven't seen pastie before - really useful - bookmarked
  already:)- Hide quoted text -

 - Show quoted text -
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---



[Proto-Scripty] Re: Delay Required after Ajax.Request() ... How to?

2009-03-01 Thread Quleczka

On 1 Mar, 22:38, BearState wixelb...@yahoo.com wrote:
I found out that onSuccess has little to do with
 successfully returning anything from the script.

What do you exactly mean by this?

Quleczka

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---



[Proto-Scripty] Re: Creating Ajax.InPlaceEditor dynamically ... confusing the hell out of me.

2009-03-01 Thread Quleczka

 What I found is that the fix I put in for the 'onSuccess' in
 Ajax.Request() still did not satisfactorilly allow time to return the
 value from the CGI.  Thought it did, but it didn't.

Maybe some example what exactly is not working for you in this
'onSuccess' callback?

Quleczka
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---



[Proto-Scripty] Slider handleImage and handleDisabled usage

2009-03-01 Thread spaceage

Can anybody explain how to use this functionality?

The wiki indicates:

handleDisabled: The id of the image that represents the disabled
handle. This is used to change the image src when the slider is
disabled.

(note usage of 'id'...)

But the demo code reads:

handleDisabled: 'images/vsliderhandle_gray.gif'

not an id but rather a url.  I've tried doing this a bunch of
different ways (url and id) and can't seem to get it to work.  Any
suggestions?

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---



[Proto-Scripty] Re: Prototype effects below flash animation

2009-03-01 Thread Ângelo Rigo

Hi
I try to use z-index o for flash and 10 for ligthbox , but it does not
work
Thank you very much

On 27 fev, 19:35, Boysenberry Payne habitatl...@gmail.com wrote:
 Try either setting the z-index css style for both so that the effects  
 div is a higher number or make sure the div/element holding the  
 effects is later in the html document and higher in the nesting level...

 Hope that makes sense, and that I'm answering this right...

 -bop

 On Feb 27, 2009, at 11:19 AM, Ângelo Rigo wrote:



  Hi

  I do use prototype and scripttaculous to show bigger images from
  thumbnail images, but i have a flash animation and the image just stay
  below that flash animation.

  How can i fix it so that the image can to be just above the flash
  animation ?

  Thank´s in advance

  I just write in the head section :

  script type=text/javascript src=js/prototype.js/script
  script type=text/javascript src=js/scriptaculous.js?
  load=effects/script
  script type=text/javascript src=js/lightbox.js/script
  script type=text/javascript src=js/effects.js/script
  script src=js/unittest.js type=text/javascript/script
  link rel=stylesheet href=css/lightbox.css type=text/css
  media=screen /

  And in the image i create a link with an atribute rel=\lightbox[]:
  a href='../files/?=$rs-field(imagem)? rel=\lightbox[]\
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---



[Proto-Scripty] Re: Prototype effects below flash animation

2009-03-01 Thread Ângelo Rigo

Hi
I try to use param name=wmode value=transparent / in the flash
params but still does not work, maybe i am doing something wrong! How
do you use this solution ?
Thank you very much

On 28 fev, 12:46, Walter Lee Davis wa...@wdstudio.com wrote:
 I'm not sure this will help in all cases. Flash content cuts a  
 window all the way through the z-axis of the page, nothing (except  
 more Flash) may be drawn in a movie's airspace. The browser hands  
 over screen-drawing in the entire rectangle of the movie to the Flash  
 plug-in. If you want to float another Flash movie over an existing  
 Flash movie, that *will* work, and (as long as you have set  
 wmode:transparent on the top-most movie) it will look the way you want  
 it to.

 Walter

 On Feb 27, 2009, at 5:35 PM, Boysenberry Payne wrote:



  Try either setting the z-index css style for both so that the effects
  div is a higher number
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---