Ahh, my bad. It's late here ;-)
Okie Dokie. The following is untested, but *should* work ;-)
Create the following directory:
app/webroot/applets
Put your applet files in this directory
in your view:
<APPLET CODE="<?php echo $html->url("/applets/ATimePicker.class"); ?>"
ARCHIVE="<?php echo
$html->url("/applets/ATimePicker.jar"); ?>" WIDTH=100 HEIGHT=260
MAYSCRIPT>
<PARAM name="form" VALUE="jobs_time">
<PARAM name="field1" VALUE="start_time">
<PARAM name="format1" VALUE="H:M">
<PARAM name="selint" VALUE="10">
</APPLET>
On Jan 31, 5:06 pm, Brian <[EMAIL PROTECTED]> wrote:
> Yes that is what I'm trying to do. I stated in my first posting "If I
> try to inset the applet into one of my model views...". I am trying to
> insert the applet into a view and I can't find the applet.
> Thanks,
> Brian
>
> On Jan 31, 10:53 am, RichardAtHome <[EMAIL PROTECTED]> wrote:
>
> > Don't put it in the model, put it in the view (or the layout if you
> > want it to appear on every page).
>
> > On Jan 31, 3:15 pm, Brian <[EMAIL PROTECTED]> wrote:
>
> > > I have read several of the post on here concerning adding applets to
> > > my website. I still can't figure out how to get the applet
> > > at:http://java.arcadevillage.com/applets/timepica.htmtoloadwithin a
> > > model. I can place the applet and the test page it comes with into
> > > webroot and it works fine. If I try to inset the applet into one of my
> > > model views and reference back to the applet in webroot using
> > > $html->webroot it will not load. I even tried moving the applet into the
>
> > > model directory but no luck with that either. The java counsel errors
> > > of course state that the class doesn't exist.
>
> > > Code Snippet from view:
>
> > > <?php $url = $html->webroot . 'ATimePicker.class'; ?>
> > > <?php $ur2 = $html->webroot . "ATimePicker.jar"; ?>
>
> > > <APPLET CODE="<?php echo $html->url($url); ?>" ARCHIVE="<?php echo
> > > $html->url($url2); ?>" WIDTH=100 HEIGHT=260 MAYSCRIPT>
> > > <PARAM name="form" VALUE="jobs_time">
> > > <PARAM name="field1" VALUE="start_time">
> > > <PARAM name="format1" VALUE="H:M">
> > > <PARAM name="selint" VALUE="10">
> > > </APPLET>
>
> > > Any suggestions or examples on how I can get the applet to load within
> > > a model view? Thank you in advance.
> > > Brian
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---