------=_NextPart_000_0009_01C4853A.64039410
Content-Type: text/plain;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Try this:

replace:

<INPUT TYPE=3D""IMAGE"" NAME=3D""image1"" img border=3D""0"" =
SRC=3D""file:///c:/inetpub/wwwroot/repplus/miniprinter.gif"" =
WIDTH=3D""24"" HEIGHT=3D""19"" alt=3D""Print Requisition"" =
onclick=3D""JAVASCRIPT:printPage()

with:

<a href=3D"#" onclick=3D"printPage()"><img =
SRC=3D"file:///c:/inetpub/wwwroot/repplus/miniprinter.gif" WIDTH=3D"24" =
HEIGHT=3D"19" alt=3D"Print Requisition" border=3D"0" ></a>

I think what is happening is that the IMAGE is doing a form submit. All =
that stuff after the tag is WLD stuff to handle the form submission.=20

jb
  "Mike Minor" <[EMAIL PROTECTED]> wrote in message =
news:[EMAIL PROTECTED]
  Hello all...

  I have the following line of html in a weblink application:

  <td width=3D"123" align=3D"right"><input type=3D"image" =
name=3D"image1" img border=3D"0" =
src=3D"file:///c:/inetpub/wwwroot/repplus/printer.gif" width=3D"24" =
height=3D"19" alt=3D"Print Requisition" nextpage=3DLLORD.ASP =
onclick=3D"Javascript:printPage()"></td>

  The intent is to place an icon on the page that when clicked, will =
open the print dialog window, allow the user to click the print button =
to print the page, and then return to another page in the application.

  It works ok, however, when the page is compiled by weblink developer, =
and the application is run, the following bit of code actually gets =
printed to the browser screen right below the image:

  function wldInitialisePage() {
      DocLoaded=3D'done' ;
      Pressed =3D false ;
  }

  To get rid of this, I opened the routine generated by weblink =
developer, found where this code is written to the browser and inserted =
the HTML remark code w "<!--" and w "-->" on the lines before and after =
the code that gets displayed.

  I'm sure I have some little something wrong in the line of HTML that =
is causing Developer to compile the routine incorrectly, but have now =
pulled out what little hair I had left, and still can't find it. I can =
go in and manually fix the routine each time I compile, but that gets a =
little tiresome.

  Weblink Developer version is 4.3,  Build: 4.30.605.401d, running on =
windows XP pro, using IIS.

  Any help would be greatly appreciated.


  Thank you,

  Mike Minor
  Z-Code Systems, Inc.
  [EMAIL PROTECTED]
  Phone: 407-656-4990

------=_NextPart_000_0009_01C4853A.64039410
Content-Type: text/html;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1458" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><SPAN class=3D260243922-18082004><FONT face=3DTahoma =
color=3D#0000ff size=3D2>Try=20
this:</FONT></SPAN></DIV>
<DIV>
<DIV><SPAN class=3D260243922-18082004><FONT face=3DTahoma =
color=3D#0000ff=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D260243922-18082004><FONT face=3DTahoma =
color=3D#0000ff=20
size=3D2>replace:</FONT></SPAN></DIV>
<DIV><SPAN class=3D260243922-18082004><FONT face=3DTahoma =
color=3D#0000ff=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D260243922-18082004><FONT face=3DTahoma =
color=3D#0000ff=20
size=3D2>&lt;INPUT TYPE=3D""IMAGE"" NAME=3D""image1"" img border=3D""0"" =
SRC=3D""<A=20
href=3D"file:///c:/inetpub/wwwroot/repplus/miniprinter.gif">file:///c:/in=
etpub/wwwroot/repplus/miniprinter.gif</A>""=20
WIDTH=3D""24"" HEIGHT=3D""19"" alt=3D""Print Requisition""=20
onclick=3D""JAVASCRIPT:printPage()</FONT></SPAN></DIV>
<DIV><SPAN class=3D260243922-18082004><FONT face=3DTahoma =
color=3D#0000ff=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D260243922-18082004><FONT face=3DTahoma =
color=3D#0000ff=20
size=3D2>with:</FONT></SPAN></DIV>
<DIV><SPAN class=3D260243922-18082004><FONT face=3DTahoma =
color=3D#0000ff=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D260243922-18082004><FONT face=3DTahoma =
color=3D#0000ff size=3D2>&lt;a=20
href=3D"#" onclick=3D"printPage()"&gt;&lt;img SRC=3D"<A=20
href=3D"file:///c:/inetpub/wwwroot/repplus/miniprinter.gif">file:///c:/in=
etpub/wwwroot/repplus/miniprinter.gif</A>"=20
WIDTH=3D"24" HEIGHT=3D"19" alt=3D"Print Requisition"=20
border=3D"0"&nbsp;&gt;&lt;/a&gt;</FONT></SPAN></DIV>
<DIV><SPAN class=3D260243922-18082004><FONT face=3DTahoma =
color=3D#0000ff=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D260243922-18082004><FONT face=3DTahoma =
color=3D#0000ff size=3D2>I=20
think what is happening is that the IMAGE is doing a form submit. All =
that stuff=20
after the tag is WLD stuff to handle the form submission. =
</FONT></SPAN></DIV>
<DIV><SPAN class=3D260243922-18082004><FONT face=3DTahoma =
color=3D#0000ff=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D260243922-18082004><FONT face=3DTahoma =
color=3D#0000ff=20
size=3D2>jb</FONT></SPAN></DIV></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV>"Mike Minor" &lt;<A=20
  =
