| |
| |
| |
|
Page: 1 2 3
Comments:
<0> hmm so any other options I can use? Something compliable? <1> if you want to use JS, no! <0> what else can I use? <1> if you want client side scripting, you'll have always the same problem <2> And if you're worrying about that then you're probably not good enough to have written anything worth stealing in the first place. <2> So get over it. <1> everything sent to a brower is downloadable: JS files, HTML, images, CSS files.... <0> well what I am trying to prevent is joe blow being able to type www.mysite.com/file.js and downloading it <1> nevecd, you can't !!! <2> And there's no point. <1> indeedx <1> -x <0> so.. there is no way to protect my code. <1> unless he's storing p***words in JS ;) <1> encrypt it <0> how?
<2> What you do is to include a copyright notice in it. <2> Any idiot can decrypt it so that's no point at all, Aquel. <0> if I encrypt it, how do I get it to execute? <2> Forget about encrypting. It's insanely stupid. <1> Pilum, totally right but that's hard to read <2> Anyone who'd want it would get it. And anyone who don't wouldn't care. <2> Except that it will run slower. <0> all the obfuscating programs I have looked at basically compress the file's whitespace <1> i agree <2> Don't use it. All it tells about you is that you're an idiot who don't really have a clue. Not a good thing to advertise I think. <1> the only thing you can do is to make your script hard to read for "basic" users, that's all <1> but no point <1> as Pilum said <2> "Basic" users won't try to steal it heh. <1> for sure <0> yeah right :p <2> Well I'm just trying to give you good advice. If you don't want to listen that's your problem. <0> I thought you meant beginning programmers.. sorry. <2> Those would be able to decrypt it easily enough. <0> I guess :/ <0> thanks. <2> Np. <3> hello, how can i get the caption of the <option> in select tag? <2> .text <2> var f = document.forms['formname'].elements['selectname']; f.options[f.selectedIndex].text if you want the current one. <3> cool, thanks pilum <4> why does ie blow *** ? <4> wrote up a simple function to get the absolute x,y coords of a given node <4> works beautifully in ff <4> works most of the time in ie7... <4> if I add borders to parent elements via <style> blocks, offsetTop and offsetLeft don't take them into account <4> anyone seen this behavior? <5> .j mysql <6> is there another char to delimit string (other than " and ' ) <2> Why would you need any? <6> can' think any other way to achieve what i need <2> And what is that exactly? <6> onClick="if(confirm('Esta seguro que desea eliminar la subcategora CD's y DVD's?'));" <2> Jeez. <2> Make a funciton already. <7> \ <6> still i have to p*** the msg <8> X7C: then press enter key <6> uh ? <9> excluding the fact it looks grammatically incorrect; "..ategora CD\'s y DVD\'s?'));" <6> thanks :) <6> it's spanish <2> You should still make a function. <6> why <6> i just need a confirm dialog <2> Maintainability. <6> hm... <2> Also, onclick="return confirm('Esta seguro que desea eliminar la subcategora CD's y DVD's?');" <6> you got a point <4> cause inline code (especially for event handlers) is piss ugly <4> and very hard to maintain, as Pilum said <3> in the line <input type="button" language="javascript" value="Save" id="save"> <3> the language is important? <3> what is the use of that property? <2> It shouldn't be used. <2> It's deprecated.
<10> Hi ! <2> Use type="text/javascript" instead, papogi. <2> Eh. But on the <script> tag, not on an input. <10> i try to replacez http://yoo.dyndns.org.....by http://192.168.1.2......... <10> http://fr.pastebin.ca/319541 <3> Pilum: thank you :) <10> but apparently don't work <10> missing ( before condition if window.location.hostname == "192.168.1.2" <10> change_site is not defined <10> this my two errors <10> i think <10> Somebody can tell where ( is missed <2> That's the 2nd strangest indentation style I've seen yet. <10> Pilum, you speak about my script? <2> Yes. <10> What's strange that i can corrrect my errors <2> No need to use .match there. <7> it's funny how you're trying a basic networking problem with javascript :P <7> to fix <7> trying to fix <10> Pilum, ok <2> var url_final (...) url_final.options[ <- ? <2> How do you get options on a variable heh. <2> There's a lot of stuff there which doesn't make sense. <10> ok <10> i rewrite all <2> ***uming that url is a <select>, you can't just .replace <10> ok <2> And you should get the reference like this: var url = document.forms['formname].elements['selectname']; <2> Missing a ' <10> well <2> But I do concur on a total rewrite. <2> Got go go. <4> I am here! <2> Heh. <11> I have this in a php-page: echo '<input type="image" src="style/update.gif" name="SubmitForm">' ... why doesn't things work when I rewrite it to: echo '<input type="submit" name="SubmitForm" value="Submit">' ? <12> did you put the ; at the end ? <2> What you have in a php script is irrelevant for this channel. <11> Pilum: not if it's javascript! <2> PHP isn't javascript. <11> Pilum: what's your problem? <2> If you want help with your JS then show us the output. <2> The PHP is only complicating debugging. <11> dom-_-: for the type="image" block, the form is validated and the browser sends the user to correct page (according to SubmitForm-fx). For the type="submit" block, the form is validated, but the browser fails to send user to correct page... If this doesn't concern javascript, then i'll debug elsewhere :) <2> What it does not concern is PHP. <2> But actually, it doesn't really concern JS either. Seems to be a HTML issue. <12> It is pure html. <11> ok <13> Hi <13> I'm a total noob when it comes to javascript <13> if I define a variable: var searchValue = 'test' <13> how do I use it in another... variable? <2> Define "use" <14> var thisIsAnotherVariable = searchValue; <4> opinions are like ***holes... <15> they tend to drip as they get older? <4> maybe that too <4> I was thinking more along the lines of "everybody's got one" <2> Hehe. <16> hello... i've read examples of event handling , but i have a problem <16> how do i handle clicking on the page itself? <16> sorry for the dumb question, i understand to some extent how dumb it is <2> http://www.quirksmode.org/js/introevents.html <16> but it's very late here and i need an idiot-friendly answer <17> idiot and friendly don't belong in the same sentance <17> especially in terms of programming <17> idiots should not program <5> dravine thats u buggered then <5> better go back to selling burgers <17> hey man, I don't sell burgers, I sell top of the line midget *** slaves <17> you should know that, I've sent 7 to your address just this month <17> how's that redheaded parapalegic *** midget with a handle treating you? <16> <A HREF="somewhere.html"
Return to
#javascript or Go to some related
logs:
#teens London street is associated with Sweeney Todd #linux #apache prozacpimp #MissKitten tasoula friendster #gentoo #java big testicules
|
|