alt öğe önce üst kapsayıcı öğesi değiştirmek mümkün html ayrıştırma hatası kapalı

1 Cevap php

Is there anybody that can help me please? sorry my english...

Bu (firefox, opera ve iyi çalışma krom sadece Internet Explorer 8,) hata oluşturmak php kodu:

<!--    SHIPPING ADDRESS   -->
         <h4 id='onCheckoutShipping'><?php echo JText::_("Indirizzo di spedizione") ?></h4>
         <?php
         $baseurl = "index.php?option=com_tienda&format=raw&controller=addresses&task=getAddress&address_id=";
         $url = JRoute::_($baseurl . @$this->shipping_address->address_id);
            if (!empty($this->addresses))
            {
             $shipattribs = array('class' => 'inputbox',    'size' => '1','onchange' => "tiendaDoTask('$baseurl'+this.options[this.selectedIndex].value, 'shippingDefaultAddress', '')");
             echo TiendaSelect::address( JFactory::getUser()->id, @$this->shipping_address->address_id, 'shipping_address_id', 2, $shipattribs, 'shipping_address_id', false );
             if(count($this->addresses) == 1){
              echo "<input type=\"hidden\" id=\"shipping_address_id\" name=\"shipping_address_id\" value=\"" . @$this->shipping_address->address_id . "\" />";
             }
}?>

            <script type="text/javascript">tiendaDoTask('<?php echo $url ?>', 'shippingDefaultAddress', '');</script>

         <p id="shippingDefaultAddress"></p>

        </td>
        <td style="width: 50px; text-align: left;">
            <!--    BILLING ADDRESS   -->             
         <h4 id='onCheckoutBilling'><?php echo JText::_("Indirizzo di fatturazione") ?></h4>
         <?php 
             $url = JRoute::_($baseurl . @$this->billing_address->address_id);
             if (!empty($this->addresses))
             {
                 $billattribs = array('class' => 'inputbox',    'size' => '1','onchange' => "tiendaDoTask('$baseurl'+this.options[this.selectedIndex].value, 'billingDefaultAddress', '')");
                 echo TiendaSelect::address( JFactory::getUser()->id, @$this->billing_address->address_id, 'billing_address_id', 1, $billattribs, 'billing_address_id', false );
              if(count($this->addresses) == 1)
              {
                echo "<input type=\"hidden\" id=\"billing_address_id\" name=\"billing_address_id\" value=\"" . @$this->billing_address->address_id . "\" />";
              }
 }?>
         <script type="text/javascript">tiendaDoTask('<?php echo $url ?>', 'billingDefaultAddress', '');</script>
         <p id="billingDefaultAddress"></p>
        </td>
    </tr>
    </table>        

1 Cevap

Try putting the last script block after you close the Your tiendaDoTast() probably tries to modify this Tag and IE has problems with modified unclosed Tags.

Ayrıca açıklıklı orada yerine sağ akışında komut koyarak koymak ve script sonunda onları erişebilir.