@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3



Comments:

<0> <a href="nojs.htm" onclick="foo(); return false;">Correct way</a>
<1> I can't believe that this simple thing is impossible :(
<1> Pilum, oke, but for me it doesn't matter at now
<2> Pilum: what if I'm using window.open ?
<0> You can define values in the constructor but not, I think, ***ociative indexes.
<0> VaranG|aN: What about it?
<1> Pilum, oke
<1> give me small example please
<0> var a = new Array(1,2,3,4);
<0> a[0] == 1
<2> because window.open you set the parameters to open a new browser window without toolbars etc
<0> And?
<2> in that line you defined wouldn't work or not?
<2> ok I'll have to try it :)
<0> You're more confusing than clarifying, VaranG|aN
<1> Pilum, it is not the thin I want



<1> *thing
<0> I know that.
<1> var a= new Array(); a[1] = 5, a[6] = 7;
<1> can I do this in constructor ?
<0> I already answered that.
<1> you said avout hash indexes
<1> about
<0> Ok. I said ***ociative, but I should've said indexes period.
<1> too bad
<1> :(
<0> VaranG|aN: The leet way to do popups: <a href="url" target="_blank" onclick="window.open(this.href,this.target,'params'); return false;">
<2> oh thanks :D
<2> sorry I **** when to describe what i want
<2> including my english
<1> VaranG|aN, ?
<2> what was that?
<2> why are asking something in greek?
<1> VaranG|aN, it is not greek
<1> Pilum, you wrong
<2> I'm Maltese
<1> I've found the answer
<0> Do tell.
<2> Pilum whats the "_blank" ?
<0> Opens a blank window. Goes into effect if js is disabled.
<1> look at this
<1> http://rafb.net/paste/results/YZl68N41.html
<1> it work for me :)
<0> Ah yes. Of course.
<1> works :)
<0> I must've tried every operator I could think of except the colon. :-P
<1> many thanks to all
<2> array indexes always start at zero.. there's nothing to do about it
<1> guys
<1> how can I create data woth spaces
<1> data = opener.document.createTextNode("&nbsp;&nbsp;&nbsp;" + subf_name);
<1> it doesn't work
<1> &nbsp; displayed as &nbsp; but not as " " <-- space
<3> i think they'r ascii. try to set " ".
<1> I've tried
<1> it doesn't work
<4> btw, it is not a good practice to have mess with other's document to create a text node in current one
<5> hi i would like some help to hide the menubar in ie but not by opening a window popup but in the current page
<5> all ive found is for popup window
<2> lol @ PHPFrance
<0> You need a signed script to do the current window.
<5> lol am i stupid?
<5> a signed script?
<0> Basically, yes.
<5> please be more specific, im a noob
<4> basically, you can't. that will be easier for a noob
<0> http://www.mozilla.org/projects/security/components/signed-scripts.html
<0> If you're a noob, then ht311 is right. :-)
<5> ok i see, i can do it, its easy
<4> but not in IE
<5> :/
<5> i cant put on <head> something like menubar=no; etc?
<4> NO
<5> im sure i can but you simply dont know how
<4> that is so smart for a noob
<4> you can always write your own browser



<3> Or send an e-mail to microsoft with your problem. I'm sure they need ideas to improve. Any kind of ideas:)
<2> lofl write your own browser
<4> they don't need more dumb idea
<6> lofl?
<6> <- is teh ****
<7> Hi! Can someone give me a few JS pointers to help me finish a simple script or is this not the place?
<0> Go ahead.
<7> thx! I want to extract a variable from a link in a table cell, I get the link the following way, but when I try to manipulate it to extract the variable I need I get errors
<7> var f = theTable.tBodies[0].rows[x].getElementsByTagName('a');
<7> there is just 1 link there
<7> var d = f[0];
<0> What does alert(d): say?
<7> it shows the link
<7> http://blahblah.com/asdasd.php?variable=5
<7> i need to get the "5"
<0> Run substring methods on it then.
<7> i tried this
<7> var is_input = i[j].href.indexOf('=')
<7> if (is_input != -1)
<7> { addr_str = i[j].href.substring(is_input+1, i[j].href.length);
<7> }
<7> not this code
<7> this way
<0> Use a pastebin next time.
<0> ***uming that i[j] = d?
<7> yep
<7> i get an error in the javascript console "d has no properties" when I try to do anything to it
<7> d.length is undefined for instance
<0> addr_str = d.href.substr(is_input+1);
<7> i think it's working now, thank you very much!
<0> substr() takes start index and length, or if no length is specified then the rest of the string. :-)
<7> excellent! thanks a lot again and take care! I'm off... bye
<0> Np.
<3> what's the object value for testing a field? checkObjects[i].form.value ?
<3> if there's something it in. anything:)
<3> i is an increment value from a _for_
<0> if(obj.value != '')
<0> { //there's something in it }
<4> http://www.jibbering.com/faq/faq_notes/form_access.html
<3> thnx
<3> that link is great.
<3> Is it possible to add OnClick to the SUBMIT button? Will it stop execution deppending on the check function?
<3> I'm just interested in some clientside checks like if the fields content is not empty and e-mail check.
<3> I have the scripts, but it's Q if it will show the alertbox and still continue with the execution.
<0> It is possible.
<3> :) !hint
<3> how?
<3> if the function returns 0 it will stop, else otherwise?
<0> onsubmit on the form is usually used though.
<0> <form ... onsubmit="return validateFunction(this);">
<0> Return true if it validates.
<0> False otherwise.
<3> if false is returned it will stop sending the data to php files ?
<3> s/to/to the
<0> Yes.
<3> JS ROCKS!
<3> thnx
<0> Remember that you should check serverside also. Js should just be used to reduce net traffic/server load, for it can be byp***ed easily if you know how.
<3> sure. allready taken user and some other errors are p***ed to a php validate function. I was just trying to avoid reloading the page.
<8> that won't let you avoid reloading the page (js can be turned off, and it is off in SP2 by default)
<3> is this correct? : validateObject.val = checkObjects['field9'].form.value ; Or should I used the number of the field instead of 'field9'?
<0> .form is not correct.
<3> checkObjects['field9'].value ?
<0> ***uming that checkObjects is a reference to formObj.elements yes.
<3> melfar: so what should happen if such a maschine is accessing the page?
<3> Pilum:kay
<8> the page should be reloaded and the errors should be printed out by the server side
<3> omg. i'm not going to test them AGAIN serverside
<0> You should.
<3> that was the reason I was trying to built this script.
<0> <0> Remember that you should check serverside also. Js should just be used to reduce net traffic/server load, for it can be byp***ed easily if you know how.
<3> ouci.
<0> Very easily in fact. Turning off js is sufficient.
<3> ok. there goes another 2 hours of my life.


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #javascript
or
Go to some related logs:

#AllNiteCafe
#squid
#skype
#asm
country did the houses of Rurik and Romanov rule
#AllNiteCafe
razzett tal-hbiberijja
#linux
apt-get install partysip
grub-install fedora 5 usb



Home  |  disclaimer  |  contact  |  submit quotes