|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Save As Dialog Box
Hi all,
Can anyone help me out with this. I have a Button called "Save" inside a frame. When the button is clicked "Save As" Dialog box should open and the user should be able to choose a location in the local machine to save the contents in the frame window. function ieExecWB( intOLEcmd, intOLEparam ) { // Create OLE Object var WebBrowser = '<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>'; // Place Object on page document.body.insertAdjacentHTML('beforeEnd', WebBrowser); // if intOLEparam is not defined, set it if ( ( ! intOLEparam ) || ( intOLEparam < -1 ) || ( intOLEparam > 1 ) ) intOLEparam = 1; // Execute Object WebBrowser1.ExecWB( intOLEcmd, intOLEparam ); // Destroy Object WebBrowser1.outerHTML = ""; } I Used this code for opening a Save As dialog box. But this works only in pages without frames. Waiting for your replies. Thanks. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > Save As Dialog Box |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|