| |
| |
| |
|
Comments:
<0> hi <0> So this feller gave me this script for showing text area when you click Print - http://www.studiosmith.tv/project/port/ <0> I just need to know how to make it just print and how to work on multiple textareas <0> please? <0> ok, thanks <1> percolations appear to be in order <2> http://dark-code.bulix.org/bpiigs-15094 <2> any1 able to help? <1> back in a bit <3> furtive: Starfox english version just come out <1> yeah <1> dunno if it's worth buying <3> save the money for the ram card :)
<1> you have two choices, high end art, or montage <3> what kind of hign end art we are talking about? <1> everything is star wars related <1> ok, art first: http://i31.photobucket.com/albums/c368/ndcent888/STARWARS_GiantMag.jpg <1> hmm.. not as good as this one: http://www.brandonbird.com/supper.html <1> and now for the gold bikini montage: http://www.youtube.com/watch?v=uR53iuFKx14 <4> damn geeks <3> i want a queen amidala semi nude portrait <5> anyone can link me to a site with solution how to have a div always in the same point on the window ? f.e. 100 100 and even after scroll it remains it <5> cant find good words in english for that at the moment :/ <6> http://www.dnaco.net/~vogelke/pictures/when-cloning-goes-wrong/ <7> DesT, youre a moron :PPP :] <5> k i managed to write it on my own ha :> <6> well done <6> :PP <8> awesome photoshop work though <9> hello, I wonder if someone have done an application to get unread outlook messages with javascript? and if you could help me doing it <10> how do I add events to a node I'm creating? This doesn't seem to work temp = document.createElement("a");temp.href = "#"; temp.onclick = 'foo(this);'; <10> (I end up with <a href="#"> ) <11> Don't quote the function <11> temp.onclick = foo; <11> // Now you can use 'this' directly in the function <10> my actual onclick function is a little more copmlicated. onclick="return showReport(this)" will that be a problem for me? <11> onclick = function() { return showReport(temp); } <10> interesting. <10> what is "temp" in your example? <11> temp = document.createElement("a"); <10> oh duh... <10> (look at the shape of my head and fogive me) <10> thanks a lot Pilum! <11> Np. <10> Am I correct in ***uming creating elements this way (then insertBefore/appendChild them into the DOM tree) is better than adding them via innerHTML ? <11> That depends entirely on how you define "better", but I'd say that, yes. <12> what's wrong here? function save_form(frmname){ <12> document.frmname.submit() <12> } <12> it doesn't replace the frmname value <12> if I call save_form('myForm') I get the js error document.frmname is not defined <3> document.forms[frmname].submit() <12> thank you! <13> what is the syntax to open a js file in a html file? <11> <script type="text/javascript" src="file.js"></script> <3> and this is not called "open" <3> it is include <13> ok <6> heh <13> in the js file i'm including. do i need to type in the <script> part, or can i just write in the script without using the <script>? <11> The file shall contain js only. <13> Got it. <14> Hi <13> could it be possible to make a news script in js? <11> Like how?
<15> new script? <15> *s <16> To check if an elementbyid exist... can I do just this : <16> var e = document.getElementById("sm"); <16> if (e) { <4> yes <16> Thx ;-) <4> np <17> I guess 'yes' was easier than "Why not just test it moron." ? <17> :) <4> sir, I protest <4> when am i never in the best of moods? <17> We'll see... :P <17> Schools are starting up again soon, haha. <11> "Soon"? You slackers. <11> Schools started three weeks ago here heh. <11> Hm. Two weeks. <17> We're cleverer so we need less time. <17> Wish I was a full time student again... <11> Hehe. <11> So you could slack again? :-) <17> Yeah :| <17> Taking a few courses now though, just to keep my brain ticking over. <10> oh crap. My dynamicly generated page ,which validates and renders nicely in FF, sets off a lot of "expected identifier" errors in IE. Anyone have suggestions for how to troubleshoot? <10> note to self. obj.cl***Name is good, obj.cl*** is bad <11> Heh. <18> Hello! I've run into some problems again (surprisingly). What is the best way to insert a new option in a select menu, without overwriting or deleting another option (i.e. I want the options below the new one to move down one step in the array)? <11> Repopulate the array. Some nice looping ought to do it. <4> slice the array up until the insertion point, and after it -- append the item to the first slice, then splice on the second one <4> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/08e5f552-0797-4b48-8164-609582fc18c9.asp <18> Well, I guess that would do it. Not that I understand it well, but thanks! I'll go do some more reading. <18> Well, I did splice in the values in the arrays that the select read from at the start, so I could use that. But the problem is, I don't know how to get it to "reload", without reloading the page. <4> no need, the option will appear automatically <18> It doesn't on my page. I splice the arrays and the select remains the same. Oh, I think I know what's wrong. Perhaps I need to splice the "select-array" too...I'll try that. <18> What's wrong with this? var typ = tid[x-1] + " - " + spelning[x-1]; <18> q = document.forms.lista.turnelista.options; <18> q.splice(x-1,0,typ); <18> Oops, that wasn't intentional, thought I'd cleared the breaks. <4> these need to be arrays of Option objects <18> Isn't document.forms.lista.turnelista.options an array of option objects? <4> yes <4> typ is not <18> But it's what I want the new option to be. Do I have to make a new array to be able to put in that one option? <4> no, you append it <4> new Option(text,value) <18> Hmm, I don't understand. Guess I'll sit a few more hours getting flustered. :) Why do those browser developers make it so hard to just insert a new option in the middle somewhere? <3> you don't understand what is an Option in the first place <18> Guess I don't. <18> So what is an option in the first place? <3> it is a dom element , <option></option> , it is not "foo - bar" <3> new Option or document.createElement("option") will give you one <3> http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/option.asp <18> So far I'm following, but I was wondering if there was a way to simply insert an option in the middle somewhere, that would push the other options in the select one step, so none would get overwritten. <3> and [TorgoAway] have told you that already <18> I'm certain it is so, but I did not understand it, so I still cannot do it. <10> you can write your own function to do the kind of insert you want. But you'll have to use one of the methods Torgo and ht311 mentioned <18> When I tried to use new Option in the middle of the select, it deleted the entry that was there, it did not push it down. <18> Ok, thanks, I'll search for such a function, as I certainly don't know how to do it myself. Thanks for trying to help, but this is apparently too hard for me, and too easy for you people. <19> Tumaini: to push a value (add to the end) of an array, use push method instead of splice <3> he want to insert
Return to
#javascript or Go to some related
logs:
a-princess undernet raising my deductions
#linux liba malti #linux hardening apache 2.2 #linux failed to initialize glx gentoo #linux #linux
|
|