By: zenlord
Date: 2011-01-29
Time: 17:06
|
TBS combined with modal dialog boxes in jQuery?Hi,
Like I said in previous post on the forum, I'm converting my webapp to OOP and expanding the functionality. Now I have also found the bling that jQuery (UI) can bring to an app, and I'm trying to bring it all together. What would your suggestion be to show a modal dialog box (like: http://jqueryui.com/demos/dialog/#modal-form - the button 'create new user')? The only thing I can come up with, is by putting the code outside the TBS-templates, but obviously, that feels like taking a step back... I could make a 'blank' TBS-template that shows the modal dialog-box, but that is not how it should be... Do you have a suggestion? Right now, my index.php is a very simplistic one: a bunch of switches/cases to trigger all kinds of TBS-templates. I would use the dialog boxes for all my input/edit-forms, and of course to make the login finally something worth looking at :) THX! |
By: Skrol29
Date: 2011-01-30
Time: 22:35
|
Re: TBS combined with modal dialog boxes in jQuery?Hi Zenlord,
In the link you're giving, the "Create new user" dialog box is already existing in the web page, but it is hidden. The dialog box is fed up and shown when the webuser is clicking o a button. Why can"t you do the same? Include a hidden dialog box in your TBS template and use JavaScript to manage the interactivity with the user. |
By: zenlord
Date: 2011-01-31
Time: 08:46
|
Re: TBS combined with modal dialog boxes in jQuery?At this moment, my webapp consists of ca. 30 templates. I could include the 'hidden dialog'-html inside each and every one of them, but that is not how it is supposed to be done, I guess ;)
And now I'm reading your post and writing this reply, I'm thinking this might be the time to switch to subtemplates, right? And include the code of the hidden dialog-boxes in the main template... |
By: Skrol29
Date: 2011-01-31
Time: 09:38
|
Re: TBS combined with modal dialog boxes in jQuery?> my webapp consists of ca. 30 templates. I could include the 'hidden dialog'-html inside each and every one of them
> [...] this might be the time to switch to subtemplates, right? I agree, subtemplates are done for that. |