| |
| |
| |
|
Page: 1 2
Comments:
<0> So I'm being retarded here I know.. or more just unimaginative, but if I've got an array fileCatch[n] and some of the text it has, contains a dot "." I want to put it in another array <0> How do I scan the text for a dot <0> for(var i = 0; i < fileCatch.length; i++) { if(fileCatch[i] <0> and then... <0> ? <0> indexOf(".") <0> *duh* <1> does anyone here have any experience with ajax (I'm aware that some people hate this term!)? I'm having problems with accessing the XML document in javascript... It behaves kinda weird: the .toString() doesn't work, elements that I get using getElementsByTagName do not support getElementsByTagName, etc. <2> my htpc running at 1080i now <3> XMLHTTPRequest supports compression (basedo on the gzip header), right? <4> hey n e 1 there? <2> xeer: yes, as long as the browser support it <5> *yawn* <6> hi <6> what shall i use for createElement if i want to create a simple text <6> not even <span></span>.. just a simple string
<2> var span = document.createElement("span"); document.body.appendChild(span); <2> oh <2> createTextNode? <6> ok thanks <6> createtextnode shall do it, yep <7> when I p*** object in javascript like addSmiley(frm.txt,"1") and add string 1 to txt works fine in IE but dont work in firefox any help? <2> to txt ? a text file? <7> to txt (textbox) <7> my addSmiley contains x.value=x.value+y where y is the 2nd parameter <7> and x is the 1st <2> in this case, seem to be the way you get the reference have issue <7> it works fine in IE what could be wrong in firefox <2> any url? <7> if its uploaded? <8> anyone know of some freeware code samples of an app that does similar stuff to the ebay website? <2> Zefir: pb.html-channel.com <7> that code is generated by PHP i dont know how I will paste it <7> ht311: http://net.altlimit.com/ try this. there is a shoutbox at the right side click the smileys and it should add the text fine in IE <2> document.forms["frmshout"].txtshout <2> http://www.jibbering.com/faq/faq_notes/form_access.html <7> ok w8 ill check <7> hmm im getting an error thanks ill figure this out. might be some simple js errors <7> i got it to work with this method but still not working in firefox (document[frm].elements[txt].value=document[frm].elements[txt].value + smiley) <8> Thanks guys. I'm out. <9> can someone help me out? <5> Ask a question. <5> hm, bad connection <10> see if i care, fatso :P <10> hihihi <11> Hey guys :-) <6> hello <6> how can i make differences between two dates? for instance, '2005-01-01 12:20:31' and '2005-02-12 00:00:00' <5> eIf: dataA.valueOf() - dateB.valueOf() gives you the timespan in ns (iirc) <11> ns ? <11> nano seconds? <11> isn't it ms as in milli seconds? :-) <5> yeah <5> no i don't think so <11> ns ? <5> y <11> hmm <11> isn't it always "milli seconds since January the 1st 1970" ?? <5> easiliy verifeid tho, as I said... iirc ;P you verify it <5> if the js-ref sais it's ms since 1970, then it's ms not ns, but I don't know <11> hehe <6> fatbrain i found the sol anyway, thanks <12> ok, got strange problem <12> trying to eval a json string, getting an syntax error at [[" <--the " <2> may be somewhere else missing , or " <5> PapaBear: that's probably because there's a " where it should be a \" <5> hah! <2> pb.html-channel.com <2> hi fatbrain <12> eval(http_request.responseText); <--the eval <5> ht311: howdy ht311 <12> http://papa.bearcavecc.com:91/test.php?x=80&y=80 <--you can see the json string there <13> i wish there was another way to handle response text i hate eval <12> yeah, eval ****s for several reasons <14> why are you evaling an array? <14> eval("var myArray = " + http_request.responseText); <5> not that evaulating an array *should* cause an error
<13> maybe the response it ("test", "demo", "testinG") <13> torgo <5> but you should do it as [Torgo] said. <2> and why inner array contain only 1 element ? <12> dunno, using php-json <12> thats how it encoded it <5> haha, php-json ****s <12> its fast... if it would work :) <2> that string don't have problem in ie or ff <12> ok... giving me a syntax error at var bgArray= <5> PapaBear: Is the .htm using the RPC available public? <14> now your url contains the var ***ignment <12> torgo, yeah copying some crap from another project over <14> so now you have var bgArray = var map = [ <12> http://papa.bearcavecc.com:91/jsontest.html <14> err...... <14> that's wrong on sooo many levels <13> eval("var bgArray = array(" + http_request.responseText + ")"); <13> WTF <2> "The data necessary to complete this operation is not yet available." <14> yes, he's treating this as though it were asyncronous <14> neo, it doesn't even get to that part yet ;) <14> PapaBear, these are pretty advanced topics to just jump right into. I'd brush up on js a bit first <2> don't , it hurt your eyes <5> to makes things easy, make his requests synchronous. <5> (and yes, it did hurt my eyes) <5> I only briefly looked at the top 20lines... then I had to *ctrl+w* <2> hope it is not the final code also, i don't see any html in there, even if there is html code, before onload happen, getElementById may not work also <2> and .bmp as background... <12> its just the javascript, and also based it on the IBM ajax article <12> the images are small, converting to another format didn't save any file size, just lost detail <14> you only need jax though <2> that's needed ? "overrideMimeType('text/xml')" <2> PapaBear: it is not about image size <12> the previous system was a python backend serving the xml data, trying to change / adapt it to php-json <2> so, right now, you have problem sync/async , the eval part could be var bgArray = eval(response.responseText); or eval("var bgArray =" + response.responseText) <14> the second is preferred <2> ic, only if it is array or any json in general? <5> iirc, using var bleh = eval("...") doesn't work <5> since eval doesn't return the evaulated *result* ? <5> I know I've had trouble with this in the past. <2> it does work... <14> it works, but it really shouldn't be done that way <2> k <14> didn't work prior to 1.5 <2> ah <12> reading up on response states <12> momento <14> PapaBear, making this to hard on yourself <14> switch to syncronous <5> hehe, string concatenation operator in Haskell '++' <5> now nifty <5> beats php's tho, but most do <12> ok starting to get hte logic worked out <12> ok, still getting syntax error on the eval <5> PapaBear: it's very easy, since you'r using PHP-JSON <5> eval("var jsonObject = " + r.responseText); <5> alert(jsonObject); <5> /* done */ <12> alright, now created the string myself <12> still returning error <5> I'd have to advice you to look for the error elsewhere. <2> you still haven't switch to sync yet <2> i bet the responseText is not complete at the mement you eval <12> i set it to wait till response was complete to eval <12> lemme scrap this ****, and start again <15> good morning <16> Evening. <15> http://www.nomorepasting.com/paste.php?pasteID=56238 <15> in this script, there is an if then else statment, I wonder if a wildcard can be used. <15> if (a == 'tools') { menuclose(document.getElementById('comm')); } else { menuclose(document.getElementById('tools')); } <15> what if I have 600+ menus, I have to write 600x600 statements so that if I open a menu, if there is one already opened it will close. <15> 600 if statement is kinda killing to write :-s
Return to
#javascript or Go to some related
logs:
+dumped you several eeprom emulator Cilsh ircdough #MissKitten #chatzone flashmp3_menu #networking #mirc gordboy
|
|