Home » Developer & Programmer » Forms » How to Open html in Form? (xp)
How to Open html in Form? [message #465578] Wed, 14 July 2010 21:44 Go to next message
crafet
Messages: 11
Registered: July 2010
Location: China
Junior Member
Hi,All
I have a Problem
i have a button in the form
,also have a web page C:\test.htm
how can i open this web page in form
i donot know what to write in the WHEN-BUTTON-PRESSED

crafet
How to Open html in Form? [message #465579 is a reply to message #465578] Wed, 14 July 2010 21:47 Go to previous messageGo to next message
crafet
Messages: 11
Registered: July 2010
Location: China
Junior Member
hi All
i have a button in the canvas,name:CallHtml

also a web page in C:\test.htm

i donot know how to call this web page in my form using that button

what should i write in the WHEN-BUTTON-PRESSED?


thanks
crafet
Re: How to Open html in Form? [message #465581 is a reply to message #465578] Wed, 14 July 2010 21:57 Go to previous messageGo to next message
crafet
Messages: 11
Registered: July 2010
Location: China
Junior Member
Help me ,please
Re: How to Open html in Form? [message #465582 is a reply to message #465581] Wed, 14 July 2010 21:58 Go to previous messageGo to next message
crafet
Messages: 11
Registered: July 2010
Location: China
Junior Member
o
may be most of u are going to sleep while i just got up in China

i will wait
Re: How to Open html in Form? [message #465588 is a reply to message #465582] Wed, 14 July 2010 22:21 Go to previous messageGo to next message
havok
Messages: 36
Registered: February 2010
Member
may be use function "WEB.SHOW_DOCUMENT("...")"
Or, use command line: WEBUTIL_HOST.HOST('cmd /c ...');

[Updated on: Wed, 14 July 2010 22:22]

Report message to a moderator

Re: How to Open html in Form? [message #465598 is a reply to message #465588] Wed, 14 July 2010 23:22 Go to previous messageGo to next message
crafet
Messages: 11
Registered: July 2010
Location: China
Junior Member
thank u havok

i use form 9i,not 6i
web.show_document(),i doesnot work,
like :
WEB.SHOW_DOCUMENT('c:\test.htm','_self');
it show error:'c is not protocol like http'
you know ,c:\test.htm is not a URL

and in form 9 i cannot find WEBUTIL_HOST.HOST command
am i wrong?

thanks and regards

crafet
Re: How to Open html in Form? [message #465599 is a reply to message #465598] Wed, 14 July 2010 23:26 Go to previous messageGo to next message
crafet
Messages: 11
Registered: July 2010
Location: China
Junior Member
should i download some header file
for using WEBUTIL_HOST.HOST?
or some library?

regards
Re: How to Open html in Form? [message #465601 is a reply to message #465599] Wed, 14 July 2010 23:41 Go to previous messageGo to next message
mehediu
Messages: 46
Registered: February 2010
Location: Dhaka
Member

You can also try with the following code , i think it will work

declare
	APPID PLS_INTEGER;
BEGIN 
Appid := dde.app_begin('C:\Program Files\Internet Explorer\IEXPLORE.EXE www.yahoo.com',dde.app_mode_minimized);
END; 


Regards
Md. Mehedi Hossain
Re: How to Open html in Form? [message #465610 is a reply to message #465601] Thu, 15 July 2010 00:25 Go to previous messageGo to next message
crafet
Messages: 11
Registered: July 2010
Location: China
Junior Member
thk u mehediu
it works
but how to modify parameter in order to show the destination page in the original page but not a new page?
Re: How to Open html in Form? [message #465621 is a reply to message #465610] Thu, 15 July 2010 00:49 Go to previous messageGo to next message
mehediu
Messages: 46
Registered: February 2010
Location: Dhaka
Member

IF YOU USE MOZILLA firefox OR UPDATE VERSION
OF EXPLORER IT WILL OPEN AUTOMATICALLY IN ORIGINAL PAGE

REGARDS MD. MEHEDI HOSSAIN
Re: How to Open html in Form? [message #465632 is a reply to message #465579] Thu, 15 July 2010 01:03 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Try 'web.show_document'.

David
[EDITED by DJM: this response was to the OP's duplicate question which I then merged into this thread.]

[Updated on: Thu, 15 July 2010 01:26]

Report message to a moderator

Re: How to Open html in Form? [message #465638 is a reply to message #465582] Thu, 15 July 2010 01:08 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Yes. Do not post the same question a second time. Wait for an answer, or 'thump' your original question by adding more information the next day.

David
Re: How to Open html in Form? [message #465642 is a reply to message #465598] Thu, 15 July 2010 01:13 Go to previous messageGo to next message
havok
Messages: 36
Registered: February 2010
Member
crafet wrote on Wed, 14 July 2010 23:22

WEB.SHOW_DOCUMENT('c:\test.htm','_self');
it show error:'c is not protocol like http'
you know ,c:\test.htm is not a URL

Not correctly written. You must copy this file to a folder. Which folder? I do not remember. And do
(for example
WEB.SHOW_DOCUMENT('http://localhost:80/DIRECTORY/test.html', 'blank');
)

[Updated on: Thu, 15 July 2010 01:14]

Report message to a moderator

Re: How to Open html in Form? [message #465651 is a reply to message #465642] Thu, 15 July 2010 01:27 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Okay, then use the information that the other people had submitted to the first thread of your question.

what did the 'host' command give you?

David
Re: How to Open html in Form? [message #465668 is a reply to message #465651] Thu, 15 July 2010 02:42 Go to previous messageGo to next message
crafet
Messages: 11
Registered: July 2010
Location: China
Junior Member
thank all
it done
sorry David,i summit the same topic because of my Network latency

thank u again!
Re: How to Open html in Form? [message #465963 is a reply to message #465668] Fri, 16 July 2010 02:35 Go to previous message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
If you have another latency problem and the thread is reposted, use the "Report message to a moderator" button and ask for one of them to be deleted.

David
[EDITED by DJM: fix typo]

[Updated on: Wed, 21 July 2010 02:26]

Report message to a moderator

Previous Topic: Writing in User profile
Next Topic: Run the Report in oracle froms 10g error
Goto Forum:
  


Current Time: Fri Sep 20 06:38:31 CDT 2024