Quantcast

remotefield whats wrong?

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

remotefield whats wrong?

Mauro-4
<g:javascript library="prototype" />
<g:javascript src="accountAdmin.js" />

user id: <g:remoteField action="searchLdapAccounts"
                            onLoading="loading();"
                            onComplete="complete();"
                            update="ldap-list"
                            name="uid"
                            paramName="uid" />
<span id="spinnar" style="display:none;">
       <img alt="" src="${resource(dir:'images',file:'spinner.gif')}" />
     </span>
     <span id="new" style="display:none;">
       <g:remoteLink action="newAccount" update="ldap-properties"
params="[uid: uid]">
         nuovo
     </g:remoteLink>
     </span>
    </p>

accountAdmin.js has:

function loading() {
    $('new').hide();
    $('spinnar').show();
}

function complete() {
    $('spinnar').hide();
    if($('user-list').empty()) $('new').show();
}

After upgrade from grails 1.3.5 to grails 1.3.6 it seems that the
functions in accountAdmin.js doesn't work.
I also try onLoading="Element.show('spinnar');" b without results.
The image spinner.gif exists.
Why onLoading don't work anymore?

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: remotefield whats wrong?

::SammyRulez::
posting the generated HTML could help.

2010/12/30 Mauro <[hidden email]>:

> <g:javascript library="prototype" />
> <g:javascript src="accountAdmin.js" />
>
> user id: <g:remoteField action="searchLdapAccounts"
>                            onLoading="loading();"
>                            onComplete="complete();"
>                            update="ldap-list"
>                            name="uid"
>                            paramName="uid" />
> <span id="spinnar" style="display:none;">
>       <img alt="" src="${resource(dir:'images',file:'spinner.gif')}" />
>     </span>
>     <span id="new" style="display:none;">
>       <g:remoteLink action="newAccount" update="ldap-properties"
> params="[uid: uid]">
>         nuovo
>     </g:remoteLink>
>     </span>
>    </p>
>
> accountAdmin.js has:
>
> function loading() {
>    $('new').hide();
>    $('spinnar').show();
> }
>
> function complete() {
>    $('spinnar').hide();
>    if($('user-list').empty()) $('new').show();
> }
>
> After upgrade from grails 1.3.5 to grails 1.3.6 it seems that the
> functions in accountAdmin.js doesn't work.
> I also try onLoading="Element.show('spinnar');" b without results.
> The image spinner.gif exists.
> Why onLoading don't work anymore?
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>
>



--
SammyRulez
http://www.sammyrulez.com
http://twitter.com/sammyrulez
http://www.linkedin.com/in/sammyrulez

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: remotefield whats wrong?

Mauro-4
On 30 December 2010 15:02, ::SammyRulez:: <[hidden email]> wrote:
> posting the generated HTML could help.

here is:
...........
<script type="text/javascript" src="/maildap/js/application.js"></script>

    <meta name="layout" content="accountLdapAdmin"/>

    <script type="text/javascript"
src="/maildap/js/prototype/prototype.js"></script>

    <script type="text/javascript" src="/maildap/js/accountAdmin.js"></script>

   </head>

...............


<p>
      user id: <input type="text" name="uid" value="" onkeyup="new
Ajax.Updater('ldap-list','/maildap/accountAdmin/searchLdapAccounts',{asynchronous:true,evalScripts:true,parameters:'uid='+this.value});"
onLoading="loading();" onComplete="complete();" />

     <span id="spinnar" style="display:none;">
       <img alt="" src="/maildap/images/spinner.gif" />
     </span>
     <span id="new" style="display:none;">
       <a href="/maildap/accountAdmin/newAccount?uid=" onclick="new
Ajax.Updater('ldap-properties','/maildap/accountAdmin/newAccount',{asynchronous:true,evalScripts:true,parameters:'uid='});return
false;">
         nuovo
     </a>
     </span>

    </p>
    <div id="ldap-list"></div>

</div>

I've tries remotefiels in a new application too, it seems that
onLoading and onComplete don't work now.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: remotefield whats wrong?

::SammyRulez::
As you can see onLoading="loading();" onComplete="complete();" are
rendered as invalid attr of input tag so has no effect on ajax
behavior. I think is a bug introduced with the feature "Attributes On
link Namespace Tags" of version 1.3.6.

