| |
| |
| |
|
Page: 1 2
Comments:
<0> hello everyone.... <1> Hello. <0> anyone could tell me if it is possible to preload other documents like CSS and JS from a javascript file but not showing them in the html destination file like document.writeln('<link rel="stylesheet"....... ? <1> If document.write is what you mean by preload then sure. <0> uhm I guess document.writeln would write out in the html the tags.... <1> How else would you do it? <1> The stuff you put in <head> is basically "preloaded" <0> oh I'd like just to do the same behaviour that would do the <link stylesheet....> in the html, but in the javascript <0> yeah but that would mean if someone would look at source, they would see that <link stylesheet....> on da html source page <2> iframe? <2> and make it invisible in anyway <0> mmm never used iframe....could you explain me a bit about it? <2> its beyond topic of this channel <0> oh.. <0> but that iframe is a javascript issue or a html issue? <2> html of course
<0> ok thanks lemme take a look on da google :) <1> You cannot hide it. <1> Anyone can go read your js <1> But document.write is what you need if you don't want it in the html. <0> ah ok :) <1> If you want it in the js only to "hide" it though then you really should reconsider. <2> hmm <0> reconsider how? <2> why are you doing it? <0> because it's a code I've done that I wouldn't like to show it to visitors <1> Unavoidable. <1> If you don't want people to see it, don't upload it. <2> remove it from public access <1> If it's removed from public access, the browser won't be able to use it. :-) <0> hmmm but why not? <0> maybe it could be possible to set a directory <1> The browser has to load it into memory. <0> just only enabled for localhost <1> If the browser can access it, then anyone with a browser can read its contents. <2> but it will secure that trivial code ;) <1> Anyone who would have the slightest interest in seeing your css code will know how to obtain it. <1> Your efforts are just a waste of time. <0> hmmmmmmmmmmm <0> what about using xmlhttprequest? <1> Same. <1> Makes no difference. <0> uhm stupid question....because xmlhttprequest would cache everything <1> What you _could_ do is put a copyright notice at the top of your source. <0> true.... but if I put a copyright more pple would think "oh that's a code copyrighted....so it would be interesting"... <0> indeed a non copyrighted code (even it isn't commercial though) would p*** like a bit less interesting because people would think "that's a code like billion of others" <2> lol <3> jez man, it's just css <3> chill <1> But when you are so obsessed with "protecting" your code that is your best option. <1> But as [Torgo] says, it's just css. :-) <0> heh oh well :) <1> And unless you have a site with millions of hits per day I doubt anyone will care much tbh. :-) <1> And if you do have a site with millions of hits, you should be able to afford a lawyer. :-) <0> heh lawyers are too much expensive hehe <1> Yeh. Especially for something this trivial. <0> hehe the alternative is to study law and becoming a lawyer personally :D <4> that you don't need to write js and css, problem solved <0> haha right :D <0> but now we're going to think we could do everything haha <0> :D <4> I never think of that, but I always do everything anyway, even if I don't want to. <0> hehe me too <0> actually I would go away for holidays <0> but I can't <4> such as reading the tax law and tell the accountant how he should do our income tax <0> ouch.... shouldn't the accountant know ALREADY the tax law? :D <4> well , there are web developers think he can hide code from the user, same idea apply to accountants as well. <0> gh right <0> :D <5> ok so i got this form ... and i am running a validation script "onsubmit" in the form tag <5> the validation script debugs out to be fine <5> i >thought< that if you return true it submits and if you return false it aborts the submit <1> Yes, and? <5> well its not aborting when i return flase ... it submits anyway <1> Url? <0> Pilum, do you think it is possible to call a certain function in a javascript file using xmlhttprequest?
<0> I see usually it's use to call an entire file, js or html that is.... <1> Maybe, but I doubt it'd be pretty. <6> you can evaluate the file <6> the content <6> and then call the function <5> url for my question = http://development.arcanenetworking.com/test/test.php <1> For starters you can just return valid; <1> And I'd look into a regexp for the test if I were you. <5> i am still wrapping my head arround regex <5> but this may be a good opportunity to start learning <1> Your object reference is also dubious at best. <1> You really should p*** a proper reference to the function. <1> Oh and you have to return the function in the event handler. <5> return doValid(); riiiiiight <1> onclick="return doValid(this.elements['txtName']);" <5> thats the ticket <5> thanks Pilum <5> and thanks for all the other advice too <5> feel like walking me throught the regex? help me learn? <1> Not really my forte. <7> hey all. I've created a table via JS. Looks great...but the bottom rows are cutoff even after I scroll to the bottom of the page....any ideas how I can "see" them? <8> away <9> overflow:visible; <3> anyway to hide css from gecko? <3> from within a css file, that is <3> nm <10> rock <2> good morning <9> morning ? <9> damn i need to go to bed, im working in 4-5h <9> :/ <10> so totally trashed tonight <10> ****ers <11> hi@all <12> hello <12> can someone help me around? <1> Depends. <12> ok <12> so I got my hands on an expanding/collapsing script <12> which uses cookie <12> s <12> can i paste the link? <1> Sure. <12> www.toaleta.org/test <12> it's all working good, but I wonder if there is a way when you access the page, the menu is expanded <12> i mean, the first time <1> I didn't read it thoroughly, but changing temp.getElementsByTagName("li")[o].getElementsByTagName("ul")[0].style.display = "none"; to temp.getElementsByTagName("li")[o].getElementsByTagName("ul")[0].style.display = "block"; seems to be what you need. <12> that isn't it <12> damn <12> in B <12> pardon <12> *sorry, wrong chan <13> lol. <13> "temp" <12> ? <12> what? :D <12> so can anyone help around? <14> how do i check if a timer is currently active? <15> try using alert at the points you want to check <12> Pilum <12> can you help me please? :/ <14> VaranG|aN: i just want to know if its active or not <2> define 'timer' <1> var timer = setTimeout(...) if(timer) { ... <1> I don't see where else it would be, ratsoid. <12> hmm <12> can someone else try to help me? <12> maybe there's a switcher somewhere <1> Your current time is: 22:42.43 <15> NeoFuture: Your current time is: 22:42.34
Return to
#javascript or Go to some related
logs:
#AllNiteCafe python for windows mobile #mirc #skype _serenne_ java.lang.NoClassDefFoudError #AllNiteCafe n00x
xpic #javascript
|
|