www.webdeveloper.com

Search:

Type: Posts; User: robmarston

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Set an interval with a try/catch statement that...

    Set an interval with a try/catch statement that clears itself and executes the init function when the div is made available.
  2. Marking as resolved because the post is outdated....

    Marking as resolved because the post is outdated. Most likely the div as positioned/displayed in a manor that wasn't allowing it's container to grow to accommodate. A clearfix would probably...
  3. Marking as resolved because it's outdated. Can...

    Marking as resolved because it's outdated. Can use the following code:



    $input = file_get_contents("filename.txt");
    // modify $input using regular expression, e.g. preg_replace...
  4. Marking this as resolved because it's outdated....

    Marking this as resolved because it's outdated. Simply put the div inside the a tag, position it relative, and show/hide onclick.
  5. Marking this resolved because it's outdated.

    Marking this resolved because it's outdated.
  6. Need to match last occurrence of one of two characters with regular expression

    I need to match last occurrence of one of two characters with regular expression. In this instance it's either a semi-colon or the close of a comment.

    Consider the string:



    body {
    /*...
  7. Typo was causing the error, first sign I need to...

    Typo was causing the error, first sign I need to take a break ;)

    Thanks.
  8. I'm using a MediaTemple Gridserver (shared). The...

    I'm using a MediaTemple Gridserver (shared). The error I receive when i try to use the absolute path is:



    Here's the code I'm using:



    chdir("../clients");
    mkdir("newfolder",0777);
  9. [RESOLVED] Make a directory is an existing directory?

    I am unable to make a new directory in an existing directory that is one level up from where my script is located. Here's my folder structure:


    html
    > api
    > script.php
    >...
  10. Agreed, thanks man!

    Agreed, thanks man!
  11. I'll give it a shot. I had something similar to...

    I'll give it a shot. I had something similar to begin with but I abandoned it in hopes of a more elegant solution.

    Thanks!
  12. [RESOLVED] Multiple events, single onclick?

    Silly question, but it's late and I'm tired...

    <form>
    ...form fields...
    <input type="text" onclick="isValid(this);doSomethng()"/>
    </form>

    Can I get the second function to execute only if the...
  13. Replies
    3
    Views
    4,005

    Doing that still causes the page to refresh in...

    Doing that still causes the page to refresh in FF3 OS X.
  14. I was just unsure if someone could make some...

    I was just unsure if someone could make some malicious attempt at script injection if I didn't clean it up before I "received" it on the PHP end.

    I guess I'll just do some more research and make...
  15. [RESOLVED] JavaScript onsubmit, changing form fields?

    I'm using an onsubmit to change the values of some of my form fields before submitting to a PHP form handler.

    The problem is, when the JS changes the values (to URL encoded values) it shows the...
  16. I'm writing text to a div using innerHTML, this...

    I'm writing text to a div using innerHTML, this happens in a loop. Looks similar to this:


    for(i=0;i<10;i++){
    ...does other stuff...
    myDiv.innerHTML = getData();
    ...does other stuff...
    }
    ...
  17. [RESOLVED] Can I delay a function's return?

    I'm trying to delay the return of a function until certain information has been gathered, is this possible? Here's a basic rendition of what I'm trying to accomplish:


    alert(getData());
    ...
  18. Nevermind, decided not to be lazy and whipped...

    Nevermind, decided not to be lazy and whipped this up - probably could use some revising, but it's good enough for now.


    function formatDate(date)
    {
    var year = parseInt(date.slice(0,4));...
  19. [RESOLVED] Format W3CDTF date so it's readible?

    Curious if anyone has a JS that re-formats a W3CDTF date (from atom RSS) so it's a little easier to read?

    I'm getting: 2009-04-22T12:46:00Z

    I'd like: Wed April, 4 12:46 PM PMT (or something...
  20. [RESOLVED] JavaScript not working until user scrolls down?

    My window.onload function isn't executing until I (or a user) scrolls the page. Seems to only be a bug in FF for PC.

    Is there a fix or some alternative method I can use? I'm using window.onload...
  21. I assumed I would need to allow execute for...

    I assumed I would need to allow execute for others to even run the php script.

    Hmmm...I guess I just don't properly understand the wording...

    Thanks for your help!
  22. [RESOLVED] Noob question - file permissions?

    I have a php file that writes a text file to a directory on my server. What are the ideal permissions for the php file itself, and the directory?

    I currently have owner, group, and others set to...
  23. Replies
    3
    Views
    673

    Awesome, that worked -- curious why you can't...

    Awesome, that worked -- curious why you can't just throw it in the href part of the link?

    Thanks for your help!
  24. Replies
    3
    Views
    673

    [RESOLVED] Get parent divs id?

    I have a link that's nested as follows:

    <div id="container"><a href="javascript:getParent(this)">CLICK HERE</a></div>

    When I use the script to alert the object that's sent by the "this"...
  25. Replies
    3
    Views
    642

    I guess I still don't understand? My variables...

    I guess I still don't understand?

    My variables ACTUALLY look more like this...

    var origHeight = getHeight();

    With the getHeight() function returning a value representing the objects...
Results 1 to 25 of 84
Page 1 of 4 1 2 3 4
HTML5 Development Center



Recent Articles