djr33
05-15-2010, 03:56 AM
1) Script Title: DHTML Modal Window
2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex8/dhtmlwindow/dhtmlmodal.htm
3) Describe problem:
This isn't a problem, per se, but a request for a simpler version.
I've looked at a lot of options for "lightbox" type embedded windows, and I haven't found one that is simple enough.
If there's an alternative out there, I'll be happy with a link-- no need to modify this script. It's very good as is, but just not as simple as I'm looking for.
Here's what I want:
1. It can be called from a javascript function (with parameters if needed, not sure about the details there)
2. It creates a PLAIN window. I don't want anything in it. The transparent background surrounding it is optional (though a nice option).
3. Within that PLAIN window, I want to have a div I can populate with stuff. For example, Ajax content, or an image. If instead the script can automatically do this, that's fine, but there's no reason it can't be combined with other scripts to do that. I don't mind.
Basically I want all the setup stuff: a centered popup window above everything else with built in open and close functions that can handle content.
But I don't want any of the styling or complexities that are in every single similar script I've found.
In fact, this script isn't too bad compared to some.
I also want the option to at least remove all of the "window controls" possibilities: scrollbars optional [should be based on content], NO drag to move, NO drag to resize, no minimize, no maximize. Just the basics. An optional close button would of course be useful but I'd like to not have that as a default because it can be cleaner to include it in the design.
I may be able to modify the Javascript enough myself to remove all of this (I've already started a bit), but I'm confident that if done correctly the script can be a lot lighter (and simpler to use?).
By the way, a few notes on the script:
1. The blackdot.gif file is many times larger than it needs to be-- it can get down to 44 bytes if compressed well (using photoshop for example). I can upload this if that would help. I don't really care about 800b vs 44b, but some might.
2. I tried to change the black color to red [as per client request] and it made the screen flicker. I wonder if there's a way around that, but obviously this must remain black.
3. I think there are probably better ways to do the transparency, though I'm not sure about them... For example, a png with alpha, plus some IE6 hack if anyone still cares.
And I don't mean this to sound like I'm complaining too much-- just been designing for a while and it's odd that I can't find something that fits. I feel like surely someone out there must want to have a simple way to pop up a div and put something in it without all the fancy stuff. Ajax is also part of it, but certainly not a requirement. (In fact, at the moment I'm using an iframe which in some ways is simpler and probably more reliable at least at the moment until HTML5 comes or something...)
2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex8/dhtmlwindow/dhtmlmodal.htm
3) Describe problem:
This isn't a problem, per se, but a request for a simpler version.
I've looked at a lot of options for "lightbox" type embedded windows, and I haven't found one that is simple enough.
If there's an alternative out there, I'll be happy with a link-- no need to modify this script. It's very good as is, but just not as simple as I'm looking for.
Here's what I want:
1. It can be called from a javascript function (with parameters if needed, not sure about the details there)
2. It creates a PLAIN window. I don't want anything in it. The transparent background surrounding it is optional (though a nice option).
3. Within that PLAIN window, I want to have a div I can populate with stuff. For example, Ajax content, or an image. If instead the script can automatically do this, that's fine, but there's no reason it can't be combined with other scripts to do that. I don't mind.
Basically I want all the setup stuff: a centered popup window above everything else with built in open and close functions that can handle content.
But I don't want any of the styling or complexities that are in every single similar script I've found.
In fact, this script isn't too bad compared to some.
I also want the option to at least remove all of the "window controls" possibilities: scrollbars optional [should be based on content], NO drag to move, NO drag to resize, no minimize, no maximize. Just the basics. An optional close button would of course be useful but I'd like to not have that as a default because it can be cleaner to include it in the design.
I may be able to modify the Javascript enough myself to remove all of this (I've already started a bit), but I'm confident that if done correctly the script can be a lot lighter (and simpler to use?).
By the way, a few notes on the script:
1. The blackdot.gif file is many times larger than it needs to be-- it can get down to 44 bytes if compressed well (using photoshop for example). I can upload this if that would help. I don't really care about 800b vs 44b, but some might.
2. I tried to change the black color to red [as per client request] and it made the screen flicker. I wonder if there's a way around that, but obviously this must remain black.
3. I think there are probably better ways to do the transparency, though I'm not sure about them... For example, a png with alpha, plus some IE6 hack if anyone still cares.
And I don't mean this to sound like I'm complaining too much-- just been designing for a while and it's odd that I can't find something that fits. I feel like surely someone out there must want to have a simple way to pop up a div and put something in it without all the fancy stuff. Ajax is also part of it, but certainly not a requirement. (In fact, at the moment I'm using an iframe which in some ways is simpler and probably more reliable at least at the moment until HTML5 comes or something...)