@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4 5 6 7 8 9 10



Comments:

<0> hi
<0> why am I getting error with this statement : if (cmd instanceOf Object){.... <-- ??
<1> instanceof
<0> ah ok
<0> fatbrain: got a minute plz?
<2> Hi.. is it possible to load a iframe inside a img-tag?
<3> miip: no
<1> nvictor: Just ask a question in the channel.
<0> well, I've found a topic for my error :D
<4> Anyone mind digging http://digg.com/programming/Code_Bash for me?
<0> I can't understand the error: Error: [Exception... "Component returned failure code: 0x80040111
<0> but IE is not saying something similar
<0> only firefox
<5> Hi, I have a page which has an Iframe on it. From within this Iframe I need to be able to press a button which will execute a javascript function in the parent page. Can anyone tell me how to do this please.
<6> how can I manually trigger a reflow?
<7> `js ref



<8> js ref: http://developer.mozilla.org/en/docs/JavaScript , http://devedge-temp.mozilla.org/central/javascript/index_en.html , http://phrogz.net/ObjJob/ , JScript@MSDN: http://tinyurl.com/9pk3l , www.crockford.com/javascript/
<7> `js domref
<8> js domref: w3.org/DOM/ , http://developer.mozilla.org/en/docs/DOM , www.mozilla.org/docs/dom/domref/ , www.zvon.org/xxl/DOM2reference/Output/index.html , www.krook.org/jsdom/ , www.brainjar.com/dhtml/intro/
<9> I'm trying to make an iframe window automatically adjust it's height as needed. Now I know javascript can't go outside of the domain because of security restrictions, however is it possible to detect whether or not the vertical scroll bar is being shown or not and to keep extending the height of the iframe until the scroll bar goes away?
<10> not unless it's on the same domain
<9> the iframe will be on the same page. so by checking the scroll bar status I'm hoping to keep it on the same page
<9> The content being loaded in the iframe shouldn't matter since the browser will decide whether to show the scroll bar or not if needed, right?
<10> frame.documentElement.scrollHeight
<9> That's the height of the iframe yes I know, but is there a way to detect the status of the bar without requiring any js interaction with the external website?
<10> no
<10> the scroll bar is on the external website
<9> hmmm. ok. I thought the scroll bar was part of the iframe on the calling page
<10> nope
<11> It's not your site, you have no right to know anything about it ..
<6> one of the many reasons why iframes are evil
<11> LOL
<11> How's that make them 'evil'?
<7> Woosta: it doesn't, it just helps :)
<6> anyone know how can I manually trigger a reflow?
<7> Dracos: shouldn't it happen automatically?
<6> I found a case where it doesn't
<7> I don't know if you can do it explicitly... you could try fiddling with the height of something above the area you're interested in, or something
<6> it involves the One True Layout and changing el.style.display in window.onload
<7> Dracos: those negative margins cause all sorts of havoc in IE
<6> nothing I haven't been able to handle
<6> no trouble even making pseudo-tables with that technique
<7> Dracos: how do you get the columns the same height?
<7> the one true layout tutorial mentions all sorts of problems found with the equal height solution therein
<6> each "row" is another div with overflow set to hidden
<6> my issue now is that I have tables which by default have a css rule to set all the tr elements to display: none
<7> what's the deal with body.onload disabling window.onload? anybody got a resource for activating scripts well?
<6> in window.onload, I walk through the tr's of each table and set some of them to display: table-rpow
<11> There *is* no body.onload
<11> The only element with an 'onload' handler is the window. (Though some browsers allow it on other elements, it's not in the spec)
<11> `js events
<8> js events: www.quirksmode.org/dom/w3c_events.html , www.quirksmode.org/js/events_tradmod.html
<6> if the page is loaded from a server, gecko sometimes doesn't reflow the containing divs
<7> Woosta: I mean if somebody does "<body onload='foo()'..." then none of my window.onload stuff works anymore
<11> Dewi: yes. They shouldn't do that
<7> Woosta: and body.onload used to be so very dominant, so I'm a little concerned about adopting the new technique
<11> http://www.quirksmode.org/js/events_advanced.html <-- that's not a bad place to read up on how *all* onload handlers should be set
<11> Dewi .. it's still fairly popular .. but if you're writing a library and your user does that, it's hardly your fault right?
<7> none of those pages mention onload
<7> I just finished reading a couple of those...
<11> window.addEventListener('load', blah...
<11> No you didn't .. you just did a find-on-page for 'load'
<11> If you'd actually READ it, you'd have understood what it was saying and worked it out from there
<7> ... does addEventListener work in IE?
<7> those pages are many years old... I've been reading the newer quirksmode articles on this
<11> FFS .. Use your own brain and read the ****ing page
<7> my own brain suggests ***igning window.onload directly instead of relying on registration functions which *seem* less well supported
<11> You get to do whatever you want. If your brain is suggesting that then do that. But if anyone comes in here screaming that your script isn't working since they loaded someone else's script, I'm not telling them how to fix it
<6> if only every browser with a build date of > 4 years ago would suddenly stop working
<12> how do i change the value of a param in an <16>
<13> argh
<14> I think everyone died this sunday
<14> and nobody told me
<13> ive almost got konq working, firefox seems perfect, and even ie doesnt need much work... but opera is being a complete bitch about getComputedStyle()
<6> tlhiv: do you know which param it is?
<12> yes



<13> not to mention, opera doesnt seem to like btoa()
<12> it'll always be the same
<12> it's for flash ... flashvars
<6> el.getElementsByTagName('PARAM')[x].value = 'foo';
<13> konq's not behaving too well either, actually, it refuses to reflow after i display:none something
<11> Redb3ard: check your logs .. see what % if people are using opera. Compare that to the development time to get it working for them. Make a business decision.
<12> what's el?
<11> % *of* people
<13> woosta, its a library i plan on giving away
<6> el is the object element
<7> tlhiv: an ancestor node
<11> Redb3ard: Then get it working in Opera :-P
<13> i know, im trying
<13> but i feel like im playing whack-a-mole
<11> Redb3ard .. I wrote a test framework if you're interested
<15> how can i make a input button that goes to a particular page?
<6> onclick="this.form.action = 'someURI';"
<6> or
<6> onclick="window.location = someURI;"
<12> the object's params that i am updating doesn't seem to be accepting the changes immediately
<12> any way to "update" the object after the param has been changed?
<11> The first is for a LOT more complex problem .. Storkk go with Dracos' second suggestion
<15> thanks dracos and woosta :)
<6> np
<16>s sorry tlhiv
<12> it's ok
<6> I wouldn't rely on plugins watching their params
<12> i'm embedding a flash player to play flash videos
<6> params are mostly load time things
<12> i want to be able to click on an image of the video ... and have the player start playing that video instead of the one that it's already loaded/playing
<6> there is a way to talk to flash directly with js
<11> ^^
<12> Dracos: perhaps i need that then ;)
<11> Do that .. don't try to load something external
<12> Dracos: do you know how to do it?
<6> I've never done it because I hate flash
<11> Google: JS talk to flash
<12> i'm not a Flash fan either ... but it is nice for embedding video (a la Google Video and YouTube)
<6> video is one of the 3 valid reasons to use flash
<12> exactly ;)
<12> actually this is purely audio ... but it's a FLV file
<6> the other two are audio and animation
<12> actually a SWF file that plays the FLV
<12> Flow Player --> http://flowplayer.sourceforge.net/
<6> aww, how cute... buffering, just like realplayer :)
<12> yeah ... it's nice
<12> i've got it working with CGI (server side) but i'd like to accomplish this with JS
<12> trying to place several links on a page ... and clicking on each link plays the given movie
<12> check out what i have so far
<12> http://www.tlhiv.org/videos
<12> i'm trying to go HTML+JSS only
<12> JS
<14> hrmn. if the element has no properties... why does accessing the properties work?
<14> This is a pretty silly error message I'm getting
<17> does domparser convert html entities back to the characters that they represent?
<13> opera doesnt seem to like element.style.marginLeft = "7px"; does it have a problem with that syntax?
<18> do divs have an onclick event?
<13> fearmoth, everything has onclick, i believe
<18> Redb3ard: I've got a <div style="width: 100px; height: 100px;" onclick="myfunction()">....</div> but nothing happens when i click it.. any idea why?
<13> are you clicking on it, or one of its child elements?
<18> it has child elements, but they're hidden
<13> put in alert("test") instead of your own function
<13> see if that works
<14> hrmn why don't any of my for loops work?
<19> hello
<20> are services secure ?
<14> i set it up and then nothing seems to execute inside the loop
<19> what is the function in js to replace strings using regex
<20> I see no news on the freenode/news page
<20> Acs: .replace
<19> ?
<19> it there no specific function? of which cl*** does that method belong to?
<20> Acs: http://www.javascriptkit.com/javatutors/redev2.shtml and http://www.javascriptkit.com/javatutors/redev3.shtml
<21> Acs: yourString.replace(/your regex/, "your replacement");


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #javascript
or
Go to some related logs:

WAP54G jumbo
mplayer gnome-vfs samba
osdev linker script
how do I emerge netconfig
postfix subsystem private/scache: No such file or directory
#gentoo
fglrx preinitdal failed
#perl
tdom fc5
#openzaurus



Home  |  disclaimer  |  contact  |  submit quotes