Link to home
Start Free TrialLog in
Avatar of Electriciansnet
ElectriciansnetFlag for United States of America

asked on

Javascript unblockable(popups) floating windows

Hello Geniuses!
I'm putting the final touches on my 5 month long site construction. This is my 1st site and it is ColdFusion/ SQL based and I hate to say it but I know a lot more about CF than I do HTML or Java (which is not much).

I have a Flash formatted form on http://www.electriciansnet.com. You can access the form by using 20636 as your model zip code on my home page. The flash movie that is on top of the form is brought to you like this:

condensed:
<Head.........>
<script language=javascript>
var ie=document.all
var ns6=document.getElementById && !document.all
function showPopUp(){
document.getElementById('pWinConfg').style.visibility='visible';
}
function hidePopUp(){
document.getElementById('pWinConfg').style.visibility='hidden';
}
function startPopUp(){
timerID=setTimeout('showPopUp()',3000);
}
<style>.pWinConfg{
font-family:Courier,monospace;
font-size:11px;
position:absolute;
width:300;
height:400;
background-color:#FFFFFF;
top:87.96400449943758;
left:362;
border-style:none;
border-width:0;
border-color:#FFFFF0;
padding:8;
visibility:hidden;
@filter: progid:DXImageTransform.Microsoft.Shadow(color=#666666,direction=135);
}</style>
</HEAD>

<BODY onload="startPopUp();" BGCOLOR.....>

 <DIV class="pWinConfg" id="pWinConfg" >


<cfinclude template="mov3_5.cfm">
</DIV>

...
....
....
</body>

The problem is that I may or may not want to show (force) the movie and, as an alternative, I may want to put a link or a flash button to the movie and I definitely want a link or button to the "Terms & Conditions" Area but I need to do it without reloading page as this will cause the user to lose their form variables and a refresh will just redirect them to index.cfm which is exactly what happens when junky old IE catches the popup with an ordinary popup.

In a nutshell- I want to be able to open/close these windows with button or link without reloading page or being blocked. I was hoping for a ColdFusion solution but I don't think there is one. Thanks in advance, Andy
 
Avatar of basicinstinct
basicinstinct
Flag of Australia image

not sure that i fully understand requirements, but hearing you talk about dynamically loading stuff in a page without relaoding makes me think AJAX big time.

btw spotted a typo: Congradulations (instead of Congratulations)
Avatar of Electriciansnet

ASKER

Thanks for the spot and no AJAX. Its just that cfforms with the flash format has serious  Alzheimer's disease. Unlike ordinary cfform, if you were to enter #firstName# 'Joe' and set a cfdump for var #firstName# "Joe" would output throughout thousands of refreshes but not in the <cfinput type="text" name="firstName" /> field. Anyway, I'm trying to provide a link to some of the content on the page rather than display it statically but I don't want it blocked like a marketer's popup . Can you help?
A good example would be the keywords that this server highlights green with floating windows on mouseOver. That does not get blocked and it would work perfect for me.
ASKER CERTIFIED SOLUTION
Avatar of basicinstinct
basicinstinct
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I found the solution here at E.E.

 Title:  Can I use javascript to make the browser to unblock the popup window temporary ?
Bookmark:
Question: I would like to write a web page which need to popup a popup window to display an html page
when some button is being clicked. However, many browser will block the popup window.

Can I use javascript or some other code to make the browser to unblock the popup window temporary
so that those message inside the window will be able to show up for the user ?

Barry

Zones: Web Languages/Standards, JavaScript, Microsoft Windows Operating Systems
Author: barrytwy, Limited Member
Time Zone: Pacific Standard Time
Translate:
DISREGARD!  I might as well take in as much input/ java knowledge as I can since I bought the question. I will check out your link in just a few.
Hi basicinstinct:. I'm sorry about the last comment- it was not meant as a slight. Actually your link appears to be the better solution. Thanks, Andy