| |
| |
| |
|
Page: 1 2 3
Comments:
<0> I'm trying to set custom attributes to an XMLHttpRequest, like obj = new XMLHttpRequest(); obj.whatever = "foo"; It works with FireFox, but MSIE (which uses ActiveXObject("Microsoft.XMLHTTP") instead of XMLHttpRequest) says "Object doesn't support this property or method" when I try to ***ign to a custom property. Anyone know how or if it's possible to set a custom property on an ActiveXObject? <1> I'm pretty sure it's not <0> RoB: Augh, that ****s. <0> http://www.quirksmode.org/blog/archives/2005/09/xmlhttp_notes_a_1.html <-- Confirmed: "Explorer doesn't allow you to set custom properties on an xmlhttp object." <2> furtive you around at all? <3> sure, he's over there <2> lol <2> he helped me earlier on something, and im stuck on an issue relating to it <3> next time leave a tip <2> furtive do you remember what you helped with: http://pastebin.com/556786 <4> yes
<2> well, that works superb, for bold, and italic <2> but, only on their own <2> ive been trying for about 3 hours to get them both working at the same time <2> so i can do it for bold, then italics, but its doesnt present the correct changed info in the div if i do that <2> :/ <4> miss <4> errrr miss me? <2> lol <3> too many furtives <3> 500 The Furtives <2> [23:09] <4> yes <2> [23:09] <2> well, that works superb, for bold, and italic <2> [23:09] <2> but, only on their own <2> [23:10] <2> ive been trying for about 3 hours to get them both working at the same time <2> [23:10] <2> so i can do it for bold, then italics, but its doesnt present the correct changed info in the div if i do that <2> after you dissapeared <4> as i was saying before i was booted, i'm no regexp wiz. you want to stick 'em all together, i suggest you go and do some research <3> wow, something that could have been pasted in private <4> something i already saw <3> neat <4> ceo on a sheet of paper: http://davidseah.com/pub/downloads/2006/PrintableCEO-CGT01-Standard.pdf <2> furtive i have been doing research etc, and looking at examples. tried replacing the variables, can get them to store the correct values, but they wont show on the <div> doing both at once, and im all out of ideas <4> the div is the preview one? <4> heh, that's because you don't change textarea <2> i redid a lot of the code aswell, using <2> var mytemp = document.forms["form1"].textarea.value; mytemp = elmref.value.replace(/\[b\](.*?)\[\/b\]/ig, "<strong>$1</strong>"); <4> so either apply the changes to a variable and do both (or more) changes, and then update the div, or find a way of sticking it al into the same regexp <2> furtive thats exactly what i thought <4> then do it <2> see: mytemp = mytemp.replace(/\[i\](.*?)\[\/i\]/ig, "<i>$1</i>"); i tried to replace and add to the existing code <2> ive used alerts to check the values, and they are correctly stored <4> k <4> then what's the prob <2> it just doesnt seem to do this bit: document.getElementById("preview").innerHTML = mytemp; <2> ie, its storing the information, but still not displaying in the div as it was before <4> should work fine. what was in the div before? <2> the div is just: <div id="preview"></div> <2> ie its empty, i enter the bold info, then italic, it firstly shows bold in the alert, then bold and italic <2> but still doesnt show on the div <5> Hello, I created a function to compare two dates, it returns the differencie in fractions of hours (for example: 30 mins of difference == 0.5). Now my problem is that I want to round to the next decimal. <2> this is what i editted, and logically it should work: http://pastebin.com/556808 <2> or so i thought, thats using temp vars, and replacing the initial information <5> I wrote then another function that works as a ceil, it gets the decimals, divides by 10 and uses Math.ceil <5> like: value.match(/^(\d+\.)(\d+)$/); return parseFloat(RegExp.$1 + Math.ceil(parseInt(RegExp.$2) / 10)); <3> accion, use Number.toFixed(decimalPlaces) <5> but... when the diference is 0.96 it rounds to 0.1 again <4> Advocated: i see your mistake <5> [Torgo]: yes, Im using that before doing the ceil function <2> whats that, im totally confused with js? <2> :p <3> accion, why? it returns a string <5> check this out: <5> var value = (Math.round(Math.abs(date1_ms - date2_ms) / MINUTES) / 60) <5> value.toFixed(2).match(/^(\d+\.)(\d+)$/); <5> return parseFloat(RegExp.$1 + Math.ceil(parseInt(RegExp.$2) / 10)); <3> WHY <5> this works perfect only when the number is not 0.95 <5> cause its copying RegExp.$1 as it comes <2> furtive is there a coding mistake, or have i missed something out? <3> what is it EXACTLY that you are trying to accomplish? <5> ok, we have two dates: 02-13-2006 04:00 and 02-13-2006 04:30, this will be 0.5 normally, right?
<6> hi <4> line 8, change it to: mytemp = mytemp.replace(/\[b\](.*?)\[\/b\]/ig, "<strong>$1</strong>"); <4> cKiDDie: hi <6> is there any way to access the binary data of a loaded image? <4> cKiDDie js doesn't need that. <3> only for XBM graphics <6> but I want it, I want to access the binary data of an image and convert it into base64, so I can save a .html file with the image data embedded in the <img> tag <2> furtive dude :) <2> u rock <2> in a non-gay way <2> ofcourse <2> thanks loads <3> loads? <7> sorry, got disconnected <3> oh, non-gay. sorry <2> [Torgo] lol <7> [Torgo]: can I privmsg you? <3> no <6> any hope for the functionality I need? :| <4> cKiDDie: do it on the serverside, that's outside of the scope of js <6> well...actually wanting to make a firefox extension to save the embedded images. So you can save any page you're currently at like that <7> ok, I simply want to round to the next decimal: for example the difference between : 04:00 and 04:15 is: 0.25 when I round to the next integer I get: 0.3. <4> cKiDDie: go talk on the #firefox channel on freenode <7> the diff between: 04:00 and 04:40 is --------------------------- <7> Microsoft Internet Explorer <7> --------------------------- <7> 0.6666666666666666 <7> --------------------------- <7> Aceptar <7> --------------------------- <3> _accion_, use toFixed(1) <3> feel like i'm talking to a wall <7> [Torgo]: you dont get me <4> heh, sorry, he's gonna have missed your advice again <3> no, you don't get ME <3> use toFixed(1) <7> using toFixed WONT DO IT!!! <7> damn <3> bull**** <4> the whole freakin' system is OUT OF ORDER! <3> now get lost <7> cause <7> wait, let me explain again <4> .do? <4> dominicain republic? <3> *yawn* <4> so anyone know wtf is causing the peer timeouts I get? <8> not really <3> your peers have abandoned you? <4> so it seems <4> maybe the string between my tin cans is nolonger taut. <7> toFixed(1) will only round if the decimal is >= 5, I need to round if its >= 1 . Thats why I said it doesnt work for what I want <9> hi <3> then add .04 <4> hi <7> k <3> and I said DON' <3> T msg me <9> imhaving some trouble getting a piece of javascript to work on macintosh computers - do any of you know about it? <4> and don't message me either <7> sure, but I did ;) <7> l8r <4> i've heard of macintosh, yes <9> lol furtive <9> :) <9> i wish i hadnt sometimes :) <3> looking for a image map of the us <3> need to be able to select individual states <4> http://www.freevbcode.com/ShowCode.asp?ID=1854 <3> muh ha! <3> new this was the right place to ask ;) <3> k-new even <4> dunno how good it is
Return to
#javascript or Go to some related
logs:
#linux #slice #linux #mirc #AllNiteCafe #php emerge camwhore eth amsn tls permban irssi #teens
|
|