@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info


Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2



Comments:

<AnxiousCowbo> if there anything I can add to the A href javascript:popupWindow that controlls the size of the window popping up?
<AnxiousCowbo> is*
<[Torgo]> sure
<AnxiousCowbo> with adding anything to the <head>?
<[Torgo]> add alert("poopups ****");
<AnxiousCowbo> cute
<[Torgo]> i try
<AnxiousCowbo> but it's got an image -- so customers on my site would appreaciate not having to navigate around when looking at an image of something they wanna buy
<[Torgo]> look into the open() method then
<tek9> question
<tek9> are there any open source javascript gMap tool equivs?
<|-Mike-|> http://storm.nupoison.com/gameLadder.php W
<|-Mike-|> After you select a game, then select a ladder, it should show the description, instead it shows "Object"
<|-Mike-|> Any idea why? The source is viewable.
<ht311> NeoFuture: bom bom bom
<ht311> heheh
<afn> hey... gotta question: suppose i have a partially transparent image (that is, a png with parts that are completely transparent, and parts that are completely opaque)
<afn> and on a mouse (move/click/etc) event i want to determine whether the event was registered on an opaque or transparent part of the image
<ht311> .target (moz) , .srcElement (IE)
<afn> hmm, it looks like .target is still the HTMLImageElement, even if the event is received on a part that's 100% transparent
<ht311> that's the way it is then
<afn> awww, but that makes me sad
<MiddleFinger> how do i remove or replace some text?
<h3> CSS quote of the week: "This is true for all browsers except IE."
<[Torgo]> leave the politics at the door please ;)
<h3> it's not politics, it's humor
<SufiBlade> haha
<h3> ever saw fun politics ?
<h3> :>
<ht311> [Torgo], don't worry, here always will be a IE friendly channel :)
<MiddleFinger> how do i remove or replace some text? in a file.txt that's hosted remotly and called using: <link rel="stylesheet" href="file.txt"> ??
<MiddleFinger> i've got a script that works fine, but when i load the page, the text is;nt replaced
<h3> http://www.airtightov.com/lab/airtight_corners.html
<h3> clever
<[Torgo]> easily impressed, eh?
<h3> always a stupid comment, eh ?
<ht311> it need an image, nah, nifty still better
<[Torgo]> h3, you're not gonna get too far in here
<ht311> MiddleFinger: look at document.stylesheets[x].rules etc
<[Torgo]> next
<ht311> he is fine, he have been toying with domapi;)
<[Torgo]> needs to toy with his attitude
<ht311> the canvas layer run quite fast http://ajaxian.com/archives/google-puts-the-canvas-in-ie
<ht311> http://www.abrahamjoffe.com.au/ben/canvascape/
<[Torgo]> oops
<[Torgo]> just did the "infinite mirror" thing with a domapi page
<ht311> heh, what's that?
<[Torgo]> index page with an iframe that contains a pagecontrol with an iframe that contains the index page....
<ht311> hahhaa
<ht311> Crockford's purge function is pretty fast, did some benchmarking a while ago, need compare with _unload to check
<[Torgo]> cool
<[Torgo]> prolly have to sacrafice completeness
<ht311> "completeness" ?
<[Torgo]> it may cut corners for speed
<ht311> not really, it do a recursive free for attribute with a function
<[Torgo]> same as _unload, no?
<ht311> same, that's why I need to check it aginst _unload, but _unload do it on all element, and check each element
<ht311> each properties that are in the array
<ht311> some wastage in there
<[Torgo]> ht311, was nearly a year ago
<DomAPIUser> any domapi experts around or is it too late?
<bradix> i have a table with a checkbox on the firts column of each row and want to check the checkbox on the row event onclick. any idea about how to refer to that chackbox?
<[Torgo]> shoot
<DomAPIUser> well, my question is in regards to forum post http://domapi.com/index.cfm?action=forumviewtopic&topicid=2156
<[Torgo]> bradix, use the cells collection
<[Torgo]> Paul?
<bradix> hmm
<DomAPIUser> Henry suggested that I call purge in my delete1button function, but when I do I see significant memory growth when removing the button...
<[Torgo]> seems henry fell asleep
<DomAPIUser> just wondering what the problem may be. seems odd that nulling stuff out would do that
<DomAPIUser> maybe if lots of handlers are un***igned, then nulling them actually increases memory usage?
<[Torgo]> are you waiting long enough for garbage collection to kick in?
<DomAPIUser> no, but i could... lemme see
<[Torgo]> IE has an undocumented method you can use to force it to as well
<[Torgo]> CollectGarbage()
<DomAPIUser> i thought i read that the api is there, but it doesn't do anything (just a stub). i'll try to call it
<[Torgo]> dunno, never tested it
<DomAPIUser> doesn't seem to have any affect.
<DomAPIUser> it's just really weird because base page memory is 23mb, adding 100 buttons, puts it up to 25mb, and then removing them puts it up to 32
<[Torgo]> how are you removing them?
<DomAPIUser> i modified the delete1button from that forum post to be:
<DomAPIUser> function delete1Button()
<DomAPIUser> dang, can't paste multiple lines
<sykerz> hello, I'm newb, and I want to use deleteRow() on a table, how do i fire javascript when the page loads?
<[Torgo]> sykerz onload=function(){ ... };
<sykerz> thanks
<DomAPIUser> if you can see that post, look at the delete1Button function. I just modified inside the if to be:
<DomAPIUser> buttonToRemove.free(); domapi._freeComponent(buttonToRemove); purge(buttonToRemove);
<[Torgo]> using removeChild ?
<[Torgo]> that returns a ref to the removed node
<[Torgo]> make sure you are not hanging on to it
<DomAPIUser> that's all up to _freeComponent... but I can try removeChild instead. I had something similar to that originally
<DomAPIUser> Have you seen the post? Any other ideas on how I can reduce memory growth?
<[Torgo]> yes, byt not adding and removing so many items ;)
<DomAPIUser> heh, funny :P
<[Torgo]> can you contain that area of the ui with an iframe?
<[Torgo]> _freeComponent indirectly calls removeNode
<[Torgo]> does not hang on to the ref
<DomAPIUser> possibly. if i do, I would need to include domapi.js stuff inside the iframe page's source right?
<[Torgo]> yes
<[Torgo]> presumably it would be cached though
<DomAPIUser> hmm, would it be bad to have a bunch of iframes that all included a bunch of domapi stuff?
<[Torgo]> not really
<[Torgo]> i do it often
<[Torgo]> it only loads as much as you tell it to
<ht311> back
<DomAPIUser> hmm, that sounds like a neat idea. i'd like to try it out and see how it performs
<[Torgo]> one other idea is to create all the instances you think you'll need, then hide/show them as needed
<DomAPIUser> that'd just be way too many. i was thinking about trying to reuse components though. so instead of removing them i just have a cache
<ht311> i use a lot of plain html elm in my page too, not really need domapi for everthing
<[Torgo]> this sounds like a real nasty ui ;)
<DomAPIUser> well each "transaction" isn't bad. it's just there can be a LOT of them
<ht311> http://vix.myvnc.com:8088/dropbox/untitled.PNG
<DomAPIUser> there's a menu, and each entry can open a new transaction. multiple transactions can be open at a time
<ht311> every tree node link to a new screen
<DomAPIUser> and each tree node opens a new page? or does that screen just have 3 pages?
<[Torgo]> ht311, nice
<DomAPIUser> if clicking a tree node just makes a new page, then it's a lot like the app we're creating
<ht311> using page control that use iframe to load, user can add new page as needed
<[Torgo]> yup
<DomAPIUser> i like it
<optocus> how do i do regex in js ?
<ht311> default action is replace current active tab/page
<[Torgo]> optocus, http://www.javascript-channel.com/Wiki.jsp?page=Links
<[Torgo]> http://www.javascript-channel.com/Wiki.jsp?page=RegExpTester
<DomAPIUser> so each new page's content is a complete iframe? so you can kill the iframe and get the _unload to fire?
<[Torgo]> _unload will automatically fire
<ht311> yup, auto
<DomAPIUser> right, but the key is that the entire page doesn't have to refresh to fire the _unload - just any particular iframe
<DomAPIUser> and it's a localized _unload to that iframe's content
<ht311> iframe is another document
<ht311> nothing to do with the hold page
<DomAPIUser> have you had any issues communcating between iframes?
<DomAPIUser> seems like i've done that plently before, but not with domapi
<ht311> nothing special for domapi on this front
<DomAPIUser> cool. one other related question
<DomAPIUser> my coworker is having a bit of trouble getting listgrids positioned without absolute positioning. if it's nested too deep it gets stack overflow issues in IE
<DomAPIUser> ever see anything like that with your grids?
<[Torgo]> using reflow or packer?
<DomAPIUser> neither
<ht311> heh
<[Torgo]> hmm


Name:

Comments:

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






Return to #javascript
or
Go to some related logs:

xammax max
#linux
createwindow flatstyle
#c++
Unable to find library containing res_mkquery()
#javascript
Virtual Machine CD-ROM Image
nick de hackeri
#linux
#asm



Home  |  disclaimer  |  contact  |  submit quotes