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
On Fri, 11 Mar 2005 11:49:57 -, Thorsten [EMAIL PROTECTED] wrote:
a href=#
onClick=javascript:window.open('therapeuten/barkow-lewinsky.html','Barkow-Lewinsky,
Eva','width=450,height=200,left=150,top=150');Barkow-Lewinsky, Eva/a
Never put URLs in onclick (javascript:blabla *is* URL)
Don't
I was tying to use nodeType to make sure that a node was an element in
my javascript, but it wasn't working. Then when I did
alert(aNode.nodeType); I got undefined, I was really confused so I tried
alert(document.nodeType); and I got undefined again! Is there a reason
I'm getting undefined
Alan Trick wrote:
Centering the containiner is meaningless though if it doesn't have a
fixed width (that's smaller than it's container), and if it does have
a fixed width, than it ruins the whole point of the thing, to allow
the boxes to flow depending on the size of the container.
David
On Fri, 11 Mar 2005 08:23:40 -0500, Alan Trick [EMAIL PROTECTED] wrote:
I'm getting undefined instead of DOCUMENT_NODE or 9? I used
if(aNode.tagName){ ...} to achive the required result, but it's a hack
and I want to know what's wrong with nodeType?
I suspect it's because you've returned a
On 12 Mar 2005, at 12:23 AM, Alan Trick wrote:
I was tying to use nodeType to make sure that a node was an element in
my javascript, but it wasn't working. Then when I did
alert(aNode.nodeType); I got undefined, I was really confused so I
tried alert(document.nodeType); and I got undefined
On Fri, 11 Mar 2005 14:03:19 -, Nick Gleitzman [EMAIL PROTECTED]
wrote:
Is it just me, or is this list turning into javascriptgroup.org?
HTML and CSS aren't the only web standards. DOM and ECMAScript are too.
--
regards, Kornel Lesiski
**
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:
A HREF=javascript:void(0); onClick=openWindowFunction(params)
That is tweaked non-standard accessibility killer. It will break even
if I
I was tying to use nodeType to make sure that a node was an element in
my javascript, but it wasn't working. Then when I did
alert(aNode.nodeType); I got undefined, I was really confused so I
tried alert(document.nodeType); and I got undefined again! Is there a
reason I'm getting undefined
and don't use inline scripts. They are as bad as inline styles:
a href=therapeuten/barkow-lewinsky.html
class=popupBarkow-Lewinsky, Eva/a
var links = document.getElementsByTagName('a');
for(i=0;ilinks.length;i++) if
(links[i].className=='popup')links[i].onclick = function()
I don't know what the problem was, but I copied Gez's code and it
started working, O:-) . Possibly just a spelling error or a missing a '
or one = instead of two.
Thanks,
Alan
Ben Curtis wrote:
I was tying to use nodeType to make sure that a node was an element
in my javascript, but it wasn't
I've been looking around on the web for a little bit and can't find the
answer to my question. If it's rudimentary, please forgive me.
How do I properly quote code (eg. Perl) in a webpage and have it display
properly? The code element seems the most appropriate for the job but
it does not
Wouldn't you know it. As soon as I sent out that email, I found the
answer. Behold, the pre tag
Thanks,
Diona
**
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints
I have found the easiest approach is to cut and paste the code into the
design view of Dreamweaver. This will translate all of the , and other
symbols into the amp; style codes and your web page will display them
correctly. Try wrapping the snippet in code/code tags.
The most effective approach
The code tag is the correct element to use to markup code snippets.
You could add a rule to your CSS to make it preserve white space:
code
{
white-space: pre;
}
The obvious problem is that it won't preserve the white space when CSS
isn't available. An alternative is to place the code tags
Ted Drake wrote:
The most effective approach that I have seen so far is to put each line
in an ordered list, and applying styles to make it more readable. I'm
not sure if this would make it more usable.
Depending on what you're showing the code for, line numbers may be
almost essential, or at
At 04:24 PM 3/11/2005, Hassan Schroeder wrote:
Depending on what you're showing the code for, line numbers may be
almost essential, or at least very useful; here's a sample I did a
while back for someone to use as a model for a tutorial:
http://webtuitive.com/samples/code-as-list.html
Of course,
Paul Novitski wrote:
Personally I would find your line-numbering technique more effective if
the line numbers showed up by default (perhaps dimmed) [this would serve
IE users as well], and then the current line and its number were
highlighted on hover. Especially with indented code it's not
18 matches
Mail list logo