p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

proasp_codeclinic thread: Problem creating variable based applet


Message #1 by "John Duckett" <john.duckett@i...> on Thu, 22 Feb 2001 16:55:50
Hi John,


Hope this would work for you,

Use single quotes instead of double quotes for nesting
that's why it's giving an error.eg.
> Response.Write("<param name='buttons' value='' ....
etc.

BHANU 


--- John Duckett <john.duckett@i...> wrote:
> Guru's
> I am having a problem producing the vbscript/HTML to
> write variable based applet value 
> <param>'s.
> The "Working Applet Example Code" below works fine. 
> The applet is instantiated and all is 
> well.  My problem is to be able to allow
> a text 
> field to supply the value parameter in each <param>
> line.  
> I need help writing the Response.Write line below in
> the problem code section.  Thanks for 
> your help.
> John
> 
> <Body
> 
>      <tr> 
>         <td width="120"><font
> color="#FFFFFF"><b>Buttons</b></font></td>
>         <td width="138"><font color="#FFFFFF"><b> 
>           <input type="text" name="textfield3"
> value="1">
>           </b></font></td>
>       </tr>
> .
> .
> .
> .
> .
> "Working Applet Example Code"
> <applet code="button.class" width=80 height=28>
> 
> <param name="buttons"         value="1">
> <param name="color"         value="cb0000">
> <param name="direction"     value="1">
> <param name="border width"  value="3">
> <param name="degree"        value="50">
> <param name="style"         value="1">
> <param name="f_size"        value="14">
> <param name="f_style"       value="0">
> <param name="f_color"       value="ffffff">
> <param name="f_color2"      value="00ff00">
> <param name="position"      value="0">
> <param name="f_offset"      value="9">
> <param name="font"          value="Helvetica">
> <param name="label 0"       value="Internet">
> <param name="link 0"        value="whatever.htm">
> <param name="image 0"       value="">
> <param name="frame 0"       value="_self">
> 
> </applet>
> 
> 
> "HTML Code Problem"
> 
> <applet code="button.class" width=80 height=28>
> <%
> Response.Write("""<param name=""buttons"" value="" 
> & textfield3.value & ">"")       HELP!!!
> 
> <param       >
> .
> .
> .
> %>
> 
> </applet>
> 
> ---
> http://www.asptoday.com - the leading site for
> timely,
> in-depth information for ASP developers everywhere.
>

  Return to Index