• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 249
  • Last Modified:

java plug in question

hi

can someone help me with this..

<OBJECT classid='clsid:8AD9C840-044E-11D1-B3E9-00805F499D93'
    width=600 height=400 MAYSCRIPT
    codebase='http://java.sun.com/products/plugin/autodl/jinstall-1_4_2-windows-i586.cab#Version=1,4,2,0'>
<PARAM name='archive' value='peoplechat.jar,classes12.jar' >
    <PARAM name='code' value='PeopleClientApplet.class'>
    <PARAM name='type' value='application/x-java-applet;jpi-version=1.4.2'>
     <PARAM NAME='custno'  VALUE=\"$zcust\">
      <PARAM NAME='cust' VALUE=\"$custname\">
        No Java 2 SDK, Standard Edition v 1.4.2 support for APPLET!!
        <a href=\"http://www.java.com/en/download/download_the_latest.jsp\">click to install</a>
        <COMMENT>
                    <EMBED type='application/x-java-applet;jpi-version=1.4' width='200'
                       height='200' align='baseline' code=value='PeopleClientApplet.class'
                       pluginspage='http://www.java.com/en/download/download_the_latest.jsp'>
                        <NOEMBED>
                            No Java 2 SDK, Standard Edition v 1.4 support for APPLET!!
                                    <a href=\"http://www.java.com/en/download/download_the_latest.jsp\">click to install</a>
                        </NOEMBED>
                    </EMBED>
    </COMMENT>
</OBJECT>


$sql = "insert into sub.peoplechat_log(CUSTOMER_NO,ACTIVE,LOGDATE,NAME)
            values('$custno','Y',sysdate,'$cust')";

$ora_sql = OCIParse($oracle_conn,$sql);

ociexecute($ora_sql) or die("Couldn't execute sql query!");


if someone doesnt have the plug in installed..it does install it for them...but i dont want it to inset into the table unless they have finished installing and log in..is there a way to do it..

whats happening is if someone logs in..thye dont have the plug in..they click yes..it installs..i dont actually creat the socket connection until then..but i insert into the table on the html page as i dont wanna have oracle connection within the applt..


so the proces flow is launch applet..insert into table , enter the applet and create socket..
but i dont want it to insert unless the plug in is successful..makes sense?
0
desiboy1974
Asked:
desiboy1974
  • 2
1 Solution
 
objectsCommented:
delay the table insert until you recieve the connection.
0
 
desiboy1974Author Commented:
but in that case..i have to insert the table within the applet code...after the socket connection..i'm trying to avoid any oracle connections within the applet.i want to do it on the page thats launching the applet
0
 
objectsCommented:
no i meant do the insert (on the server) when the server recieves the connection from the applet.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now