dcsimg
www.webdeveloper.com

Search:

Type: Posts; User: DaAwesomeP

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    1,650

    Fix Base64 or find alternative

    I'm using Base64 to encode a preferences cookie. The problem is with the o-slash character () or &oslash. When I encode and then decode it with PHP I get: \xc3\xb8 I think this has to do with ANSI...
  2. Err... OK, so forecast_loaded is a completely...

    Err... OK, so forecast_loaded is a completely different time than the page load. The page load is moment_now. If I access the page a 5:30 PM, and the forecast was last updated at 5:00 PM, then it...
  3. I guess I didn't explain this very well. I want...

    I guess I didn't explain this very well. I want to run the function one hour after the given time. I have a library that gets and caches NOAA weather Forecasts once per hour (suggested by NOAA). The...
  4. [NEW] Run function once hour after specific time

    I know I made a previous post, on this, but I hasn't been working correctly.

    I want to run a function (weatherForecast_Update) one hour after the given time (forecast_loaded). I am getting the...
  5. Replies
    1
    Views
    988

    Your markup is a jumbled mess that I cannot...

    Your markup is a jumbled mess that I cannot decipher most of it. Split your pages into to code blocks and tidy it up a little. Then re-post it.Make sure that your end tags are present (i.e. every...
  6. Replies
    5
    Views
    815

    To position a block element use: margin:...

    To position a block element use:


    margin: auto 0px; // Where 0px is the top & bottom margins
    // OR
    margin: 0px auto 0px auto; // Where the first 0px is the top and the second...
  7. Replies
    4
    Views
    1,448

    Sorry, but I figured it out:

    Sorry, but I figured it out:


    <div id="parent">
    <p id="child"></p>
    <div id="otherchildren"> <!-- NEW -->
    <!-- Other Children -->
    </div>
    </div>
  8. Replies
    4
    Views
    1,448

    First of all, it didn't work. I can't see why....

    First of all, it didn't work. I can't see why. The other problem is that I have $.ajax append to the div after the fadeOut it is supposed to fadeIn after that. I'm just going to add another parent.
  9. Replies
    4
    Views
    1,448

    [RESOLVED] jQuery :not isn't working

    I have this, but it doesn't work:


    $("div#parent:not(p#child)").fadeIn(5000);

    I don't want to fadeIn the child paragraph, but I do want to fadeIn all of the other children. The code above just...
  10. Thanks, but as I said above, I found a better...

    Thanks, but as I said above, I found a better library in Javascript (https://github.com/mourner/suncalc) that can process more data. Also, I am on a very limited CPU and memory server (it's an...
  11. Replies
    25
    Views
    5,482

    I have no clue. In IE, hit F12. Look at the...

    I have no clue. In IE, hit F12. Look at the console for errors and/or warnings. Also look at the CSS, Script, and Profiler tabs for anything unusual. Run the debugger in the Script tab & reload the...
  12. I was formatting it using MomentJS. I just...

    I was formatting it using MomentJS.
    I just figured out that I can do this:


    var custom_time = "2013-11-09T19:06:27-06:00";
    moment_now = moment(new Date());
    moment_customtime =...
  13. I understand the code, but when I use just the...

    I understand the code, but when I use just the math part:


    new Date().getTime() - Date.parse(custom_time) + 60 * 60 * 1000

    and I input 2013-11-09T22:01:01-06:00, after formatting it it returns...
  14. Replies
    25
    Views
    5,482

    Hmm. See what it does in FF and Chrome without...

    Hmm. See what it does in FF and Chrome without the attribute anyways. In the HTML5 docs, it says NOT to use both at once. IE probably has support for the attribute, but not the tag. You could use a...
  15. [RESOLVED] Run or schedule script/function to run one hour after provided time.

    How can I schedule a function to run one hour after a specified time?


    var custom_time = "2013-11-09T19:06:27-06:00";
    schedule(custom_time, 60, script());
    function script() {
    // Would run...
  16. Replies
    25
    Views
    5,482

    Majot Error: I just noticed! You should not have...

    Majot Error: I just noticed! You should not have the "role=navigation" on a nav element, only a div. Also try using a div with "role=navigation" (if you haven't already). Lastly try a regular div...
  17. Replies
    6
    Views
    2,437

    Hmmm. Just realized that my "calc" is only...

    Hmmm. Just realized that my "calc" is only working correctly in FF. How can I fix this (pure CSS/HTML please)?
  18. I instead saw it was more practical to use...

    I instead saw it was more practical to use Javascript in the situation and found this library: https://github.com/mourner/suncalc. Thanks for your help anyways.
  19. Replies
    6
    Views
    2,437

    I fixed the spacing problem with: ...

    I fixed the spacing problem with:


    border-collapse: collapse;
    border-spacing: 0px;

    But I still can't figure out why the "Today" cell isn't moving up high enough.
  20. Replies
    2
    Views
    757

    Thanks!

    Thanks!
  21. Replies
    25
    Views
    5,482

    Thanks! Hmmm. Seems to work fine here:...

    Thanks! Hmmm. Seems to work fine here: http://jsfiddle.net/DaAwesomeP/gX3dS/. Be sure you're using the HTML5 Doctype. What browsers have you tested it in?
  22. Replies
    2
    Views
    757

    [RESOLVED] How do I edit a post?

    I see the "Last edited blahtime" on posts. I have done it on other forums. I cannot figure out how to do it on this one. Where is the link or button?
  23. Detct Nighttime with Sunrise/Sunset - NOT WORKING

    Why won't this work?


    $date_sun_info = date_sun_info(time(), 38.4, -9);
    $time_YmdHis = date("YmdHis", time());
    $sunrise_YmdHis = date("YmdHis", $date_sun_info['sunrise']);
    $sunset_YmdHis =...
  24. Replies
    6
    Views
    2,437

    Another problem: If I try this: ...

    Another problem:
    If I try this:


    table#weatherForecast tr#weatherForecast-row td.weatherForecast-day-today {
    margin: -20px 0px 0px 0px;
    }

    The "Today" cell only moves up 10px, not 20px....
  25. Replies
    6
    Views
    2,437

    Solved it! By setting the "Today" cell to...

    Solved it!
    By setting the "Today" cell to "display: block" I can make it act differently than the other cells without messing up the other cells. Fiddle: http://jsfiddle.net/DaAwesomeP/akCUc/.
    ...
Results 1 to 25 of 41
Page 1 of 2 1 2
HTML5 Development Center



Recent Articles