www.webdeveloper.com

Search:

Type: Posts; User: oaishm

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    921

    but this is harder

    Yes, I can see how this works in the trivial case. How if I want to traverse a tree

    Something like

    var x={}
    for (i=1;i<100;i++){
    var g=g||x;
    g[i]={};
    g=&g[i]; // by reference to get...
  2. Replies
    5
    Views
    921

    setting by reference

    Is there a way to do this php equivalent in javascript:

    a=5;
    b=&a;

    b++;

    alert(a) //6
    alert(b) //6
  3. Replies
    1
    Views
    1,118

    Solved

    I figured it out. You can't specify line height.
  4. Replies
    1
    Views
    1,118

    styling inputs across browsers

    I made this:
    input{
    width: 450px;
    line-height: 2.5em;
    font-size: 2.0em;
    padding: 10px;
    margin: 10px;
    }

    which works fine for ff, but of course, chrome adds the padding outside of the...
  5. Thread: table in div

    by oaishm
    Replies
    1
    Views
    4,500

    solution!

    To turn off the auto width features of tables in css and make a table stop overflowing out of its parent div, add the following to the table

    table-layout: fixed
  6. Thread: table in div

    by oaishm
    Replies
    1
    Views
    4,500

    table in div

    I have a div that has a fixed width. I want the table inside the div to stay inside the div and not flow out of it. Any way to do that?



    <style>

    div.superparent{
    width: 150px;
    }...
  7. Replies
    2
    Views
    3,249

    .focus() error on ie8

    I have an nodelist f of form nodes that are children of a div. It would look like:



    <div>
    <form>
    <input type="button" />
    etc more nodes
    </form>
    </div>
  8. Replies
    20
    Views
    3,908

    I hope this is right

    Hi rpg

    I read your question

    The way rnd explained it to me, it's really clear in my head now. What better way to test it than to try to answer your question. The way I understand it, if...
  9. Replies
    20
    Views
    3,908

    You've got me

    I have no clue. And the thing is, you can try to test the code in a browser or two but because the browsers all react inconsistently, it's impossible to tell without someone with great experience in...
  10. Replies
    20
    Views
    3,908

    More on this

    Your answer 3. was so unbelievable I had to do further research. I read your link and I read a lot more websites. If I interpret your answer correctly, this whole "this" thing is incredibly easy. ...
  11. Replies
    20
    Views
    3,908

    Since you're so obliging...

    Sorry to exploit this situation, but no one has a really good page on "this" and you seem willing to slog with a rookie.

    I read about the map function. It's like linear algebra, it transforms the...
  12. Replies
    20
    Views
    3,908

    one last question

    This has been great!

    I have one last question. When you used a Rectangle function on Square, you made

    1. Rectangle.prototype.area.call(s)

    but when you shared the prototypes with:...
  13. Replies
    20
    Views
    3,908

    Follow up questions

    Thanks for the thorough response. I looked up toSource(). If I only knew about it sooner. They really should have a little debug chapter that shows all the cool function that exists. I don't know...
  14. Replies
    20
    Views
    3,908

    Basic question on prototypes

    I was reading the rhino book because I'm trying to understand scope. There was an example:

    function Rectangle(w, h){
    this.width = w;
    this .height = h;
    this.area=function(){ return...
  15. Replies
    4
    Views
    2,508

    I can't believe it

    I have to tell you that's amazing. I can understand php failing when you put in extraneous functions, but I guess I just thought Javascript would ignore unknown variables the way css would. I don't...
  16. Replies
    4
    Views
    2,508

    Javascript doesn't work without firebug

    Does firebug do something special to force scripts to run? I found this script that unfortunately uses the document.write method. It doesn't run unless I have firebug console enabled. Then it runs...
  17. Replies
    5
    Views
    2,099

    four days and 108 views later...

    Well, after beating my head against the wall for five days and reading books everywhere, I've figured out how to make an html page locally to test code in stead of uploading all the time. I've tried...
  18. Replies
    5
    Views
    2,099

    That Code tag is not the best

    I must not be using it right, or notepad ++ doesn't copy right. Here's the code in more readable form:

    <h3>Featured product updater for Vivian's feature spotlighting delight.</h3>

    <table...
  19. Replies
    5
    Views
    2,099

    This message board is like MrExcel, so I hope I'm...

    This message board is like MrExcel, so I hope I'm doing the right thing with the code tag. I thought about the prior two suggestions. I put my script all the way at the bottom of the screen, after...
  20. Replies
    5
    Views
    2,099

    on load for rookies

    I'm trying to learn Javascript. Honestly, I don't know how you guys do it. Anyway, I wanted a little alert box to open when the url is loaded. So I tried a few permutations:

    <script...
Results 1 to 20 of 20
HTML5 Development Center



Recent Articles