Autor Zpráva
wanilkus
Profil
Stiahol som si applet Pjirc zo stranky www.pjirc.com....

je tam tento zdrojovy kod na spustenie javy:

<html>
<head>
<title>IRCApplet</title>
</head>
<body>
<h1>Test page for IRCApplet Class</h1><hr>
<applet code=IRCApplet.class archive="irc.jar,pixx.jar" width=640 height=400>
<param name="CABINETS" value="irc.cab,securedirc.cab,pixx.cab">

<param name="nick" value="Nick na chate">
<param name="alternatenick" value="Anon???">
<param name="name" value="Java User">
<param name="host" value="Sever irc">
<param name="gui" value="pixx">
<param name="command1" value="join #diskusna miestnost na servery">

<param name="quitmessage" value="PJIRC forever!">
<param name="asl" value="true">
<param name="useinfo" value="true">

<param name="style:bitmapsmileys" value="true">
<param name="style:smiley1" value=":) img/sourire.gif">
<param name="style:smiley2" value=":-) img/sourire.gif">
<param name="style:smiley3" value=":-D img/content.gif">
<param name="style:smiley4" value=":d img/content.gif">
<param name="style:smiley5" value=":-O img/OH-2.gif">
<param name="style:smiley6" value=":o img/OH-1.gif">
<param name="style:smiley7" value=":-P img/langue.gif">
<param name="style:smiley8" value=":p img/langue.gif">
<param name="style:smiley9" value=";-) img/clin-oeuil.gif">
<param name="style:smiley10" value=";) img/clin-oeuil.gif">
<param name="style:smiley11" value=":-( img/triste.gif">
<param name="style:smiley12" value=":( img/triste.gif">
<param name="style:smiley13" value=":-| img/OH-3.gif">
<param name="style:smiley14" value=":| img/OH-3.gif">
<param name="style:smiley15" value=":'( img/pleure.gif">
<param name="style:smiley16" value=":$ img/rouge.gif">
<param name="style:smiley17" value=":-$ img/rouge.gif">
<param name="style:smiley18" value="(H) img/cool.gif">
<param name="style:smiley19" value="(h) img/cool.gif">
<param name="style:smiley20" value=":-@ img/enerve1.gif">
<param name="style:smiley21" value=":@ img/enerve2.gif">
<param name="style:smiley22" value=":-S img/roll-eyes.gif">
<param name="style:smiley23" value=":s img/roll-eyes.gif">
<param name="style:backgroundimage" value="true">
<param name="style:backgroundimage1" value="all all 0 background.gif">
<param name="style:sourcefontrule1" value="all all Serif 12">
<param name="style:floatingasl" value="true">

<param name="pixx:timestamp" value="true">
<param name="pixx:highlight" value="true">
<param name="pixx:highlightnick" value="true">
<param name="pixx:nickfield" value="true">
<param name="pixx:styleselector" value="true">
<param name="pixx:setfontonstyle" value="true">

</applet>

<hr></body>
</html>


Rad by som aby este pred otvorenim tejto stranyk mohol uzivatel zvolit svoj nick a nemusel pouzit nick ktory je vopred definovany.....

preto som si vytvoril nieaco ako pred html stranku kde prostrednictvom input odosle udaje do stranky s java appletom......



<FORM id=ietest name=loginform onsubmit="setjs();return true;"
action=adresa stranky s java appletom.html method=post>
<DIV><INPUT type=hidden value=nonjs name=interface> </DIV>
<TABLE style="MARGIN-LEFT: auto; MARGIN-RIGHT: auto">
<TBODY>
<TR>
<TD>Rs nick</TD>
<TD><INPUT value=miesto na vypisanie nicku..... name=nick></TD></TR>
<TR>
</TBODY></TABLE>
<DIV style="TEXT-ALIGN: center"><INPUT type=submit value="Vstup">
</DIV></FORM></DIV></DIV></DIV><!--End content -->


bol by som rad ak by mi niekto poradil ako mam prepisat kod na stranke s java appletom tak aby si nick natiahla s prvej stranky kde sa nick napise a prostrednictvom Input odosle do stranky a appletm.... Za Vase rady vopred dakujem!! robim to prvy krat......
esemeska
Profil
tu stranku s apletem si das jako php a pak uz jen
<?php
$nick = $_POST["nick"];

echo"
<param name="name" value="$nick"> ";?>
wanilkus
Profil
tu stranku s apletem si das jako php a pak uz jen
<?php
$nick = $_POST["nick"];

echo"
<param name="name" value="$nick"> ";?>

´

skusal som to tak no neslo mi to potom som este pre istotu skuasil aj



<?php
$nick = $_POST["nick"];

