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.78 MB
Powered by
Channel Info
Network: freenodeChannel: #html |
Search in www.irclog.org
Log from #html at freenode 2006-07-15
[00:10]<sxzzypp>Hi there
[00:11]<eyaexj>Hi!
[00:39]<nddfdfjvn>is there a way to have a dialog box from <input type="file"> have an extension filter? for example, if you want to have an upload button for pics only show files with .bmp, or .jpg, etc .etc...
[00:40]<sxzzypp>Not in html :)
[00:40]<sxzzypp>You will need some sort of scripting, like asp or php
[00:41]<nddfdfjvn>I was hoping to do it on the client end. of course I will parse the uploaded file to make sure it is ok, I just didn't want it to display all 100 files in any given folder, but rather just those files that had the ext that was valid
[00:44]<sxzzypp>Ah you mean a filter on file selection?
[00:47]<nddfdfjvn>yes
[00:48]<nddfdfjvn>I've been googling and I can't find any such property..do you or does anyone else in here know of one?
[00:49]<sxzzypp>Don't think you can, unless you write your own code (like java)
[00:49]<nddfdfjvn>blah not worth it
[00:49]<nddfdfjvn>seems like it would be a useful thing to implement..oh well
[01:07]<su2ogn>is there a way to get a string with the contents of a page in an iframe (using javascript)
[01:07]<gzznvxzdzds>not if it's not your page
[01:25]<su2ogn>GarethAdams: oh, because i just need to read the text that is displayed in the frame
[01:25]<su2ogn>is that possible?
[01:25]<gzznvxzdzds>like I say, not if it's not a page from your server
[01:25]<su2ogn>what does that have to do with the DOM?
[01:27]<gzznvxzdzds>Javascript doesn't allow you access to documents outside of the original domain
[01:27]<su2ogn>um... but i thought it didnt matter, it only deals with the cached page after client download
[01:28]<gzznvxzdzds>it's not a physical problem, it's a security feature
[01:28]<su2ogn>ic
[01:29]<gzznvxzdzds>if I load your bank's page into an iframe (which takes up the whole window), you wouldn't want my javascript to access the inner document and get your bank details from the inputs?
[01:29]<su2ogn>of what the browser?
[01:29]<gzznvxzdzds>yes, the browser
[01:29]<su2ogn>ok, so how do i do it if it is my own page in the iframe?
[01:30]<gzznvxzdzds>access the iframe however you would access any other element, then you can call iframe_ref.document.innerHTML
[01:30]<gzznvxzdzds>maybe iframe_ref.document.body.innerHTML
[01:30]<su2ogn>there is no body tag
[01:30]<su2ogn>its just text
[01:31]<su2ogn>its not an html doc in the iframe just a text output
[01:31]<gzznvxzdzds>if it's not an HTML document, why would it have an HTML DOM?
[01:32]<gzznvxzdzds>I can't think of a way
[01:32]<su2ogn>the page around it is
[01:32]<su2ogn>not the iframe contents
[01:32]<gzznvxzdzds>yes, but an iframe is a separate window with a separate document
[01:32]<su2ogn>right...
[01:33]<su2ogn>isnt there still a DOM?
[01:33]<su2ogn>i am trying... document.getElementById('qf').contentDocument.innerHTML but its not an object or null
[01:33]<su2ogn>but document.getElementById('qf').contentDocument is an object
[01:34]<gzznvxzdzds>if the embedded document were a PDF, you wouldn't expect it to have a DOM, or be accessible from javascript
[01:35]<gzznvxzdzds>just because the content is pure text doesn't give it a DOM
[01:37]<su2ogn>well i mean obviously there isnt a dom for the text itself, but i thought at least i could get the string text using the DOM that the text document is inside of
[01:39]<gzznvxzdzds>you could ask in #javascript
[01:40]<gzznvxzdzds>but I wouldn't get too hopeful
[01:40]<swydzz>reisio: yes?
[01:40]<znysyj>`fullheight @ swimrr
[01:40]<rtfs>swimrr, fullheight: http://phrogz.net/CSS/valign_in_body/block.html , www.alistapart.com/articles/fauxcolumns/
[01:41]<swydzz>not a list apart again!!! LOL
[01:46]<znysyj>ignore that one
[01:46]<znysyj>the first one is okay, though
[01:47]<swydzz>reisio: its not working for me - if I set to 500px it stretches, but not 100%?
[02:03]<wl_>anyone know of any good instrucitonal podcasts on web development?
[02:04]<znysyj>swimrr: did you try what munter said?
[02:05]<znysyj>xp_: I doubt there are any
[02:05]<swydzz>reisio: yes, but it messed up the css I already had for my footer
[02:05]<swydzz>now its not centered in the div, its centered on the whole page - trying to figure it out
[02:05]<znysyj>well footers are special fun
[02:05]<znysyj>checkout pmob.co.uk
[02:07]<swydzz>i had it all beautiful, but that change to make it at the bottom has messed up how pretty it was
[02:09]<swydzz>reisio: bottom: 0px - is that a margin?
[02:09]<znysyj>no
[02:09]<znysyj>`css bottom
[02:09]<rtfs>css bottom: http://www.w3.org/TR/CSS21/visuren.html#propdef-bottom
[02:10]<swydzz>I lost my right margin though
[02:12]<swydzz>that position absolute messes it up
[02:13]<swydzz>reisio: i guess now that is absolute I can't center it in the div
[02:14]<swydzz>aha - figured it out!!!
[02:15]<swydzz>nope - it now messes up all the pages where it floats down
[03:01]<zgzcjsggzvjz>can anyone suggest a decent free webhost?
[03:02]<zgzcjsggzvjz>all I need is 50 megs and directory indexes
[03:23]<z006q1z0>geckosenator, www.free-webhosts.com
[03:25]<zgzcjsggzvjz>thanks
[03:45]<tggsxyxrg>hey
[03:45]<tggsxyxrg>I have an idea for the two tiered internet
[03:45]<tggsxyxrg>everyone should take a crap in a box and send it to the cable and phone companies
[03:46]<tggsxyxrg>and on the box write, "More ideas like your two-tiered internet"
[04:19]<zgzcjsggzvjz>hm
[05:26]<pnlzzsduzp>anyone know the best way to test webpages on all the platforms?
[05:26]<pnlzzsduzp>I've got ie, ff, opera, and lynx covered, but don't know how to do safari or any other ones I dn't know of
[05:27]<20rv>browsercam or a similar service
[05:27]<cjddzgdlzjdlv>browsershots.com
[05:27]<eyaexj>`browsers shots
[05:27]<rtfs>browsers shots: www.danvine.com/icapture/ and www.danvine.com/iecapture/ (both free), www.browsercam.com/
[05:27]<20rv>See fundables.org to go in on a bc account with other people
[05:27]<cjddzgdlzjdlv>`vodka shots
[05:28]<pnlzzsduzp>tyvm
[05:29]<pnlzzsduzp>aww, pricing plan:-(
[05:29]<pnlzzsduzp>danvine = free tho, ok cool
[05:29]<20rv>The other one is browsershots.org
[05:33]<cjddzgdlzjdlv>leprasmurf: or get the macOSX x86 beta :P~ and run safari lolz
[05:38]<pnlzzsduzp>CommandPrompt: there is the problem of not wanting to spend money:-P and I have a fully legal network (insert shocked face here)
[05:42]<cjddzgdlzjdlv>leprasmurf: I don't know ..... lemme ask someone, I think the Beta is free dl
[05:42]<cjddzgdlzjdlv>it's just big dl but I think is fee
[05:42]<cjddzgdlzjdlv>free rahter







