Jonathon Posted December 21, 2011 Share Posted December 21, 2011 Hi Larry, I just wondered if you cover modal boxes in your new book? I know these are often included in frameworks but just wondered if you did anything with them in your book? thanks Jonathon Link to comment Share on other sites More sharing options...
Larry Posted December 21, 2011 Share Posted December 21, 2011 Hey Jonathon, Thanks for the question, and for the interest in the book. By "modal box", do you mean like a pop-up/overlay kind of thing that you see all the time now? If so, the answer is yes, those are covered (without frameworks). If you're talking about something different, please clarify (and/or point to an example). Thanks! Link to comment Share on other sites More sharing options...
Jonathon Posted December 22, 2011 Author Share Posted December 22, 2011 Nope these would be the thing I was interested in. I'd like to know how they really work. Thanks Larry :-) Link to comment Share on other sites More sharing options...
Larry Posted December 22, 2011 Share Posted December 22, 2011 Okay, so Ch 9 walks through that concept. Basically it's all about the CSS, though. There's a high z-index to black out (or gray out) the entire screen and then there's a higher z-index for the content to be displayed in the modal window. JavaScript then switches the visibility on and off. Link to comment Share on other sites More sharing options...
Jonathon Posted December 22, 2011 Author Share Posted December 22, 2011 I look forward to it. That makes sense CSS wise, but will be nice to see how to tie it in (properly) with js. I'm sure there is plenty of legacy code or bad code on the web. As I've said to you before I find that the main crux with .js today is dodgy .js code. Link to comment Share on other sites More sharing options...
Recommended Posts