SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    May 2005
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Yet Another IE Problem

    First Problem: IE still exists, lets kill it.

    Now for the real problem:correct.pngiebug.png

    After looking at the pics you can see the real problem, the one that is messed up is IE, the one that is correct is all other browsers, all on the same code.

    The code for this is as follows:

    <div id='FoodBevType'>
    <ul class='optionsList' id='FoodList' >
    <?php for($i = 1; $i <= $count; $i++){
    echo"

    <div id='foodtype$i'>
    <li>\n
    <label class='fbLabel'>Food $i</label>&nbsp;<input type='text' name='food$i' id='food$i' maxlength='50' size='30' value='".@$_POST["food$i"]."' style='margin-left: 18px;'>\n".
    ((empty($error["food$i"]))? "":"<span class='common-error'>".$error["food$i"]."</span>").

    "\n<label for='quant$i' >Qty: </label>\n
    <input type='text' name='quant$i' id='quant$i' maxlength='4' size='5' value='".@$_POST["quant$i"]."'>\n".
    ((empty($error["quant$i"]))? "":"<span class='common-error'>".$error["quant$i"]."</span>")."
    </li>\n</div>";
    }?>
    </ul>


    Then when the add button is pressed here is the javascript to add a food/beverage type:

    $("#addFoodButton").click(function () {

    if(fcounter>10){
    alert("Only 10 textboxes allowed");
    return false;
    }

    $("#FoodList").append('<div id="foodtype'+fcounter+'"><li style="padding-top: 10px;">'+'&nbsp;<label class="fbLabel">Food '+ fcounter + '</label>'+'<input type="text" name="food'+fcounter+'" id="food' + fcounter + '" maxlength ="50" size="30" value="" style="margin-left: 18px; ">'+'<label for="quant'+fcounter+'"> Qty:&nbsp;</label>'+'<input type="text" name="quant'+fcounter+'" id="quant'+fcounter+'" maxlength="4" size="5" value="">'+'</li></div>');

    fcounter++;
    });



    If you guys could help me that would be fantastic, I really hate IE.

  2. #2
    billycundiff{float:left;} silver trophybronze trophy RyanReese's Avatar
    Join Date
    Oct 2008
    Location
    Whiteford, Maryland, United States
    Posts
    13,564
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Hi . We can do nothing with your posting PHP. That's not HTML .

    If you have a link to the live site, that would be great. We'd prefer that. Or if one isn't available, post all the HTML/CSS (view source) so we can recreate the problem at our end.
    Twitter-@Ryan_Reese09
    http://www.ryanreese.us -Always looking for web design/development work


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •