IRC Networks
Irc Logs Stats
Start date: 2007-09-27 02:48:27
Last update: 2008-10-24 20:19:38
Channels: 41
Logged Lines: 6230436
Size: 1834.79 MB
Powered by
Channel Info
Network: freenodeChannel: #html |
Search in www.irclog.org
Log from #html at freenode 2006-07-11
[00:55]<luld>hello
[00:56]<luld>I'm trying to apply xhtml1.1-strict to a document, and I'm having the problem that I cannot use `target' property for links if I want it to validate agains w3c's validator, nor I can see this can be set via css, any advise?
[00:56]<znzjs>don't use target :)
[00:56]<znzjs>its not in HTML4 strict either
[00:57]<luld>and how I do if I want a link to be opened in a new window?
[00:57]<luld>I wanted to use _blank
[00:57]<znzjs>well generally you don't
[00:57]<znzjs>its up to the user to decide where a link should open
[00:57]<mggvgffj>hi all
[00:57]<znzjs>if you must use JavaScript (with onclick) and provide a fallback link in the href to the same place
[00:58]<mggvgffj>how can i make a form to only execute the javascript on onsubmit but not to reload the page?
[00:58]<luld>a, ok, thanks
[00:58]<znzjs>dentello, return false
[00:58]<mggvgffj>oooks
[00:59]<mggvgffj>thanks
[00:59]<znzjs>:)
[00:59]<vnsvxcxrv>how do I set the background color on a row in a table?
[01:00]<eyaexj>tr td { background-color: color; }
[01:01]<vnsvxcxrv>riczho, err, isn't that CSS?
[01:01]<eyaexj>Yep.
[01:01]<eyaexj>That's what you use to control the presentation of a web page.
[01:01]<znzjs>you shouldn't be using presentational attributes :D
[01:01]<vnsvxcxrv>I only need this in one space, isn't there an inline way?
[01:03]<znzjs>do that in the <head> or put a <tr style="background-color: color;">
[01:03]<vnsvxcxrv>is color the hex representation?
[01:04]<znzjs>yes, or a keyword, or a rgb() color
[01:04]<znzjs>`css color
[01:04]<rtfs>css color: http://www.w3.org/TR/CSS21/colors.html#propdef-color
[01:04]<vnsvxcxrv>would that override any CSS that's already applied?
[01:05]<znzjs>try it and find out :P
[01:05]<eyaexj>`css specificity
[01:05]<rtfs>css specificity: http://www.w3.org/TR/CSS21/cascade.html#specificity
[01:05]<vnsvxcxrv>i tried '<tr style="background-color: red;">' and it didn't change :(
[01:07]<znzjs>you may have specified it elsewhere, in which case you might need !important
[01:07]<znzjs>I'd suggest just giving it a class and specifying it in the css file though, it'll save you later when you decide to change the color :)
[01:09]<vnsvxcxrv>Zeros, I'm working in a program that already has a decent amount of CSS set up, I don't feel confident editing it
[01:09]<vnsvxcxrv>Zeros, since as you can tell, I have no experience with styling, and little with HTML
[01:10]<znzjs>:)
[01:12]<vnsvxcxrv>soo.. I tried <tr style="background-color: red; !important"> and nothing changed :(
[01:12]<znzjs>your semi-colon in in the wrong place :P
[01:12]<znzjs>background-color: red !important;
[01:13]<vnsvxcxrv>still no change
[01:14]<znzjs>no idea then :P
[01:14]<vnsvxcxrv>ugh
[01:14]<znzjs>sure you're not viewing a cached page?
[01:14]<vnsvxcxrv>relatively
[01:14]<znzjs>link?
[01:14]<vnsvxcxrv>yup, tis current
[01:14]<vnsvxcxrv>can't give you a link :(
[01:15]<vnsvxcxrv>it already has styling applied to it with CSS, but I can't tell where it's applied from..
[01:50]<rjrax9>is there a way to pop a tooltip for input type="image" ???
[01:52]<eyaexj>`html input @ riczho
[01:52]<rtfs>riczho, html input: http://www.w3.org/TR/html401/interact/forms.html#edef-INPUT
[01:55]<rjrax9>riczho no where they talk about tool tip text...
[01:55]<rjrax9>riczho for images
[01:56]<eyaexj>Yeah, I was just checking it myself.
[01:56]<eyaexj>Some browsers might put alt text in a tooltip, but I guess you'd probably need javascript for this.
[01:58]<rjrax9>ok thx
[02:01]<wjjsvr>Try setting a title="" .. though you've left now and probably wont see this message
[02:02]<eyaexj>But the specs don't specify a title attrib for the <input> element.
[02:06]<wjjsvr>Yeah, but as it's an image input it would probably work :)
[02:07]<eyaexj>True.
[02:07]<wjjsvr>Might not validate, but so long as that's the only error, it's forgivable :-P
[02:08]<mz-mznw>HEY
[02:08]<mz-mznw>GUESS WHO FUCKING STOPPED B Y MY HOUSE LAST NIGHT
[02:08]<mz-mznw>THE FUCKING FBI
[02:09]<mz-mznw>APPARENTLY BADA KILLED HIMSELF ON A SUICIDE BOMBING RUN IN IRAQ
[02:09]<mz-mznw>he was a buddy of mine, a weird fellow
[02:09]<mz-mznw>i had auto accept on for downl,oads in my dcc settings
[02:09]<mz-mznw>and when i would go to sleep he would send strange porn pictures
[02:09]<mz-mznw>i thought nothing of it
[02:09]<mz-mznw>come to find
[02:09]<mz-mznw>he had fucking suicide bombing plans writtne in the headers of the jpegs
[02:10]<mz-mznw>and i was supposed to join him on his fucking mission
[04:26]<vxn-vzrv>morning all
[04:26]<vxn-vzrv>var select = document.getElementById('mySelectElement');
[04:26]<vxn-vzrv>var selectedLabelValue = select.?
[04:27]<vxn-vzrv>anyone know?
[04:28]<wjjsvr>#javascript is your friend .. but to answer ..
[04:28]<vxn-vzrv>select.options[select.selectedIndex].text it appears
[04:29]<wjjsvr>select.options[ select.selectedIndex ].value
[04:29]<wjjsvr>Or .text if you want the bit between the <option> and the </option>
[04:29]<vxn-vzrv>yep, after text, just found it on google as well, thanks
[04:29]<vxn-vzrv>I didn't know #javascript existed
[04:30]<vxn-vzrv>I have a vague memory of trying it before and finding the channel empty
[04:30]<vxn-vzrv>maybe that was another server
[04:30]<wjjsvr>Doubt it was freenode :)
[04:30]<wjjsvr>It's normally more busy there than here
[04:31]<20rv>Probably was
[04:31]<20rv>It was nearly empty for a while
[04:31]<20rv>dunno why
[04:31]<20rv>All us cool dudes weren't always there, though.
[04:33]<wjjsvr>lol
[04:34]<20rv>There was a time there where we got a lot of traffic in and out, but not one of the idjits would stay more than a few seconds
[04:34]<wjjsvr>heh
[04:40]<vxn-vzrv>I love that
[04:40]<vxn-vzrv>people who ask questions but don't have time to hear answers







