HighDots Forums  

Re: Popups sometimes get blocked by IE

Javascript JavaScript language (comp.lang.javascript)


Discuss Re: Popups sometimes get blocked by IE in the Javascript forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
VK
 
Posts: n/a

Default Re: Popups sometimes get blocked by IE - 07-03-2005 , 04:57 AM






If I read your Ezop language properly (I may not), then "a friend" is
"the target audience", so the question should be refrased as:

"For the visitors using IE 6 the number of shown popup ads is lesser
than the number of the registered visitors. What is the problem?"

The problem is that starting Windows XP SP2 popup blocker is finally
activated by default. So in the incoming times you need either to place
a text begging your visitors to allow popups (with instructions of
course), or (much more reliable) to move one on other alernatives
(popping up iframes or div's).


Reply With Quote
  #2  
Old   
Nigel Molesworth
 
Posts: n/a

Default Re: Popups sometimes get blocked by IE - 07-04-2005 , 12:44 PM






On 3 Jul 2005 01:57:07 -0700, VK wrote:

Quote:
If I read your Ezop language properly (I may not), then "a friend" is
"the target audience", so the question should be refrased as:

"For the visitors using IE 6 the number of shown popup ads is lesser
than the number of the registered visitors. What is the problem?"
I'm sorry, I don't know what you mean.

The problem is that sometimes, an apparently random image will fail to
popup, and invoke the "popup blocked" information bar.


--
Nigel M


Reply With Quote
  #3  
Old   
Nigel Molesworth
 
Posts: n/a

Default Re: Popups sometimes get blocked by IE - 07-05-2005 , 06:12 AM



On 5 Jul 2005 00:52:22 -0700, VK wrote:

Quote:
OK, you may try this rather old script I used to use (I just cleaned it
of the NN4 stuff). Please mark the conventional way for image
buffering/error check. Your way is "too curly" to be reliable.
Many thanks for this, it certainly works when the page loads. Can you
suggest how I could modify it to pop up the image window when a
thumbnail is clicked?


--
Nigel M


Reply With Quote
  #4  
Old   
VK
 
Posts: n/a

Default Re: Popups sometimes get blocked by IE - 07-05-2005 , 07:13 AM



Quote:
how I could modify it to pop up the image window
when a thumbnail is clicked?
(1) In function init() comment out
// getImage('foo.jpg');

(2) Function getImage() changed as follows:
function getImage(evt, url) {
(evt.preventDefault) ? evt.preventDefault() : evt.returnValue = false;
myImage.src = url;
}

(3) In your page:
<a href="pic_1_big.jpg" onclick="getImage(event, this.href)">
<img src="pic1_thumb.gif" width="60" height="60" border="0">
</a>

But if you're doing thumbnail viewer, why do you need a buffering
anyway?? It's going to be very confusing for users, because they will
wondering if a link is dead or they have to wait for something. Just
open popup immediately upon click.



Reply With Quote
  #5  
Old   
Nigel Molesworth
 
Posts: n/a

Default Re: Popups sometimes get blocked by IE - 07-05-2005 , 07:05 PM



On 5 Jul 2005 04:13:35 -0700, VK wrote:

Quote:
But if you're doing thumbnail viewer, why do you need a buffering
anyway?
I don't know if I do need buffering, but I pre-load the images as 1x1
pixels so the popups happen faster. Is there a better way?


--
Nigel M


Reply With Quote
  #6  
Old   
VK
 
Posts: n/a

Default Re: Popups sometimes get blocked by IE - 07-06-2005 , 04:39 AM



Quote:
I pre-load the images as 1x1 pixels
so the popups happen faster.
Is there a better way?
Pre-load may be good in such situation only if user has a high-speed
connection plus (s)he waits until your page is fully loaded (with all
"big images" buffered). If user has a rather slow connection and/or
user starts to click thumbnails before all big images are fully loaded,
it will produce a big mess in your script and bit irritation for user.
IMHO you should follow the common "browsing experience". Everyone's
learned that pictures in the browser never appear "right away", but
displayed part-by-part upon arrival. So it would be totally normal and
expected to open a popup for the big picture right upon the click on
the thumbnail, and let it be loading in view of the user.

If you care to make the waiting period the least boring for users, you
may convert all your GIF's into the *interlaced* format, and all your
JPG's into *progressive* format.



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.