SitePoint Sponsor |
|
User Tag List
Results 1 to 15 of 15
Thread: what do you think of JS pop-ups?
-
Jul 31, 2003, 06:25 #1
- Join Date
- May 2001
- Location
- toronto
- Posts
- 478
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
what do you think of JS pop-ups?
hey all
i'm redesigning a pretty heavy content site - i'm debating on pop-up description windows using JS.
they ARE pretty annoying aren't they?
but what if used properly...
will they cause any cross-browser difficulties, or anything like that?
thanks~
-
Jul 31, 2003, 06:33 #2
- Join Date
- Apr 2003
- Posts
- 4,095
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I think they're pretty annoying. If they open when the user clicks a button that says "Open a Window with These Details," that's different. But for anything else...
-
Jul 31, 2003, 06:36 #3
- Join Date
- May 2001
- Location
- toronto
- Posts
- 478
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
thats actually exactly what i would be using them for - its a software company - they have many products - and for feature details & screen caps you would have to click a link for a separate windows (so they will know that its coming) it won't be one of those windows opening everywhere experiences... i'm just wondering on how buggy it is to try and do this.. i've never used pop-ups before - i've always stayed away from it
-
Jul 31, 2003, 06:49 #4
- Join Date
- Apr 2003
- Posts
- 4,095
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Hmmm... JavaScript support in browsers is a problem. You could add a "Troubleshooting" link that would say things like:
Originally Posted by Sample troubleshooting page
-
Jul 31, 2003, 06:54 #5
- Join Date
- May 2001
- Location
- toronto
- Posts
- 478
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
alright compuwhiz7 thanks a bunch
i'll take a look at that article
i think i just might stay away from them all together - we have a lot of clients that still use dial-up - so... <sigh> ... thinks... thanks again
-
Jul 31, 2003, 09:23 #6
- Join Date
- Apr 2003
- Posts
- 4,095
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Dialup is a pain.
You're welcome.
-
Jul 31, 2003, 09:27 #7
- Join Date
- Jan 2003
- Location
- Calgary, Canada
- Posts
- 2,063
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I prefer to use Javascript with links that work with or without Javascript. example:
HTML Code:<a href="description.html" onclick="window.open('description_popup.html', '_blank', 'width=200,height=400,toolbar=0'); return false;">View Product Description</a>
Edit:
I see the link compuwhiz7 posted contained this info. [img]images/smilies/wink.gif[/img]Last edited by Jeff Lange; Jul 31, 2003 at 10:18.
Who walks the stairs without a care
It shoots so high in the sky.
Bounce up and down just like a clown.
Everyone knows its Slinky.
-
Jul 31, 2003, 09:29 #8
- Join Date
- May 2001
- Location
- toronto
- Posts
- 478
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
hey! that might work
-
Jul 31, 2003, 09:43 #9
- Join Date
- Apr 2003
- Posts
- 4,095
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
What might work? The thing Jeremy mentioned in his post or the thing Jeff mentioned? I hope it's the one Jeremy mentioned, 'cause I suggested it.
No offense, Jeff.
-
Jul 31, 2003, 15:01 #10
- Join Date
- Jun 2003
- Location
- European Union
- Posts
- 1,488
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
The accessibility police recommends!!!
If a users browser doesn't support JavaScript, or the JavaScripts you are using, or if user has JavaScript OFF, will disable your visitor to access your content.
Avoid as far as possible JavaScript, to avoid running risks on
complications on the end users machines, or while goverment and other
employees are required to disable this feature, for security or other
reasons. Also there is a number of users who are very concerned about
security issues and disable this feature too.
To avoid these problems do the following:
1. Include in the head of your document the following script:
<script language="JavaScript" type="text/javascript">
<!--
var newWindow = null;
function closeWin(){
if (newWindow != null){
if(!newWindow.closed)
newWindow.close();
}
}
function popUpWin(url, type, strWidth, strHeight){
closeWin();
if (type == "fullScreen" ){
strWidth = screen.availWidth - 10;
strHeight = screen.availHeight - 160;
}
var tools="";
if (type == "standard" || type == "fullScreen" ) tools = "resizable,toolbar=no,location=no,scrollbars=no,menubar=no,width="+strWidth+",height="+strHeight+",top=0,left=0";
if (type == "console" ) tools = "resizable,toolbar=no,location=no,scrollbars=no,width="+strWidth+",height="+strHeight+",left=0,top=0";
newWindow = window.open(url, 'newWin', tools);
newWindow.focus();
}
//-->
</script>
2. Replace your links with:
<a href="<A href="http://www.webnauts.net/cse_validator.html">http://www.webnauts.net/cse_validator.html" target="popUpWin" title="new window" onclick="popUpWin(this.href,'standard',600,400);return false;">Test</a>"
(Script produced with the popup generator of Accessify.com and slightly modified by myself).Last edited by Webnauts; Oct 6, 2003 at 12:37.
-
Aug 1, 2003, 06:11 #11
- Join Date
- Apr 2003
- Posts
- 4,095
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Interesting, Webnauts. Although, I must admit, that it would be a little difficult for novices to implement. Eh?
-
Aug 1, 2003, 06:29 #12
- Join Date
- Jun 2003
- Location
- European Union
- Posts
- 1,488
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by compuwhiz7
They just need to replace the URLs. Or? [img]images/smilies/cool.gif[/img]Last edited by Webnauts; Aug 1, 2003 at 09:09.
-
Aug 1, 2003, 08:38 #13
- Join Date
- Apr 2003
- Posts
- 4,095
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Good point, Webnaut.
Admittedly, I like to understand something before I implement it. Although I myself do understand your example, novices might not. (Shrugs.)
-
Aug 1, 2003, 09:02 #14
- Join Date
- May 2002
- Location
- Vancouver, WA
- Posts
- 127
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I never realized that so many people turned off JavaScript, I haven't ever been concerned about that?!?!
According to W3Schools.com 13% of people have JavaScript turned off!
http://www.w3schools.com/browsers/browsers_stats.asp
-
Aug 1, 2003, 09:12 #15
- Join Date
- Jun 2003
- Location
- European Union
- Posts
- 1,488
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by jinx3
Last edited by Webnauts; Aug 5, 2003 at 14:54. Reason: Correcting content
Bookmarks