473,795 Members | 3,006 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

DHTML Popups Explained

Hello,

I just finished a tutorial website regarding the development of DHTML
popups. The site features several examples with downloadable samples.
It also feature more complex effects like drop-down popups, fade
in/out, slide in etc.

The URL is: http://dhtmlpopups.webarticles.org/

I hope you will find the information useful. Any feedback is welcomed
:)

Thanks,
Ciprian

Sep 4 '06 #1
4 1525
ci************* *@gmail.com said the following on 9/4/2006 8:25 AM:
Hello,

I just finished a tutorial website regarding the development of DHTML
popups. The site features several examples with downloadable samples.
It also feature more complex effects like drop-down popups, fade
in/out, slide in etc.

The URL is: http://dhtmlpopups.webarticles.org/

I hope you will find the information useful. Any feedback is welcomed
:)
<quote>
The first issue is that now the popup cannot be closed
</quote>

That is a trivial problem to fix. You simply add an "X" image with an
onclick that does a this.parentNode .style.display= "hidden"

But, all in all, this site is a better example of in window popups:

<URL: http://www.litotes.dem on.co.uk/js_info/pop_ups.html>
--
Randy
comp.lang.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Sep 4 '06 #2
ci************* *@gmail.com wrote:
I just finished a tutorial website regarding the development of DHTML
popups. The site features several examples with downloadable samples.
It also feature more complex effects like drop-down popups, fade
in/out, slide in etc.
The URL is: http://dhtmlpopups.webarticles.org/
I hope you will find the information useful. Any feedback is welcomed
I just skimmed it, but I have a couple comments:
>document.getEl ementById("mypo pup").style.to p = topOffset + "px";
document.getEl ementById("mypo pup").style.lef t = leftOffset + "px";
document.getEl ementById("mypo pup").style.dis play = "block";
Especially in code where execution speed is important, doing repeated calls
to document.getEle mentById is very wasteful. Instead, get a reference to the
object in a local variable.
>var ie = document.all;
var nn6 = document.getEle mentById &&! document.all;
This just screems out "bad code". I can assure you that the existence of
document.all does not mean the browser is IE.
See http://www.jibbering.com/faq/faq_not...tect.html#bdOI
>The same note goes for dropdown lists (<select>) in HTML forms. Disabling
their visibility is the only workaround I'm aware of at the moment.
Placing an iframe object behind the popup will hide controls that don't
honor z-index values.

See also my example page for in-page div popups:
http://www.javascripttoolbox.com/lib/popup/example.php

I'm working on the code now to get rid of memory leaks (it currently leaks
terribly in IE due to closures and DOM objects) but it will soon be ready as
a stand-alone lib to easily and quickly create these kinds of popups.

--
Matt Kruse
http://www.JavascriptToolbox.com
http://www.AjaxToolbox.com
Sep 4 '06 #3
Thanks Randy and Matt for your feedback and suggestions, I was aware of
most of them but wanted to put emphasis strictly on the topic, however,
after second thoughts there I have better options to express my points
and to keep the code optimized, not just educational.

Randy, just a single note:
</quote>
The first issue is that now the popup cannot be closed
</quote>

That is a trivial problem to fix. You simply add an "X" image with an
onclick that does a this.parentNode .style.display= "hidden"
If you'd have checked the next lesson you'd realised where was my
point. I split the topic in several parts, focusing separately in each
lesson (and closing the popup was explained few clicks away).

Thanks again for your constructive feedback and I'll take your
suggestions in account ASAP,
Ciprian

Sep 4 '06 #4
ci************* *@gmail.com wrote:
Hello,

I just finished a tutorial website regarding the development of DHTML
popups. The site features several examples with downloadable samples.
It also feature more complex effects like drop-down popups, fade
in/out, slide in etc.

The URL is: http://dhtmlpopups.webarticles.org/

I hope you will find the information useful. Any feedback is welcomed
:)
The font and background colours for you code blocks makes the code very
hard to read.

You could consider making the pop-up a single object with all the
functions added to its prototype as methods.

--
Rob
Sep 4 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

52
4438
by: Harlan Messinger | last post by:
Can you help me figure out what to do about popups? Sometimes we develop web applications where popups make very good sense for precisely the same reasons they make sense in traditional locally-installed application interfaces. I understand some people object, on grounds having nothing to do with disabilities, to links that generate new browser windows. I don't know what the basis of their objection is, but I wonder whether the same...
2
1793
by: Tom Szabo | last post by:
Hi, >>IE in Windows XP Service Pack 2 has a popup blocker that blocks unsolicited >>popups >>IE (other than Windows XP Service Pack 2) also has many add-ons (Google toolbar, >>Yahoo! toolbar, Norton Internet Security, etc) that block unsolicited popups.
6
1981
by: Terry | last post by:
Hi, I like the DHTML-based pop-up window script made available by this company. However, their script only works under the quirk mode for IE 6 and Firefox. http://www.ferant.com I wonder if there are other similar DHTML-based scripts that can do the same but is not limited to the quirk mode for IE 6.
1
2227
by: Eric Whalen | last post by:
"Discover the Breakthrough Popup Technology that Can Drive Your Website Profits Through the Roof!" Are You Ready to Enjoy a Massive Surge in Sales, Commissions and Subscribers using Profit-Building Next Generation Popups? UNBLOCKABLE DHTML Popups Sticky Popups Pressure Popups
4
2060
by: bbass | last post by:
thanks to all that replyied to my previous post with the following code in question: <a href="merc.htm" target="_new_merc" onfocusout=window.close class="left_link"> i understand that the people don't like the idea of closing the browser window because it's annoyance to the user
3
9714
by: Jason Gleason | last post by:
How can i make msn messenger style popups (like alerts/when someone messages you for the first time - the little box that appears in the bottom right hand corner of your screen) with c#?
3
2534
by: aspmonger | last post by:
Hello, I really believe that IE 6 has a new (intentional?) bug that severely limits the capability of dhtml and cross domain scripting. Yesterday, I read an interesting article about the subject and it only supported my claim. The article explained why Microsoft will not be letting the IE DHTML Implementation get any more powerful than it already is. Microsoft has realized that an experienced DHTML developer can create a web application that...
1
1645
by: YotamElal | last post by:
Hello, I have a popup problem. When a popup is opened, I want all other popups to close immediatly. (except for its self and it's child popups) Here is my code: code: <!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'> <html>
1
2356
by: Moe Sisko | last post by:
Using : ASP.NET 2.0, IE 7. This is a strange problem with popups not working in IE to remote sites, even though popups are allowed in IE. To reproduce, create web site with two pages, Default.aspx and Default2.aspx. Note that the example is a deliberately simplified example - just used to reproduce the problem, and not meant to be very useful. Default.aspx - add button1. In codebehind, hookup click event :
0
9522
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10448
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10217
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10003
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6784
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5440
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4114
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3730
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2922
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.