@# Quotes DB     useful, funny, interesting





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



Comments:

<0> nintendo introduces tetris: http://www.gaming-age.com/specials/adspecial2/Commercials/Nes/tetris.mpg
<1> hi ppl
<2> anyone writing hta`s ?
<3> hi
<4> hi
<3> when i reload a page, how do i make a dropdown box go to specific item in the list
<4> define reload
<3> well currently user selects an item from the dropdown box, presses submit and the page reloads based on the item they selected - but then the dropdown box goes back to the original item instead of the one they selected
<3> i can show u the URl if u want
<4> you need to save the dropdown value when you submit
<4> then in you dropdown you need to check/change the option have submit in the selection to selected
<3> yup it's saved in the URL
<4> <option value="mysubmittedval" selected>me</option>
<4> just do that on server ...
<3> cool
<3> ill try



<3> this is too difficult
<4> hmm
<4> using php?
<3> using asp i know how to get the URL variable, but i dunno how to put the variable into the selection form
<4> how you create the select?
<4> in a loop?
<3> http://www.excelfunds.com/performance/historical_prices.asp?fundName=IndiaChinaA
<3> i've never used url variables b4
<4> huh, you ask the samething yesterday
<3> ? no
<3> that was for asp
<3> and i got that
<3> now i just want the dropdown box to select the appropriate item not revert back to b4
<3> it's ok if u give up
<5> http://www.excelfunds.com/performance/historical_prices.asp?fundName=IndiaChinaA
<5> is pants
<5> th drop down gets in the way of the menu
<3> umm what?
<3> what do i do
<4> you asked that yesterday
<4> [22:00] <3> how do i get the pull the variable from the URL? for example: historical_prices.asp?FundName=IndiaA
<5> when the menu is visable set the dropdown as display:none
<3> ht311 - i already figured out that part
<5> http://www.google.com/search?sourceid=navclient&ie=UTF-8&rls=RNWM,RNWM:2005-50,RNWM:en&q=query+strings+in+javascript
<3> i'm already p***ing the param from the uRL
<3> i just need the list/menu to update wtf
<4> http://javascript.geniusbug.com/index.php?action=show&name=formValues
<4> funny, his site actually quite high in google
<3> ok this might work
<3> you dont like my site/
<3> ?
<3> how do u know how high it is
<4> the idea is there. you need to check the options[i].value is it same as the one in param and change the selected to true
<3> kk
<4> i mean RoBorg's site
<3> ok ;]
<4> read a bit how to access the select element
<3> thx man im out
<4> start your 24 dl before you sleep :)
<4> hope you are doing ok
<6> hy
<6> how can I get a <div>'s (x,y) coordinates in javascript? the instance name is: document.form1.tekst
<7> yoo/hi
<8> anyone knows how to do somthing like that website that i can drag n drop tables to new locations ? http://www.netvibes.com/ ....
<9> Studying their code might give you the answers.
<10> hello there !!!
<10> I need help in JS... someone could help me ?
<9> Not before you tell what the problem is
<9> Or perhaps you want a psychic to help you?
<10> well... a friend of mine has created a website... in a page, there is an iframe called "principal"... inside this iframe, there is a page from an other website... If this page from the other website is called directly (outside the website of my friend) I would like to put a message "illegal access"... so how to do that ?
<9> Do you have access to the other site?
<10> you mean the site of my friend or the other website ?
<9> The other.
<10> for the other website, the answer is yes, because it's my site :)
<9> Well then.
<10> I think I need to put JS code but don't know what
<9> Check if top.location = self.location on your site, and if it isn't, you alert()
<9> == even
<10> what does this command mean exactly ?
<9> It checks wether the url you see in the browser window is the url of your page or the url of your friend's page.



<9> Basically.
<9> You could be more specific and check if top.location is the same as your friend's url too. Might be better.
<10> so in js it might be : if (top.location != self.location) {alert ("illegal access");}
<9> That would give the error if you do see it from your friend's site though
<10> so i need the opposite
<9> Yes.
<10> so in js it might be : if (top.location = self.location) {alert ("illegal access");}
<9> ==
<9> Though, as I said, to ensure that it isn't viewed in someone else's iframe, you might want to do if(top.location != 'yourfriendsurl') { // illegal }
<10> so ok .... but instead using alert, I want to write it in the page ... and that's all.... of the condition is true, the only thing on the page is "illegal access"... if the condition is false, the page is displayed...
<9> I have another suggestion.
<9> if(top.location != 'yourfriendsurl') { top.location='yourfriendsurl'; }
<10> yes it's better :)
<10> more easier
<10> I've to put this command where ?
<10> <script>if(top.location != 'yourfriendsurl') { top.location='yourfriendsurl'; }</script>
<10> in the head section
<9> Anywhere you wish.
<7> (stupid french boy...)
<7> :p
<10> I suppose the url with http://www.thesite.ext
<10> ok I test it ;)
<10> not stupid please... it's not my business the design of webpages... I work in video postproduction :)
<7> je me moque de toi c tout
<7> :p
<7> (histoire de cracher sur les frenchies)
<9> If you're doing it, then it is your business. :-)
<9> And you keep it in English please.
<7> okay, sorry
<10> self.location .... what's exactly the meaning ? the url of the page where the code is inserted ?
<9> Yes.
<10> so if (top.location != self.location) {top.location = 'http://www.thesite.ext';}
<9> No.
<10> so if (top.location == self.location) {top.location = 'http://www.thesite.ext';}
<10> sorry ;)
<10> that's better
<7> bye tlm, bonne soire
<11> does anyone know if there is an alternative way of changing groups of similar items (their style/display) instead of using getElementByID?
<9> There are several different ways of obtaining a reference to an element, depending on what type of element.
<11> its an <a> link
<11> just want to change its style to display:none
<11> if you know of a good reference link, I can dig through it
<9> document.links will have it.
<9> Though if it's only one link it might be better to ID it.
<11> its not.. its basically 3 identical <a> links that need to be grouped together to speed up rendering
<11> each <a> link does something different but all have the same styling
<11> document.links would probably be slower than what we are using now
<9> And what are you using now?
<9> Keep in mind that it's already indexed.
<9> But what you should do depends on your structure.
<11> We are using multiple instances of getElementByID
<11> what we are hoping to do is group similar types together so that they can be toggled on/off. Right now, at the end of our loop, we have 12 elements that need to be toggeled, and we thought if we could use another method, we could group from 12 down into 3
<11> therefore speeding things up
<11> basically -- we have 2 icons, copy,move, delete -- they are gray by default
<11> we then have checkboxes beside each file in a table
<11> when you select a file, the icons turn orange to indicate that they can be used
<11> but since we are basically hiding the gray and showing the orange
<11> the more references to getelementbyid slows things down
<9> document.links[id] should work
<11> ok.. I'll give that a show
<11> shot
<9> Hmz. Looks like IE doesn't like it.
<2> deprecated
<2> proper way would be to use getElementsByTagName("A") to narrow down the list
<2> bbiab
<9> Might as well use getElementById then if it doesn't include all links.
<4> [Torgo]: there is caching issue on your site. i have to force reload to see the new posts
<1> hi ppl
<9> Hello.
<1> does anyone know how i can get the div elements that are children of the body element WITHOUT any divs that are nested within them?
<1> i only want the divs that are direct descendants of the body


Name:

Comments:

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






Return to #javascript
or
Go to some related logs:

#chatzone
create own channel wow
#linuxhelp
#java
gguhf
what artist had the surname buonarrotti
morphevs
libc.so.6 for Snackware
#MissKitten
#linuxhelp



Home  |  disclaimer  |  contact  |  submit quotes