echo"
<param name="nick" value="$nick"> ";?>



no ani to mi neslo

ak mam html kod pravej stranky kde sa urcuje nick taky:


<FORM id=ietest name=loginform onsubmit="setjs();return true;"
action=subor s appletom.php method=post>
<DIV><INPUT type=hidden value=nonjs name=interface> </DIV>
<TABLE style="MARGIN-LEFT: auto; MARGIN-RIGHT: auto">
<TBODY>
<TR>
<TD>Rs nick</TD>
<TD><INPUT value=miesto na nick name=nick></TD></TR>
<TR>
</TBODY></TABLE>
<DIV style="TEXT-ALIGN: center"><INPUT type=submit value="Vstup">
</DIV></FORM></DIV></DIV></DIV><!--End content --


a kod stranky a appletom v php


<html>
<head>
<title>IRCApplet</title>


</head>
<body>
<h1>Test page for IRCApplet Class</h1><hr>
<applet code=IRCApplet.class archive="irc.jar,pixx.jar" width=640 height=400>
<param name="CABINETS" value="irc.cab,securedirc.cab,pixx.cab">


<?php
$nick = $_POST["nick"];

echo"
<param name="nick" value="$nick"> ";?>



<param name="alternatenick" value="Anon???">
<param name="name" value="Java User">
<param name="host" value="irc server">
<param name="gui" value="pixx">
<param name="command1" value="join #nazov miestnosti">

<param name="quitmessage" value="PJIRC forever!">
<param name="asl" value="true">
<param name="useinfo" value="true">

<param name="style:bitmapsmileys" value="true">
<param name="style:smiley1" value=":) img/sourire.gif">
<param name="style:smiley2" value=":-) img/sourire.gif">
<param name="style:smiley3" value=":-D img/content.gif">
<param name="style:smiley4" value=":d img/content.gif">
<param name="style:smiley5" value=":-O img/OH-2.gif">
<param name="style:smiley6" value=":o img/OH-1.gif">
<param name="style:smiley7" value=":-P img/langue.gif">
<param name="style:smiley8" value=":p img/langue.gif">
<param name="style:smiley9" value=";-) img/clin-oeuil.gif">
<param name="style:smiley10" value=";) img/clin-oeuil.gif">
<param name="style:smiley11" value=":-( img/triste.gif">
<param name="style:smiley12" value=":( img/triste.gif">
<param name="style:smiley13" value=":-| img/OH-3.gif">
<param name="style:smiley14" value=":| img/OH-3.gif">
<param name="style:smiley15" value=":'( img/pleure.gif">
<param name="style:smiley16" value=":$ img/rouge.gif">
<param name="style:smiley17" value=":-$ img/rouge.gif">
<param name="style:smiley18" value="(H) img/cool.gif">
<param name="style:smiley19" value="(h) img/cool.gif">
<param name="style:smiley20" value=":-@ img/enerve1.gif">
<param name="style:smiley21" value=":@ img/enerve2.gif">
<param name="style:smiley22" value=":-S img/roll-eyes.gif">
<param name="style:smiley23" value=":s img/roll-eyes.gif">
<param name="style:backgroundimage" value="true">
<param name="style:backgroundimage1" value="all all 0 background.gif">
<param name="style:sourcefontrule1" value="all all Serif 12">
<param name="style:floatingasl" value="true">

<param name="pixx:timestamp" value="true">
<param name="pixx:highlight" value="true">
<param name="pixx:highlightnick" value="true">
<param name="pixx:nickfield" value="true">
<param name="pixx:styleselector" value="true">
<param name="pixx:setfontonstyle" value="true">

</applet>

<hr></body>
</html>


tak mi po zadani nicku pocas loadingovania javy napise
[img]
www.befounded.own/klan-cz-sk/irc/chyba.JPG[/img]


Ja sa v tom velmi nevyznam mozno som spravil niekde zakladnu chybu bude rad ak mi znova poradis...... Dakujem
wanilkus
Profil


tu je to co mi vypise hore je zly odkaz........ toto vypise pocas loadingovania javy.....
esemeska
Profil
hele ajk jsem sem psal
echo"
<param name="name" value="$nick"> ";?>

tak pred uvozovkama ma byt zpetne tlacitko, jenze se to po odeslani nejak vytrati, takze tady to mas jeste jednou s tim, ze

zpetne lomitko bude jako 1

echo"
<param name=1"name1" value=1"$nick1"> ";?>
wanilkus
Profil
Je mi luto, ale nejde to.... http://www.befounded.own.cz/klan-cz-sk/csrune.htm vypise chybu php Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in absolutna adresa on line 17
Toto téma je uzamčeno. Odpověď nelze zaslat.