Buon anno!

2010/12/30 Mauro <[hidden email]>:

> On 30 December 2010 15:02, ::SammyRulez:: <[hidden email]> wrote:
>> posting the generated HTML could help.
>
> here is:
> ...........
> <script type="text/javascript" src="/maildap/js/application.js"></script>
>
>    <meta name="layout" content="accountLdapAdmin"/>
>
>    <script type="text/javascript"
> src="/maildap/js/prototype/prototype.js"></script>
>
>    <script type="text/javascript" src="/maildap/js/accountAdmin.js"></script>
>
>   </head>
>
> ...............
>
>
> <p>
>      user id: <input type="text" name="uid" value="" onkeyup="new
> Ajax.Updater('ldap-list','/maildap/accountAdmin/searchLdapAccounts',{asynchronous:true,evalScripts:true,parameters:'uid='+this.value});"
> onLoading="loading();" onComplete="complete();" />
>
>     <span id="spinnar" style="display:none;">
>       <img alt="" src="/maildap/images/spinner.gif" />
>     </span>
>     <span id="new" style="display:none;">
>       <a href="/maildap/accountAdmin/newAccount?uid=" onclick="new
> Ajax.Updater('ldap-properties','/maildap/accountAdmin/newAccount',{asynchronous:true,evalScripts:true,parameters:'uid='});return
> false;">
>         nuovo
>     </a>
>     </span>
>
>    </p>
>    <div id="ldap-list"></div>
>
> </div>
>
> I've tries remotefiels in a new application too, it seems that
> onLoading and onComplete don't work now.
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>
>



--
SammyRulez
http://www.sammyrulez.com
http://twitter.com/sammyrulez
http://www.linkedin.com/in/sammyrulez

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: remotefield whats wrong?

Mauro-4
On 30 December 2010 15:38, ::SammyRulez:: <[hidden email]> wrote:
> As you can see onLoading="loading();" onComplete="complete();" are
> rendered as invalid attr of input tag so has no effect on ajax
> behavior. I think is a bug introduced with the feature "Attributes On
> link Namespace Tags" of version 1.3.6.

Where I can see that they are invalid attrs?
So I can't use onLoading and onComplete anymore?

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: remotefield whats wrong?

::SammyRulez::
Using hilighted sintiax could help


<input type="text" name="uid" value="" onkeyup="new
Ajax.Updater('ldap-list','/maildap/accountAdmin/searchLdapAccounts',{asynchronous:true,evalScripts:true,parameters:'uid='+this.value});" the onkeyup ends here!!!!

onLoading="loading();" onComplete="complete();" and these are the invalid tags/>

this bug has been already seen on this list



2010/12/30 Mauro <[hidden email]>:
> On 30 December 2010 15:38, ::SammyRulez:: <[hidden email]> wrote:
>> As you can see onLoading="loading();" onComplete="complete();" are
>> rendered as invalid attr of input tag so has no effect on ajax
>> behavior. I think is a bug introduced with the feature "Attributes On
>> link Namespace Tags" of version 1.3.6.
>
> Where I can see that they are invalid attrs?
> So I can't use onLoading and onComplete anymore?
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>
>



--
SammyRulez
http://www.sammyrulez.com
http://twitter.com/sammyrulez
http://www.linkedin.com/in/sammyrulez

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: remotefield whats wrong?

Mauro-4
On 30 December 2010 15:51, ::SammyRulez:: <[hidden email]> wrote:
> Using hilighted sintiax could help

I only use show page source to see html.
What have you used to see those errors?

>
> <input type="text" name="uid" value="" onkeyup=
> "new
> Ajax.Updater('ldap-list','/maildap/accountAdmin/searchLdapAccounts',{asynchronous:true,evalScripts:true,parameters:'uid='+this.value});"
> the onkeyup ends here!!!!
> onLoading="loading();" onComplete="complete();" and these are the invalid
> tags/>
> this bug has been already seen on this list

grrrrrrrrrrr.........it's a great problem for me, I've to rewrite part
of my application due to this bug.
I hope it will be resolved with grails 1.3.7.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Loading...