<?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=10573&amp;view=findpost&amp;p=98295</guid>
        <pubDate>Wed, 04 Sep 2002 19:29:15 +0000</pubDate>
        <title>Передача параметров в Aplet</title>
        <link>https://forum.sources.ru/index.php?showtopic=10573&amp;view=findpost&amp;p=98295</link>
        <description><![CDATA[andrey: Не поддерживается динамические параметры &nbsp; :( :( :( Можно сделать так<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;HTML&#62;&#60;br&#62;&#60;HEAD&#62;&#60;br&#62;&#60;META NAME=&quot;GENERATOR&quot; Content=&quot;Microsoft Visual Studio 6.0&quot;&#62;&#60;br&#62;&#60;TITLE&#62;&#60;/TITLE&#62;&#60;br&#62;&#60;/HEAD&#62;&#60;br&#62;&#60;SCRIPT LANGUAGE=&quot;JavaScript&quot;&#62;&#60;br&#62; &nbsp; &nbsp; &nbsp;function performSearch(){&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;var str;&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;str=&quot;&#60;APPLET CODE=\&quot;Search\&quot; HEIGHT=\&quot;500\&quot; WIDTH=\&quot;601\&quot; CODEBASE=\&quot;.\&quot;&#62;&quot;;&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;str+=&quot;&#60;PARAM NAME=\&quot;kwrds\&quot; VALUE=\&quot;&quot;+document.forms[0].kwrds.value+&quot;\&quot;&#62;&quot;;&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;str+=&quot;&#60;PARAM NAME=\&quot;within\&quot; VALUE=\&quot;&quot;+document.forms[0].within.value+&quot;\&quot;&#62;&quot;;&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;str+=&quot;&#60;PARAM NAME=\&quot;auth\&quot; VALUE=\&quot;&quot;+document.forms[0].auth.value+&quot;\&quot;&#62;&quot;;&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;str+=&quot;&#60;PARAM NAME=\&quot;amode\&quot; VALUE=\&quot;&quot;+document.forms[0].amode.value+&quot;\&quot;&#62;&quot;;&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;str+=&quot;&#60;/APPLET&#62;&quot;;&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//document.write(str);&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ClientArea.innerHTML=str;&#60;br&#62; &nbsp; &nbsp; &nbsp;}&#60;br&#62;&#60;/SCRIPT&#62;&#60;br&#62;&#60;BODY&#62;&#60;br&#62;&#60;br&#62;&#60;P ID=&quot;ClientArea&quot;&#62;&#60;br&#62;&#60;FORM ID=&quot;Query&quot;&#62;&#60;br&#62;&#60;br&#62;&#60;P&#62;Keywords&#60;INPUT type=&quot;text&quot; id=&quot;kwrds&quot; name=&quot;kwrds&quot;&#62;&nbsp;within&#60;SELECT&#60;br&#62;id=&quot;within&quot; name=&quot;within&quot;&#62; &#60;OPTION value=0&#60;br&#62; &nbsp; &nbsp; &nbsp;selected&#62;Titles&#60;/OPTION&#62;&#60;OPTION value=&quot;1&quot;&#62;Abstracts&#60;/OPTION&#62;&#60;OPTION&#60;br&#62; &nbsp; &nbsp; &nbsp;value=&quot;2&quot;&#62;Titles &amp; Abstracts&#60;/OPTION&#62;&#60;/SELECT&#62;&#60;/P&#62;&#60;br&#62;&#60;P&#62;Authors&#60;INPUT id=&quot;auth&quot; type=&quot;text&quot; name=&quot;auth&quot;&#62; / &#60;SELECT id=&quot;amode&quot;&#60;br&#62;name=&quot;amode&quot;&#62; &#60;OPTION value=&quot;0&quot; selected&#62;All authors&#60;/OPTION&#62;&#60;OPTION value=&quot;1&quot;&#62;Any&#60;br&#62; &nbsp; &nbsp; &nbsp;authors&#60;/OPTION&#62;&#60;/SELECT&#62;&#60;/P&#62;&#60;br&#62;&#60;A HREF=&quot;JavaScript:performSearch()&quot;&#62;&#60;FONT style=&quot;BACKGROUND-COLOR: blue&quot;&#60;br&#62;color=yellow&#62;Search&#60;/FONT&#62;&#60;/A&#62;&#60;br&#62;&#60;br&#62;&#60;/FORM&#62;&#60;br&#62;&#60;/P&#62;&#60;br&#62;&#60;br&#62;&#60;/BODY&#62;&#60;br&#62;&#60;/HTML&#62;&#60;br&#62;</div></ol></div></div></div></div><script>preloadCodeButtons('1');</script>]]></description>
        <author>andrey</author>
        <category>Java</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=10573&amp;view=findpost&amp;p=98294</guid>
        <pubDate>Wed, 04 Sep 2002 03:32:10 +0000</pubDate>
        <title>Передача параметров в Aplet</title>
        <link>https://forum.sources.ru/index.php?showtopic=10573&amp;view=findpost&amp;p=98294</link>
        <description><![CDATA[gromov: Спасибо за помощь,но у меня ничего не получилось &nbsp;с передачей данных в <br>аплет через переменную <br>Вот html <br>&lt;html&gt; <br> &nbsp;&lt;head&gt; <br> &nbsp; &nbsp; &nbsp;&lt;title&gt;Simple Graph (1.1)&lt;/title&gt; <br> &nbsp;&lt;/head&gt; <br> &nbsp;&lt;body&gt; <br> &nbsp;&lt;\% <br> &nbsp;var Seria=&quot;1.2;2.3;1.2;2.3;1.2;2.3;&quot; <br> &nbsp;\%&gt; <br> &nbsp; &nbsp; &nbsp;&lt;h1&gt;Simple Graph(1.1)&lt;/h1&gt; <br> &nbsp; &nbsp; &nbsp;&lt;hr&gt; <br> &nbsp; &nbsp; &nbsp;&lt;applet code=GraphApplet.class width=500 height=320&gt; <br> &nbsp; &nbsp; &nbsp; &nbsp;alt=&quot;Your browser understands the &lt;APPLET&gt; tag but isn't running the applet, for <br>some reason.&quot; <br> &nbsp; &nbsp; &nbsp; &nbsp;Your browser is completely ignoring the &lt;APPLET&gt; tag! <br> &nbsp; &nbsp; &nbsp;&lt;param name=&quot;Seria&quot; value=Seria &gt; <br> &nbsp; &nbsp; &nbsp;&lt;/applet&gt; <br> &nbsp; &nbsp; &nbsp;&lt;hr&gt; <br> &nbsp;&lt;/body&gt; <br>&lt;/html&gt; &nbsp; <br> <br> <br>Вот аплет <br> <br>import java.awt.Graphics; <br> <br>public class GraphApplet extends java.applet.Applet { <br> &nbsp;boolean isStandalone = false; <br> &nbsp;public void paint(Graphics g) { <br> &nbsp; &nbsp;} <br> &nbsp;public void init() { <br>String keywords; <br>try { <br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;keywords=getParameter(&quot;Seria&quot;); <br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if (keywords==null)keywords=&quot;&quot;; &nbsp;<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}catch(Exception e) { &nbsp;<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;keywords=&quot;&quot;; <br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;System.out.println(&quot;INITARAMETERS can't read keywords! Using \&quot;\&quot;&quot;); &nbsp;<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;} &nbsp;<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;System.out.println(&quot;INITARAMETERS &quot;+keywords+&quot; \n&quot;); <br> <br> &nbsp;} <br> &nbsp;public String getAppletInfo() { <br> &nbsp; &nbsp;return &quot;Draws a sin graph.&quot;; <br> &nbsp;} <br> &nbsp;public GraphApplet() { <br> &nbsp; &nbsp;try &nbsp;{ <br> &nbsp; &nbsp; &nbsp;jbInit(); <br> &nbsp; &nbsp;} <br> &nbsp; &nbsp;catch (Exception e) { <br> &nbsp; &nbsp; &nbsp;e.printStackTrace(); <br> &nbsp; &nbsp;} <br> &nbsp;} <br> &nbsp;private void jbInit() throws Exception { <br> &nbsp;} <br>} <br> <br> <br> <br>И выводится <br> &nbsp; &nbsp; &nbsp; &nbsp; INITARAMETERS keywords Seria, <br> &nbsp; &nbsp; &nbsp; &nbsp; а хотелось бы <br> &nbsp; &nbsp; &nbsp; &nbsp; INITARAMETERS keywords 1.2;2.3;1.2;2.3;1.2;2.3; <br> <br> <br>]]></description>
        <author>gromov</author>
        <category>Java</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=10573&amp;view=findpost&amp;p=98293</guid>
        <pubDate>Mon, 02 Sep 2002 16:51:26 +0000</pubDate>
        <title>Передача параметров в Aplet</title>
        <link>https://forum.sources.ru/index.php?showtopic=10573&amp;view=findpost&amp;p=98293</link>
        <description><![CDATA[andrey: Можно!!!!<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;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;try {&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;keywords=getParameter(&quot;keywords&quot;);&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if (keywords==null)keywords=&quot;&quot;;&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}catch(Exception e) {&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;keywords=&quot;&quot;;&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;System.out.println(&quot;INIT:PARAMETERS can&#39;t read keywords! Using \&quot;\&quot;&quot;);&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}&#60;br&#62;</div></ol></div></div></div></div>]]></description>
        <author>andrey</author>
        <category>Java</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=10573&amp;view=findpost&amp;p=98292</guid>
        <pubDate>Mon, 02 Sep 2002 05:06:14 +0000</pubDate>
        <title>Передача параметров в Aplet</title>
        <link>https://forum.sources.ru/index.php?showtopic=10573&amp;view=findpost&amp;p=98292</link>
        <description><![CDATA[gromov: Помогите !<br>Можно ли и как передать переменное значение параметра в аплет?<br>т.е в html имеем строковую переменную, значение которой передаем в аплет.<br>   <br>&lt;applet code=GraphApplet.class width=500 height=320&gt;<br>      alt=&quot;Your browser understands the &lt;APPLET&gt; tag but isn't running the applet, for some reason.&quot;<br>      Your browser is completely ignoring the &lt;APPLET&gt; tag!<br>      &lt;param name=&quot;Seria&quot; value= ......&gt;<br>      &lt;/applet&gt;<br><br>Буду крайне благодарен. :o]]></description>
        <author>gromov</author>
        <category>Java</category>
      </item>
	
      </channel>
      </rss>
	