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-06-11
[00:08]<eyaexj>`html lh
[00:08]<-- dvxn|syzzzyus xzs>http://www.bagdadsoftware.de")
[00:43]<pjasdyp>hi, can I force a browser to download a link instead of showing it as text? I have a shellscript that doesn't end in .sh, and another that does. The shellscipt that doesn't is already so widely used as it is now, that a name change is out of the question...
[00:44]<pjasdyp>However, apache naturally sets the mimetype of the script without .sh extension to text
[00:44]<eyaexj>Send it with content-type application/octet-stream
[00:44]<eyaexj>Use a .htaccess file or something (for apache)
[00:45]<pjasdyp>riczho, that would be cool, but no way to do it with some <a> property or something? :)
[00:45]<pjasdyp>target won't help either?
[00:46]<pjasdyp>I never was sure what target was for btw
[00:47]<20rv>Target is for frames
[00:48]<20rv>You have to tell the server to send a different mimetype, like attachment
[00:48]<drarnnc>b0at: not necessarily
[00:48]<drarnnc>target="_blank" opens link in a new window
[00:48]<20rv>macgeek: Popups is more of an abomination than frames are, which is pretty bad
[00:48]<20rv>are
[00:49]<pjasdyp>yeah, I have a FF plugin to disable targets for downloading ;)
[00:49]<drarnnc>good point
[00:49]<pjasdyp>But I hoped perhaps it would have some useful purpose as well...guess not...
[00:50]<20rv>Something gives anchors a type attribute, but even if that were supported it would be a backup hint, not a mandatory rule
[00:53]<pjasdyp>so the type property isn't widely supported at all?
[00:54]<20rv>no, that won't do any good
[00:54]<20rv>The server's mimetype is what has to change for it to be treated differently
[00:54]<20rv>Often that's as simple as a line in htaccess
[00:54]<20rv>`htaccess
[00:54]<rtfs>htaccess: http://www.javascriptkit.com/howto/htaccess.shtml
[00:55]<pjasdyp>aight, thanks
[00:55]<pjasdyp>will do, it wouldn't make sense to conflict with apache anyway
[00:58]<ggguddggg>What is a good way to include source code in a html page?
[00:59]<20rv>`showhtml
[00:59]<rtfs>showhtml: http://web.archive.org/web/20050308232326/http://www.allmyfaqs.com/faq.pl?Show_HTML_examples
[01:00]<cjddzgdlzjdlv>`include @ arrummzen
[01:00]<rtfs>arrummzen, include: http://web.archive.org/web/20040628164142/http://www.allmyfaqs.com/faq.pl?Include_one_file_in_another
[01:01]<cjddzgdlzjdlv>ohh source :|
[01:29]<eyaexj>Random note: Dan Webb's code highlighter script is cool: http://www.danwebb.net/workspace/CodeHighlighter/
[01:32]<vjdj|frlld>hello all
[01:33]<eyaexj>Hi!
[01:33]<vjdj|frlld>do any of you have any ideas as to how I can set the position of a table relitive to an image
[01:33]<eyaexj>Exactly what are you trying to do (visually)?
[01:34]<vjdj|frlld>I want a table which contains buttons to be on top of an image...but absolute position wont work because it will not scale to different window sizes
[01:35]<20rv>Why not use a background?
[01:35]<20rv>And is it tabular data?
[01:35]<20rv>`listamatic
[01:35]<rtfs>listamatic: http://css.maxdesign.com.au/listamatic/
[01:36]<vjdj|frlld>humm so you are saying to set the image as a background and then still I have to deal with how to scale the position of the buttons
[01:36]<eyaexj>Hmm.. are the images content or presentational?
[01:36]<vjdj|frlld>the images in the table are links...its a nav bar
[01:37]<eyaexj>Oh-- the yeah-- use a list, as b0at said.
[01:37]<eyaexj>(Take a look at the link -- tons of examples of navbars with lists)
[01:37]<vjdj|frlld>k
[01:39]<vjdj|frlld>ok http://djwokka.com/ thats how it is currently setup
[01:39]<vjdj|frlld>but if you have IE it wont work sorry
[01:39]<vjdj|frlld>:P
[01:39]<vjdj|frlld>IE dosent support transparrent PNGs
[01:40]<eyaexj>`table stupid
[01:40]<rtfs>table stupid: http://www.hotdesign.com/seybold/everything.html
[01:40]<vjdj|frlld>lol
[01:40]<20rv>`ie pnghack
[01:40]<rtfs>ie pnghack: www.mongus.net/pngInfo/ , http://xrl.us/jywg , http://devilock.mine.nu/pixie/ , http://msdn.microsoft.com/library/default.asp?url=/workshop/author/filter/reference/filters/alphaimageloader.asp
[01:40]<vjdj|frlld>alright
[01:40]<mld>hi guys
[01:41]<eyaexj>Hi!
[01:41]<mld>is it possible to without changing the body (which is generated) to add vertical space between the section number/title and the first "paragraph" of the section ?
[01:41]<mld>http://rafb.net/paste/results/Umu6Mm71.html
[01:42]<mld>it renders like so: http://www.dwarfhouse.org/mtoele/blabla.html
[01:43]<eyaexj>Yes. Use margins.
[01:43]<mld>riczho: check the paste
[01:43]<mld>.title {margin-bottom: 3em;}
[01:43]<eyaexj>On the div.
[01:43]<mld>it yields no effect on this body
[01:43]<eyaexj>Margins and inline elements don't mix normally, if I remember correctly.
[01:43]<mld>no no, I cannot change the body
[01:43]<mld>the body is generated by a black box
[01:44]<eyaexj>Then enclose the two spans in a div and margin that.
[01:44]<mld>I can't
[01:44]<mld>generated
[01:44]<eyaexj>So you can JUST edit the CSS?
[01:45]<mld>yep
[01:45]<eyaexj>And of course, you can't edit the script that generates it.
[01:45]<mld>nope, it's not a script, it's a compiled C thing
[01:45]<mld>that's really nasty
[01:45]<eyaexj>Ah well.. will line-height on .label, .title do?
[01:45]<mld>but basically, what you are saying is.. a span is not a block element, but inline
[01:46]<eyaexj>!v http://www.dwarfhouse.org/mtoele/blabla.html
[01:46]<rtfs>HTML: Not valid - Errors: 2, http://validator.w3.org/check?uri=http://www.dwarfhouse.org/mtoele/blabla.html
[01:46]<rtfs>CSS: Valid - Warnings: 5, http://jigsaw.w3.org/css-validator/validator?uri=http://www.dwarfhouse.org/mtoele/blabla.html
[01:46]<eyaexj>Get a doctype.
[01:46]<mld>and inline elements cannot have vertical margins
[01:46]<eyaexj>`doctype html
[01:46]<rtfs>doctype html: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
[01:46]<eyaexj>dpy: Yep.
[01:46]<fg0ggg>generate.php?textsize=24&font=arial.ttf&textcolour=ffffff&design=1&date=0101&text1=heyguys&text2=whatsup?
[01:46]<fg0ggg>^ can that url be encoded to pass validation?
[01:46]<fg0ggg>it wont validae
[01:46]<fg0ggg>no entity found for textsize, font, design etc..
[01:46]<eyaexj>Fr0zen: Replace the &'s with &
[01:47]<fg0ggg>what about =
[01:48]<eyaexj>That's fine.
[01:48]<fg0ggg>reference to external entity in attribute value.
[01:48]<fg0ggg>= highlighted







