mklebel-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-Sep-11 21:15 UTC
adding a loading message or icon to my query
here is my function, ive tried adding the onLoading option but It
seems to freeze the whole query for some reason, I must be doing
something totally wrong. So how would I add a loading msg to this
function?????
function qry_state()
{
var url = ''../query/qry_State.php'';
var params =
''state=''+$F(''state'')+''&city=''+$F(''city'')+''&name=''+
$F(''name'');
var ajax = new Ajax.Updater({success: "ar_qry"},url,{method:
''post'',parameters: params});
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---
you can do:
$(''div_id'').update("loading.....")
but i usually tend to do
function fieldLoading(fld){
$(fld).update("<img
src="images/ajax-loader.gif" />");
}
and call that with the appropriate element id
On 9/11/07, mklebel-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
<mklebel-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:>
>
> here is my function, ive tried adding the onLoading option but It
> seems to freeze the whole query for some reason, I must be doing
> something totally wrong. So how would I add a loading msg to this
> function?????
>
> function qry_state()
> {
> var url = ''../query/qry_State.php'';
> var params =
''state=''+$F(''state'')+''&city=''+$F(''city'')+''&name=''+
> $F(''name'');
> var ajax = new Ajax.Updater({success:
"ar_qry"},url,{method:
> ''post'',parameters: params});
> }
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---