Making buttons link to popup browser windows in ActionScript 3
I am trying to figure out how to make buttons on my flash
file link to URLs that appear in a window of fixed dimensions (with
scroller bars) next to my Flash window.
I am aware that Adobe has instructions for creating pop-up
browser windows through Flash (
http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_14192)
However, what I'm trying to do is a bit more complicated,
since I want to have multiple embedded invisible buttons in the
Flash window that each take you to a specific URL when you click on
them. Alternatively I'd be happy if any button click resulted in a
link to a random selection from a pre-programmed list of URLs.
Any suggestions? This is for ActionScript 3.
Hi Im having a simlar problem with creating a button that
opens up a url link in a blank browser window and keeping it at a
specific size. here is the code that I'm using.
my_btn.addEventListener(MouseEvent.MOUSE_DOWN,
mouseDownHandler);
function mouseDownHandler(event:MouseEvent):void {
var urlStr = "my info_page.html";
if (ExternalInterface.available) {
ExternalInterface.call( "window.open", urlStr, "_blank",
"width=400,height=400");
} else {
var urlRequest:URLRequest = new URLRequest(urlStr);
navigateToURL(urlRequest);
the problem is the window doesn't open when I click on the
button and I don't know how to fix this
Similar Messages
-
Open links in new browser window
We are using Oracle WCI 10.3/Collaboration 10.3 and have a Community Links Portlet (collab portlet) setup. The links open up in the same browser window and to get back to the portal, the user has to hit the back button on the browser. So,
1) Is there a portal/collaboration configuration that enables links to open up in a new browser window?
2) Is there a way to hide the address bar when the link opens up in a new window? (the reason for this question is, we may have a link to some applications where we don't want the user going in directly. So, by hiding the address bar, they can't copy the URL and access directly without going in through the portal).
If there is any better way to do question 2 above, would appreciate the feedback.
Thanks.I was able to figure this out:
1) In the My Account section, under display preferences, there is an option to "open documents in same window" or "new window". By changing this, links in the Community Links portlet open up in a new browser window.
2) With a simple javascript example that I found on the internet, I was able to customize the popup browser window with no address bar or menu buttons.
Edited by: user1301820136 on Jun 26, 2009 9:59 AM -
Open pdf in popup browser window
Hello
I want to show a pdf file which is stored in a blob column in the database in a popup browser window.
I'm using apex 4.1 (soon 4.2) ans an 11gR2 database.
I searched the OTN forum and found a lot of threads about this issue but I do not see a solution that works fine for me.
Most inspiration from this post:
Show PDF ....
There is an example application from Kumar:
http://apex.oracle.com/pls/apex/f?p=52018
worspace: kumar2003
username: test_user
password: test
application: 52018
Test1 is the solution I want to create.
I tried :
Content-Disposition: inline;and that works almost fine. Only the pdf is not in a popup browser window.
Patrick Wolf suggests:
<a href="your_download_link" target="_blank">PDF</a>But I do not exactly know what he means.
Any help would be appreciated.
Regards ErikHi,
I hope I understood your question correctly, if so my suggestion may be helpful. Otherwise I think it's nearly the same what paul writes, I only made clear my proposal in a website for you, first a photo:
and here is the link: http://www.goldschmiede-blumberg.de/pdf/adob_pdf.php.
Note 1: "Ausgabe 9" und "ein Mausklick hier genügt" are links!!
Note 2: " Um pdf-Dateien ...." Means: To read pdf files, you need the free Adobe Reader. The current version you can download from the Adobe website.
Look at it's source code.
Viel Erfolg
Hans-G. -
I inherited a Help project in RoboHelp 6. I have both
context-sensitive topics and am developing a total Help system. I
am frustrated with several "features" of RoboHelp.
1) I can't figure out how to control how links open. I want
them all to open in a small Help window, so when a user clicks a
link, it opens in the same Help window. Instead, many of my links
are opening in a full browser window. How do I control this?
2) When I edit code in their supposedly "TrueCode" mode, my
changes do not "take" -- instead RoboHelp shows something else, and
this happens even when I edit the file in another editor. I hate
this!!! (One example: to try to fix the window-opening problem, I
tried adding Target="Self" to links, but RoboHelp removes the quote
marks)
3) Why no Back button? I saw the item about adding a back
button with JavaScript and will try it. I find the lack of a Back
button annoying in RoboHelp's own Help, which IMHO is not well
organized or well-written (am I the last person on earth to
understand that "display" is a transitive verb? Or that you don't
open a "dialog" but rather a "dialog box?"I really do appreciate your help, and I want to apologize for
offending anyone. I think my antipathy to RoboHelp began years ago
with a totally different version, plus, with my current project, I
came in behind someone else who recommended the company buy
RoboHelp (at a cost of $1000), started the Help and had very little
done before she quit and they hired me. My work involves more than
doing this Help system, but I wish I could have been here to review
and recommend tools... and maybe I would have ended up with
RoboHelp anyhow. I don't want to waste the company's $1000
investment, so I just have to master this tool, even if I do have a
laundry list of complaints about it.
Your comments were considerably more helpful to me than the
RoboHelp Help. I now realize that 1) RoboHelp talks about "frames"
because a full help window (with TOC) actually uses frames, and 2)
what I want to do may not be possible.
Here is what is happening. Our application is not
Windows-based, but rather uses "portlets" -- a "page" in the
application may have 7 or 8 portlets that load independently (the
user can configure his page to have the portlets he wants). The
user can right-click a portlet to get a menu of options that
includes "Help." When the user clicks this Help option, he gets a
small single-topic window, without frames or TOC. The Help file is
given the same name as the portlet. This is the instruction I got
from the developers, who showed me how to find the portlet name.
This is all working just fine.
Here's the problem: I have links inside those single-topic
windows. When you click a link inside these windows (the
context-sensitive help associated with the portlets), the link
opens a full browser window. The small window with the portlet Help
remains. The new window does not replace the old window. What I
intended (and was trying to make happen with those RoboHelp choices
from "Display in frame" in the Hyperlink window) was for the link
to replace the previous window -- to appear in the small
single-topic window.
When I preview a topic, the links DO open in the same size
window, but maybe that is not surprising. The application may act
differently. If RoboHelp can only control how a link behaves when
the link is in a full (with frames) Help window, then maybe none of
the "Display in frame" choices will make any difference. Is it
possible that I just can't have any links in a context-sensitive
window? Or is this something the developers could change by
specifiying that windows replace windows?
Can you see how it seemed to me that I could fix how the
links should behave in the HTML? It certainly seems logical that a
simple "target="self" would work, and I did not know why RoboHelp
was changing the code. Was it to insure that the code would NOT
work (as in "commenting out" lines of code?) RoboHelp Help is not
big on explaining what its features are actually doing.
If I cannot have links inside a context-sensitive,
single-topic small window, then I need to rethink the design of my
Help system. The developers gave this very little thought and
seemed to think the context-sensitive help would be enough to guide
the users, but I can see that it is not enough. We DO need a full
(with TOC) Help system, as not all features are just a portlet.
Some features involve tabbed pages that have no "Help" link. This
is a very complex EMR (Electronic Medical Records) system, with a
lot of features that need explaining... So, at present, I am mixing
the two kinds of Help -- context-sensitive and full Help, with TOC.
The developers automatically add "Help" to all right-click menus,
so they are working on a concept of context-sensitive Help. I can
create a file for all those "help" menu items, but the help will
not be as helpful as I'd like if I can't put links to related
topics inside the window.
I have not tried RoboHelp's "related" button feature because
I prefer to just put the links in the window than have users do the
extra step of clicking a button, but I could try that if the
"related topics" pop-up would give me links that would open inside
the small window. It just does not seem acceptable ot me to hav
Help windows going outside the system to a full browser window that
leaves the previous window open.
Regarding the question about whether the project files and
output files are the same -- the output file is clearly different,
but both use the target=_self format. I don't know if we're using
the RH CSH interface. I will try to get more information from the
developers as to whether they have somehow set these windows to
work this way.
Regarding creating a new "Window" defintion--- I did look
into that, and you can specify a "one pane" window, but I don't
want a Help topic to be confined to one pane. The same topic that
is a context-senstive topic also appears in the TOC, sowhen the
user is accessing it from the full Help, the topic should open in
the right pane, like every other topic accessed this way. The
"window" definition does let you set a window size and choose to
make it resizable or not. But it is not this "window" feature that
is controlling the context-sensitive windows, since they are not
set to a separate "window" definition, so it is not clear that this
strategy would actually work.
Have I explained the problem better? My purpose is to create
useful and helpful Help. RoboHelp is the tool I've been given to do
it, and I am not experienced with this tool. If anyone can tell me
if I can get those links to open in the same window as the previous
single-topic small window, I would be most grateful. Otherwise, I
may have to rethink my whole design.
Again, I am sorry if I was overly critical and offended
anyone. -
RoboHelp 10 Skin Navigation Button - Link Open in New Window
I'm using RoboHelp 10 and am trying to get the button in my navigation skin to open a link in a new window. I researched this extensively and have not been able to get it to work. Can you please assist?
Is that link for some external website or some pdf file etc?
When you create a button on a skin and ask it open a file it should do that in the web browser.
If the link is for a website etc then it might give you the following link but you can still open the url in a new window by clicking on 'Open this content in a new window". -
Opening Link in fullscreen browser window
I have this action on a button and want it to open the link
in a fullscreen browser window. What did I screw up?
on (release) {
getURL("javascript:ContactObj=window.open('
http://www.villagegreenstudios.com/view2/BTAdemos.html','btawdemoswin','scrollbars=Yes,sta tus=No,resizable=Yes,fullscreen=Yes');
ContactObj.focus(); void(0);");
}Looks pretty good to me. Sometimes if I'm having trouble with
doing things this way, I whip up a quick function in javascript on
the html page that does the same thing and just call that function
with getURL or externalinterface. Saves me from having to debug
quotation mark issues. -
Open URL Link in new browser window
Can someone please help me? I've tried to use code as if I were using Dreamweaver without any luck(i.e. blank target).
Is there a way to make the url in the PDF open a new browser windows once clicked? Hopefully this is an easy fix! Thanks in advance!Jono, if you are still out there. I am also having trouble with this function. The button works just fine, but it does not open another browser window. I am trying to keep my pdf open, and send them to a url. That way they can come back to the form. Like you would with the target="_blank" function in javascript.
What am i doing wrong? I have tried opening the script editor, but I am not sure what to do there. So I put the same as you did on your form, no effect. I put target="_blank" and set it to javascript on just about every option. I have tried to go into the code on the xml source tab, no luck anywhere. I have tried to just use a text field, no luck.
Seems like everything I have tried has no effect.
Hopefully you can tell me it is something simple...
Thanks in advance.
Jodi -
Opening an URL via a button in a new browser window?
Hello,
I'm integrating now Oracle Reports in my HTML DB application.
Everything work well. I have create a launching page with paremeter items and a button that call a branching of type "Branch to Function Returning a URL". This branching construct the Oracle Report URL with parameters as entered in the parameter page.
The only thing missing is the possibility to open Report output in a different browser window. I don't know how to do it via the Branching specification. Normally, in HTML, I would use target="_new" .
Thank you
Jeanyou might want to try having your page submit as normal, doing your parameter manipulation in an after_submit pl/sql process, and popping up the report page from your next htmldb application page. let's say, for example, that you have an update form on page 4 that branches back to a report page 2 in your application. you'd like to use the P4_JOB value submitted from page 4 to pop up a google search for that job and the string "oracle". you could do it like this...
--create an app-level (or page level) item called POP_ON_LOAD
--have page 4 submit as normal and branch back to page 2
--add a pl/sql process that fires when page 4 is submitted. have that proc set the value of POP_ON_LOAD like so...
begin
:POP_ON_LOAD := 'OnLoad="popupURL(''http://www.google.com/search?q=oracle+&P4_JOB.'');"';
end;
--enter &POP_ON_LOAD. into the "Page HTML Body Attribute" attribute of the "On Load JavaScript..." region on the page-level attributes page for page 2.
this way, when POP_ON_LOAD is populated, htmldb will make the onLoad call to popupURL passing in whatever url you set from your after_submit process on page 4. and just remember to clear your POP_ON_LOAD item when you don't want page 2 to pop up those extra windows.
hope this helps,
raj -
Open PDF link in new browser window?
I'm viewing a newly created PDF in a browser.
When clicking an internal link, the linked PDF loads into the same window
I need it to launch in a new browser window.
I have set the link to "launch new window" in Word where this file originated.
I have also opened and resaved it in Acrobat 10 with preference "Open cross-document links in same window" deselected.
Neither of these setting have change the behavior though all documentation I read seems to suggest they should.
What am I missing here??
-BlakeThat preference setting does not apply to web links and do not refer to a browser window, but an Acrobat window.
There is a JavaScript method that might work. Try setting the link action to something like the following script:
app.launchURL("http://www.example.com/", true);
This was taken from the example here: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.150.html
The problem is if a user has Reader 10 and protected mode is enabled (as it is by default), it doesn't work and opens the link in the same browser window. -
Discoverer Viewer Open Link in New Browser Window
We have created cubes with links to details (using Manage Links).
When selecting the link from Discoverer Plus OLAP, a new browser window opens.
When selecting the link from Discoverer Viewer, it opens within the same browser window.
How can we force Discoverer Viewer to open a link in a new browser window?
We tried adding the TARGET="_blank" to the link but that only gets added to the last parameter (or passed as a parameter).
Unlike Discoverer Plus parameter, there is no _popup option.This article by Ted Padova will give you the JavaScript code that will accomplish this: http://acrobatusers.com/blogs/tedpadova/opening-pdfs-new-browser-windows
-
Opening link in separate browser window
Is there a way to make a NEW browser window open when creating a hyperlink to a page outside (external) of my website? My external links always open in the same window as my website resulting in the viewer being taken off my site.
Check out this link:
http://web.mac.com/varkgirl/iWeb/Aardvarkland/Open%20links%20in%20new%20window.h tml
Basic summary of what the link says:
1. Publish your page. Changes will be made in the published files.
2. Get MassReplaceIt
http://www.hexmonkeysoftware.com
http://web.mac.com/will.englefield/iWeb/WillG4PB/MRI.html
3. Set up MassReplaceIt
Find
href="http
replace with
target="_blank" href="http
This will change all of your external links to open in a new window and leave your internal links as is.
Remember, if you make a change to a page like this post-publishing, and later re-publish, you have to make the html changes again! Save your query in MRI for next time -
Flash button script to control browser window
I would like to open a browser window from a Flash button
which will open my .swf into an html page with specific height and
width with no tool bars just like: the "click here for demo" button
in www.teachingtextbooks.com. It opens a window with no tool bars
and it fits the .swf file perfectly. I see javascript in the html
page that looks like it is part of the script however I am assuming
their is script on the button as well.
Please help.
Thanks,
GreenThank you for your help on this. I copy and pasted your code
(on the button and I rec'd 2 errors. I copied and pasted here. I
will put the code on the frame if I can get this working.
**Error** Symbol=premier_mc, layer=angelmovie, frame=151:Line
2: ')' or ',' expected
getURL("javascript:YourWindow=window.open("
http://www.google.com",'YourWindow','width=850,height=650,left=0,top=0,toolbar=No,location =No,scrollbars=No,status=No,resizable=No,fullscreen=No');
YourWindow.focus(); void(0);");
**Error** Symbol=premier_mc, layer=angelmovie, frame=151:Line
3: Unexpected '}' encountered
Total ActionScript Errors: 2 Reported Errors: 2
Frame 151 is where the button is and there is only 3 lines of
code in the Action Script panel. Any idea why I am getting the
error. I won't have to add code to the html page?
Thank you. -
Text link and open browser window
Hello
I have successfully done this clicking on an image using
behaviours 'open browser window' to open a larger version of the
image and I would like to do the same with a text link eg 'click
here for Terms and Conditions' and have that web page open in the
same way setting the width, height etc. I can't seem to do it. Any
help gratefully accepted!
Thank you very much in advance.James Shook wrote:
> ... Search this newsgroup's archives for the way to do
this so it will
> work well in browsers with JavaScript turned off.
An easy way to do follow James sage advice, once you've added
the Open
Browser Window behavior to your's link, is to run the free DW
Extension
divaFreeTools on your page. It will update the DW
OpenBrowserWindow
Behavior to work properly when javascript is off and help
Search Engines
find your linked page/image.
http://divahtml.com/products/divaFreeTools/free_dreamweaver_tools.php
E. Michael Brandt
www.divahtml.com
www.divahtml.com/products/scripts_dreamweaver_extensions.php
Standards-compliant scripts and Dreamweaver Extensions
www.valleywebdesigns.com/vwd_Vdw.asp
JustSo PictureWindow
JustSo PhotoAlbum, et alia -
Placement of popup browser window using behavior
I am using the Open Browser Window behavior in Dreamweaver to show information in a popup window. My problem is that when the window comes up, the original page scrolls to the top of the page. This means that viewers have to scroll down the original page to get back to where they were after the close the popup window. Is there a way to prevent scrolling of the original page when the Open Browser Window behavior is used, or do I have to figure out how to do it with Javascript? Any suggestions would be greatly appreciated.
Is there a way to prevent scrolling of the original page when the Open Browser Window behavior is used
Yes.
Your code probably looks like this -
<a href="#" onclick="MM_OpenBrWindow(...)">
Change it so that it looks like this -
<a href="#" onclick="MM_OpenBrWindow(...); return false"> -
Open link in new browser window
I know how to enter the links in the assets page so when I
export to dreamweaver the links already in the html. Is it possible
to enter a link URL and have it open in a new window? I know that
you can use the popup feature but is there any other way?
ThanksI used the Behaviors tab to do this (see: www.adobe.com/support/dreamweaver/interactivity/behavior/behavior04.html).
The page I was starting from is http://www.wqma.com/schedule.html. I wanted to click on a link and have it open a new window with a .pdf of our schedule.
When I strictly followed the instructions in the above Adobe link, I ended up having a new window open with the link I wanted. In addition, however, the old window *also* opened to the new page. Then I tried deleting the address within the '<a href=...>' parentheses. (I assumed that's what Linda meant by leaving it blank.) But when I did this, the initial page jumped back to my home page. So instead, within the '<a href=...>' parentheses, I entered the address for the page I was starting from (<a href="http://www.wqma.com/schedule.html">). This made the first window "stay" on the page I was starting from, and also opened another window with the page I wanted.
Maybe you are looking for
-
Calling Portal application from current webdynpro java application
Hi Experts, We are having Portal 7.4 SP6 framework. Application-A -> Web-dynpro java program pushing data into R/3 using BAPI. Application-B -> Std. WD-ABAP iView template. Currently, I am working in web-dynpro java program, where I am pushing some d
-
How to control my hp dm4 audio keys OUTSIDE of itunes?
i love the fact that my keyboard has actual buttons to control the audio, but i cant press pause or next or last song, unless im in the music program which i think really holds these keys back. is there a way to change this setting? thank you
-
Colored Pixels appearing at random?
Hi, I am new to the forum and hope to get some help! This happened more when I first got the computer a few months ago, but has recently come back. At times I will get either a blue or yellow grouping of pixels. It is a square box, with another one u
-
Leopard prompts for 802.1X username and password instead of WEP password
hey! so i got leopard on friday and i haven't been able to connect to my wireless properly since. i have an old D-Link DI-624 (Revision B) router that i have protected with a WEP password. in tiger i never had any problems with this, but now instead
-
Hi All, Here I had a requirement on designing of webpage , but how to design a wabpage using WPC can any body give suggestion I am aware of purpose but I am not able to getting what is the procedure for to use standard layouts of WPC in portal for