www.webdeveloper.com

Search:

Type: Posts; User: JimJ

Page 1 of 6 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    22
    Views
    2,310

    still on sleep,pause wait

    Hi //./
    You say
    I didn't realise I was hiding anything. I said I was running some SVG under JS control. The JS runs the SVG so quickly the construction of the image is hidden.

    I'll go back and...
  2. Thread: screen.width

    by JimJ
    Replies
    6
    Views
    762

    Hi TrackNut, My name is 'Jim'. My little nephew...

    Hi TrackNut,
    My name is 'Jim'. My little nephew used to call me 'Dim'.
    His parents said he had problems with 'J'.
    But maybe he had a point.

    Thanks, I am Dim,
    but is there a way of getting...
  3. Replies
    22
    Views
    2,310

    Nothing serious. I was building a 'honeycomb' of...

    Nothing serious.
    I was building a 'honeycomb' of 61 small hexagons.
    I wanted to view the build in slow motion.
    Thanks,
    JJ
  4. Thread: screen.width

    by JimJ
    Replies
    6
    Views
    762

    Hi Padonak, Am I not right, different browsers...

    Hi Padonak,
    Am I not right,
    different browsers have differing header heights,
    so surely, the available Height should differ?
    JJ
  5. Replies
    22
    Views
    2,310

    Hi Tcobb, Nice suggestion - but - I'm using JS...

    Hi Tcobb,
    Nice suggestion - but -
    I'm using JS to calculate the placing of the hexagons,
    AND to calculate and adjust the rgb(r,g,b) values.
    (not that I have anything against CSS !)

    But I take...
  6. Thread: screen.width

    by JimJ
    Replies
    6
    Views
    762

    HI, I've changed my code, slightly. And have...

    HI,
    I've changed my code, slightly.
    And have now embedded the Script in Body.
    It's now working - after a fashion.
    It produced exactly the same results
    in five different browsers:
    IE, FF,...
  7. Replies
    22
    Views
    2,310

    Hi Tcobb, I like your code. Tested it, both...

    Hi Tcobb,
    I like your code.
    Tested it, both fast and slow.
    You prove your point.
    I've got to learn to code like you.

    (by the way)
    I have an eccentric way of coding,
    (so that open and close...
  8. Replies
    22
    Views
    2,310

    Thanks, Tcobb, I'm not using multiple functions....

    Thanks, Tcobb,
    I'm not using multiple functions.
    I'm simply trying to slow down a loop.
    It builds a 'honeycomb' of simple coloured hexagons.
    Am I simply accumulating a bunch of setTimeouts?...
  9. Thread: screen.width

    by JimJ
    Replies
    6
    Views
    762

    screen.width

    Hi, folks,
    I'm trying to obtain screen. width, height, availWidth and availHeight,
    but my code is failing. What's wrong?
    I'm using external JS, thus:

    And here is my JS:


    It's probably...
  10. Replies
    22
    Views
    2,310

    Hi, agaim, Here's the JS (or part of it). ...

    Hi, agaim,
    Here's the JS (or part of it).


    // GLOBAL VARIABLES
    var R, G, B; // Colour of Central Hexagon
    var r, g, b; // colour of each other hexagon
    var H; //...
  11. Replies
    22
    Views
    2,310

    Thanks Blasphemy, I tried your suggestions, but ...

    Thanks Blasphemy,
    I tried your suggestions, but to no avail.
    Please don't be offended at my silence, I'm going away for a week.
    If you're at a loose end you might want to nose into my code, html...
  12. Replies
    7
    Views
    735

    I notice all my trouble with indents have...

    I notice all my trouble with indents have disappeared.
    The 'QUOTED' block ignores indentations.
  13. Replies
    7
    Views
    735

    Hi, bill001, I've edited the code to make it...

    Hi, bill001,
    I've edited the code to make it more readable. You still need to read it.
    Ive indented the // comments so that they're less obtrusive,
    and I've blocked the for loops, I hope to make...
  14. Replies
    7
    Views
    735

    Hi, bill001, I've edited the code to make it...

    Hi, bill001,
    I've edited the code to make it more readable. You still need to read it.
    Ive indented the // comments so that they're less obtrusive,
    and I've blocked the for loops, I hope to make...
  15. Replies
    22
    Views
    2,310

    Thanks, Blasphemy, You're right, setTimeout()...

    Thanks, Blasphemy,
    You're right, setTimeout() will not do the job.
    I'm using JS to position SVG hexagons on a page.
    I'm looking for a sleep function to demonstrate the process.
    This is the sort...
  16. Replies
    22
    Views
    2,310

    sleep() pause() wait()

    Hi,
    'C' has a function sleep() to suspend action for a time.
    Has javaScript any such ability?
    JJ
  17. Thread: new Window

    by JimJ
    Replies
    4
    Views
    1,400

    Hi, Kevin2, I saw your detailed reply, and then...

    Hi, Kevin2,
    I saw your detailed reply, and then that someone had posted 'a more elegant solution'.
    I thought 'that's rather rude'. Then saw It was 'Kevin2' again !!
    Thank you. I think both...
  18. Thread: new Window

    by JimJ
    Replies
    4
    Views
    1,400

    new Window

    I'm trying to open a new Window, not a new tab.
    I see the Thread back in 2012. That suggested the new window name must be blank.
    No good to me. I want to open a 'help' window giving information....
  19. Thread: <script />

    by JimJ
    Replies
    10
    Views
    1,400

    View Post

    Sorry, Kor,
    I've only just noticed that the <?xml ... <!DOCTYPE ... reference
    is <!DOCTYPE svg ... and not <!DOCTYPE html
    as in my skeleton.
    I've had this error for weeks (months?)
    No wonder I...
  20. Thread: <script />

    by JimJ
    Replies
    10
    Views
    1,400

    Hi Kor, Thank you. I'm glad you've intervened. I like your answers to my and other people's problems.

    Your response to my original <script /> enquiry sums up all the replies.
    But I think your...
  21. Thread: <script />

    by JimJ
    Replies
    10
    Views
    1,400

    View Post

    Thanks James

    I'm using xhtml, with embedded SVG

    <?xml version="1.0" standalone="no"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    ...
  22. Thread: <script />

    by JimJ
    Replies
    10
    Views
    1,400

    Svidgen, Sorry, I should have said. I have...

    Svidgen,
    Sorry, I should have said.
    I have tested it briefly, on a page I'm struggling with.
    With <script> </script it's barely working.
    With <script ... /> it fails. .
    Thanks.
    JJ
  23. Thread: <script />

    by JimJ
    Replies
    10
    Views
    1,400

    I agree

    Thanks Svidgen,
    I agree.
    It seems strangethat within <head> </head>
    <meta> and <link> can be self-closing,
    but <script> seems to be restricted.
    I presume the same applies to <title>.
    But I...
  24. Thread: <script />

    by JimJ
    Replies
    10
    Views
    1,400

    View Post

    Hi, This must be an easy one!
    I get the feeling <script ... ... ... /> is not acceptable.
    It ought to be <script ... ... ...> </script>
    Is there some reason for this?
    Or is the former acceptable?
  25. Replies
    1
    Views
    1,530

    Sorry, Opera, not Firefox

    Sorry,
    That message ( Cannot convert 's[0]' to object ) ) was from Opera, not Firefox.
    Firefox gave up long before that: "too much recursion".
Results 1 to 25 of 148
Page 1 of 6 1 2 3 4
HTML5 Development Center



Recent Articles