Re: [WSG] javascript problem with pop-up on hyperlink click (IE6 displays an error, FF, Opera work fine)

2005-03-13 Thread Jan Brasna
Don't popup blockers allow them when they're a result of a direct user 
interaction 
Sometimes, sometimes not. It all depends on browser and/or setup...
Or is this another thing that XP SP2 messes up?
I'd guess so...
--
Jan Brasna aka JohnyB :: www.alphanumeric.cz | www.janbrasna.com
**
The discussion list for  http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
**


Re: [WSG] javascript problem with pop-up on hyperlink click (IE6 displays an error, FF, Opera work fine)

2005-03-13 Thread Patrick H. Lauke
Jan Brasna wrote:
javascript may fail to open a new window?

Popup blockers etc.
Don't popup blockers allow them when they're a result of a direct user 
interaction (such as clicking a link)? Or is this another thing that XP 
SP2 messes up?

--
Patrick H. Lauke
_
re·dux (adj.): brought back; returned. used postpositively
[latin : re-, re- + dux, leader; see duke.]
www.splintered.co.uk | www.photographia.co.uk
http://redux.deviantart.com
**
The discussion list for  http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
**


RE: [WSG] javascript problem with pop-up on hyperlink click (IE6 displays an error, FF, Opera work fine)

2005-03-13 Thread Mike Pepper
Patrick H. Lauke wrote:

> so what advantage does this bring? If javascript is enabled, but fails 
> to open a window, the link still works? What are the situations in which 
> javascript may fail to open a new window?

> Jan Brasna wrote:
> > Do not return false. Return !window.open(...) instead.

Directive override during biosphere external sensor discrepancy :o)

Mike Pepper
Accessible Web Developer
Internet SEO and Marketing Analyst
http://www.seowebsitepromotion.com

Administrator
Guild of Accessible Web Designers
[EMAIL PROTECTED]
http://www.gawds.org
**
The discussion list for  http://webstandardsgroup.org/

 See http://webstandardsgroup.org/mail/guidelines.cfm
 for some hints on posting to the list & getting help
**



Re: [WSG] javascript problem with pop-up on hyperlink click (IE6 displays an error, FF, Opera work fine)

2005-03-13 Thread Jan Brasna
javascript may fail to open a new window?
Popup blockers etc.
--
Jan Brasna aka JohnyB :: www.alphanumeric.cz | www.janbrasna.com
**
The discussion list for  http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
**


Re: [WSG] javascript problem with pop-up on hyperlink click (IE6 displays an error, FF, Opera work fine)

2005-03-13 Thread Patrick H. Lauke
Jan Brasna wrote:
Do not return false. Return !window.open(...) instead.
so what advantage does this bring? If javascript is enabled, but fails 
to open a window, the link still works? What are the situations in which 
javascript may fail to open a new window?

--
Patrick H. Lauke
_
re·dux (adj.): brought back; returned. used postpositively
[latin : re-, re- + dux, leader; see duke.]
www.splintered.co.uk | www.photographia.co.uk
http://redux.deviantart.com
**
The discussion list for  http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
**


Re: [WSG] javascript problem with pop-up on hyperlink click (IE6 displays an error, FF, Opera work fine)

2005-03-13 Thread Jan Brasna
return false;
Do not return false. Return !window.open(...) instead.
--
Jan Brasna aka JohnyB :: www.alphanumeric.cz | www.janbrasna.com
**
The discussion list for  http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
**


Re: [WSG] javascript problem with pop-up on hyperlink click (IE6 displays an error, FF, Opera work fine)

2005-03-13 Thread Thorsten
guys,
thanks a lot for helping out :^)
--
Thorsten
**
The discussion list for  http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
**


Re: [WSG] javascript problem with pop-up on hyperlink click (IE6 displays an error, FF, Opera work fine)

2005-03-11 Thread Ben Curtis

and don't use inline scripts. They are as bad as inline styles:
Barkow-Lewinsky, Eva

var links = document.getElementsByTagName('a');
for(i=0;i
This would be better, in case you have multiple classes assigned to  
your a tag:

if (links[i].className.match(/\bpopup\b/))
Better than class, though, would be to use rel="external" or  
rel="dialogue" or some such thing. The rel attribute describes the  
relationship of the destination document to the origin document. Class  
is a style, and not a relationship. But honestly, 6 of one, half dozen  
of the other.

--
Ben Curtis : webwright
bivia : a personal web studio
http://www.bivia.com
v: (818) 507-6613

**
The discussion list for  http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
**


Re: Re[2]: [WSG] javascript problem with pop-up on hyperlink click (IE6 displays an error, FF, Opera work fine)

2005-03-11 Thread Kornel Lesinski
On Fri, 11 Mar 2005 18:22:25 -, Chris Dawes <[EMAIL PROTECTED]> wrote:
Never put URLs in onclick (javascript:blabla *is* URL)
Forget that use this idea:

That is tweaked non-standard accessibility killer. It will break even
if I middle-click link in a normal browser...
In my previous post I've given solution that degrades nicely and requires
even less code.
--
regards, Kornel Lesiński
**
The discussion list for  http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
**


Re[2]: [WSG] javascript problem with pop-up on hyperlink click (IE6 displays an error, FF, Opera work fine)

2005-03-11 Thread Chris Dawes




> Never put URLs in onclick (_javascript_:blabla *is* URL)

Forget that use this idea:



if you have to open more than one window use a function to call the open window functions one after the other:

openWindow(params)
openWindow(params)


hmmm... might be better than returning false from a function that is in fact true

Happy coding...
Dawesi





Re: [WSG] javascript problem with pop-up on hyperlink click (IE6 displays an error, FF, Opera work fine)

2005-03-11 Thread Kornel Lesinski
On Fri, 11 Mar 2005 11:49:57 -, Thorsten <[EMAIL PROTECTED]> wrote:
Barkow-Lewinsky, Eva
Never put URLs in onclick (javascript:blabla *is* URL)
Don't use href="#". Put meaningful link there, and avoid duplication by  
using this.href.

Second attribute for window.open is window name and works like target for  
. To allow more than one pop-up, use _blank.

onclick may return false to prevent following href.
Barkow-Lewinsky, Eva
and don't use inline scripts. They are as bad as inline styles:
Barkow-Lewinsky, Eva

var links = document.getElementsByTagName('a');
for(i=0;ivoila!
--
regards, Kornel Lesiński
**
The discussion list for  http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
**


[WSG] javascript problem with pop-up on hyperlink click (IE6 displays an error, FF, Opera work fine)

2005-03-11 Thread Thorsten
hiya,
i'm not sure if this is the right place to pose my question, but i'll 
dare it. if my question is unwanted on the list, i apologise, maybe 
someone can reply in private?

i have a page from which i'd like to pop-up a window with more details 
upon clicking a hyperlink. the javascript i'm using is:

Barkow-Lewinsky, Eva

this works fine in the Fox and Opera, but IE6 says i've got an "invalid 
argument" in my javascript in the line where the link is.

besides asking for advice on how to fix this, i'd be glad to hear 
alternative approaches, too.

thanks,
--
Thorsten
**
The discussion list for  http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
**