| |
| |
| |
|
Page: 1 2
Comments:
<0> Hello <0> I've made this cl*** using the prototype library and want to define a "public static function" but im lost. <0> http://rafb.net/paste/results/w56cPh87.html <0> Thats the code, its small. <0> What i want is a static function like, Tree.init(); <1> Hmm <1> You only ever going to have 1 tree? <0> no, it could be more. <2> smiles, i've done that <1> Hmm, second thoughts, I don't understand that code at all. <2> might be able to find it again <2> I did that "Array.prototype.push = function() {" in order to do myArray.push() <0> And you used the prototype js library to create the "other" members of the cl***? <2> i'm not sure about the way it works <2> what i can say is <2> I'm not using any other library than this one
<2> and that allow me to do .push() <3> hi guys <3> im trying to use a script that i found but its not documented and i dont know what the parameters of the function are, can someone recognize what the parameter ihtmldoc is? <3> if (ihtmldoc.Document.readyState == "complete") <2> Hilikus, readystate would let me know that it's about AJAX <3> but whats ihtmldoc? <3> meaning what kind of object has .Document.readyState member <2> i've got no idea mate <3> thanks man <4> anybody up for a question? <5> no <6> any java freelancers? <7> Hrm <8> What's the best way to handle multiple ajax calls within a short interval? <8> At the moment, I've got a global "http_request" var, and call "http_request.open("GET", url + parameters, true);" <8> If I call a 2nd ajax request before the previous call is processed, the previous http_request is scrapped. (this is not what I want) <9> dramman: have 2 objects <10> Hiya people :-) <1> ROBORG!!!! <1> BAD HEAD? <1> >:) <11> Lol <11> "Does not compute. Input error. CRC overflow. Error! Error!" <12> heh <12> no i'm ok :p <12> bit tired though... been up since 7:30ish <1> I was dead to the world until my alarm went off <11> And I thought I was up early. :-P <12> heh <11> (At 9) <1> Ok. I'm going to do something today. <1> Hmm... drive to the Metro Centre first I think, get myself a couple of books and some lunch. <13> where i can find a java script we make form with country, state and city, and all country,state and city are enter... <14> hello <11> Hello. <14> hey Pilum <11> .za? Where's that? <14> just thought I'd pop in I am new to this network <14> South africa <14> :) <11> Aah. <11> That explains why I didn't get it. Didn't remember any commonwelth country starting with "za" :-) <14> hehe <14> well .sa is taken <14> so we had to settle for ZA <14> :P <14> Pilum: just so btw do you use xmlhttprequests? <11> Yep. <14> you can post data with it correct? <14> because I am getting NOT IMPLIMENTED errors atm <14> for some weird insane reason <14> but well this is my first time using xmlhttp <11> What are you doing then? <14> I basicly build the url with the stuff I want p***ed <14> let me pastebin <14> :) <14> might be easier <14> sorry this might be a noob question
<14> I moved from using .net and asp.net to python + ajax <14> http://pastebin.ca/139174 <14> http.send(null) <14> that is the issue I presume <14> A request of the requested method POST requires a valid Content-length. <11> Why would you send null? <14> well <14> if I send the url <14> it give not implimented errors <14> so I presume the "CompanyName=" + escape(document.getElementById('CompanyName').value) + "&" <14> must be in the send <14> I think <14> but then I wount be able to execute the function on the backend correctly <14> excuse my ignorance please <14> POST to /~jeanre/bms/Functions/Contact.py/Save not supported. <14> if I do send(url); <11> Well, I've no idea wether or not there are any web related functions in python, but it should be possible to write an unescape one. <14> Pilum: say for instance I load data <14> I will do the same <14> except use "GET" <11> Use GET and IE will cache it. :-) <14> I am not using IE <14> :P <11> But some of the people visiting the site probably will. <14> Pilum: can you elaborate on the whole unescaped? <14> yes correct <14> Pilum: can I pm you with the url? <11> Paste it in the channel. <14> http://196.209.104.250/~jeanre/bms/Forms/default.html <14> check that <14> its just test code atm <14> I need to execute my function like the alert does <11> escape() converts chars to a %hex value. It's just a matter of converting it back. <14> Pilum: it works when I do that on a load function <14> so its not a issue with the py function not understanding the way its executed <14> its just expecting a return or something <11> Frames? Bad idea. <14> Pilum: yup <14> like I said <14> test code <14> :P <14> it will become css later <14> :) <11> Looks like an error from Apache. <14> it is <14> so my javascript code is not working correctly <11> Your javascript code would be irrelevant. <14> [Sat Aug 19 20:34:21 2006] [notice] mod_python: (Re)importing module 'Contact' with path set to '['/home/jeanre/public_html/bms/Functions']' <11> Seems to be an issue with mod_python or whatever it's called. <14> thats what apache says <11> Indeed. <14> and <11> A configuration error. <14> there is no actual error <14> nope <14> thats not a config error AFAIK <11> Call it a lack of configuration then. :-) <14> 127.0.0.1 - - [19/Aug/2006:20:34:21 +0200] "POST /~jeanre/bms/Functions/Contact.py/Save?CompanyName=dsad&ContactPerson=dsadsa&ContactNumber=321&FaxNumber=1 HTTP/1.1" 501 302 <14> hmmm <14> 501 is not found correct? <11> 404 is not found <14> what is 501 then <14> heh <11> Checking. <14> this is weird <11> 501 error: service not implemented <14> hmmf <14> wierdness <14> ahah <14> nm <14> ok check this <14> if I got direcly to the py file in ie <14> with the string <14> it works fine
Return to
#javascript or Go to some related
logs:
ryanstein lil minn ha nahxi? xcelent2005 550 times sweeter than cane sugar #php +FORMERLY KNOWN AS GREENLAND + #windows #chatzone eime ellinida c++ cmpiler
|
|