www.webdeveloper.com

Search:

Type: Posts; User: Malgrim

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Well, since you use COUNT(*) there should...

    Well, since you use

    COUNT(*)
    there should always be exactly one record returned, the record containing the number of matches. That number may well be zero, but you have to check the actual...
  2. Replies
    5
    Views
    901

    Maybe you can work with that var str = '

    Maybe you can work with that

    var str = '<div class="main" id="content"></div><div class=\'sub\' name=\'subcontent\'></div>';

    var pattern =...
  3. Replies
    4
    Views
    688

    \[div class:(\w+)\]

    \[div class:(\w+)\]
  4. Replies
    3
    Views
    644

    All relevant browsers support AJAX, the question...

    All relevant browsers support AJAX, the question is rather how many users serf the internet with javascript disabled.
  5. Replies
    4
    Views
    680

    if(details.shipFirstName.value=="") {...

    if(details.shipFirstName.value=="")
    {
    alert("Please complete First Name field.");
    details.shipFirstName.focus();
    return false;
    }
  6. Replies
    2
    Views
    913

    Well, there's a number of things, that strike me...

    Well, there's a number of things, that strike me as odd in your code.

    For one thing discount +=(itemprice * 0.01) sets the discount to 1&#37; not 10%.

    discount +=(itemprice - 100) adds all but 100...
  7. shouldn't it be re.test(value)

    shouldn't it be
    re.test(value)
  8. Replies
    5
    Views
    1,389

    It should match @s as long as they're neither at...

    It should match @s as long as they're neither at the beginning nor the end of the word, i.e. it should match email addresses like 'someone@example.com'.

    If you're trying to match something else,...
  9. Replies
    2
    Views
    769

    document.forms['form'+str1].elements['comment'+str...

    document.forms['form'+str1].elements['comment'+str1].value...
  10. Replies
    5
    Views
    1,389

    Well, you could use SELECT * FROM messages...

    Well, you could use

    SELECT * FROM messages WHERE message RLIKE '[[:<:]]$something[[:>:]]'
    but querying against a regular expression will not exactly boost performance.
  11. Replies
    14
    Views
    1,841

    Sorry, but there's too much amiss to simply...

    Sorry, but there's too much amiss to simply correct it. I'd suggest something like the following, maybe you can work based on that

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...
  12. Replies
    2
    Views
    2,387

    Remove the comma after the first inner join. ...

    Remove the comma after the first inner join.

    EDIT: Oh, and by the way, never ever allow user data to get passed on unchecked!
  13. Replies
    1
    Views
    889

    You need a server side programming language, like...

    You need a server side programming language, like

    * ASP/ASP.NET (*.asp/*.aspx)
    * ColdFusion Markup Language (*.cfm)
    * Java via JavaServer Pages (*.jsp)
    * PHP (*.php)
    * Perl...
  14. Replies
    3
    Views
    3,676

    View Post

    <?php
    $file = 'some.xml';
    $dom = new DOMDocument();
    $dom->load($file);
    $xml = simplexml_import_dom($dom);

    $i = 0;
    foreach ($xml->games->game as $game) {
    ?>
    ...
  15. Thread: Radio button

    by Malgrim
    Replies
    7
    Views
    796

    IDs have to be unique throughout the whole page....

    IDs have to be unique throughout the whole page. If your radio buttons have the same ids, then only the first element found with that id will be addressed, i.e. only those in the first row. You...
  16. Thread: Radio button

    by Malgrim
    Replies
    7
    Views
    796

    Well, it does exactly what it seems to be...

    Well, it does exactly what it seems to be supposed to do (at least in my Browser): If you check A1, then also B2 gets checked, if you check A2, B1 get's checked.

    Does this not work in your...
  17. Thread: Radio button

    by Malgrim
    Replies
    7
    Views
    796

    replace the first line with the following; ...

    replace the first line with the following;

    function getObject(obj){if(document.getElementById(obj)){return document.getElementById(obj);}else{if(document.all[obj]){return document.all[obj];}}}
  18. Replies
    3
    Views
    3,676

    View Post

    <?php
    $file = 'some.xml';
    $dom = new DOMDocument();
    $dom->load($file);
    $xml = simplexml_import_dom($dom);
    ?>
    <p>
    Title: <input type="text" name="title" value="<?php...
  19. If it's only the background-color you're worried...

    If it's only the background-color you're worried about, you could simply inclose your whole page in two additional <div>s


    <div style="background-color:blue; padding:0px; margin:0px;">
    <div...
  20. Replies
    6
    Views
    2,267

    Not having read everything, this strikes me as a...

    Not having read everything, this strikes me as a potential source of the problem:


    obj.style.width = myImg.height+'px';
  21. Replies
    6
    Views
    2,267

    I'm not quite following you. The line simply...

    I'm not quite following you.

    The line simply takes the width of the new picture (in pixels) and applies it to the containing div-element, whether this used to be larger or smaller doesn't matter....
  22. Replies
    6
    Views
    2,267

    The height get's adjusted automatically, so just...

    The height get's adjusted automatically, so just remove the height property from the style. As for the width, this should work

    <script type="text/javascript">
    function changeIt(imageName,objName)...
  23. Replies
    2
    Views
    546

    Do you pass the value on to the form's onsubmit...

    Do you pass the value on to the form's onsubmit event, i.e.

    onsubmit="return ver()"
  24. Replies
    1
    Views
    466

    If you don't want vertical spaces, I'd suggest...

    If you don't want vertical spaces, I'd suggest getting rid of all the

    <p class="BoxCsubheadersnotes">&nbsp;</p>
    lines or include them in the <div>s so they are hidden as well and probably adjust...
  25. Replies
    12
    Views
    856

    It's tr.altrow td { background-color: blue; }

    It's

    tr.altrow td {
    background-color: blue;
    }
Results 1 to 25 of 62
Page 1 of 3 1 2 3
HTML5 Development Center



Recent Articles