Open an *.html page from a vi
Hi,
I don't know how to open an .html file from a boolean bouton.
someone could help me ?
thanks
tst wrote:
But the HTML file on the RIO (if it's anything like remote front panels on the PC) is only a "pointer" to the VI. It is only used so that the browser will have a place to start. The PC has nothing actually running on it and the RIO is not displaying the web page.
Here is the basic text from a sample file which tells the web browser to connect to a running VI.
http://www.ni.com/webappdemos/lv">>
You can see that it's only a few lines telling the browser to connect to the VI. I think that to use the link you will either need an LV program running on the computer or you will need to write your own browser for the RIO (not a recommended solution).
Is all right, I know that the html file make only a connection to the VI, but the the web page file are on the cRIO.So I don't understand because you think that the browser must start from the cRIO. If I actually can visualize an html file, that is on the cRIO, and the browser are running on my pc, why a link from the VI (as www.html.it) must open a browser on the cRIO and not on client PC?
Similar Messages
-
Opening a HTML page from a Navigation link
Hi All,
I have a requirement of adding a new link at the navigation bar of WebClient. This link will open a static html page with some contents. I have created the page required for it. But I don't know how the link will be created at Navigation bar and how to open the html page from it. I am using the SAP CRM 5.0 and I want to add the link at Default profile.
Please help.
Thanks
Indranil DattaHi Sujit,
Thanks for your help. I have created a new navigation bar entity and added that in a customized profile. I have also mentioned the page name and path for that link from tran SPRO. I found that link after logging into IC WebClient. But that link is not connected with the required page. If I click on the link page, it get refreshed but without any change.
Thanks,
Indranil Datta. -
Open a html page from an applet
Hi,
I would like to open, from an applet, an HTML page in a new window with a specific width an eight.
Who can help me ?Here is an example of applet to javascript with liveconnect:
http://www.narhari.com/java/applet2javascript/
You can use the send(String) method from the sample applet to send something like:
window.open('xyz.html','myPopup','width=200,height=200');in order to open a window with specific dimensions
of course you can also build HTML in your applet and use send() + some javascript to render it. -
Opening an Html page from java code
Hi
I have created an application and in order to complete it i need to configure help file with it. Now i have created a menubar in which help button is present.
My requirement is that clicking the help button should display the help file which is in the form of an html file in a new window just as in any other application.
Can anybody help me on this issue? Your help would ge really appreciated :)
ThanksMy requirement is that clicking the help button should display the help file which is in the form of an html file in a new window just as in any other application.Do you want to open a new "Browser"? is this a hard and fast requirement? If not why don't you use javahelp instead.
For more details refer : http://java.sun.com/developer/technicalArticles/J2SE/Desktop/javahelp/index.html -
Problem open new html page from flash
Hello,
in IE7 and IE8 block popup lock my external link(page html)
I use GetUrl(url,"_blank") but not it works
Why?
i use flash cs4
With firefox it workthank you for response,
i have used correct command but not it works.
It Works, in my popup setting are setting "CUSTOM" not MEDIUM
thank you -
How can I open a HTML page by pressing a button on the stage?
I've created a rollover button and I'm trying to make it open
an existing html page from the local disk (not an internet URL).
But I can't make it open with Lingo or behaviour.
Please help.
Thanks a lot.
Gideon.goToNetPage "
http://somewhere.html" is the
typical form for a page on
the web, director must use the address format the system's
browser uses
for local files, this is somewhat platform dependant, a
practical
aproach is to open the file in question from within your
browser then
copy and paste the displayed address into your lingo code.
Some report the goToNetPage counterpart provided by the
buddyAPI xtra
works more reliably, the xtra can be used for free if limited
to a
couple of functions.
An alternate approach buddyAPI can use is to have the browser
directly
access the html file as if it were double clicked in the file
manager
using the same form commonly used to open PDF files with
acrobat.
(sorry I don't have example code handy) -
How to open NEW PORTAL PAGE from current portal page ?
I'm very confuse with my problem.
I have 2 portal page.
portal page I has 2 portlet : portlet A & portlet C.
portal page II has 2 portlet : portlet B & portlet C.
Now my customer want : start with portal page I, when i submit portlet A, program will open portal page II.
I don't know the way to call new portal page from current portal page. Help me, please.
Thanks.
Edited by: young_hero on Oct 30, 2008 1:12 AMCould you please help me how to call a .html page
from a Pl/Sql procedure or trigger ?
Thanks & Regards
Kalyani KothaKalyani,
Could you explain a little more exactly what you're trying to acheive? I'm not quite sure what it is you're asking for. Are you asking: "how would you/can you open a browser and direct it to a URL with PL/SQL?"
Earl -
Opening an HTML popup from Flash, not as tab
Hi
I need to open an HTML popup from Flash (using ActionScript in
Flex 4).
Thus far I found a solution, and it does work in Safari - a new
and separate HTML window is popped up (with a new web page).
private function popUpTheHtmlEditor():void {
var url:String = "http://www.adobe.com";
var request:URLRequest = new URLRequest(url);
try {
navigateToURL(request, '_blank');
} catch (e:Error) {
trace("Error occurred!");
But in (my) Firefox (with my settings), when I click on the Flash
(Flex) button, the page is being opened in a new tab.
I need a solution which pops up the HTML page in a new/separate
window, as far as possible regardless of the browser (and browser
settings).
I found an example where a popup is opened from HTML, and it opens a
separate window (a real popup) in my Firefox:
http://www.gtalbot.org/FirefoxSection/Popup/PopupAndFirefox.html
-> "Open a requested popup"
The JavaScript code seems to be:
OpenRequestedPopup(this.href, this.target); return false;
with this function def:
function OpenRequestedPopup(strUrl, strTarget)
if (WindowObjectReferenceOfRequestedPopup == null || WindowObjectReferenceOfRequestedPopup.closed)
WindowObjectReferenceOfRequestedPopup = window.open(strUrl, strTarget, "top=" + windowTop + ",left=" + windowLeft + ",width=" + windowWidth + ",height=" + windowHeight + ",menubar,toolbar,location,resizable,scrollbars,status");
else
if(WindowObjectReferenceOfRequestedPopup.focus)
WindowObjectReferenceOfRequestedPopup.focus();
How could I call such code from ActionScript? Should this work through
ExternalInterface? I couldn't even get this to work:
ExternalInterface.call('alert', 'foo');
Should I use swfobject.js for embedding the .swf in the HTML wrapper?
Any other ideas?
The two files are pasted below.
Here's the compiler command I'm using:
mxmlc -output button.swf -target-player 10.0.0 flash_to_editor.mxml
I'm running the examples locally (as files, not over http). Would it
help to place the files on a server?
Tobi
<?xml version="1.0" encoding="UTF-8"?>
<mx:Application
xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
horizontalAlign="center" verticalAlign="middle">
<fx:Script>
<![CDATA[
import mx.controls.Alert;
import flash.external.ExternalInterface;
import flash.net.URLRequest;
// This 'http://www.adobe.com' is just an example URL.
// Works but opens tab in FF (not a separate window):
private function popUpTheHtmlEditor():void {
var url:String = "http://www.adobe.com";
var request:URLRequest = new URLRequest(url);
try {
navigateToURL(request, '_blank');
} catch (e:Error) {
trace("Error occurred!");
// Doesn't work:
// var url:URLRequest = new URLRequest("javascript:alert('foo'); void(0);");
// navigateToURL(url, "_self");
// How to get this to work?
private function popUpTheHtmlEditor():void {
ExternalInterface.call('alert', 'foo');
// How to get this to work?
private function popUpTheHtmlEditor():void {
ExternalInterface.call('launch','http://www.adobe.com');
// Or
// ExternalInterface.call("window.open", "http://www.adobe.com", "win", "height=200,width=300,toolbar=no,scrollbars=yes");
// Perhaps it's necessary to try different approaches:
// (As soon as I get two approaches to work.)
private function popUpTheHtmlEditor():void {
var s:String;
if (ExternalInterface.available) {
// Necessary? Safe?:
// Security.allowDomain('*');
s = ExternalInterface.call('launch','http://www.adobe.com');
} else {
// TODO: Then try URLRequest?
s = "Wrapper not available";
Alert.show(s);
]]>
</fx:Script>
<s:Panel title="One way to open the HTML editor"
width="75%" height="75%">
<s:Button id="button" label="Open the HTML editor"
click="this.popUpTheHtmlEditor();"
horizontalCenter="0" verticalCenter="0"/>
</s:Panel>
</mx:Application>
<html
xmlns="http://www.w3.org/1999/xhtml"
xml:lang="en" lang="en">
<head>
<title>html_around_swf.html</title>
<script type="text/javascript">
function launch(url) {
alert(url);
// OpenWin = this.open(url, "FOO", "toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=no,width=400,height=200");
</script>
</head>
<body>
<object id="button" name="button" width="550" height="400"
classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000">
<param name="movie" value="button.swf" />
<param name="allowScriptAccess" value="always" />
<embed id="foo" name="button" src="button.swf" width="550" height="400"></embed>
</object>
</body>
</html>Hi,
Here's a solution.
1. Make ExternalInterface work when files are loaded as local files:
Go to
http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.htm l
In tab Global Security Settings: Edit Locations -> Add Location ->
browse to the .swf file, add it. Make sure it's in the list (under the
Edit Locations drop down, with a green check mark.)
Now open the HTML wrapper in a browser (eg Firefox).
Now this works (ActionScript):
private function popUpTheHtmlEditor():void {
ExternalInterface.call('alert', 'foo');
On Windows: perhaps:
http://techjig.blogspot.com/2008/03/flash-global-security-settings-windows.html
"In order for external interface functions to be called, you must also
specify the folder/file where the swf file is located."
The above setup isn't necessary when the files are on a server.
Also see:
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/external/External Interface.html#call()
""ExternalInterface" "
"call() method"
http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7ea6.html
"About ExternalInterface API security in Flex"
http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf626ae-7fe8.html#WS2d b454920e96a9e51e63e3d11c0bf69084-7f31
"Using the ExternalInterface API to access JavaScript"
2. Open a real popup: Example:
ActionScript:
private function popUpSomething():void {
var editorPathOrUrl:String =
'wrapper.html';
var windowName:String =
"SomeNameSeeDocs";
var windowFeatures:String =
"toolbar=yes,menubar=yes,location=yes,scrollbars=yes,resizable=yes,width=500,height=700";
ExternalInterface.call(
'launch',editorPathOrUrl,windowName,windowFeatures
JavaScript:
function launch(editorPathOrUrl,windowName,windowFeatures) {
windowRef = window.open(
editorPathOrUrl,windowName,windowFeatures
Works in all browser I tested except Opera.
Tobi -
Opening a HTML page on clicking of button .
i created a button under menuItem help , i want to open a HTML page in other window (that is save inside my project folder ) when i click that button.
for this i created jeditorpane and passing the URL in to its constructor but i m getting exception when i m using URL like "D:/x/y.html" exception is protocol not find and in the case of "http://localhost/d:/x/y.html" exception is java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method
my code is
import javax.swing.JEditorPane;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JScrollPane;
import javax.swing.SwingUtilities;
import java.awt.Color;
import java.awt.Container;
import java.io.IOException;
public class HelpDialog {
* height of frame in pixels
private static final int height = 1000;
* width of frame in pixels
private static final int width = 1000;
private static final String TITLE_STRING = "Help";
* URL of page we want to display
private static final String URL = "http://localhost/D:/SVGcode/javaApplet/src/com/Documentation.html";
// --------------------------- main() method ---------
public HelpDialog()
SwingUtilities.invokeLater( new Runnable()
public void run()
System.out.println( "Starting" );
final JFrame jframe =
new JFrame( TITLE_STRING );
Container contentPane = jframe.getContentPane();
jframe.setSize( width, height );
contentPane.setBackground( Color.WHITE );
contentPane.setForeground( Color.BLUE );
jframe.setDefaultCloseOperation( JFrame.DISPOSE_ON_CLOSE);
try
System.out.println( "acquiring URL" );
JEditorPane jep = new JEditorPane(URL);
System.out.println( "URL acquired" );
JScrollPane jsp =
new JScrollPane( jep,
JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,
JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED );
contentPane.add( jsp );
catch ( IOException e )
System.err.println( "can't find URL" );
e.printStackTrace();
contentPane.add( new JLabel( "can't find URL" ) );
jframe.validate();
jframe.setVisible( true );
plz help meHi Sandy,
Instead of giving url in the constructor. Paste the code below the JEditorPane. Remove the url from the JEditorPane constructor.
try{
/** Files from system */
java.net.URL helpURL = new URL ("file:///" + "C:\\thread.jspa.htm");
/** Files from inter net */
helpURL = new URL ("http://forums.sun.com/thread.jspa?threadID=5421146&tstart=0");
if(helpURL!=null)
jHelp.setPage(helpURL);
else
System.out.println("Couldnt find file");
}catch(MalformedURLException exp){
System.out.println("Exception in page loading---"+exp);
}catch(IOException ioexp){
System.out.println("Exception in page loading"+ioexp);
} -
Access HTML Pages from Forte Applications
We are currently looking at how to redevelop our online help facility for a
Forte application. We are investigating the use of HTML pages.
Has anyone written a Forte application that opens particular HTML pages? If so,
how was it done?
Regards,
Steve Isaac
Senior Consultant, Information Services Group
Hydro Electric Corporation of Tasmania
4 Elizabeth St, Hobart, Australia, 7000
Phone : +61 03 6230 5161
e-mail: [email protected]We have created the idea of an OnLineAssistant that uses HTML pages to drive
help in a Wizard-like fashion.
We use an embedded ActiveX browser control in a Forte window to display the
HTML pages. The pages are launched by passing the application, window, and
widget name to the OnLineAssistant window, which uses the information to load
the correct page.
For example: an application screen for entering customer name and address
passes it's information to the on-line assistant, which links and displays the
page associated with that particular step of a task wizard defined for that
widget. The ActiveX control then allows the user to link into any of the
other pages associated through standard HTML.
This context-sensitive mechanism is also used to launch on-line help (without
the task orientation) at the user's request.
One of the benefits of this approach is that we can put the message passing
into a generic framework ancestor without making any application code changes,
and the OnLineAssistant HTML pages can then be created by non-programmers and
deployed independently from the application, and HTML can do most of the
navigation work.
-DFR -
Help about opening a PHP page from a Java application
Hi,
I would have some elements to open a PHP page from a little Java application I'm doing. I would like to know the classes I had to use, how to implement them, ...
In fact, I dial into my application my login, my password, and when I click on by "Connect" button, I must show the PHP page corresponding ti my profile onto the database. Picking up information from the database is not a problem, I know how to use SQL Packages in Java. The problem is to open a new page (IE or Netscape) when clicking on the "Connect" button in my application.
Thanks a lot for advice me.
C�dricHi
This class is from JavaWorld Tip 66 and I've used it to open web pages and files in a browser.
import java.io.IOException;
import java.util.*;
* A simple, static class to display a URL in the system browser.
* Under Unix, the system browser is hard-coded to be 'netscape'.
* Netscape must be in your PATH for this to work. This has been
* tested with the following platforms: AIX, HP-UX and Solaris.
* Under Windows, this will bring up the default browser under windows,
* usually either Netscape or Microsoft IE. The default browser is
* determined by the OS. This has been tested under Windows 95/98/NT.
* Examples:
BrowserControl.displayURL("http://www.javaworld.com")
BrowserControl.displayURL("file://c:\\docs\\index.html")
BrowserContorl.displayURL("file:///user/joe/index.html");
* Note - you must include the url type -- either "http://" or
* "file://".
public class BrowserControl
* Display a file in the system browser. If you want to display a
* file, you must include the absolute path name.
* @param url the file's url (the url must start with either "http://"
or
* "file://").
public static void displayURL(String url) throws Exception
boolean windows = isWindowsPlatform();
String cmd = null;
try
if (windows)
// cmd = 'rundll32 url.dll,FileProtocolHandler http://...'
cmd = WIN_PATH + " " + WIN_FLAG + " " + url;
Process p = Runtime.getRuntime().exec(cmd);
else
// Under Unix, Netscape has to be running for the "-remote"
// command to work. So, we try sending the command and
// check for an exit value. If the exit command is 0,
// it worked, otherwise we need to start the browser.
// cmd = 'netscape -remote openURL(http://www.javaworld.com)'
cmd = UNIX_PATH + " " + UNIX_FLAG + "(" + url + ")";
Process p = Runtime.getRuntime().exec(cmd);
try
// wait for exit code -- if it's 0, command worked,
// otherwise we need to start the browser up.
int exitCode = p.waitFor();
if (exitCode != 0)
// Command failed, start up the browser
// cmd = 'netscape http://www.javaworld.com'
cmd = UNIX_PATH + " " + url;
p = Runtime.getRuntime().exec(cmd);
catch(InterruptedException x)
System.err.println("Error bringing up browser, cmd='" +
cmd + "'");
System.err.println("Caught: " + x);
throw x;
catch(IOException x)
// couldn't exec browser
System.err.println("Could not invoke browser, command=" + cmd);
System.err.println("Caught: " + x);
throw x;
* Try to determine whether this application is running under Windows
* or some other platform by examing the "os.name" property.
* @return true if this application is running under a Windows OS
public static boolean isWindowsPlatform()
String os = System.getProperty("os.name");
if ( os != null && os.startsWith(WIN_ID))
return true;
else
return false;
* Simple example.
public static void main(String[] args)
try
// displayURL("file://c:\\Manual\\Amphibian Accounting Help Test 3.pdf");
// displayURL("http://www.pro7.co.za");
Properties prop = System.getProperties();
// Enumeration enum = prop.propertyNames();
Enumeration enum = prop.keys();
while(enum.hasMoreElements())
enum.nextElement();
catch(Exception e)
// Used to identify the windows platform.
private static final String WIN_ID = "Windows";
// The default system browser under windows.
private static final String WIN_PATH = "rundll32";
// The flag to display a url.
private static final String WIN_FLAG = "url.dll,FileProtocolHandler";
// The default browser under unix.
private static final String UNIX_PATH = "netscape";
// The flag to display a url.
private static final String UNIX_FLAG = "-remote openURL";
}If you find a better solution please let me know!
Regards
Michael Williams -
When I open Safari 5.1.5, it automatically opens all the pages from my previous session. Can I turn off that feature , and how?
Hi...
Open System Preferences > General
Deselect: Restore windows when quitting and re-opening apps
Restart your Mac. -
How to open a JSP page from a form ??? plz help
hi ..
i want to know how to open a jsp page from a oracle apps form using a button .
the requirement is that whenever we click on the button created on the form, it opens a jsp page.
plz help me ..its urgent !! :-(In portlet project, to navigate between pages, you should not use the URL property to link to a page. Instead, portlets use navigation via action handling. You use the Page Navigation editor to set up links to pages; that is, the navigation editor sets the action property.
Here is an example to hyperlink ans button to open a new page:
# From within the IDE, create a new portlet project. This action creates the project and one page, PortletPage1.jsp.
# Create a second portlet page, called PortletPage2.jsp, for the project.
# Drop a Hyperlink component onto the first portlet page, PortletPage1. (You can drop the Hyperlink on the page in the Design window or on the PortletPage1 node in the Outline window.) Change the Hyperlink's text property to Next Page.
# Drop a Button component (found in the Basic section of the Palette) onto the second portlet page, PortletPage2.
# Open the Page Navigation Editor. It displays the two pages (PortletPage1.jsp and PortletPage2.jsp) of the application.
# Click the PortletPage1.jsp icon in the Navigation window to expand it, and then drag a connector from hyperlink1 to PortletPage2.jsp. Change the name of the connector from case1 to Page2.
# Click the PortletPage2.jsp icon in the Navigation window to expand it, and then drag a connector from button1 to PortletPage1.jsp. Change the name of the connector from case1 to Page1.
# Run and deploy the portlet. The browser displays PortletPage1 and you should see the Next Page hyperlink. When you click the Next Page hyperlink, the Apache Pluto Portal server displays PortletPage2. Click the Page2 button to return to PortletPage1.
Sherry
Creator Team -
How can I display the HTML page from servlet which is called by an applet
How can I display the HTML page from servlet which is called by an
applet using the doPost method. If I print the response i can able to see the html document. How I can display it in the browser.
I am calling my struts action class from the applet. I want to show the response in the same browser.
Code samples will be appreciated.hi
I got one way for this .
call a javascript in showDocument() to submit the form -
Opening a WEB page from FORMS CS & WebForms
Hi,
We would like to open a Web Page from a forms running in
client/server as well as from a form runningover the web.
Over the web, we plan to use SHOW_DOWUMENT (Even tough it seems
broken, on forms 6.0, the only way we have got it working was by
using the parameter that overwrites the current page (the form),
we cannot have it open an URL in another window)
In C/S mode, the SHOW DOCUMENT does not work. What is the proper
way to lauch an URL in a browser in C/S mode ?
Is there a way to determine if we're running in CS mode or Web
Mode ? We would like to use the same code both on the web and in
C/S
Example pseudo code:
if (Running in CS Mode) then
open the URL using C/S method
else
open the URL with show dowument
fi
Thanks
nulluse '_blank' as parameter, not '_self'.
Guy Dallaire (guest) wrote:
: Hi,
: We would like to open a Web Page from a forms running in
: client/server as well as from a form runningover the web.
: Over the web, we plan to use SHOW_DOWUMENT (Even tough it
seems
: broken, on forms 6.0, the only way we have got it working was
by
: using the parameter that overwrites the current page (the
form),
: we cannot have it open an URL in another window)
: In C/S mode, the SHOW DOCUMENT does not work. What is the
proper
: way to lauch an URL in a browser in C/S mode ?
: Is there a way to determine if we're running in CS mode or Web
: Mode ? We would like to use the same code both on the web and
in
: C/S
: Example pseudo code:
: if (Running in CS Mode) then
: open the URL using C/S method
: else
: open the URL with show dowument
: fi
: Thanks
null
Maybe you are looking for
-
Video Streaming in Windows media player won't play through Airport Extreme
Hello and thank you for reading my issue. I have the current square shaped airport extreme base station. My mother has a Windows XP system on her Toshiba laptop and she takes an online class which has video streaming for the lectures. When we connect
-
OBIEE 11g Agent Report one env to another
Hi Guys, we currently moved our PROD server to 11.1.1.7.1 (Fresh installation and just moved the catalog and RPD) it is working fine. But in the old server we scheduled more than 100 agents but in the new server we are not getting get any alert.... s
-
Webview for dashboard in cProjects
Hi, I have displayed additional fields in the cprojects dashboard by appending the DPR_TS_DASHBOARD_ATTR with customer fields. The fields are now available in the setting for the dashboard so that I can make my own view. But is it possible to create
-
My built in camera is not working therefore, my photo booth and factime is not working. Now my built in microphone is not working. I can't find any way to troubleshoot these problems.
-
Write an image in RAW format?
Hello, I need very short and simple help. I just want to write a RAW image from a given buffered image (that comes from a GUI component!). All the help I found was always the use of some JPEG encoder! But how do I safe plain raw data? THX for your he