| |
| |
| |
|
Page: 1 2
Comments:
<0> HELLO ALL <0> den blepo na milaei kanenas <0> d <0> eisai kai o protos <0> tha sa soy deikso akoma kati sto gas kai ok <1> English. <0> yes file <2> can anyone explain to me why 'char'.charCodeAt(0) doesn't give the same character codes as key presses? <3> because it's not supposed to <3> it's supposed to give you the ascii character on position 0 <3> which is 'c' in your case <3> it just gives you the ascii of 'c' <3> not the ascii of the key pressed.. <2> i understand that part, substitute in a character... <3> ? <3> what ?
<2> my problem is that '`'.charCodeAt(0) and pressing the ` key gives two different key codes <2> and i don't understand why <3> ah i get what you mean <2> i was hoping to be able to get key codes from a jscript string <3> yeah but keycode != ascii code <3> keycode ` is different than asciicode ` <2> ahh, well that would explain it <2> is there an easy way to convert them without a huge array? <3> don't know <3> try googling "keycode to asciicode javascript" or something <2> yeah, i am <2> thank you <3> np <2> what in gods name <2> ok <2> apparently most keys return their uppercase equivalent <2> and ` returns a capital A with an accent over it <4> is there a way to grab a xml file via javascript? <5> hello all, i have a question, how can one, in a server/client, upload a file? I am trying to find the code on some site but can't do it, I don't need a package unless it is included in sun's java files <5> hello Sparkle <6> Hello buhu2 <5> are you a java genius? :p <6> http://pastebin.com/853180 <-- I get error on line 18 "var _y = (screen.height + height) / 2;" which is "width is undefined" I am trying to place my popup exactly in the middle of my screen. Not reallu sure what to do. Any idea? <6> I am so javascript newbie. <7> this is #javascript. javascript is not java <5> ah ok sorry about that <6> ti's okay. <5> can i find java help somewhere beside #java? i need some coding help <6> probably #java here on EFnet. <7> Sparkle, i don't see where you declare/set the width <6> I've been told to do so, I am a js newbie... Mind directing me? <7> it is not an excuse. read your window.open , try to understand what you are doing there <5> thanks anyway guys :) <6> shouldn't (screen.width / 2); return the value of my screen width devided by 2 anyway? or I am doing it incorrectly? <8> hi guys , when i do <scriptlanguage="JavaScript">window.setInterval((this.form.submit()0);</script> it simply displays window.setInterval....... on the page as text ... anyone know why ? <9> 2 dell laptops great for gaming for sale price 650 need these gone today <10> if i have <font cl***=bold_text name='foobar'>12345</font> can i alert(getElementByName('foobar').value) ? or something similar? <1> Ewww. <1> We're in 2006 now. <1> 2007 even <1> <font> has no value and, in fact, should not be used at all. <10> is ther anything i can use to rip out the 12345? <10> (i cant change the html) thats what i have to put up with <10> i think i can get it be a getelementbytag <10> but is there anyway i can using the name foobar? <1> It has become outdated, replaced, simply put: deprecated. <1> Update your HTML knowledge. <1> <span cl***='bold_text' name='foobar'>12345</span> -- alert(document.getElementsByName('foobar')[0].innerHTML); <1> Or use ID if you have only one with that name. <1> document.getElementById('foobar').innerHTML <10> i know its outdated, im not the one that made the choice to write crap html... thats just how its been generated by this stonage system... is there any way at all for me to rip out the contents? or will i have to resort to getelemntsbytag? <1> I already told you the answer. What tag is used is irrelevant for that method. <1> Change the index if there's more elements named "foobar" (and that one's not the first of them). <10> IE returns 'document.getElementsByName(...).0.innerHTML' is null or not an object <1> Heh. <1> I guess you'll have to do it in two goes then so to speak. <1> var foobars = document.getElementsByName('foobar'); alert(foobars[0].innerHTML); <11> damn the foo's <1> Oh noes. The DaveLappy!
<12> Hmm... when did that become a popular phrase? <1> Just now. <12> I just noticed it the other day and again just 2 minutes ago on /. <12> The "Oh noes" bit <12> :) <1> Ah hehe. <1> Dunno. A year ago? <12> lol <12> okay <13> hai2u Pilum <14> Hi there, I was wondering whats the best way to p*** a variable from javascript to java (in a jsp) <1> Same way you post anything to the server. <1> Via HTTP's POST or GET methods. <14> thanks for the reply <14> but given the fact that js and the java in the jsp are all in the same page theres no communication going on <1> You seem to lack an understanding about the difference between serverside and clientside. <14> no I fully understand that <14> im just having trouble expressing myself here i guess <1> I guess what you're looking for is ajax then perhaps. <14> yeah thats correct im playing with ajax <14> I don't want to set values through the innerHTML attribute <14> of an html tag <1> Now you're talking in the other direction. <1> I.e. from the server to js. <1> What values are you talking about anyway? <14> ok I have a jsp page and my servlet <1> If it's js variable values then innerHTML doesn't have any relevance. <14> yeah I know <14> right now im just updating my div by getting to it through its innerHTML attribute <1> So? <14> and thats done in js <14> now for example <14> suppose i have the following : var myVar = ""+ajaxObj.responseText; <1> Pointless. <14> let me finish <14> for the time being im just printing my value like this (in the html tag) document.getElementById("spotresults").innerHTML = ""+ajaxObj.responseText; <14> now I'd like to change my approach and put the response in a js variable <14> thus the ... var myVar = ""+ajaxObj.responseText; <14> and now p*** the myVar to java <14> in the jsp section <1> Send it back with ajax. <14> Dude i don't want to send it to the server <14> i mean servlet <1> Well the JSP is on the server! <14> I know that <1> If you're talking about an _applet_ then say so <14> no im not <1> Then you're not making any sense whatsoever. <14> have you ever used taglibs in java (i know im far here from js)? <1> No. I don't write java if I can possibly avoid it. :-) <1> Let me sum up how it looks from my point of view: You send some request to the servlet via ajax and get a value back. And then you want to p*** that value to the servlet...? <14> hey I just realised that it doesn't make sense what I was trying to do my bad <14> ill have to do all of the formatting through the js myself <14> due to the fact its an ajax request and behavior that im looking for (****s) <1> FYI, .innerHTML is not a bad thing as such. <14> yeah I know <14> I believe thats the only way to update html when doing ajax right? <1> No. <14> cause I went through a lot of tutorials on the web and all use the innerHTML thing <14> ohh really .. <1> Simple ones. <14> can u tell more <1> There's a wide range of DOM methods for creating and handling HTML element objects. <14> actually I have avoided a lot js and always preferred good old server side stuff <1> It's not JS as such. <14> but now im obliged to do some js for ajax sake <1> Merely an API <14> yes to access the browser model <14> or document model <1> Indeed. <14> to be more appropriate <14> from your point of view <14> what would be the best way to update a content <14> other than the good old innerHTML
Return to
#javascript or Go to some related
logs:
allboys undernet simushop
#AllNiteCafe scorched earth ctrl-k zghiru #squid maxbern techb0i #teens bla bla/makeup
|
|