www.webdeveloper.com

Search:

Type: Posts; User: dmboyd

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Thread: png vs gif

    by dmboyd
    Replies
    9
    Views
    2,426

    --- Using a photo? JPEG is best. Using less...

    ---
    Using a photo?
    JPEG is best.

    Using less than 256 colours, or the image looks perfectly fine with less than 256?
    Try GIF.

    Otherwise, PNG is your choice (preferably PNG8 if possible to...
  2. Replies
    11
    Views
    1,478

    Some people, regardless of their experience and...

    Some people, regardless of their experience and skill levels, use them as a way to save time... Then there are those libraries consisting completely of visual effects.

    It isn't always about...
  3. Replies
    7
    Views
    3,185

    Do you actually have IDs in your code like...

    Do you actually have IDs in your code like "Street_Alabama" and "zip_Colorado" since that's actually the sort of thing you're doing?

    If not, then that call to getElementById will indeed fail.
  4. Replies
    3
    Views
    1,286

    Attributes are neither siblings nor children. ...

    Attributes are neither siblings nor children. They are attributes that are attached to the specified element.


    The text "DOM" is the value of the <em> node, but it is also a node itself - a text...
  5. Your for-each loop targets elements named...

    Your for-each loop targets elements named "sellers" that are child elements of "sellers" elements. Try <xsl:for-each select="seller"> instead.
  6. Replies
    5
    Views
    1,366

    That's true... If your HTML isn't also...

    That's true... If your HTML isn't also well-formed XML (e.g. you include <img> or <link> or <br> or leave off the end tag for <p>), that's not a problem. After all, you can always output as text if...
  7. Replies
    6
    Views
    1,651

    Start with something basic in PHP:

    Start with something basic in PHP:

    <?php phpinfo(); ?>

    Go through the list of PHP modules and search for "DOM" or "DOM XML" and "SimpleXML". Let us know which ones you find. Also on that page...
  8. Replies
    5
    Views
    1,366

    With the exception of Firefox 3.x apparently... ...

    With the exception of Firefox 3.x apparently... The same-origin policy that applies to JavaScript is applied to local files as well now. To allow local files to be used as mentioned, you need to go...
  9. Replies
    1
    Views
    1,079

    It's because you forgot about the source element....

    It's because you forgot about the source element. '/' only matches the document, not the root element of the document. In other words, the following modification should work:
    ...
  10. Replies
    1
    Views
    1,028

    Use a loop?? The following might work (using...

    Use a loop??

    The following might work (using JScript since you're using a Microsoft API; other languages aren't drastically different):

    var elt_list =...
  11. Replies
    3
    Views
    1,166

    A for-each loop in combination with a...

    A for-each loop in combination with a modification of your test and value might work:

    <xsl:for-each select="w:p">
    <xsl:if test="w:pPr/w:pStyle/@w:val='TABLEHEADINGALLCAPS'">
    <xsl:value-of...
  12. Replies
    3
    Views
    4,708

    Wow. After a bit of research, I found this: ...

    Wow. After a bit of research, I found this:

    -- http://www.snee.com/bobdc.blog/2008/09/using-xslt-to-deliver-xml-on-b.html

    The solution:
    Go to the URL bar and navigate to "about:config"
    ...
  13. Replies
    3
    Views
    4,708

    It should work... Does Firefox 3 give you an...

    It should work... Does Firefox 3 give you an error page at all? Does the Error Console say anything?
  14. You used an PI when you should...

    You used an <?xml:stylesheet?> PI when you should have used an <?xml-stylesheet?> PI (in case you can't figure out what the subtle difference is, you used a colon ':' in xml:stylesheet when you...
  15. Replies
    1
    Views
    2,942

    It works fine for me:

    It works fine for me:

    <?php

    $doc = new DOMDocument;
    $doc->load('response.xml');
    $response = $doc->getElementsByTagName('response')->item(0);

    /* request_info */
    $request_info =...
  16. Replies
    2
    Views
    1,034

    View Post

    <!-- The stuff in red is your code, the stuff in blue is what should replace it. -->
    <xs:element name="megapixel" type="xs:integer" />
    <xs:element name="megapixel" type="megapixel.type" />
    <!--...
  17. Replies
    5
    Views
    776

    theStr = theStr.substr(0, i-1) + theStr.substr(i...

    theStr = theStr.substr(0, i-1) + theStr.substr(i + 1);

    See the part in red? Maybe it ought to be removed?
  18. Replies
    5
    Views
    776

    function removeCharAt (str, pos) { return...

    function removeCharAt (str, pos) {
    return str.substring(0, pos) + str.substring(pos + 1);
    }

    var s = "Hello!";
    alert(removeCharAt(s, 5)); //removes the exclamation mark at the end...
  19. Replies
    6
    Views
    1,088

    Sorry, I got confused by the original post. At...

    Sorry, I got confused by the original post. At first, I thought it said that you wanted it to cause an error when spaces were used. Are you sure Fang's suggestion didn't work? Theoretically it...
  20. Replies
    6
    Views
    1,088

    function isAlphabetic(val) { // If there's...

    function isAlphabetic(val) {
    // If there's no match, match() returns null (a falsy value).
    // Otherwise, it returns the matches (a truthy value).
    return val.match(/^[a-zA-Z]+$/);
    }
    ...
  21. Replies
    10
    Views
    1,377

    That's my point exactly.Perhaps I switched onto a...

    That's my point exactly.Perhaps I switched onto a tangent and stuck with it... Writing is a strong suit of mine, but I seem to have a rather annoying problem with staying focused. :p
  22. Replies
    2
    Views
    1,168

    As Charles said, you're correct about that. ...

    As Charles said, you're correct about that. However, when you say "linking to some web forms under a different domain", that could mean a few different things.

    The first thing that comes to mind...
  23. Replies
    1
    Views
    12,484

    You would need to open the new window and close...

    You would need to open the new window and close the original window, which isn't possible because most browsers will ask users if they want to close the window. I'm sure that most people would want...
  24. Replies
    10
    Views
    1,377

    Hopefully you won't be. You'll develop your own...

    Hopefully you won't be. You'll develop your own sense of style and what you consider to be "best coding practices". Sometimes people will tell you that they're actually bad coding practices, which...
  25. Replies
    7
    Views
    1,265

    Firefox has extensions that allow tabs to be...

    Firefox has extensions that allow tabs to be placed on the side, not to mention the fact that many browsers have sidebars these days. I know of several people that browse with such features toggled...
Results 1 to 25 of 97
Page 1 of 4 1 2 3 4
HTML5 Development Center



Recent Articles