Created
May 16, 2010 19:46
Revisions
-
antonevane revised this gist
May 16, 2010 . 1 changed file with 1 addition and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -6,7 +6,6 @@ <!-- Spinner Trick--> <div id='spinner' class='spinner' style='display:none;'> <img src='${createLinkTo(dir: 'images', file: 'spinner.gif')}' alt="Loading..." title="Loading..."/><p><g:message code="Идет загрузка.."/></p> </div> <div id="ajax_data"> -
antonevane revised this gist
May 16, 2010 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,7 +3,7 @@ update="[success:'ajax_data',failure:'error']">Ajax Action</g:remoteLink> </div> <!-- Spinner Trick--> <div id='spinner' class='spinner' style='display:none;'> <img src='${createLinkTo(dir: 'images', file: 'spinner.gif')}' alt="Loading..." title="Loading..."/><p><g:message code="Идет загрузка.."/></p> -
antonevane revised this gist
May 16, 2010 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,8 +3,10 @@ update="[success:'ajax_data',failure:'error']">Ajax Action</g:remoteLink> </div> <--! Spinner Trick--> <div id='spinner' class='spinner' style='display:none;'> <img src='${createLinkTo(dir: 'images', file: 'spinner.gif')}' alt="Loading..." title="Loading..."/><p><g:message code="Идет загрузка.."/></p> </div> <div id="ajax_data"> </div> -
antonevane created this gist
May 16, 2010 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,3 @@ def analyze = { render "Content" } This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ <div id="ajax_form"> <g:remoteLink action="analyze" update="[success:'ajax_data',failure:'error']">Ajax Action</g:remoteLink> </div> <div id='spinner' class='spinner' style='display:none;'> <img src='${createLinkTo(dir: 'images', file: 'spinner.gif')}' alt="Loading..." title="Loading..."/><p><g:message code="Идет загрузка.."/></p> </div> <div id="ajax_data"> </div> This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ <g:javascript src="jquery/jquery.js" /> <g:javascript> $(document).ready(function() { $("#spinner").bind("ajaxSend", function() { $(this).fadeIn(); }).bind("ajaxComplete", function() { $(this).fadeOut(); }) }); </g:javascript>