Open Window with Javascript
Good Morning All,
I am trying to open use a button in captivate to launch
another .swf movie and am having no luck. I have reviewed all of
the posts here in the forums, but I still cannot seem to get it to
work. So, I apologize for posting this again!
Here's and overview:
I am creating a several Captivate projects that will be
hosted online. I am publishing to Flash. One project provides an
overview and serves as a "launching" point for the other projects.
So, I want to be able to open a new, "chromeless" browser
window set to the specific size for the project when I click a
button that will open another project which I have published to
Flash.
Any help would be greatly appreciated!
Aaron
Thanks for your help Frank. I can get the window to pop-up
can open the other file, but there is just one snag. When I click
on the link, the original window goes blank and I would like it to
keep the stay at the point in the presentation where the user left.
Is there any way to keep the original project from going
blank? (The Flash file disappears and [OBJECT] appears on the blank
browser window.)
Similar Messages
-
Opening windows with JavaScript
I am reasonably happy with my feedback screen, but after a
visitor sends a
message I would like to close it, and then pop up a smaller
"Thank you" window
for a few seconds.
After a lot of messing around, I have more or less got this
working (and have a
slightly better understanding of JavaScript), but have a
number of questions.
1. What is the difference between MM_openBrWindow() and
open.window()? They
appear to do the same thing, and to take the same parameters.
2. If I open the new feedback window, using either of the
above, and then use
open.window to open the Thank you window from the feedback
window, it appears to
use the same parameters as the previous window, regardless of
what I specify.
Is there a way around this?
3 The alternative to this would be to put code in the
originating window which
popped up the feedback window, and then popped up the Thank
you window when the
feedback window closed. Can I have the first window return a
result, and then
pass it on to the second window, and how would I access it in
the second window?
Clancy> This works with the local copy, but not with the remote
copy. I replaced
> the
> relative URL with the absolute URL, so that it opened
the remote copy,
> even if
> it had been loaded from my computer, and the local copy
still worked.
> However,
> when I modified index.php to open the remote copy of
Xcl_qry.php, the
> Thank you
> window did not open.
Make a simple test. You will find that either of these
methods works.
Something else is coloring your interpretation here.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"Clancy" <[email protected]> wrote in message
news:[email protected]...
> "Murray *ACE*" <[email protected]>
wrote:
>
>>Show us the respective markup in either case, please.
>>
>>If you look at the OBW function, you'll see that it's
just calling the
>>window.open() function -
>>
>>function MM_openBrWindow(theURL,winName,features) {
//v2.0
>> window.open(theURL,winName,features);
>>}
>>
>>so you should get the same behavior with either.
>
> SHOULD being the operative word. As I have noted
elsewhere, I found the
> version
> which I thought I had working operates correctly if I
run the local copy,
> but
> not if I run the remote copy.
>
> The sequence of events is as follows.
>
> Index.php has a 'Comments' link, with the following
code:
>
> <img src="Images/Xclqry.jpg" alt="Comments and
queries" width="60"
> height="24"
>
border="0"onclick="MM_openBrWindow('Xcl_qry.php','Xclqrywindow','width=800,
> height=600,menubar=yes')" >
>
> This loads the feedback form Xcl_qry.php. This is based
on David's
> feedback
> form. When this is loaded it checks if data has been
entered. If so, it
> processes it and, if valid, tries to e-mail it. If this
is successful it
> should
> open the 'Thank you' window, and then close. The code
used for this is:
>
> <script
>
type="text/javascript">window.open('Thanks.php','Thankswindow','width=400,height=200');</ script>
>
> This works with the local copy, but not with the remote
copy. I replaced
> the
> relative URL with the absolute URL, so that it opened
the remote copy,
> even if
> it had been loaded from my computer, and the local copy
still worked.
> However,
> when I modified index.php to open the remote copy of
Xcl_qry.php, the
> Thank you
> window did not open.
>
> I then modified the open commands to ask for a menu bar,
so that I could
> examine
> the code actually loaded to my PC (on the last pass),
and altered
> Xcl_qry.php so
> that it remained open. I then ran each version, and
saved the code. When
> I
> compare the two versions they were identical, except
that the remote
> version had
> an additional line on the end:
>
> <script
language='javascript'>postamble();</script>
>
> I put this on to the local copy, so the two files as
loaded were
> identical, but
> this made no difference.
>
> So the current state of play is that the local copy of
Xcl_qry.php will
> open
> either the local or remote copy of Thanks.php, but the
remote copy of
> Xcl_qry.php will not open the remote copy of Thanks.php,
even though the
> code
> actually loaded onto my PC is identical. I have not
checked if it will
> open the
> local copy as this does not seem very relevant.
>
>
http://www.corybas.com/
> Clancy -
I've been noticing that any site I go to that opens content in a new window with "javascript:void(null);" will be ignored by Safari 3.1. The links work in Firefox and used to work in Safari as well. Any suggestions?
General rule of thumb in the Mac universe...
When Safari is updated most if not all third party add-ons break. That's because most don't play by the rules. The developer thinks they know how to do it better than Apple so they just do it their way. So the first rule of survival is to KNOW what you have installed on your machine at all times. Use something like textedit to create a document listing all of the third party stuff you have installed and religiously update the list. Second rule is to wait a few days before applying an update. Third rule is to visit your third party developers' sites and make sure their little gadget is compatible with the new Safari update.
Being aware of things will make life much easier for you in the long run. -
How to close open windows with ios7, How to close open windows with ios7
How to close open windows with ios7, How to close open windows with ios7?
Guess they thought we needed more exercise so now we have to swip them to close.....miss iOS6. My eyes are blurry now after looking at my phone, and my arms are tired from swipping lol
-
Unable to open a seperate java console window with javascript:window.open()
Hi All,
I am opening a new window using javascript:window.open() function by clicking an hyperlink in a html document. In this new windows I am trying to load an applet. Only for the first time a java console window is displayed in windows system tray . How can I open a different java console window each time I open a new window ? Basically I want to run each applet in its own JVM and it seems that each applet loaded in new window is using the same JVM and hence only one java console window is seen in my system tray.
Please help ...
Thanks & Regards,
Ravi.Hi,
We are currently facing this exact issue. Did you ever find a resolution?
Any input would be appreciated.
Thanks, -
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.
-KellyHi 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 -
Firefox opens window with tabs leading to garbled links
Almost every time I go to a site, firefox opens a new window with numerous tabs trying to access garbled links. The first tab looks like this: http://i56.tinypic.com/2nkuo9k.jpg.
Anti-virus programs found nothing, and re-installing firefox didn't fix it.Do a malware check with some malware scanning programs.<br />
You need to scan with all programs because each program detects different malware.<br />
Make sure that you update each program to get the latest version of their databases before doing a scan.<br />
<br />
* http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
* http://www.superantispyware.com/ - SuperAntispyware
* http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
* http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
* http://www.lavasoft.com/products/ad_aware_free.php - Ad-Aware Free
See also:
* "Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked
See also:
*http://kb.mozillazine.org/Resetting_preferences -
Close flashfield-window with javascript
is it possible to close a not fixed flashfield-window with the javaScript.
Hi,
yes it is. It needs just a single line of JavaScript.
FlashField1.ui.exObject.setState("deactivated"); -
Hello all ,
I used the package in the Denes Kubicek demo page: http://htmldb.oracle.com/pls/otn/f?p=31517:118:651492651950833::NO, to Export report data into XML file and it works fine.
I'm now using it in a Shared process being called from Javascript in the page, my problem is that in this way i can't download a file.
Javascript
<script type="text/javascript">
function carregar_report_id()
var temp_ir_id = document.getElementById('apexir_REPORT_ID').value;
var temp_page_id = document.getElementById('pFlowStepId').value;
var ajaxRequest = new htmldb_Get(null,$v('pFlowId'),'APPLICATION_PROCESS=CARREGAR_REPORT_ID',0);
ajaxRequest.add('GLOBAL_IR_ID',temp_ir_id);
ajaxRequest.add('GLOBAL_PAGE_ID',temp_page_id);
var ajaxResult = ajaxRequest.get();
if(ajaxResult)
//document.getElementById('teste_listagem').innerHTML = 'update_selected_template:' + ajaxResult + '
//alert("XML criado: " + ajaxResult);
document.write(ajaxResult);
//document.getElementById('xml_div').innerHTML = ajaxResult;
else
alert('Erro de Aplicação, #create_ir_xml# contactar administrador!');
ajaxRequest = null;
</script>
Shared Process
DECLARE
id_region NUMBER;
BEGIN
select region_id into id_region from apex_application_page_regions where APPLICATION_ID= :APP_ID AND PAGE_ID= :GLOBAL_PAGE_ID AND SOURCE_TYPE='Interactive Report';
export_xml_pkg.print_report (id_region,'RelatorioIR_'||:GLOBAL_PAGE_ID,:GLOBAL_PAGE_ID);
END;
How can i open the xml file in a new tab with javascript??
Regards Pedro.As a short term workaround, you could package it with Firefox on the USB flash drive to work around the tendency of the installed Firefox to look to its own profile folder.
Possible discussion forums:
(1) Add-ons - https://forums.mozilla.org/addons/
Not sure if they talk about webapps or just the more conventional kinds of add-ons.
(2) Mozillazine - http://forums.mozillazine.org/
Again, not sure there is a board for this yet. -
HT6114 unable to open windows with bootcamp
I have been using windows 7 in boot camp since two days I am trying to open windows but unable to open in windows.
How is Windows installed?
If you installed Windows using Boot Camp Assistant you don't "open" Windows you boot into Windows.
If ypou installed Windows in a virtual machine you must start the virtual machine before turning on Windows from within the virtual machine. -
Activate open windows with mouse rollover?
Hello.
Is there a third party utility or OS X setting that allows an open window to be activated simply by hovering the mouse over it, rather than having to click on the window?
(There is something like this in the Windows world, called TXMouse, or True X Mouse.)
Thanks,
AviThis happens quite a bit on the recently released beta's of Solaris Express and I would guess OpenSolaris as well. There was a thread on OpenSolaris.org that Jurgen Keil posted that disables some aspects of the CPU that on my system at least alleviated the issues.
I've not seen any reports on it from Solaris 10 so it might be unrelated. Which version of Solaris specifically are you using?
alan -
Hi, this was one very handy feature which I can not find now in Lion and kinda frustraits me. When I wanted to go strait to a clear desktop to open a folder, while being on another window, I had to swipe three fingers up (I think). Now trying swipe up, down, whatever, I got different showing of all opened windows, the one which says desktop though when clicking on it, brings the current window. Is it me or Lion is missing that? thanx
Hello,
Apple employees do not read very often the messages here.
The only (and official) way is to send a suggestion via this page :
http://www.apple.com/feedback/macosx.html -
Safari won't open windows from JavaScript
On my iMac running 10.6.3, direct links which use JavaScript to properly open up a small window in all other browsers, instead opens up a new full-sized tab in Safari.
Some points:
- This is not a JavaScript function calling window.open() indirectly, this is a direct link with an onclick opening the window.
- The problem is only on this iMac. On my MBP the same link opens up the small window properly.
- The Safari settings seem to be the same on both computer's Safari with regard to pop-up blocker settings (shouldn't apply in this case anyway) and all general and tab preferences settings. I can't see any settings differences at all.
This happens at all sites with clickable popup windows - what should open in a separate window opens in a separate tab instead.
Any idea why this is happening?
Thanks,
dougNever mind. It was the Glims plugin interfering. Please ignore this. I would delete the message if I new how.
doug -
Is it possible to open window with FPM embedded multiple times in a dialog?
Hi,
Is it possible to open a web dynpro window whose view embeds the FPM_GAF_COMPONENTu2019s FPM_WINDOW multiple times in dialog window?
I have a web dynpro component WDC1 which use FPM_GAF_COMPONENT and provide the component configuration for FPM.
Thereu2019s a WINDOW1 (with View1) in WDC1 which has a view container and the FPM_GAF_COMPONENTu2019s FPM_WINDOW is embedded.
I have a button in WDC1 which create a new dialog window by calling if_wd_window_manager->CREATE_WINDOW as code below.
lo_window = lo_window_manager->CREATE_WINDOW(
MODAL = ABAP_TRUE
WINDOW_NAME = 'WINDOW1'
TITLE = 'Test opening FPM multiple times'
CLOSE_BUTTON = ABAP_TRUE
* BUTTON_KIND =
* MESSAGE_TYPE = IF_WD_WINDOW=>CO_MSG_TYPE_NONE
* CLOSE_IN_ANY_CASE = ABAP_TRUE
* MESSAGE_DISPLAY_MODE =
* DEFAULT_BUTTON =
IS_RESIZABLE = ABAP_TRUE
It works for the first time when I click the button, a dialog window opens with my FPM GAF stuff.
But when I click the button the second time after closing the dialog window, it generates a dump with error message saying u201CComponent Usage Group MESSAGE_AREA_USAGES Already Existsu201D.
In ST22, the dump was generated in WDDOINIT of view u201CMAINu201D on FPM_GAF_COMPONENT which looks to me like the message manager is already created in the first time.
lr_component = wd_comp_controller->wd_get_api( ).
lr_usage_group = lr_component->create_cmp_usage_group(
name = 'MESSAGE_AREA_USAGES'
used_component = 'FPM_MESSAGE_MANAGER' ).
wd_this->mo_message_area_usage = lr_usage_group->add_component_usage( 'MESSAGE_AREA_USAGE' ).
wd_this->mo_message_area_usage->create_component( 'FPM_MESSAGE_MANAGER' ).
I tried to remove the component usage of FPM in my WDC1 or delete the component directly, hoping that this will clear the memory , but doesnu2019t work, only bring more different dumps which make this look like a wrong direction as I am interfering the lifecycle of FPM itself.
Can anyone share some ideas here? Thanks in advance.
Best regards,
Beiyang
P.S. The FPM GAF works fine when I open the window in new browser (by calling if_wd_window_manager->create_external_window).Hi ,
Currently I am facing same problem could you please let me know how you resolved your issue.
Thanks in advance. -
Opening window with display_items
Hi,
I need to show some messages (validation errors) on the press of a button. For this, i have created a document window and a content canvas containing only 1 display item. Before opening the window, i populate the display item with the message i want to display.
But the window dosent open when i press the button.
The code in the WHEN-BUTTON-PRESSED trigger is
:CONTROL.SKETCH_VAL_MSG := l_message ; APP_CUSTOM.OPEN_WINDOW('SKETCH_VAL');
I think that we should move the focus to some item on the canvas. But in this case the only item is a display item and i cannot use go_item(). Is there any workaround for this? Is this approach correct?
Please suggest
Thanks,
AshishHi,
Thanks for your prompt reply. I tried to create a dummy text item and shift the focus to it, but dosent work.
So, changed the display_item to multi-line text_item with insert,update, and query property set to No.
Thanks for all your help!
Ashish
Maybe you are looking for
-
I see many references to this problem, which also seems to be associated with iCloud, but many references to these symptoms go back to 2007 and are not relevant to OS X Lion. At the Google Calendar help forum I see indications that Apple & Google ar
-
Pls help in performance tuning SQL
Hi All, Can someone please help me to tune this quesry. Rt now it is takin 20 mins tro retuns 80,000 rows and its using dblink SELECT COUNT(*) FROM (SELECT /*+driving_site(main)*/CORP_ACTG_PRD_YEAR, CORP_ACTG_PRD_NBR, FCN_CODE, LOCAL_CRNC_CODE, GL_LO
-
HI, in customer master -sales area data -billing tab -how to make tax classification indicator field as mandatory
-
How do I take A/D samples on a falling edge of pulse Train using PCI 6024E card?
Sampling using external triggers for A/D Attachments: DAQ_appln.doc 70 KB
-
Where to find EPMA administrator's guide?
Hi I can't find in the documentation of 11.1.1.3, can anyone tell me where to download it? Thanks