| |
| |
| |
|
Page: 1 2
Comments:
<Pilum> There are browser implementations like the one you were referring to though. <Pilum> Poke around the various browser's DOM and I'm sure you'll find something. <jora-katok> Pilum There are browser implementations like the one you were referring to though. -- the most interesting this implementations are cross-browser <jora-katok> for mozilla is one written above <jora-katok> for IE is a little bit other.. <jora-katok> but anyway thanks a lot <Pilum> I don't know any generic parsers for strings of XML though. <Pilum> The few I've done were tailored specfifically for the task. <jora-katok> i see.. <VaranG|aN> how to get the type of a variable? <RoBorg> typeof x <boiss_> try to beat that!! <boiss_> (OS: Windows 2000 Professional, Service Pack 2 (5.1 - 2600)) (Uptime: 10w 1d 04:05:42) (CPU: 1-AMD K7 (0.18 µm) {4} @~1013.58MHz) (MEM: Usage: 345/512MB (67.38%) 12[4||||||14||||12]) <boiss_> 10weeks uptime on winXP ! :P <Pilum> Why's it say 2k if it's XP? Heh. <boiss_> cauz the old moo.dll return windows 2000 for NT 5* <jora-katok> Pilum <jora-katok> alive? <Pilum> No, I suddenly died. <jora-katok> var domParser = new DOMParser(); <jora-katok> var xmlDocument = domParser.parseFromString(STRING_HERE, 'application/xml'); <jora-katok> var nodes = xmlDocument.getElementsByTagName('tagName'); <jora-katok> and then play with childs <jora-katok> =) <jora-katok> tested on FF, Mozilla, Opera... tomorrow will install wmware and will tets it under IE <boiss> tell me the link, ill test it... <jora-katok> well it is trivial.. i just displayed 1 element from xml <jora-katok> no web-server . locally <jora-katok> the code is triial <jora-katok> trivial* <boiss> i was asking myself, cauz i got a web chatroom, all ajaxed, and i wanted to know about the compatibility of these XML function, it could be much faster and traficless to apend childnodes and render styles with XSL sheets... <boiss> currently i make an ajax query and append to the innerHTML the new lines... <jora-katok> i use ajax also for asinchronous request, but this dom parsing i was needed to display data recived from server <boiss> i've read a couple of tutorial on that, but could not find a way to use the same code in IE and Firefox... <jora-katok> _same code_ ? <jora-katok> heh <boiss> if it works in IE, it doesnt work in FF <jora-katok> i know :-) <jora-katok> that's why i laugh <boiss> i hate to do f*ckin if (document.all) thisfunc(); else thatfunc(); <jora-katok> haha <jora-katok> yep agree <boiss> i hope these uncommun way of aplying w3c rules will be of the past in IE7 <jora-katok> thanks good i am j2ee developer and javascript is not my job, only sometimes...(when our designer is overloaded) <boiss> and finally we will get IE to work with PNG without trickin it all... <jora-katok> :-) <boiss> anyway.. im off! going to mcdonnalds! <jora-katok> heh i am going to play 1 quake before slpeep <jora-katok> bye all <kickit2> I realize this is probably the wrong channel for this, but in wha direction would I look for infomation on setting up a website with idle timeout / idle logout? <furtive> that's usually controlled by the server session <furtive> so it depends on what serverside language you're using. <kickit2> the page is written in php... but its authed via mysql though apaches mod_auth_mysql <furtive> ask on #php ... someone will be able to help you <kickit2> k <kickit2> thanks <furtive> i'm ***uming php has a session object and that there are lots of existing implementatoins of session timeout monitoring <furtive> np <furtive> and good for you for not trying to do it half ***ed on the client side instead ;-) <kickit2> thats the idea that Im toying with.. this is a data entry site.. for tracking packages and items in and out of rma... anyways. i dont want someone to do a long entry just to submit it and then have it tell them it timed out. <kickit2> So im wondering if client side might be better... or can I do that with server side too? <furtive> you can give them an alert client side to warn them, but if the guy is away from the computer it won't mean anything. <furtive> if it's something that's long i'm ***uming it'll take more than a single page refresh to complete anyways <furtive> no? <furtive> each one of those hits will refresh the session <kickit2> no.. all the data is entered on one page and then submitted.. the form itself is short, but sometimes you have to stop to find a serial #, or lookup a vendor... or other **** <furtive> at my last place we gave 5 hour sessions, so you had all morning or alll afternoon to fill out your order <furtive> heh, then 30 min or 2 hours is tops you need then <kickit2> well thats too long... I kinda wanted to monitor the page, and if you typed anything, that would reset the timer ( so to say ), and you could take like up to 5 minutes between typeing someting.. <furtive> our were huge, and we had a lot of js based stuff so a guy could spend a day mapping steps without reloading once. <furtive> so start with 45 min, and then when you get more data/feedback adjust <kickit2> this is all just to track who entered it.. you would walk up, login, and then if you forgot to logout, it would log you out after say 5 minutes... that way it always tracks who added what... <furtive> have them enter who they are on submit <kickit2> that adds more time and more typing.. you might enter 30 items at a sitting... so I just wanted to do it on auth.. not only that but some users can do some things that others can, so using the auth info just makes sence overall.. <furtive> bah, that's why my system was entirely barcode based. <kickit2> I guess my question is.. is javascript capiable of clearing cached auth info. the type of auth info that you type into the standard popup "username" "boxes" that are a part of standard http auth <furtive> no <furtive> well, i guess <furtive> yeah, you could eat the session cookies <kickit2> eat the cookies.. hehe <kickit2> that info is stored in a cookie then? <furtive> the cookie is how the server side tracks the session <furtive> i dont fuss with that stuff much though so not sure how much help i can be <kickit2> that cant be then... <kickit2> cause you can do whatever you want all damn day with http auth, until you close the browser.. if you open a second browser when the first is logged in, it forces you to login again on the second <kickit2> this is gonna be a headache <kickit2> hehe.. <kickit2> looks like I answered my own damn question here... did a little more google - tried refrasing my search.. and found that .htaccess is not flexable enough for what I want.. so Im starting over with php login / logout <ht311> wow. furtive still alive <furtive> shhh <ht311> :) you still depress from losing the playoff? <furtive> are you crazy? I'm an Edmonton Oilers fan. My team just won 6-3 tonight <furtive> i'm wearing this right now: http://wgauthentic.safeshopper.com/3/2.htm?204 <ht311> hahahaaa <furtive> how you doing? <ht311> not bad, thinking of camp out for Wiiiiiiiiiiiii <ht311> ds lite is keep calling me <furtive> dslite coming out in june, right? <ht311> and thinking of getting you one as gift <ht311> yes <furtive> haha, i was thinking of buying two, so i can always play with someone <furtive> $150 is cheap <ht311> dunno, I will get Wii for sure. <furtive> yeah, i think so. <ht311> the duron machine give up finally <furtive> heh <furtive> i'm thinking of finally getting a digicam <furtive> might buy one tomorrow <ht311> i am looking a harddisk base videocam too <furtive> you'll enjoy this: <furtive> http://www.research.att.com/~daytona/inuse.php <ht311> a very good NSA data capture node :) <furtive> yeah <furtive> no doubt the nsa one is 3x larger <furtive> 4 more days of work and i'm on vacation <ht311> .... you back to work for like less than 2 month ... <furtive> yeah, but i worked hard during those two months. <furtive> nah, grandparents 60th wedding anniversary, spending time out west to visit them and introduce the fiance to life west of Toronto. <ht311> nice. my wife start bugging about my vacation too... <furtive> ugly? http://stockmarketaudio.ca <furtive> it's a quick and dirty place holder for them <furtive> you snooze, i lose <Nir212> i check this: if (F1.M***Id.value=='') <Nir212> M***Id is actually M***Id[] (an array) and it gives me back an error <Nir212> how can i perform the check in other way?.... <Nir212> http://pastebin.com/715142 <Nir212> if anyone could help <Pilum> Use proper referencing. <ht311> another silly [] <ht311> document.myform.elements["blah[]"] <Nir212> ok... didn't understand much <ht311> http://www.jibbering.com/faq/faq_notes/form_access.html <Nir212> i see <Nir212> anyway to use M***Id[] anyway? <Nir212> otherwise i have some probloms with php <ht311> ..... <ht311> [08:48] <ht311> document.myform.elements["blah[]"] <Nir212> thanks :) <Nir212> ht311, <Nir212> http://pastebin.com/715205 -> why am i getting checkE1 not defined? <ht311> can you learn? <ht311> you never use the line i gave <Nir212> yes i did <Nir212> var checkEl = F1['M***Id[]']; <ht311> no,you didn't <daniela--> is there an alternative for window.status for setting the status bar's textto some string in Firefox? <daniela--> (hi) <jbate> how do I "click" a button and trigger its function from a text link? <boiss_> <a href="javascript:;" onclick="yourfunction();">text link</a> <ht311> <boiss_> <a href="#" onclick="yourfunction();return false;">text link</a>
Return to
#javascript or Go to some related
logs:
#MissKitten #AllNiteCafe netforce misskitten undernet logs
What does a dipsomaniac crave ? ntsyslog slackware steakk
#MissKitten #chatzone #teens #linux
|
|