EmperorJazzy Posted August 2, 2012 Share Posted August 2, 2012 So I'm writing code to read from the DB Table both the TITLE and the DETAIL of the records. (This will be refined to selective SQL, but currently in TEST). I'm returning both fields and displaying them currently; TITLE VALUE - DETAIL VALUE (TITLE Field = 255 Char) (DETAIL Field = No Limit; Full Text) I'd like to display a TABLE of TITLE VALUES, and when clicked, it shows the DETAIL VALUE. It's the classic Hide/Show dynamic. Essentially; I could accomplish this by refreshing the page each time however, usability = YUK. Does someone have an example or LINK I could follow to learn more. Quote Link to comment https://forums.phpfreaks.com/topic/266607-how-to-show-table-title-values-and-hideshow-detail-value/ Share on other sites More sharing options...
Drummin Posted August 2, 2012 Share Posted August 2, 2012 Probably jQuery is what you need if not wishing to refresh the page. http://webcloud.se/jQuery-Collapse/ Quote Link to comment https://forums.phpfreaks.com/topic/266607-how-to-show-table-title-values-and-hideshow-detail-value/#findComment-1366356 Share on other sites More sharing options...
EmperorJazzy Posted August 2, 2012 Author Share Posted August 2, 2012 Ok; Dumb question. Do I need my hosting to support jQuery because I can't get the bugger to work (even using this guys demo) Quote Link to comment https://forums.phpfreaks.com/topic/266607-how-to-show-table-title-values-and-hideshow-detail-value/#findComment-1366434 Share on other sites More sharing options...
Drummin Posted August 2, 2012 Share Posted August 2, 2012 It's not a hosting issue. I'm no expert in jQuery but I know you need required files. Read documentation, download files and make sure you link to them correctly and things should work fine. Quote Link to comment https://forums.phpfreaks.com/topic/266607-how-to-show-table-title-values-and-hideshow-detail-value/#findComment-1366436 Share on other sites More sharing options...
Psycho Posted August 2, 2012 Share Posted August 2, 2012 << This is a JavaScript issue, moving to the appropriate forum >> JQuery is simply a JavaScript framework of sorts that has a lot of built-in functionality that you can use without having to write from scratch. It does not need any support from your host as it is all run client-side. But, on the client-side you have to include the JQuery framework to be loaded into the browser. E.g. <script type="text/javascript" src="jquery.src"></script> Quote Link to comment https://forums.phpfreaks.com/topic/266607-how-to-show-table-title-values-and-hideshow-detail-value/#findComment-1366442 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.