<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Неофициальный форум DLNA Home Media Server &mdash; И снова с просьбой о помощи.]]></title>
		<link>https://hms.lostcut.net/viewtopic.php?id=561</link>
		<atom:link href="https://hms.lostcut.net/extern.php?action=feed&amp;tid=561&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «И снова с просьбой о помощи.».]]></description>
		<lastBuildDate>Tue, 14 Aug 2018 15:33:19 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[И снова с просьбой о помощи.]]></title>
			<link>https://hms.lostcut.net/viewtopic.php?pid=12658#p12658</link>
			<description><![CDATA[<p>Всем привет, для личных нужд требуется внедрить некий скрипт в гуглю, то есть сделать разширение для личного пользования. Так вот разширение то внедрил но вот есть нюанс мне нужно чтобы после того как пришёл ответ вылетело модальное окно но как не пробовал все выдает одну ошибку такого вида Uncaught TypeError: $(...).dialog is not a function .</p><p>Если есть умельцы помогите сделать чтобы работало плиз.</p><p>Код popup.html для разширения</p><div class="codebox"><pre><code>&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
    
    &lt;script src=&quot;js/jquery.js&quot;&gt;&lt;/script&gt;
    &lt;script src=&quot;js/include.js&quot;&gt;&lt;/script&gt;
   &lt;script src=&quot;js/popup.js&quot;&gt;&lt;/script&gt;
   
&lt;/head&gt;
&lt;body&gt;

                             &lt;textarea id=&quot;input&quot;&gt;&lt;/textarea&gt;&lt;br&gt;
    &lt;input id=&quot;btn_submit&quot; type=&quot;submit&quot;&gt;&lt;br&gt;
  
    &lt;div class=&quot;result&quot;&gt;&lt;/div&gt;
    
&lt;/body&gt;
&lt;/html&gt;</code></pre></div><br /><br /><p>Код popup.js</p><div class="codebox"><pre><code>$(document).ready(function(){
    
        $(&#039;#btn_submit&#039;).click(function(e){
       
      e.preventDefault();

       
     
     var input = $(&#039;#input&#039;).val();
    
     
                 
    $.ajax({
                  
                url: &quot;&lt;a href=&quot;http://sayt.ru/script.php&quot;,&quot;&gt;http://sayt.ru/script.php&quot;,&lt;/a&gt;
                type: &#039;GET&#039;,
                data: ({url: input}),
                dataType: &quot;html&quot;,
                cache: false,
                success: function(data) {
                    
                    
                    var html = &#039;&lt;b&gt;Нажмите (Вставить данные) для заполнения полей&lt;/b&gt;&#039;;

                        $(&#039;body&#039;).append(&quot;&lt;div id=&#039;fbPopup&#039; class=&#039;dle-promt&#039; title=&#039;Полученные данные&#039; style=&#039;display:none&#039;&gt;&quot;+html+&quot;&lt;/div&gt;&quot;);

                        $(&#039;#fbPopup&#039;).dialog({
                            autoOpen: true,
                            resizable: false,
                            width: &quot;auto&quot;,
                            dialogClass: &quot;modalfixed&quot;,
                            buttons: {
                                &quot;Отмена&quot;: function() {
                                    $( this ).dialog( &quot;close&quot; );
                                },
                                &quot;Вставить данные&quot;: function() {
                                    insert_data_rufbru(data.result);
                                    $( this ).dialog( &quot;close&quot; );
                                }
                            }
                        });

                        $(&#039;.modalfixed.ui-dialog&#039;).css({position:&quot;fixed&quot;});
                     
                    

                
                }
    
           
    });  
     
   });
  
  
   function insert_data_rufbru(data){
   console.log(data);
   }
  
 });</code></pre></div><p>Заранее спасибо откликнувшимся.</p>]]></description>
			<author><![CDATA[null@example.com (na-socke.tk)]]></author>
			<pubDate>Tue, 14 Aug 2018 15:33:19 +0000</pubDate>
			<guid>https://hms.lostcut.net/viewtopic.php?pid=12658#p12658</guid>
		</item>
	</channel>
</rss>
