Page 1 of 1
Need To Pop Up an Inline DIV -- Can You Help?
Posted: Thu Sep 11, 2008 2:50 pm
by supermike
Okay, I can use jQuery to load my form into a DIV (complete with Captcha) on a mouse click. The catch is that background dimmer thing like you see with Lightbox. Does anyone know how to dim the entire page before my inline DIV (which shows a form) appears? Does your source code work across all the browser types -- FF2, FF3, Safari, Opera, IE6, and IE7?
Re: Need To Pop Up an Inline DIV -- Can You Help?
Posted: Thu Sep 11, 2008 5:38 pm
by pickle
Why not take a look at the sourcecode for some lightbox scripts?
Re: Need To Pop Up an Inline DIV -- Can You Help?
Posted: Thu Sep 11, 2008 6:14 pm
by JAB Creations
Mike, at the top right of my site click on either 'Site Options' or 'Site Themes'.
http://www.jabcreations.com/blog/
Re: Need To Pop Up an Inline DIV -- Can You Help?
Posted: Fri Sep 12, 2008 11:18 am
by supermike
Once I saw how small the sourcecode was for Thickbox for jQuery, I was completely impressed. So, we're going to use that. I also tested on a fresh install of XP with IE6 (un-service-packed on purpose) and it worked there as well, surprisingly.
Re: Need To Pop Up an Inline DIV -- Can You Help?
Posted: Fri Sep 12, 2008 11:37 am
by JAB Creations
Wow...ok I presume you don't know much about browsers. SP2 added security features around IE6, nothing more. IE6 without a service pack and IE6 with SP3 are the exact same as far as rendering is concerned.
Also a framework to achieve that is a total waste.
Re: Need To Pop Up an Inline DIV -- Can You Help?
Posted: Fri Sep 12, 2008 11:48 am
by pickle
JAB Creations wrote:Also a framework to achieve that is a total waste.
Not sure I agree with that 100%. If it saves hours and hours of development time for an internal app, then it's worth it.
If you are building a public-facing app/website & you're including jQuery in your scripts for the
sole purpose of doing that thickbox thing, then do your users a favour & find an implementation that doesn't involve a framework. ~JAB is correct (assuming this was his opinion) that a framework for just that one thing is overkill. It will slow down page loads for the users (albiet for most people it'll be unnoticeable) and similarly increase your bandwidth bill.
Re: Need To Pop Up an Inline DIV -- Can You Help?
Posted: Fri Sep 12, 2008 1:10 pm
by JAB Creations
This particular goal requires less than a kilobyte easily.
Re: Need To Pop Up an Inline DIV -- Can You Help?
Posted: Fri Sep 12, 2008 1:13 pm
by JAB Creations
JavaScript
Code: Select all
function change(id, newClass) {identity=document.getElementById(id); identity.className=newClass;}
XHTML
Code: Select all
<a href="javascript: change('element_id', 'show_layer');">show layer</a>
Re: Need To Pop Up an Inline DIV -- Can You Help?
Posted: Fri Sep 12, 2008 8:27 pm
by supermike
JAB Creations wrote:Also a framework to achieve that is a total waste.
Agreed. But we're only using that framework on pages where this form is necessary. It won't load on the other pages. I'm also tired of wasting a lot of time on this low budget project, so I'm looking for quick ways to conclusion.