Opening URL
Hi,
How do we open URLs in a browser from a java application? I know that it can be done if is an applet by calling showDocument method of appletContext. But how to do it from an application?
Thank You.
Hi, I could get it in the following way :
as am going to get url from user input during runtime.
String url = "url.bat "+url_name;
rt.exec(url);
url.bat contains :
start %1
%1 to take the first argument.
Thanks.
Similar Messages
-
Opening url rebuffering stream when previewing songs
How can I fix music previews that play for 3 seconds and then give me an error: opening url rebuffering stream? I never had this issue, and haven't changed anything. What's wrong?
I've been having the same probelm for about 6 months. On itunes 10 and 11. This appears to be a problem that goes back to years which tell sme Apple simply does not care. There are many threads like this one with no answers. I'm going to have to find another app to listen to online radio. I love Apple but sometime ther really can fracking suck.
-
Open url in a new browser via a button
I have created a button within a region and set request='go'. I then have a branch that when request='go', it branches to a url. Is there a way to open a new window when it branches to that url? Basically, I'm trying to open a new browser to go to a specified url when a button is clicked.
Yes no problem,
call an javscript function, which open the new window. that function can get as parameter the item value (eg. the URl text)
function callMyPopupTest(url)
w = open(url,"winLov","Scrollbars=1,resizable=1,width=1100,height=350");
if (w.opener == null) w.opener = self;
w.focus();
this should work
In this excample the URL is static for the button.
If not you have to solve the problem inside the javscript function with getting the value of the item (the url text)
document.getElementById('P21_URL').value;
for that the javascript function parameter has to be the id(eg. name: P21_URL).
hope that helps
thorsten -
Open URL in a new window by closing the parent window
Hi Friends,
Is there any option to open URL in a new window by closing the parent window on a button click?
Already implemented the logics suggested in /people/mohammed.anzys/blog/2007/06/05/how-to-close-parent-window-in-webdynpro-applications , the thread ' URL in same window ' and the standard component WDR_TEST_EXIT_PLUG .But button is not triggerring any actions .plz help me ..............
Regards,
Radhikahi,
Do the following steps :
-> Make an Outbound Plug to the Window.
->Make the type of Outbound plug to Exit Type.
->Add URL of type String as a parameter to the outbound plug of Window.
->Do remember to add Component Name in the Properties Tab of View ( othervs Calling Outbound plug of window from view wont b possible ).
To open a new URL with closing the previous one write this Code in OnAction of Button : ( this Code can be get from Code Wizard too ).
DATA lo_zexit TYPE REF TO ig_zexit . <zexit is name of my Component>
lo_zexit = wd_this->get_zexit_ctr( ).
lo_zexit->fire_out_window_plg(
url = 'http://www.google.com' " string
I hope it helps.
Thanx. -
I'd like to open urls from xchat in opera.
Under settings>advanced>url handler:
!opera -remote 'openURL(%s)'
xchat has tcl as an optional dep, so I installed that.
This is in xfce4 and I have set opera as the preferred browser.Well, I'm afraid that is not an option.
The goButton is in a table row. There are lots of rows so if I use EL for Destination attribute the URL would be retrieved for each of rows.
The method of URL retreiving is heavyweight operation which includes calling plsql functions, working with strings and others. So if I do it for each table row my application hungs and then I receive an exception of CPU usage.
That's why I switched to normal commandButton witch actionListener which retrieves url on click - only once. So I need to open URL from Java. -
Open URL from Java in a new browser tab
Hi OTN,
Surprisingly can't find the implimintation.
In an ADF managed bean I retrieve String url. I need to open a new browser tab with this url.
Found this thread Open a url in a new window in the backing bean which shows using javascript "service.addScript(facesContext, "window.open(http://www.google.coml)");".
But in my case in doesn't work. The code is executed, but nothing happens. Maybe because the bean is called from a taskflow inline popup.
ADF 11.1.1.4
Thanks.Well, I'm afraid that is not an option.
The goButton is in a table row. There are lots of rows so if I use EL for Destination attribute the URL would be retrieved for each of rows.
The method of URL retreiving is heavyweight operation which includes calling plsql functions, working with strings and others. So if I do it for each table row my application hungs and then I receive an exception of CPU usage.
That's why I switched to normal commandButton witch actionListener which retrieves url on click - only once. So I need to open URL from Java. -
Captivate 4 Open url from a button not working?
Hi All,
I have published a scorm course from captivate 4 and have installed to our servers. I would like to have a link to a document that is online (.doc) but whenever I click the transparent button it starts to load, opens a window (which has the correct title name) but then disappears with no warning or error message.
The link resides behind a transparent button, and has the settings On Success open url or file in a new window. I know the problem is not specific to this document because I have had the same problem with a completly different online file location in the past.
Please Help!!
Many thanks in advance.
Chris MaileHi there
Please send me a private E-Mail message to rstone75 (at) kc (dot) rr (dot) com and advise of the exact file name of the file you are linking to.
I'll send you back a file that you can use to test and see if the link works.
Cheers... Rick
Helpful and Handy Links
Captivate Wish Form/Bug Reporting Form
Adobe Certified Captivate Training
SorcerStone Blog
Captivate eBooks -
Open URL from a Captivate generated MP4
Hello all,
I am putting together an instructional video (.mp4) using Captivate 5.5, the video will be targeting iOS users.
I will need to provide a way to open some webpages while the end user is playing the mp4 file. My thought was to include a button with an assigned action to "Open URL or file" and specify the URL.
This does not seem to work after publishing to mp4 format. Is that feature not supported in Captivate mp4 files? Or did I forget a step maybe? Is there a workaround to achieve the same result?
I'd appreciate any input on this.Hi there
Unless something has changed recently, it is my understanding that MP4 is strictly a video format and does not support hyperlinking or other types of interactivity.
Cheers... Rick
Helpful and Handy Links
Captivate Wish Form/Bug Reporting Form
Adobe Certified Captivate Training
SorcerStone Blog
Captivate eBooks -
Why do we use open URL in default browser function? What are the uses of it?
Why do we use "open URL in default browser" function? What are the uses of it?
kdm7 wrote:
Okay.
So can we keep a web button to access the www.ni.com ? So that web site opens only when button pressed?
P.S I,m a newbie.
Yes, you can also, e.g. include a help file or manual as html and open that in the browser.
/Y
LabVIEW 8.2 - 2014
"Only dead fish swim downstream" - "My life for Kudos!" - "Dumb people repeat old mistakes - smart ones create new ones."
G# - Free award winning reference based OOP for LV -
Hi,
i'm using netbeans mobility 5.0
as i was new to this mobile programming i'm getting the output as "Connection Refused"
plz plz plz plz....... help me out from this problem
here is my code..
code:_
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
import javax.microedition.io.*;
import java.io.*;
public class FileViewer extends MIDlet implements CommandListener
private Display display; // Reference to Display object
private TextBox tbViewer; // View file contents in a textbox
private Command cmView; // Command to view file
private Command cmExit; // Command to exit
private String url = "http://www.corej2me.com/midpbook_v1e1/scratch/fileViewer.hlp";
public FileViewer()
display = Display.getDisplay(this);
// Define commands
cmView = new Command("View", Command.SCREEN, 2);
cmExit = new Command("Exit", Command.EXIT, 1);
tbViewer = new TextBox("Viewer", "", 250, TextField.ANY);
tbViewer.addCommand(cmView);
tbViewer.addCommand(cmExit);
tbViewer.setCommandListener(this);
public void startApp()
display.setCurrent(tbViewer);
private void viewFile() throws IOException
HttpConnection http = null;
InputStream iStrm = null;
try
http = (HttpConnection) Connector.open(url);
// Client Request
// 1) Send request method
http.setRequestMethod(HttpConnection.GET);
// 2) Send header information (this header is optional)
http.setRequestProperty("User-Agent", "Profile/MIDP-1.0 Configuration/CLDC-1.0");
// 3) Send body/data - No data for this request
// Server Response
// 1) Get status Line
System.out.println("Msg: " + http.getResponseMessage());
System.out.println("Code: " + http.getResponseCode());
// 2) Get header information
if (http.getResponseCode() == HttpConnection.HTTP_OK)
// 3) Get data (show the file contents)
iStrm = http.openInputStream();
int length = (int) http.getLength();
if (length > 0)
byte serverData[] = new byte[length];
iStrm.read(serverData);
tbViewer.setString(new String(serverData));
finally
if (iStrm != null)
iStrm.close();
if (http != null)
http.close();
public void pauseApp()
public void destroyApp(boolean unconditional)
public void commandAction(Command c, Displayable s)
if (c == cmView)
try
viewFile();
catch (Exception e)
System.out.println(e.toString());
else if (c == cmExit)
destroyApp(false);
notifyDestroyed();
output*
build.xml(debug)*
some....
Application descriptor does not declare any MIDlet. Direct execution is not allowed.
Generated "C:\Documents and Settings\Lakshmi Narayan J\jlnexample\dist\jlnexample.jar" is 2655 bytes.
post-jar:
debug:
C:\Documents and Settings\Lakshmi Narayan J\jlnexample\src\.timestamp
Starting emulator in debug server mode on port 1469
com.sun.kvem.midletsuite.InvalidJadException: Reason = 22
The manifest or the application descriptor MUST contain the attribute: MIDlet-1
nbdebug:
KdpDebugTask connecting to debugger 1 ..
KdpDebugTask connecting to debugger 2 ..
KdpDebugTask connecting to debugger 3 ..
KdpDebugTask connecting to debugger 4 ..
KdpDebugTask connecting to debugger 5 ..
Connecting JPDA Debugger to emulator timed out after 5 attempts and 31 seconds.
C:\Documents and Settings\Lakshmi Narayan J\jlnexample\nbproject\build-impl.xml:306: The following error occurred while executing this line:
C:\Documents and Settings\Lakshmi Narayan J\jlnexample\nbproject\build-impl.xml:311: Connecting JPDA Debugger to emulator timed out after 5 attempts and 31 seconds.
BUILD FAILED (total time: 43 seconds)
Debugger console:
Attaching to localhost:1469
Connection refused.
Edited by: LAKSHMI_NARAYAN_J on Jun 23, 2008 9:54 AMIt's called potential deadlock. The emulator blocks your app 'cause any connection and commandAction needs its own thread. So I suggest use a new thread with this http connection then your program will be run successful.
-
Error opening URL Error on a Mac
So is this happening to anyone else?
I do a test movie from my Mac and when the movie I’m
testing needs to load an external file I get the following error
message:
Error opening URL
"ETC:Users:michael:Current:cvs:Gigapets:launch:banner_main.swf/xml/home.xml"
This happens on my Mac alone mind you, everyone else's in the
office works fine.
It doesn’t matter if I am loading an xml file through
the XML object, or a swf or jpg file through the loadMovie
functions, it always gives me this error when I load files with a
relative path on my local machine.
I am running Flash 8 on OS 10.3.9In this particular example I am using this code to start the
xml file load:
// now load the XML file that contains the content strings
var sXMLFile:String = "xml/home.xml";
var xmlContent:XML = new XML();
xmlContent.ignoreWhite = true;
xmlContent.onLoad = onXMLLoadComplete;
xmlContent.load( sXMLFile );
But I don’t think the code is the problem here . This
happens on every file I load when I am using a relative path to the
content, regardless of how I load the content (XML object,
loadMovie, MovieClipLoader, etc…) and the same code executes
perfectly on every other machine in the office(Mac and PC).
I’m more concerned with the semi-colons and .swf filename
that Flash is putting into my relative path on the error message.
Is that normal? -
Internet Explorer cannot open url in local Windows network share
Windows Server 2012 R2 as a domain controller
Internet Explorer 11 64/32
Favorites are redirected to a Windows network share (on the server itself)
Issue: When clicking a favourite redirected to the Windows network share, IE does nothing.
For testing purpose,
I double click a .url file in redirected Favorites (e.g.
\\domain_controller\profiles\username\Favorites\website.url), IE opens with a blank page.
If the .url file is placed at local drive or a Samba share (e.g. in a Synology box, probably it does not really matter as long as it is a network share residing in another computer), IE works fine.
The issue applies to every one (probably except Administrator) logged on the domain controller.
I tried reset IE. It did not work.
Favourites redirection works on Windows 8.1 client computers in the domain.
Pinned Site Shortcut (.website) file works everywhere
When Enable Protected Mode in Internet Options\Security\Internet is disabled, IE can open .url file in a Windows network share. But it is probably not a good idea to permanently disable it.
Any suggestion on fixing the issue? Thank you.tried ProcMon, the events captured are enormous even after I filtered out those I am sure do not matter. It was hard to spot what went wrong if I don't know what to look for.
Which is why I made the suggestion to filter coarsely and wait for a divergence in your two nearly equivalent traces. <eg>
Otherwise, if you are only looking at one trace but think that there is a possibility that some diagnostics may have been written, filtering with
Operation Is WriteFile is often very handy. With that filter you can also use the Count occurrences... tool for the number of distinct Path values which were involved.
In fact, now that I have reviewed the symptom description, filtering coarsely might also mean using only the File Access events and filtering with Path Contains Fav Do that with each of your traces and see where there is a divergence.
Then turn the filter off at that point or perhaps just add Registry events at that point (e.g. use the button but leave your filter for Path in place). Etc.
Good luck
Robert Aldwinckle -
Hello.
I am having a weird problem when trying to test a movie or publish preview -> flash on mac with Leopard os.
The result is a blank movie with the usuall "movie not loaded" if u right click on it and the output returns the "Error opening URL 'the path of the swf here'.
This has nothing to do with loading external files or something like that. It happens even in blank movies and it gives the same error if I try to open a swf from flash ide.
I can publish the project or export the movie with no problem at all.
I can preview the movie in html. I can run all the swf files in my hard disk, network, usb stick, dvd etc., but when I try to open any of these files from flash ide I got that stupid error.
Its not something that stops me from working in flash ide but its slow to export movie any time I want to test it.
Things that I've tried so far but nothing worked:
Update the flash cs4 to the latest version
Update the flash players
Restored the release flash player as default player (I am using as default the debug player)
Cleared the preferences
Move the flash cs4 folder to another location in hd
Saved the fla document first before testing the movie (in different places with or without spaces in document name or folder)
Give read & write permissions for everyone for flash.app, players and for fla files when saved first before test movie
Unistall and install the application 3-4 times.
Test every as version just in case.
Also I've checked the folders when testing movie and I can see that it creates an swf file, which I can run it outside flash ide (the one that the flash ide player cannot load) with no problem.
The mac os has the default set up as it came. Nothing chnaged in permissions or security settings.
Thanx in advance.In this particular example I am using this code to start the
xml file load:
// now load the XML file that contains the content strings
var sXMLFile:String = "xml/home.xml";
var xmlContent:XML = new XML();
xmlContent.ignoreWhite = true;
xmlContent.onLoad = onXMLLoadComplete;
xmlContent.load( sXMLFile );
But I don’t think the code is the problem here . This
happens on every file I load when I am using a relative path to the
content, regardless of how I load the content (XML object,
loadMovie, MovieClipLoader, etc…) and the same code executes
perfectly on every other machine in the office(Mac and PC).
I’m more concerned with the semi-colons and .swf filename
that Flash is putting into my relative path on the error message.
Is that normal? -
Filling in a PDF Form, but get "Error opening URL to submit this form" when I try to submit
I was able to fill in the form with Adobe Reader, but when I tried to Submit the form another box popped up that said "Error opening URL to submit this form." What can I do to fix this?
Nothing. Report it to the form's authors.
-
HI,
I am installing PI 7.1 on a HP-UX/ Oralce environment. Started the install and when It prompted for Oracle Software, I stopped the install and installed Oracle.
When starting back SAPINST after oracle install it terminates with the following error :
guiengine: 2011-03-18 07:26:03 Login in progress
guiengine: 2011-03-18 07:26:03 Login successful
ERROR 2011-03-18 07:26:50.304 [sixxcpars.cpp:179]
FKD-00048 Unable to open URL file:///tmp/sapinst_instdir/NW71/INSTALL/SYSTEM/ORA/STD/AS/control.xml.
Abort execution because of
keydb.unableToOpenURL
Nothing has been moved from the /tmp directory.
Any help would be appreciated
Thanks
ChristoHi,
It looks like problem /tmp file system. Generally contents in this file system are temporary.
I think you have to start the installation again but this time I would suggest you to not use /tmp as installation directory.
Thanks
Sunny -
I tried to submit an interactive PDF form, but received a message: Error opening URL to submit the form. My form is created in InDesign cs6 and exported to interactive PDF with text fields. any one has some tips to deal wiith this?
Did you get this resolved? I am doing the same thing, passing in a url to the submitForm method via cURL. I am submitting as FDF, and specifying the #FDF at end of URL.
Currently working against a localhost url, which is allowed and trusted in acrobat to rule out the enhanced security of the reader.
Any ideas?
Maybe you are looking for
-
Urgent Help Required !!!! For using Netscape to open Form on the Intranet
Hi , I am successfully able to open Form application in a seperate window using IE 5.0. I would like to do the same with Netscape Navigator 4.7. The Navigator justshows a page which asks me to download the plugin and then even after I install the plu
-
Showing image with data in byteArray
The image data is available in byteArray. How to show image in JavaFX program? Thanks
-
JFormattedTextField as custom cell renderer in JTable?
I have my custom renderers in my custom JTable that work quite good so far. After upgrading to JDK 1.4, i want to finally use formatted text fields in my JTable. So, i extended my renderes to also support formatters. But this doesn't seem to work. Th
-
Does anybody know how to uninstall MacKeeper?
I've recently installed MacKeeper. I haven't used it yet but before doing it, I've read it is a malware. I've been trying to uninstall it with no success. My computer is starting to go wrong and slower. Does anybody know how to uninstall it?
-
Incorrect classification of users
Hi We are using ECC 6.0 and we have different user license and i have divided the user as per the license type in SAP Application Professional & SAP Application Limited Professional but when i execute System measurement i found in the log that there