2016-02-16 5 views
-1

У меня есть несколько элементов на странице php, чтобы редактировать каждый элемент, я хочу отправить название кнопки в качестве параметра в iFrame (всплывающее окно), как я могу это сделать?Как отправить php Получить параметры в iFrame?

У меня есть такой код:

<button class="btn_edit ui-button-text-only" title="245" role="button" aria-disabled="false"><span class="ui-button-text">Edit this item</span></button> 
 

 
<button class="btn_edit ui-button-text-only" title="246" role="button" aria-disabled="false"><span class="ui-button-text">Edit this item</span></button> 
 

 
<button class="btn_edit ui-button-text-only" title="247" role="button" aria-disabled="false"><span class="ui-button-text">Edit this item</span></button> 
 

 
<button class="btn_edit ui-button-text-only" title="248" role="button" aria-disabled="false"><span class="ui-button-text">Edit this item</span></button> 
 

 
<button class="btn_edit ui-button-text-only" title="249" role="button" aria-disabled="false"><span class="ui-button-text">Edit this item</span></button>

itemID = переменная заголовка.

получить аналогичный результат: iframe src="index.php?type=1296727025&itemID.

Я пытался append(), но не работал,

$dialog_edit.append($("<iframe class='no-border full-width-height' />").attr("src", "index.php?type=1296727025&tx_productmanager_pi1="+productID+"&no_cache=1")); 
 
$dialog_edit.dialog('open');

ли какой-либо один есть идея?

+0

что ваш другой код для 'Append()'? –

+0

iFrame или всплывающее окно? – Phiter

+0

Mi добавить код заключается в следующем: $ ('btn_edit_product. ') Нажмите (функция() { \t вар ProductID = $ (это) .attr (' название'); \t $ dialog_edit.append ($ (».