Thats interesting, from what I can tell, you never use PARAMETROS in
an ajax call or anywhere else besides filtrar so you could save
yourself the headache and just remove it?
On Jul 27, 11:30 am, PHP-Dão
<pablova...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> I''m Brazil
>
> Firefox Parameters...
>
> In IE "OK"
> Firefox "No OK"
>
> The problem is dunction filtrar(p)
>
> Script:
>
> <script type="text/javascript" src="http://server/fm2/js/
> prototype.js"></script>
> <script>
> var PARAMETROS = null;
>
> function filtrar(p)
> {
> PARAMETROS = (p != null) ?
p+"&"+$(''Form'').serialize() : $
> (''Form'').serialize(true);
> request();
>
> }
>
> function request()
> {
> $(''carregando'').hide();
> var url = ''logsis.ajax.php'';
>
> var myAjax = new Ajax.Updater( {
success:''gridFiltro'' }, url, {
> method: ''get'',
> parameters: $(''Form'').serialize(),
> onLoading: carregando,
> onComplete: carregado,
> onFailure : falha
> });
>
> }
>
> function carregando()
> {
> $(''carregando'').show();
>
> }
>
> function carregado()
> {
> $(''carregando'').hide();
>
> }
>
> function falha()
> {
> alert("O sistema não conseguiu completar esta
operação\nverifique sua
> conexão com a internet e tente novamente.");
> $(''carregando'').hide();
>
> }
>
> function init(){
> Event.observe(''BtFiltrar'', ''click'',
function(e){filtrar(null)});}
>
> Event.observe(window, ''load'', init, false);
> window.onload = filtrar;
> </script>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---