| |
| |
| |
|
Page: 1 2
Comments:
<0> Well, I'm in trouble again...I don't understand what's missing. When this function is called from a form (clicking the submit button), I get an error saying an object was expected at the line where it says "var xtid = newDate();". Here's a pastebin link to the relevant parts of the code: http://pastebin.com/776800 if anyone is up for helping me out a bit. <1> hey guys, http://rafb.net/paste/results/GHgT0833.html , as you can see the <embed> tags are not ending with </embed> *which i think is the problem*, any way to solve this? <2> use innerHTML <3> can someone explain to my why my array of xml element nodes is ordered 1,3,5,7,9,... in FF, but 0,1,2,3,4,5... in IE? <2> what you are doing? <3> reading from an xml file <2> whitespace handling? <2> i mean may be the /n become a text node in the tree? <3> http://cs.wcu.edu/~dbaucom/cs463/pj1/xmlparse.js thats the file <3> or not <3> umm im not sure what you mean <3> http://cs/~dbaucom/cs463/prj1/ <3> http://cs.wcu.edu/~dbaucom/cs463/prj1/ the xml html and js file are there <3> despite the directory this is not part of a project <2> is white space <2> it is very silly to refer to specific node by index
<2> use getelementbytagname <3> i was having problems with that originally <3> i can try it again tho <3> I am a c/java programmer so I am more used to arrays then javascript... so getElementsByTagName is a better approach? <2> IT IS SUPER SILLY in either language to reference it by index in the xml document <2> isn't support to have special tag or attribute to make the document meaningful? <2> technically, you can use xpath to navigate the dom doc. but I take a shortcut to use getelementsbytagename some time <2> and I don't use xml anymore. csv or json is our choice at the moment <3> ah <3> thanks for your help <2> np <3> if I run in to anymore problems I'll be back, im not used to xml and javascript, I usually do jsp, java servlets and mysql ... <3> but thanks <3> I do have a question, when it's reading from the xml file and it gets to a tag thats doesn't have any data, it stops reading there, why <2> it shouldn't <2> the doucument is not well formed? <3> seems well formed to me <3> http://cs/~dbaucom/cs463/prj1/users.xml <2> seem so <3> sorry about the bad url again <3> ;p; <3> *lol <2> but I don't think it has "stop reading" problem. the respon***ML is null? <3> umm... not sure... for example it loads all the data from user dbaucom fine, but the other two it won't load anything past lname because of the empty address tag <3> well, i said that wrong <3> it won't put them into the text fields in the html document <2> "reading" <3> if i replace the empty space with a period or something, everything works fine <2> the xmlhttprequest have no problem reading it, is your code have bug <2> alert your code to see what when wrong <2> most likely is .nodeValue is null or something <3> i think thats the problem <2> see, is your problem ;) <2> it is just good that it won't give your the freaking null pointer exception <2> but you do need aware what you are doing <3> i would prefer that ;-) would atleast know whats going on <2> I rather now. <2> s/not <2> I do work with java everyday. and hate it <3> its the first language i really learned here in school <3> and i like it <3> im working on learning c well now <3> you can enumerate the input fields in the form like i did with the nodes in the xml, can't you? <2> document.forms["myformname"].elements <3> thats what i thought, on to more bad coding ;-) <2> http://www.jibbering.com/faq/faq_notes/form_access.html <3> going to write a for loop instead of having all the lines of code, that way i can code a null handler just once <2> 'evening [Torgo] <4> lo` <4> http://graphics8.nytimes.com/images/2006/07/28/business/600-adco.jpg <4> for people that just don't give a **** anymore <2> hope those are not real thing you can buy <4> yup, saw them today at bk <4> tag line is 'no veggies allowed' <2> .... guess they just try to out do what McD dose, by giving a hummer toy with the happy meal <2> actually seem so perfect, need a big suv to move your to buy a big burger, so that you can get fatter <4> i've no problem with that <2> :) <4> it's just a toy <4> they could give out toy airplanes -- doens't mean kids are going to grow up wanting to buy planes <2> until your kid ask you get the same car as the toy :D
<4> yeah? they gave daniel a toy castle last week <4> how is that different? people need to get a life <2> ok, the real problem will be you can order those triple chess buger in the kid's meal <4> triple? how p***e` -- these have 4 burgers, 4 cheese slices and 4 bacon slices <4> not to mention the extra fatty sauce <2> too lazy to google for quadruple :) I limiting myself to go to bk or McD. only once per month <4> quadruple byp*** <2> http://www.slashfood.com/2006/07/02/deep-fried-bacon-double-quarter-pounder/ <4> mmmmmm, you win <2> I saw a few even more crazy, that you can order at a store, 120 burgers <2> http://www.slashfood.com/2005/11/01/big-sandwich-battle/ <4> holy crap <2> it give you a heart attack just by looking at it <4> 30,000 calories ?! <2> 47gram of fat from a bk breakfast sandwich, that's crazy too <2> this is the one i was talking about http://www.supersizedmeals.com/food/article.php/20060125050438458 <2> seem you can make the same thing in bk http://www.supersizedmeals.com/food/article.php/20060823060523769 <4> mmmmmm, in n' out <4> took it a bit too far though <2> that site is clogging my artery <4> and they got fies with it.. nice <4> fries <2> I am glad that my wife taught my kids eat healthier than me already. <4> that will all end when in-n-out comes to town :P <2> heh <5> living out the future through the past <5> most ppl can't escape the past <5> and can't fathom the future <4> that nice <4> rather would talk about js though <5> you use snap.com ? <5> loading js into vrml can get messy <3> I would like ot thank you one last time ht311, I got it working flawlessly even with the addition of innerHTML usage <3> goodnight all <6> hi@all <7> can anyone help me find/implement a script on my webpage so that I can change the content inmy main DIV?? <7> My webpage: www.neverbealone.org is put together with php include (header, menu, maincontent, and a footer..) I want the main content to change by clicking on the menu, while all the other is "static"... Can anyone give me a reference to any place where I could get at tutorial to make something like it? <8> Svenn: iframe? <7> melfar... <7> I do not know what Ineed <7> I just know what I want.. :) <7> Before Iused to make a framework - with a menu on the left. Now - we do notuse frames anymore, Iuse include, and I want the main DIV to bedynamic... want it to change while therest of the page stays the same.. <8> dynamic div == iframe <7> melfar: Iframe seems to be ok, but how do I get to change the contant in the Iframe? <7> via the menu? <8> it has src property that you can change via JS <9> Tch. <9> You don't change the src, but the location. <9> And you don't want an iframe. <7> What do I want? <9> Ajax possibly. <7> Not being to much into soccer, I do believe thatis a soccer teamfrom theNetherlands.. <7> Ajax... that is.. <9> Ajax can mean several things, but in this case I'm referring to the buzz-term for JS/DOM/XMLHttpRequest <7> I foundan article on wiki.. <7> ajax is just what I need...... <7> That means that I have to change everything on my page? <9> Doubtfully. <9> But quite a lot of it probably. <7> Is there any template of ajax that's out there? <9> You have to customize it for your purposes. <8> What's wrong with iframe? <9> Same problem as with all frames. <9> http://www.html-faq.com/htmlframes/?framesareevil <7> Pilum: I cancustomize most things as longas I havesomthingto work outfrom.. <9> The DOM. <9> Could call that a framework. <10> Document Object Model <7> Found another php-code-snippet that I can use.. <7> http://norskwebforum.no/viewtopic.php?t=12111 <9> Heh. <7> Not good?? <7> I haven't figured out how to use ityet- but I get in the defaultpage... :)
Return to
#javascript or Go to some related
logs:
How did Paul Wilson run 100 yards in 13.1 seconds on September 22nd 1979 to set #chatzone glibc-common 2.3.2 #linux Which is colder, minus 40 degrees centigrade or minus 40 degrees fahrenheit ? #AllNiteCafe #AllNiteCafe #mirc #chatzone dame una mamada in english
|
|