How to use jquary on a grid app? (help need) :D

Guys:

i use jquery on forms to modify the forms so they do crazy things… this time i would like to use jquery on a grid applicacion, i would like to use jquery to insert a “< br >
” after the quick search button on top of the grid aplicacion…

i would put this code on the “onApplicationInit” event:

?>
	<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js">			</script>

	<script>
  

$("<br>").insertAfter( "#quicksearchph_top" );	


</script>

<?

as you can see, the id of the quicksearch button this time is “quicksearchph_top”

this little trick works on form, but this time is not working on grid application… any idea???

fer from mexico

You should place this in the Document ready functuion and place this in the onRecord event, so that it work also when you use the pagination.
?>

$(document).ready(function(){

$("<br />").insertAfter( "#quicksearchph_top" );	

});
</script>
<?
?>
<script>
$(document).ready(function(){

$("<br />").insertAfter( "#quicksearchph_top" );	
	
});
</script>
<?

Or you place it in the onfooter, i saw that it is processed several times in the onrecord event.
But in the on footer event it could be lost when you using the pagination.
That happens to me wehn i put some jquery in the on footer event.

But then you have to activate the footer in the layout.
I get it only to work in the onRecord event.

kredt_t:
Thanks a lot for your time and sugestions, i will try it and report it asap

(i hope this works) :D:D:D

fer

Kredt_st:

woooooow
its aliveeee!!!, i mean, it works!!!

Thanks a lot, i am using this so when the user views the grid app, on a mobile browser it works better, i was just about to do all by hand!

man! thanks a lot

fer from mexico

:frowning:

the solution worked, but… (and this is not a jquery thing) when i use the quick search button, all the changes made with jquary desapear…

any ideas?

Maybe you should put the code also in the onRefresh Event in the search Menue, so that it is implemented again after a search refresh