Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: Auto-fill form data


Message #1 by gary.c.justus@s... on Thu, 16 Aug 2001 14:39:22
--- gary.c.justus@s... wrote:
> Let me correct myself regarding "server-side"
> scripts...what I mean is any 
> way using other methods such as .asp, .jsp,
> etc...our web server is on a 
> unix platform, which I have no experience
> using..Thanks again..
>

You can use the Common Dialog Object (existing in an
OCX file named Comdlg32.ocx). Note that this file
isn't provided with the Windows installing. You will
find it on a Computer with VisuyalStudio installed.
It's a small file that provides the most windows
common dialogs like Open/Save, Color, Font, Printer,
Help. 
  In a HTML page you can put a reference for this
object just like that:
<OBJECT id="cdlg" CLASSID="clsid:...."></OBJECT>
in a function called on a browsing button you may have
this:
function fOpen()
{
  cdlg.Filter = "HTML files (*.htm.*.html)|*.htm*";
  cdlg.ShowOpen(); //it works cdlg.ShowSave(),
ShowHelp etc.
  return cdlg.FileName;
} 

 I have tried and it works fine! Goods luck! (I don't
know the clsid, sorry!)


  Return to Index