New browser window with javascript
Hello,
I'm trying to accomplish something similar to what has been
discussed in other threads (Jess Learnin, 9/30/2008, and another
thread from back in '07). I've tried the advice given in these
threads and have had no luck. I would like to create a button to
call a new browser window that displays a URL of my choosing. I'd
like to specify the size and attributes of the new window. I've
created a small dummy tutorial in order to work on this feature.
I'm using the "Execute Javascript" option when configuring
the button. I include the following javascript:
window.open('
http://lib.berkeley.edu/BIOS/index.html',
'myWindow','height=400, width=700, toolbar=no');
I have the Captivate button context set to "Current". I have
deselected "Continue Playing Project" (though I've tried it with
that option selected as well).
I've tried prefacing the script w/
"javascript:window.open...", but no luck.
I'm testing the file on a development server, rather than
from a local copy. When I test in Firefox, my movie simply stops
when I click the button, without opening a new window or loading a
web page. When I test in IE7, the movie stops and I get a message,
"Error on page"; still no new window.
I do notice that I'm currently running Flash Player 10. I'm
using Captivate 3. When I publish my file, my options only go up to
Flash Player 9, which is what I have chosen. I don't know if this
would make a difference.
I have also tried altering the standard.js file in the manner
that jbradley88 suggested in the 9/30/08 thread, and using the
corresponding javascript in the button properties window, with
similar unsuccessful results.
I have tried running the movie on a different computer, in
case some local setting was somehow mucking things up. I get
nothing.
Any suggestions? If anyone's willing to take a look, I can
send along my small dummy .cp file that I've been working on.
Thanks in advance.
-Kelly
Hi John,
Here's the exact javascript that I currently have associated
with the button:
void(window.open('
http://lib.berkeley.edu/BIOS/index.html',
'myWindow','height=400, width=700, toolbar=no'));
I've tried multiple permutations, including placing
"javascript:" in front of the script, both with and without the
void().
The message in IE7 just says "Error on page". It's not a
pop-up message; it's just the small message that appears at the
bottom left of the browser window in IE7 when a page fails to load
properly. The message doesn't appear until I click on the button
that's supposed to call the javascript. There's a yellow
exclamation point icon that appears next to the "Error on page"
message. When I click on that I get:
"Problems with this Web page might prevent it from being
displayed properly or functioning properly. In the future, you can
display this message by double-clicking the warning icon displayed
in the status bar."
It also displays a pointer to the error:
Line: 1
Char: 111
Error: Syntax error
Code: 0
URL:
http://library11.berkeley.edu/bios/kelly/Practice_demo.htm
I looked at the source for the page as displayed by IE7 (have
also looked at the .htm and .js files generated by Captivate) and
haven't seen anything obvious, but I'm somewhat unschooled in such
matters.
If it would help to see what it does, you can view the demo
at the URL above.
Thx again,
Kelly
Similar Messages
-
Spawning new browser windows with jsp
in a webapp, is there a jsp way to open a new browser window? i'd like to avoid javascript if i can....
Definetely not. JSP is 100% server-side, it has nothing to do with the client-side (browser). You cannot do anything in the client-side with JSP.
You will have to use either HTML or JavaScript.
A seven-second Google-lookup with the keywords "opening new browser windows" yields as a second link:
Dan's Web Tips: Opening New Browser Windows
http://webtips.dantobias.com/new-window.html -
Calling a new browser window with WD Abap and passing data via POST
Hi there,
does anybody know whether passing data via POST method is possible when opening a new browser window from within a Web Dynpro Component? In my case I use method IF_WD_WINDOW_MANAGER->CREATE_EXTERNAL_WINDOW for opening a new browser window. Now I want to pass a big amount of data which is only possible via POST method. How can I achieve that or is it not considered inside the Web Dynpro Framework?
Kind regards,
AlbertHi Priya,
can you please explain a little bit more what you mean? I didn't get it..
Kind regards,
Albert -
Open New Browser window with "Server Behavior"
I know how to open a link in a new browser window by going to
the Behaviors panel. The site I'm working on is using PHP, so
instead of a Behaviors panel all it shows is a "Server Behaviors"
panel. Under the "Server Behaviors" there is't an option to open a
link in a new browser window. Should I be looking someplace
different or is there another way to add this function to a link?
Thanks in advance for any help!horsethiefbasin wrote:
> I know how to open a link in a new browser window by
going to the Behaviors
> panel. The site I'm working on is using PHP, so instead
of a Behaviors panel
> all it shows is a "Server Behaviors" panel. Under the
"Server Behaviors" there
> is't an option to open a link in a new browser window.
Should I be looking
> someplace different or is there another way to add this
function to a link?
>
> Thanks in advance for any help!
>
Makes no difference whether youre working on a php site or an
ordinary
htm site you still open a new browser window in exactly the
same way.
windows>behaviours>open browser window -
Closing browser window with Javascript
In our Forms application, we have been using a line of Javascript in POST-FORM to close the browser window after the form is closed. After installing Windows XP SP2, this no longer works and my understanding is that putting the code in a standalone HTML file, and calling this file from POST-FORM will work.
1. Where does this HTML file reside? My guess is
{ORACLE_HOME}\forms90\server
2. How is this script invoked? I guessed it would be
WEB.SHOW_DOCUMENT('close.html').
I'm clearly wrong, as this does not work!
Many thanks in advance.You might also want to look at the following thread:
Re: IE message "The web page you are viewing is trying...
It refers to the addition of some JAVASCRIPT to your formsweb.cfg file which resolves the problem of the IE message "The web page you are viewing is trying..." from being displayed. It still may not work if you are running seperateFrame=True though, I have detailed the problem I'm experiencing in the associated thread.
I'd be interested to hear if you can get round the display of the message if you are running in a separate frame.
Richard -
Opening a URL in a new browser window
Hello Experts,
I am trying to open a dynamic url in a new browser window from a Portal application (travel and expenses). Basically, when a user clicks on the submit button, Badi IF_EX_TRIP_WEB_CHECK~USER_CHECK_CHANGES is called. In the BaDI, we have added code to concatenate a parameter to a url and then open a new browser window with that url. This works perfectly in r/3 using a tcode (pr_web_1200) but when I use the portal application under ESS, the window does not open and no error message is issued. We are using METHOD cl_gui_html_viewer->detach_url_in_browser. Any idea why this is not working through ESS in Portal? Is there some other method that we need to use? Any help is appreciated.
Regards,
Salcheck....
Re: Open Portal Transaction iView in new window *without* Browser window
for iView (page) you probably set the property 'Launch in New Window' to value Display in Separate Window. To tune up the other otions you have the possibility to set the property Window Features, value should contain toolbar=no. These features will be used when Javascript opens up your window - you can apply any option coomonly documented. IMHO for your demands the best option is fullscreen=yes,toolbar=no - you get really the maximum possible size. -
Opening up a new browser window in java
So, i'm trying to open up a browser window to download the mac runtime for java, if the system is a mac. but because of microsoft not letting java to javascript communication i can't do it. anyone got any ideas?
thanks,
PeteHi,
you may check the platform in your applet with
System.getProperty("os.name"); and then open new browser window with
getAppletContext().showDocument(url_to_download, window_name);Regards,
Martin -
Default size of new browser window launched from community links portlet
Does anyone know of a way to control the size of the new browser window that is launched when the user clicks a link in a Community Links portlet (or any other links that launch a new browser window)?
We default all users to open links in a new browser window and I can't seem to find any rhyme or reason to how it sizes the resulting window. Some community links come out really skinny and un-user friendly, while others are nicely sized to near full screen.
Is there some way to control this?
Thank you.
DarlaDarla,
Which version of the portal are you guys running? We are currently using 6.5 and all the links/Documents/ExternalLinks/Pages open up in a new browser window with the same sizes.
Its basically controlled by javascript.
G -
Open new browser window without buttons, menus or URl-field
Hi All
How do you make an APEX-link open a new browser window with no toolbar?
Brgds
HelgeYou can create a javascript to window.open having toobar, menubar or statusbar=0. The page content can be customized per need. Call this javascript from a link or button click using javascript:popup_window();
For example,
<script language="JavaScript" type="text/javascript">
function popup_window()
w = window.open("", "Window", "width=320,height=400,status=0,toolbar=0,menubar=0");
w.document.write('<html><head><title>Help Window</title>');
w.document.write('</head><body>');
w.document.write('<div><font face="Arial" size="2">This is help page.');
w.document.write('</font></div><p>');
w.document.write('<div><font face="Arial" size="1"><a href="javascript:window.close();">Close This Window</a></font></div><p>');
w.document.write('</body></html>');
</script>Ittichai -
Opening/focusing new/existing window with refreshed data
hi ,
I want to open the results in a new browser window with current requested data as soon as I click on a button from a jsp.I mean as soon as I click on a button if the new window is already opened then the opened window should be get focused with refreshed current data, if the new browser window is not already opened then clicking on button from jsp should open a new window with refreshed data.
Following both ways are not working proper, could you tell me whts wrong with it..?
javascript functions:
function winOpen(statusVal)
var resultsUrl = "http://.........";
var fullURL= resultsUrl+"Status="+statusVal;
var lastOpened = null
if ( lastOpened != null ) {
lastOpened.close();
lastOpened = null;
lastOpened =window.open(fullURL, null)
lastOpened.focus();
with this code new window is opening but if I minimize that new window and if I click on a button jsp with new querry values, the same opened window is getting focused but not with new results in that window. I.e results in window are not getting refreshed ....
2.
with the following code every time it opens the new new windows( irrespective of already opened window) with new requested data.
function winOpen(statusVal)
var resultsUrl = "http://.........";
Openedwindow=window.open(resultsUrl+"Status="+statusVal;
Openedwindow.focus();Can u let me know how you solved this.
Thanks in advance -
How to open new browser window on click of command button
Hi,
We have a requirement to open an image in new window when a command button is clicked. Is there any sample explaining how to do that?
Thanks in Advance,
PradeepHi,
I have to load an applet viewer in the new browser window. I have URL to the PDF.
I ma able to load the applet viewer in new browser window using javascript. But I have to load the new PDF if the same window in already opened.
The issue here is , i am loosing the window handle if the parent page is refreshed. I want to store the window handle in session scope variable and use the same.
How do i update the session scope variable using javascript?
Thanks and Regards,
Pradeep -
Open a New Browser window in WD ABAP by specifying a window name
Hi,
Is there any method in Web dynpro ABAP that allows you to create a new browser window with the import of a Web dynpro Window name, not URL. Currently I only found
methods which input is the URL not Window name.
thanksHi
Accessing an application with the window name is not possible.The other possibility is accessing it using the application name.Follow the code...It will be
useful for you.
Thanks
Anzy
Data: lo_cmp_api TYPE REF TO if_wd_component,
lo_window_manager TYPE REF TO if_wd_window_manager,
lo_ext_win TYPE REF TO if_wd_window,
lv_url type string.
lo_cmp_api = wd_comp_controller->wd_get_api( ).
lo_window_manager = lo_cmp_api->get_window_manager( ).
CALL METHOD cl_wd_utilities=>construct_wd_url
EXPORTING
application_name = 'MYAPPLICATION'
IMPORTING
out_absolute_url = lv_url.
lo_ext_win = lo_window_manager->create_external_window(
url = lv_url
title = 'My Application' ). -
Not launching in new browser window?
I have setup a Flash viewer in a HTML Div container. In the Flash I have put a button which, when clicked, launches a new browser window with another site I've done to appear in.
When I test this in Flash its working fine and launches the new window as it should.
But when I go into Dreamweaver where I have placed the Swf. in the Div container, I test it locally in a Firefox browser window. The viewer appears and it works correctly, but when I click the button to launch the new browser window it just opens a window with an error msg 'unable to connect, etc'.
Any idea why this wont work? Is it because it needs to be live (online)?Hi,
What is the link that you are trying to open.
Please check if you have placed the protocol - like this http://www.xmy.com" format
and used "_blank" as target in navigateToURL API.
Warm Regards
Deepanjan Das
http://deepanjandas.wordpress.com/ -
PDF viewer into new browser window
Hello,
I use following code to open new browser window with PDF file. The URL passed to the method is link to SICF service which returns the PDF in the request with content-type = 'application/pdf'. New window is open with correct URL, but the content is not displayed - Refresh or Go button has to be pressed to display it. Don't you experience similar problem? Is this WD error or some IE security setting?
Thank you and best regards,
Ludek
lr_window = lr_w_manager->create_external_window(
url = ld_url
title = ''
modal = abap_false
has_menubar = abap_true
is_resizable = abap_true
has_scrollbars = abap_true
has_statusbar = abap_true
has_toolbar = abap_true ).
lr_window->open( ).Hi Ludek,
Probably a compression problem. Have you turned off gzip compression for the pdf?
Btw, an alternate solution without having a separate handler is to use the cl_wd_runtime_services=>attach_file_to_response() method.
Best regards,
Thomas -
Send e-mail action sometimes opens new browser window w/error
In a captivate 5 tutorial, to encourage feedback, I've added a click box with the action to send email. On Preview and Publish, this does open a new message in Outlook (if I have Outlook open) but sometimes it also opens a new browser window with the message "Navigation to the web page was canceled". Anyone have ideas on why this is occurring and how it can be avoided? Thank you.
Hi there
See if the link below helps
click here
Cheers... Rick
Helpful and Handy Links
Captivate Wish Form/Bug Reporting Form
Adobe Certified Captivate Training
SorcerStone Blog
Captivate eBooks
Maybe you are looking for
-
HT1473 can't import my .flac music
why itunes don't import or play my .flac music
-
Help Requested - Creating Solaris 10 x64 Virtual Machine on an ESX Server
Hi All, I have been trying to create a Solaris 10 64 bit Virtual Machine on ESX and VMWare server Virtualization Platform. One of the forum entries said - The installer doesn't really care. At every boot, the processor type will be determined and a 3
-
Why does MS Word 14.2.3 run so slow on MacBook Pro and brand new iMac?
Ever since upgrading to Mountain Lion, MS Word runs very slowly on both my 2007 MacBook Pro with 4GB RAM and a brand new iMac with 16GB RAM. I have trimmed fonts in the systems and removed font conflicts and duplicates. Keyboard entries are delayed
-
Why my macbook pro is very slow?
why my macbook pro has became so slowly?
-
Still having problem with this sql select... any suggestions! tx
The following code has a result, I need to modify the select somehow which only gives me the rows which are common between all PLSTS. Any suggestions? Thank you SELECT DISTINCT P.PLST, P.MENU, I.PNL, P.ACCESS FROM AUTHITEM P, I.MENUITEM WHERE P.MENU