<?xml version='1.0' encoding="utf-8"?>
      <rss version='2.0'>
      <channel>
      <title>Форум на Исходниках.RU</title>
      <link>https://forum.sources.ru</link>
      <description>Форум на Исходниках.RU</description>
      <generator>Форум на Исходниках.RU</generator>
  	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=284340&amp;view=findpost&amp;p=2400405</guid>
        <pubDate>Sun, 18 Oct 2009 21:27:49 +0000</pubDate>
        <title>Джава и PHP и EXTJS</title>
        <link>https://forum.sources.ru/index.php?showtopic=284340&amp;view=findpost&amp;p=2400405</link>
        <description><![CDATA[vicis: нужен ещё код формы<br>
<br>
или напиши как установлены свойства компонента UserLogin <br>
компонент должен быть подключен к таблице, а таблица должна содеражать поля: <br>
LoginID, Username, Password <br>
кроме этого нужно определить ссылки в свойствах компонента на соответствующие страницы при успешном логине и не успешном<br>
это сделано ?<br>
<br>
вообще как работает компонент посмотри в <a class='tag-url' href='http://vcl4php.svn.sourceforge.net/viewvc/vcl4php/trunk/website/samples/ECommerceExample/jbsamplecomponents/userlogin.inc.php?revision=227&view=markup' target='_blank'>исходнике</a><br>
<br>
а самое правильное подключить <a class='tag-url' href='http://vcl4php.svn.sourceforge.net/viewvc/vcl4php/trunk/website/samples/ECommerceExample/' target='_blank'>пример</a> из E-Commerce DelphiForPhp<br>
и уже на рабочем примере разбираться]]></description>
        <author>vicis</author>
        <category>Delphi for PHP</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=284340&amp;view=findpost&amp;p=2399861</guid>
        <pubDate>Sat, 17 Oct 2009 20:32:26 +0000</pubDate>
        <title>Джава и PHP и EXTJS</title>
        <link>https://forum.sources.ru/index.php?showtopic=284340&amp;view=findpost&amp;p=2399861</link>
        <description><![CDATA[RODNOC: вот код: <br>
<br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">&#60;?php</div><div class="code_line">require_once(&quot;vcl/vcl.inc.php&quot;);</div><div class="code_line">//Includes</div><div class="code_line">use_unit(&quot;ext/ext.inc.php&quot;);</div><div class="code_line">use_unit(&quot;userlogin.inc.php&quot;);</div><div class="code_line">use_unit(&quot;forms.inc.php&quot;);</div><div class="code_line">use_unit(&quot;extctrls.inc.php&quot;);</div><div class="code_line">use_unit(&quot;stdctrls.inc.php&quot;);</div><div class="code_line">&nbsp;</div><div class="code_line">//Class definition</div><div class="code_line">class Unit4 extends Page</div><div class="code_line">{</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; public $UserLogin = null;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; public $ExtMessageBox1 = null;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; public $btlogin = null;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; public $pass = null;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; public $uname = null;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; function btloginJSClick($sender, $params)</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; {</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; if ($this-&#62;UserLogin-&#62;LoginUser($this-&#62;uname-&#62;Text,$this-&#62;pass-&#62;text))</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;echo &quot;loginOk = 1&quot;;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;else</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;echo &quot;loginOk = 0&quot;;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; ?&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; //Add your javascript code here</div><div class="code_line">&nbsp;&nbsp; &nbsp;function ExtMessageBox(xtitle,xmsg,xwidth)</div><div class="code_line">{</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; Ext.MessageBox.show({</div><div class="code_line">title: xtitle,</div><div class="code_line">msg: xmsg,</div><div class="code_line">width:xwidth,</div><div class="code_line">buttons: Ext.MessageBox.NO,</div><div class="code_line">multiline: false,</div><div class="code_line">fn: ExtMessageBoxJSClick</div><div class="code_line">,animEl: &#39;&#39;</div><div class="code_line">});</div><div class="code_line">&nbsp;</div><div class="code_line">}</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (loginOk==1)</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;location.href=&quot;soft.php&quot;;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;else</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ExtMessageBox(&#39;Что то не так&#39;,&#39;Неправильный url или вы не залогинились!&#39;,300);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &#60;?php</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; }</div><div class="code_line">&nbsp;</div><div class="code_line">}</div><div class="code_line">&nbsp;</div><div class="code_line">global $application;</div><div class="code_line">&nbsp;</div><div class="code_line">global $Unit4;</div><div class="code_line">&nbsp;</div><div class="code_line">//Creates the form</div><div class="code_line">$Unit4=new Unit4($application);</div><div class="code_line">&nbsp;</div><div class="code_line">//Read from resource file</div><div class="code_line">$Unit4-&#62;loadResource(__FILE__);</div><div class="code_line">&nbsp;</div><div class="code_line">//Shows the form</div><div class="code_line">$Unit4-&#62;show();</div><div class="code_line">&nbsp;</div><div class="code_line">?&#62;</div></ol></div></div></div></div><script>preloadCodeButtons('1');</script>]]></description>
        <author>RODNOC</author>
        <category>Delphi for PHP</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=284340&amp;view=findpost&amp;p=2398779</guid>
        <pubDate>Fri, 16 Oct 2009 07:37:05 +0000</pubDate>
        <title>Джава и PHP и EXTJS</title>
        <link>https://forum.sources.ru/index.php?showtopic=284340&amp;view=findpost&amp;p=2398779</link>
        <description><![CDATA[vicis: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=284340&view=findpost&p=2398372'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>RODNOC &#064; <time class="tag-quote__quoted-time" datetime="2009-10-15T19:01:08+00:00">15.10.09, 19:01</time></span><div class='quote '>серовно выводит &quot;0&quot;<br>
<br>
проверка не действуеть </div></div><br>
не понятно где ты вводиш пароль и логин <br>
я так понимаю что до перечитывания страницы<br>
так сделано в компоненте UserLogin<br>
если к этому моменты залогинился то проверка должна действовать<br>
<br>
давай весь код модуля в студию]]></description>
        <author>vicis</author>
        <category>Delphi for PHP</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=284340&amp;view=findpost&amp;p=2398397</guid>
        <pubDate>Thu, 15 Oct 2009 19:27:32 +0000</pubDate>
        <title>Джава и PHP и EXTJS</title>
        <link>https://forum.sources.ru/index.php?showtopic=284340&amp;view=findpost&amp;p=2398397</link>
        <description><![CDATA[ViktorXP: Если я правильно понял то <strong class='tag-b'>RODNOC</strong> хочет из джави вызвать php функцию и что бы та вернула результат в джаву БЕЗ перезагрузки страницы.<br>
Если я прав то способ из #9 поста не подойдет так как ему потребуется перегрузка страницы.<br>
<strong class='tag-b'>RODNOC</strong> посмотри в сторону xajax. там в демо примерах показано как вызвать функции]]></description>
        <author>ViktorXP</author>
        <category>Delphi for PHP</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=284340&amp;view=findpost&amp;p=2398372</guid>
        <pubDate>Thu, 15 Oct 2009 19:01:08 +0000</pubDate>
        <title>Джава и PHP и EXTJS</title>
        <link>https://forum.sources.ru/index.php?showtopic=284340&amp;view=findpost&amp;p=2398372</link>
        <description><![CDATA[RODNOC: серовно выводит  &quot;0&quot;<br>
<br>
проверка не дествуеть <br>
<br>
<br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">{</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;echo &quot;loginOk = 1&quot;;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;else</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;echo &quot;loginOk = 0&quot;;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</div></ol></div></div></div></div><br>
мне кажется что самий внизу тот и берёть   echo &quot;loginOk = 0&quot;;<br>
<br>
<div class="tag-mod"><div class="tag-mod__prefix">M</div><div class="tag-mod__body">RODNOC, ведь не сложно выделить код тегами</div></div>]]></description>
        <author>RODNOC</author>
        <category>Delphi for PHP</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=284340&amp;view=findpost&amp;p=2397985</guid>
        <pubDate>Thu, 15 Oct 2009 12:37:31 +0000</pubDate>
        <title>Джава и PHP и EXTJS</title>
        <link>https://forum.sources.ru/index.php?showtopic=284340&amp;view=findpost&amp;p=2397985</link>
        <description><![CDATA[vicis: если перед if (loginOk==1) поставить alert(loginOk); что выводит сообщение ?<br>
<br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">alert(loginOk);</div><div class="code_line">if (loginOk==1) </div><div class="code_line">{...</div></ol></div></div></div></div>]]></description>
        <author>vicis</author>
        <category>Delphi for PHP</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=284340&amp;view=findpost&amp;p=2397951</guid>
        <pubDate>Thu, 15 Oct 2009 12:07:42 +0000</pubDate>
        <title>Джава и PHP и EXTJS</title>
        <link>https://forum.sources.ru/index.php?showtopic=284340&amp;view=findpost&amp;p=2397951</link>
        <description><![CDATA[RODNOC: что то ни так работает проверка хоть правельно проверять все равно выходит ExtMessageBox<br>
<br>
<br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">function Button1JSClick($sender, $params)</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if ($this-&#62;UserLogin-&#62;LoginUser($this-&#62;uname-&#62;Text,$this-&#62;pass-&#62;text))</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;echo &quot;loginOk = 1&quot;;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;else</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;echo &quot;loginOk = 0&quot;;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ?&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //Add your javascript code here</div><div class="code_line">&nbsp;</div><div class="code_line">function ExtMessageBox(xtitle,xmsg,xwidth)</div><div class="code_line">{</div><div class="code_line">Ext.MessageBox.show({</div><div class="code_line">title: xtitle,</div><div class="code_line">msg: xmsg,</div><div class="code_line">width:xwidth,</div><div class="code_line">buttons: Ext.MessageBox.OK,</div><div class="code_line">multiline: false,</div><div class="code_line">fn: ExtMessageBox1JSClick</div><div class="code_line">});</div><div class="code_line">&nbsp;</div><div class="code_line">}</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (loginOk==1) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;location.href=&quot;soft.php&quot;;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;else</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ExtMessageBox(&#39;Что то не так&#39;,&#39;Неправильный url или вы не залогинились!&#39;,300);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#60;?php</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</div></ol></div></div></div></div>]]></description>
        <author>RODNOC</author>
        <category>Delphi for PHP</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=284340&amp;view=findpost&amp;p=2397206</guid>
        <pubDate>Wed, 14 Oct 2009 16:30:15 +0000</pubDate>
        <title>Джава и PHP и EXTJS</title>
        <link>https://forum.sources.ru/index.php?showtopic=284340&amp;view=findpost&amp;p=2397206</link>
        <description><![CDATA[vicis: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=284340&view=findpost&p=2396303'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>RODNOC &#064; <time class="tag-quote__quoted-time" datetime="2009-10-13T19:12:19+00:00">13.10.09, 19:12</time></span><div class='quote '>Респект получилось но можноли проверять как нит UserLogin в джвые</div></div><br>
можно<br>
только эту проверку пользователь может обойти<br>
т.к. можно просмотреть код проверки с помощью просмотра исходного кода страницы в браузере<br>
<br>
такой вариант пойдёт ?<br>
<br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">&nbsp;&nbsp;</div><div class="code_line">function Button1JSClick($sender, $params)</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if ($this-&#62;UserLogin-&#62;LoginUser($this-&#62;uname-&#62;Text,$this-&#62;pass-&#62;text))</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;echo &quot;loginOk = 1&quot;;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;else</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;echo &quot;loginOk = 0&quot;;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ?&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //Add your javascript code here</div><div class="code_line">&nbsp;</div><div class="code_line">function ExtMessageBox(xtitle,xmsg,xwidth)</div><div class="code_line">{</div><div class="code_line">Ext.MessageBox.show({</div><div class="code_line">title: xtitle,</div><div class="code_line">msg: xmsg,</div><div class="code_line">width:xwidth,</div><div class="code_line">buttons: Ext.MessageBox.OK,</div><div class="code_line">multiline: false,</div><div class="code_line">fn: ExtMessageBox1JSClick</div><div class="code_line">});</div><div class="code_line">&nbsp;</div><div class="code_line">}</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; addrurl = document.getElementById(&quot;Edit1&quot;).value;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if ((addrurl != &quot;&quot;) &amp; (loginOk==1)) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;location.href=addrurl;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;else</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ExtMessageBox(&#39;Что то не так&#39;,&#39;Неправильный url или вы не залогинились!&#39;,300);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#60;?php</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</div></ol></div></div></div></div>]]></description>
        <author>vicis</author>
        <category>Delphi for PHP</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=284340&amp;view=findpost&amp;p=2396303</guid>
        <pubDate>Tue, 13 Oct 2009 19:12:19 +0000</pubDate>
        <title>Джава и PHP и EXTJS</title>
        <link>https://forum.sources.ru/index.php?showtopic=284340&amp;view=findpost&amp;p=2396303</link>
        <description><![CDATA[RODNOC: Респект получилось но можноли проверять как нит UserLogin  в джвые<br>
<br>
На пример <br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">&nbsp;addrurl = document.getElementById(&quot;uname&quot;).value;</div><div class="code_line">&nbsp;&nbsp; if (addrurl != &quot;&quot;) &nbsp; &nbsp; // здесь if ($this-&#62;UserLogin-&#62;LoginUser($this-&#62;uname-&#62;Text,$this-&#62;pass-&#62;text)) у меня так в PHP</div><div class="code_line">&nbsp;&nbsp; &nbsp;{</div></ol></div></div></div></div>]]></description>
        <author>RODNOC</author>
        <category>Delphi for PHP</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=284340&amp;view=findpost&amp;p=2396149</guid>
        <pubDate>Tue, 13 Oct 2009 16:22:44 +0000</pubDate>
        <title>Джава и PHP и EXTJS</title>
        <link>https://forum.sources.ru/index.php?showtopic=284340&amp;view=findpost&amp;p=2396149</link>
        <description><![CDATA[ViktorXP: <div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">&nbsp;&nbsp; addrurl = document.getElementById(&quot;uname&quot;).value;</div><div class="code_line">&nbsp;&nbsp; if (addrurl != &quot;&quot;)</div><div class="code_line">&nbsp;&nbsp; &nbsp;{</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;&#60;?php</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; echo $this-&#62;Button1-&#62;ajaxCall(&quot;Button1Click&quot;); // в это место будет вставлен js код который вызовет клик php</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;?&#62;</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp;}</div><div class="code_line">&nbsp;&nbsp; &nbsp;else</div><div class="code_line">&nbsp;&nbsp; &nbsp;{</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; ExtMessageBox(&#39;привет&#39;,&#39;Не нужно вводить неправильный url !&#39;,300);</div><div class="code_line">&nbsp;&nbsp; &nbsp;}</div></ol></div></div></div></div>]]></description>
        <author>ViktorXP</author>
        <category>Delphi for PHP</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=284340&amp;view=findpost&amp;p=2395576</guid>
        <pubDate>Tue, 13 Oct 2009 08:55:17 +0000</pubDate>
        <title>Джава и PHP и EXTJS</title>
        <link>https://forum.sources.ru/index.php?showtopic=284340&amp;view=findpost&amp;p=2395576</link>
        <description><![CDATA[RODNOC: блин я чуть не правелно напесал визвать кнопку не джавивскую а php  типо Button1Click(&#036;sender, &#036;params)<br>
это возможно или даже точней мне нужно хотябы в даве скримте исползоват Userlogin как привер <br>
<br>
<br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">&nbsp;&nbsp;function Button1JSClick($sender, $params)</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ?&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //Add your javascript code here</div><div class="code_line">&nbsp;</div><div class="code_line">function ExtMessageBox(xtitle,xmsg,xwidth)</div><div class="code_line">{</div><div class="code_line">Ext.MessageBox.show({</div><div class="code_line">title: xtitle,</div><div class="code_line">msg: xmsg,</div><div class="code_line">width:xwidth,</div><div class="code_line">buttons: Ext.MessageBox.OK,</div><div class="code_line">multiline: false,</div><div class="code_line">fn: ExtMessageBox1JSClick</div><div class="code_line">});</div><div class="code_line">&nbsp;</div><div class="code_line">}</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; addrurl = document.getElementById(&quot;Edit1&quot;).value;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (addrurl != &quot;&quot;) &nbsp;//здесь я должен как то зделать что бы проверялся зерез Userlogin</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;location.href=addrurl;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;else</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ExtMessageBox(&#39;привет&#39;,&#39;Не нужно вводить неправильный url !&#39;,300);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#60;?php</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</div></ol></div></div></div></div>]]></description>
        <author>RODNOC</author>
        <category>Delphi for PHP</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=284340&amp;view=findpost&amp;p=2395352</guid>
        <pubDate>Tue, 13 Oct 2009 05:38:04 +0000</pubDate>
        <title>Джава и PHP и EXTJS</title>
        <link>https://forum.sources.ru/index.php?showtopic=284340&amp;view=findpost&amp;p=2395352</link>
        <description><![CDATA[ViktorXP: можно. только нужно учесть что событие клика будет собрано в html-ку как <br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">function Button1JSClick(event) {...</div></ol></div></div></div></div><br>
<br>
но если нужно вызвать какой то js из разных мест то правильнее будет его написать в отдельном месте функцию. и уже ее вызвать в последствии.]]></description>
        <author>ViktorXP</author>
        <category>Delphi for PHP</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=284340&amp;view=findpost&amp;p=2395282</guid>
        <pubDate>Tue, 13 Oct 2009 00:30:06 +0000</pubDate>
        <title>Джава и PHP и EXTJS</title>
        <link>https://forum.sources.ru/index.php?showtopic=284340&amp;view=findpost&amp;p=2395282</link>
        <description><![CDATA[RODNOC: можно ли через джаву запустить каrойнит кнопачку <br>
например  function Button1JSClick(&#036;sender, &#036;params)<br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">&nbsp;&nbsp; addrurl = document.getElementById(&quot;uname&quot;).value;</div><div class="code_line">&nbsp;&nbsp; if (addrurl != &quot;&quot;)</div><div class="code_line">&nbsp;&nbsp; &nbsp;{</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;тоже самое только тут запустьт кнопку Button1JSClick($sender, $params)</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp;}</div><div class="code_line">&nbsp;&nbsp; &nbsp;else</div><div class="code_line">&nbsp;&nbsp; &nbsp;{</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; ExtMessageBox(&#39;привет&#39;,&#39;Не нужно вводить неправильный url !&#39;,300);</div><div class="code_line">&nbsp;&nbsp; &nbsp;}</div></ol></div></div></div></div>]]></description>
        <author>RODNOC</author>
        <category>Delphi for PHP</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=284340&amp;view=findpost&amp;p=2395278</guid>
        <pubDate>Tue, 13 Oct 2009 00:00:46 +0000</pubDate>
        <title>Джава и PHP и EXTJS</title>
        <link>https://forum.sources.ru/index.php?showtopic=284340&amp;view=findpost&amp;p=2395278</link>
        <description><![CDATA[RODNOC: Тенкс ща проверю ты можещ дать свой аску]]></description>
        <author>RODNOC</author>
        <category>Delphi for PHP</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=284340&amp;view=findpost&amp;p=2395152</guid>
        <pubDate>Mon, 12 Oct 2009 19:06:02 +0000</pubDate>
        <title>Джава и PHP и EXTJS</title>
        <link>https://forum.sources.ru/index.php?showtopic=284340&amp;view=findpost&amp;p=2395152</link>
        <description><![CDATA[vicis: по ExtJS есть <a class='tag-url' href='http://www.qadram.com/vcl4php/movies/extjs/extjs_integration.html' target='_blank'>видео</a><br>
<br>
вывести сообщение<br>
<br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; function Button444JSClick($sender, $params)</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$this-&#62;ExtMessageBox1-&#62;Show(&#39;привет&#39;,&#39;это мой текст&#39;,300,&#39;применить&#39;)</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ?&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //Add your javascript code here</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#60;?php</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</div></ol></div></div></div></div><br>
<br>
или так (многострочный со ссылкой)<br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; function Button444JSClick($sender, $params)</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$this-&#62;ExtMessageBox1-&#62;Show(&#39;привет&#39;,&#39;это мой текст&#60;br&#62;это вторая строка&#60;br&#62;а здесь делаем ссылку &#60;a href=google.com&#62;google.com&#60;/a&#62;&#39;,300,&#39;применить&#39;)</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ?&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //Add your javascript code here</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#60;?php</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</div></ol></div></div></div></div><br>
<br>
<br>
для твоей задачи должно работать так<br>
1. ставим на форму Edit1, Button1, ExtMessageBox1<br>
2. для Button1 прописываем JS событие (проверяем на не пустое значение в Edit1)<br>
<br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;function Button1JSClick($sender, $params)</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ?&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //Add your javascript code here</div><div class="code_line">&nbsp;</div><div class="code_line">function ExtMessageBox(xtitle,xmsg,xwidth)</div><div class="code_line">{</div><div class="code_line">Ext.MessageBox.show({</div><div class="code_line">title: xtitle,</div><div class="code_line">msg: xmsg,</div><div class="code_line">width:xwidth,</div><div class="code_line">buttons: Ext.MessageBox.OK,</div><div class="code_line">multiline: false,</div><div class="code_line">fn: ExtMessageBox1JSClick</div><div class="code_line">});</div><div class="code_line">&nbsp;</div><div class="code_line">}</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; addrurl = document.getElementById(&quot;Edit1&quot;).value;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (addrurl != &quot;&quot;)</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;location.href=addrurl;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;else</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ExtMessageBox(&#39;привет&#39;,&#39;Не нужно вводить неправильный url !&#39;,300);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#60;?php</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</div></ol></div></div></div></div>]]></description>
        <author>vicis</author>
        <category>Delphi for PHP</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=284340&amp;view=findpost&amp;p=2393729</guid>
        <pubDate>Sun, 11 Oct 2009 18:43:24 +0000</pubDate>
        <title>Джава и PHP и EXTJS</title>
        <link>https://forum.sources.ru/index.php?showtopic=284340&amp;view=findpost&amp;p=2393729</link>
        <description><![CDATA[RODNOC: как свезать все компоненти <br><br>например у меня есть Edit1  и кнопачка я хочу когда нажимается кнопачка что бы он проверяль что написено на edit1 типо я написал 1234 и он дольжен  откривать другой сайт есть ли не правелно должно поевится окошко &#036;this-&gt;ExtMessageBox1-&gt;Show <br><br>извените что не грамотна]]></description>
        <author>RODNOC</author>
        <category>Delphi for PHP</category>
      </item>
	
      </channel>
      </rss>
	