rundog99 Posted October 16, 2012 Share Posted October 16, 2012 (edited) Hi all - I have a query. I am using show/hide visibilty divs for certain lookup data from an sql query For example UserName <View Details> - clicking view details would show a query containing the user details. Now, That query is run regardless of the div state visible or not, What I would rather do is fire the query ONLY when it is visible - So I gues that's the question - Any bright Ideas? Thanks Edited October 16, 2012 by rundog99 Quote Link to comment https://forums.phpfreaks.com/topic/269520-div-visibility-to-fire-an-sql-query/ Share on other sites More sharing options...
codefossa Posted October 22, 2012 Share Posted October 22, 2012 Just check the CSS display of the element before sending the request. Quote Link to comment https://forums.phpfreaks.com/topic/269520-div-visibility-to-fire-an-sql-query/#findComment-1386959 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.