Link to home
Start Free TrialLog in
Avatar of desiboy1974
desiboy1974

asked on

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?
Avatar of Mick Barry
Mick Barry
Flag of Australia image

delay the table insert until you recieve the connection.
Avatar of desiboy1974
desiboy1974

ASKER

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
ASKER CERTIFIED SOLUTION
Avatar of Mick Barry
Mick Barry
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial