On Sep 11, 3:33 pm, wilkinsmd <wilkin...@hotmail.com> wrote:
> Hi, I'm new to prototype.js and have a question.
>

>
> Now here's my issue:  Utilizing prototype.js, I use ajax.request to
> call the perl script, and use "onComplete" to turn off the
> "Querying..." message.  But at the time when it turns that off, it
> still needs to put the points on the map.  That is handled by another
> javascript function which calls GDownloadUrl, and takes more time
> (depending on the number of points).  I'd like to wait until that
> completes to turn off the "Querying..." message.  BUT, ajax.request
> can only be used when calling a URL to generate some data, and as far
> as I know, not when simply running a javascript function I have
> defined on my page.  And since I can't use ajax.request to place the
> map points, I can't use onComplete and thus the "querying..." message
> is turned off too early.  Not interested in simply adding a
>
> Does anyone have any ideas on how this can be accomplished?
>

You haven't explained how GDownloadUrl gets fired, but essentially you
need
GDownloadUrl to remove the Querying message when it completes, rather
than
osComplete doing it.

How you tell GDownloadUrl about the message will depend on the
structure of your code and data.


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to