href=3D"mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]</A>&gt; =
wrote in=20
  message <A=20
  =
href=3D"news:[EMAIL PROTECTED]">news:[EMAIL PROTECTED]
m</A>...</DIV>
  <DIV><FONT face=3DTahoma size=3D2>Hello all...</FONT></DIV>
  <DIV><FONT face=3DTahoma size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DTahoma size=3D2>I have the following line of html in =
a weblink=20
  application:</FONT></DIV>
  <DIV><FONT face=3DTahoma size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DTahoma size=3D2>&lt;td width=3D"123" =
align=3D"right"&gt;</FONT><FONT=20
  face=3DTahoma size=3D2>&lt;input type=3D"image" name=3D"image1" img =
border=3D"0"=20
  src=3D"file:///c:/inetpub/wwwroot/repplus/printer.gif" width=3D"24" =
height=3D"19"=20
  alt=3D"Print Requisition" nextpage=3DLLORD.ASP=20
  onclick=3D"Javascript:printPage()"&gt;</FONT><FONT face=3DTahoma=20
  size=3D2>&lt;/td&gt;</FONT></DIV>
  <DIV><FONT face=3DTahoma size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DTahoma size=3D2>The intent is to place an icon on =
the page that=20
  when clicked, will open the print dialog window, allow the user to =
click the=20
  print button to print the page, and then return to another page in the =

  application.</FONT></DIV>
  <DIV><FONT face=3DTahoma size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DTahoma size=3D2>It works ok, however, when the page =
is compiled=20
  by weblink developer, and the application is run, the following bit of =
code=20
  actually gets printed to the browser screen right below the=20
image:</FONT></DIV>
  <DIV><FONT face=3DTahoma size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DTahoma size=3D2>function wldInitialisePage()=20
  {<BR>&nbsp;&nbsp;&nbsp; DocLoaded=3D'done' ;<BR>&nbsp;&nbsp;&nbsp; =
Pressed =3D=20
  false ;<BR>}</FONT></DIV>
  <DIV><FONT face=3DTahoma size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DTahoma size=3D2>To get rid of this, I opened the =
routine=20
  generated by weblink developer, found where this code is written to =
the=20
  browser&nbsp;and inserted the HTML remark code w "&lt;!--" and w =
"--&gt;" on=20
  the lines&nbsp;before and after the code that gets =
displayed.</FONT></DIV>
  <DIV><FONT face=3DTahoma size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DTahoma size=3D2>I'm sure I have some little =
something wrong in=20
  the line of HTML that is causing Developer to compile the routine =
incorrectly,=20
  but have now pulled out what little hair I had left, and still can't =
find it.=20
  I can go in and manually fix the routine each time I compile, but that =
gets a=20
  little tiresome.</FONT></DIV>
  <DIV><FONT face=3DTahoma size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DTahoma size=3D2>Weblink Developer version is =
4.3,&nbsp;<FONT=20
  face=3D"Times New Roman"><FONT size=3D3> </FONT><FONT face=3DTahoma =
size=3D2>Build:=20
  4.30.605.401d, running on windows XP pro, using=20
IIS.</FONT></FONT></FONT></DIV>
  <DIV><FONT face=3DTahoma size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DTahoma size=3D2>Any help would be greatly =
appreciated.</DIV>
  <DIV><BR></DIV></FONT>
  <DIV><FONT face=3DTahoma size=3D2>Thank you,</FONT></DIV>
  <DIV><FONT face=3DTahoma size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DTahoma size=3D2>Mike Minor<BR>Z-Code Systems, =
Inc.<BR></FONT><A=20
  href=3D"mailto:[EMAIL PROTECTED]"><FONT face=3DTahoma=20
  size=3D2>[EMAIL PROTECTED]</FONT></A><FONT face=3DTahoma =
size=3D2> <BR>Phone:=20
  407-656-4990<BR></FONT></DIV></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_0009_01C4853A.64039410--


Reply via email to