SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    May 2005
    0 Post(s)
    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++){

    <div id='foodtype$i'>
    <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>")."

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

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

    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>');


    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
    Whiteford, Maryland, United States
    6 Post(s)
    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.
    Always looking for web design/development work. Willing to do it cheap to build portfolio!


Posting Permissions

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