| |
| |
| |
|
Page: 1 2 3
Comments:
<0> NeoFuture, you've got a lot of css errors to fix buddy haha :) <1> heh... can find some good html/css sites using google ya know <0> errr I'm sure you can ^^ <2> hello all ... frensh or english here? <0> english <0> but I'm french <2> oh okay <0> (don't repeat that too loud) :)) <2> i want to learning JAVA in frensh pls give me some adresse for it ? <0> you've got hips of links <0> java and javascript are two differents things <0> have a good night guys <3> hello, anyone may help me with a thing? <4> just ask <3> I'm new to javascript on internett, and just started to read some stuff on htmlgoodies.com and I tried to fill just the same there, but it doesn't work when I'm typing the code, lol <3> http://www.htmlgoodies.com/primers/jsp/article.php/3587821
<4> that is not even a question <3> the javascript/code just arrives on the screen, the pop-up thing (the alert) doesn't show <3> just all the code <4> paste you page there pb.html-channel.com <4> s/your <3> done <4> errrr <4> anyway. for noob, it is better to use firefox, there is a javascript console <3> ok <4> you cna see your error, you missing a quote somethere <4> somewhere <3> aha <3> hm... <3> then it must be an error in the code they wrote there too...hehe <3> http://www.htmlgoodies.com/primers/jsp/article.php/3587821 <4> I doubt <3> I got the thing to work in chapter 1 <3> this is chapter 2...I used the same javascript <script type = text/javascript>...</script> thing before and after the code itself (the apple script) <3> lol, found out of it ;p <3> I was just using the .txt file instead of the .html file :p proofed...I'm tired :p <5> hi anyone here? <6> I am here <5> hi, i need to show/hide certain table rows when a link is clicked with javascript, how would i do this? <7> ne1 here? <8> i need urgent help <8> ne1/ <8> any1? <8> anyone? <0> 'morning <8> aquel <8> can u pm me <8> plz <8> i neeed ure help urgently <9> hi <9> does any of you guys know if there is a way of replacing a character at a specific location in a string without having to slice the string and re-join it? <0> replace() <9> but that replaces the first instance of a character you specify <9> or is there a way to give it the location? <0> no <9> so the easiest way out here is the slice? <0> yep i think so <9> ok <0> can't see any other way <9> thanks for your help <0> no worries <10> Does anyone knows the url of a good documentation on how to place a dynamic div under a input type text element... Can't figure how to place it at the right spot on the webpage <11> I believe you just have to replace the input node with a div node and a hidden input node <10> I'm more looking into a way to detect the position of the input type text and create a div dynamically right under it... I have it working, but depending if it's in a table, a div or directly in the body, it doesnt always work... I'm missing something <4> the div is absolute positioned? <10> yes and I use this to align left side of it <10> this.objDivResults.style.left=objField.offsetLeft-1; <10> and this for top <10> this.objDivResults.style.top=objField.offsetTop+objField.offsetHeight-1; <4> you missing the unit <4> and you risking youself with memory leak <10> I knew I was missing some key points :) How do I set the unit and prevent memory leak ? <4> + "px" <4> and don't put other dom element into a dyanmaic properly of another dom element <4> also, don't put a dom element as a property of a js object <4> if you do so, you need to clean it up before unload <10> this still doesnt put it at the right place:
<10> this.objDivResults.style.left=(objField.offsetLeft-1)+ "px"; <10> the div is at the complete border <10> or the screen <10> of the screen <11> ht311: I don't get it. You mean this.objDivResults.style.top=objField.offsetTop+objField.offsetHeight-1; causes to update this.objDivResults.style.top whenever objField.offsetTop+objField.offsetHeight changes? <10> no... this.objDivResults = document.createElement("DIV"); and then findParentDiv(objField).appendChild(this.objDivResults); <10> just to store the values before appending the child <4> objField.offsetTop+objField.offsetHeight-1 + "px"; <10> I think the problem is that the div is not in the same "container" and the input type text <10> would that make sense ? <4> and I said if you don't clean up this.objDivResults is very very very bad <4> that will be a differen story, yes, the code didn't make a lot of sense to me <10> the offlet is calculated from what ? only body or div or it can be something else ? <10> offset sorry <4> only from the offset parent <10> so what would be the offset parent of the input type text ? <10> the td in which it is ? <11> Herrick: you'll find all the offset story on quirksmode.org (using google) <4> if td is the parent, then it is td <10> thanks I'll read from there, thanks a lot it's more clear now <4> quirksmode.org/js/findpos.html <10> yeah thanks, currently reading it :) <10> Hi, Is there an easy way to know if there is a select box under a div I'm about to render ? I would like to hide only the select box under the div instead of all the select boxes on a page. (To prevent the select box z-order bug of IE) <4> to check the select box x y, and perform a collision detect after <4> or jsut use iframe shield <10> do you know a already programmed js to do it (collison detect) <4> http://homepage.mac.com/igstudio/design/ulsmenus/vertical-uls-iframe.html# <4> no <10> thanks :) <4> that is too annoying to do, iframe shield is easier (still a bit hard for you maybe) <10> you mean to put the select box in a iframe ? Will be annoying to post the form after... <4> No. read the link <10> ok thanks I'll read it <4> putting an iframe right behind the div to cover the select <10> wow that's cool :) <12> anybody here knows any good tutorial website <12> im looking for a tutorial where when we select an option from the select from field document.write is used to display some extra information regarding the selection <4> can't link document.write with "good" <4> in my mind <12> well if u have a tutorial which can perform the function ide like, please give me the link <4> thinking ... you know about onchange event for select? <4> listen to the onchange event, find out the value of the select, set the innerHTML of a div base on the selected value <4> can't think of a specific tutorial this. <4> you may want to brush up some basic dom knowledge <11> w3shools I believe have tutorials like that <12> yah ive seent that in dreamweaver <11> I don't think dreamweaver have samples as good as those they provide on w3schools <4> beware, there are still example using document.write there. those are bad <10> here how to find the selected value: (I guess it's what you are looking for) <10> document.getElementById('myselect').options[document.getElementById('myselect').selectedIndex].value <10> something like that <12> what i actually want is something for an order form <10> ... ? <12> for example if someone selects payment method as credit card, so javascript shows fields for card brand, number, cvv2 etc. and if it says check, than it shows fields like routing number etc, and if it says western union it displays that theyll be mailed the details <12> hope that explains better what im really working towards <10> ah ok. <10> Use the onchange event to detect changes <12> i could do this all in php too, but itll take one more page, and 20 more valuable seconds <4> do is not changing the content of a div, you want show and hide different div base on what selected <10> read the value using the line I wrote before <10> do a switch/case to decide what to do <10> and show/hide some divs depending on the context <12> well i figured a bit out <12> should i paste it in private? <10> document.getElementById('creditcards').style.display = 'none'; <4> use a pastebin <10> document.getElementById('cash').style.display = 'inline'; <10> something like this <4> or "block" or just "" <12> and than ill use <div id="creditcards" style="display:none"> <12> right? <10> yep <12> and whatever i place between the div tags will be shown right? <4> yes, base on the default selection in your select
Return to
#javascript or Go to some related
logs:
FCC ID: AK8GDM20E03 tinbaktu #c++ just_mmm
#php #c++ nisma c-cajt
#AllNiteCafe #linuxhelp #windows
|
|