Javascript call from a Flash button

I have 2 Panel Groups of 5 panels each and I made a Flash
button to controll them.
The following code works if the panels are both open but it
only works the first time.
Then the second time I get an error;
cpg is undefined
CODE:
on(release){
getURL("javascript:cpg.closeAllPanels();cpg2.closeAllPanels()");
This would need to work for both panelgroups even if only one
is open.
I tried using fscommand but not sure how to write it.

Hi Doug,
A few questions for you...
<ol>
<li>What functionality are you trying to achieve?</li>
<li>What version of APEX are you using?</li>
<li>When you say 'process', do you mean 'Page Process'?</li>
</ol>
There are definitely ways of submitting the page and triggering a page process to run via JavaScript, but it would be good to better understand your requirements first before proposing a certain solution.
Regards,
Anthony.

Similar Messages

  • Phone keeps ringing on the caller's end - Is This a Call Waiting and Flash Button Problem?

    I had FIos phone service installed 2 weeks ago.  I am having a sporadic but regularly occurring issue with incoming calls that I think might be related to the Call Waiting and flash button so I am looking for some input.  Before describing the issue here are a couple of things to know:
    - I have my Verizon voice mail service turned off on my account.
    - I have the call waiting function set to off.
    - On my phone handset the Talk and Flash operation is the same button.
    Now here is my issue.  Often but not 100% of the time people are telling me that the phone just rings and rings on their end.  After receiving many complaints since my Fios install that the phone rings and my phone answering machine does not pick up the call I have been calling my home phone number with my cell phone and I have determined the following:
    1.  My home answering machine will pick up the call, however on my cell phone which is the calling end the  phone is still just ringing.
    2.  Sometimes I will press the talk button but there will be dead air but on my cell phone which is the calling end it will still be ringing..  But if I press the Talk/Flash button a couple of times the call completes.
    Since my Talk and Flash button are the same I started to wonder if that is a factor so I repeated scenarios above and found that after pressing the Talk button a couple of times then the call is answered and the phone stops ringing on the caller's end.
    I know that with Call Waiting the caller's end will just keep ringing unless the called end switches over with the Flash button.  So my question is even though I have the Call Waiting function turned off could the combination Talk/Flash button be the reason why the call just rings on the caller's end even though I have Call Waiting turned off?  And f this is the cause then why is it happening and does it mean that I have to buy a new phone that has separate Talk and Flash buttons?
    I hope the above description of my problem makes sense and can be answered.  Thank you

    Without buying a new phone you can test this. Unplug the phone that has the combination button. If its a cordless phone base station with multiple handsets, make sure you unplug those as well. Then use a regular phone plugged in to do test calls (if you dont have one you could maybe borrow one for a couple minutes from a friend, family, or neighbor).
    Anthony_VZ
    **If someones post has helped you, please acknowledge their assistance by clicking the red thumbs up button to give them Kudos. If you are the original poster and any response gave you your answer, please mark the post that had the answer as the solution**
    Notice: Content posted by Verizon employees is meant to be informational and does not supersede or change the Verizon Forums User Guidelines or Terms or Service, or your Customer Agreement Terms and Conditions or plan

  • Javascript calls from flash send GET request

    I'm having this problem with calling a javascript function
    after opening a new URL from flash. Basically what I have going on
    in my flash is a button, that when clicked, opens a new URL in
    "_blank" sending values to it using a POST request (I have done
    this both by using getURL and by using a LoadVars object). This
    part works fine, however immediately after it, I have a call to the
    javascript function "window.close()" (which I have done both using
    getURL and ExternalInterface). This works great in Firefox, but in
    IE the POST request seems to be getting interrupted by the
    javascript call.
    I did a check on the values getting passed using Charles, and
    it clearly shows that in IE there is a POST request getting sent to
    the page I'm loading in the new window, immediately followed by a
    GET request. This get request overrides the POST and for some
    reason only appears when making a javascript called. If I change
    that javascript call to opening a new URL in _self, for example, it
    doesn't show up.
    Does anyone have any idea what this is all about? Is there a
    solution to this? Why is this happening?!

    Thanks for the speedy reply!
    I'll just have to double check to make sure that any of the AJAX calls are security checked.

  • Javascript call from Flash in modal dialog window

    Hi.
    As I see it's impossible to call Javascript function from
    flash in modal dialog (opened with showModalDialog), neither with
    getURL nor with ExternalInterface.call.
    The only solution I found (in my case it's enough, I only
    need to refresh some DIV content in the page from flash) is to
    catch error in the modal dialog (Javascript window.onerror) and
    then do some operations.
    I'm intereseted: is this for security reason on Win XP SP2? I
    didn't found any solution, but is there any?

    Hi Gary,
    Actually I'm not very sure that whether it is the VS issue if it still has this issue in a new Environment.
    To make sure that it is not the VS setup file issue, one idea is that you could re-download your VS2013 Pre version here:
    http://www.visualstudio.com/downloads/download-visual-studio-vs
    And then re-install it again. Test the result. Hope that it is not the VS setup file issue.
    If still no help, really sorry for that I couldn't repro this issue in my side. But
    you can submit this feedback to Microsoft Connect feedback portal:
    http://connect.microsoft.com/VisualStudio/feedback/CreateFeedback.aspx,Microsoft
    engineers will evaluate them seriously. You could share this project in your report, the product team members would troubleshoot and repro this issue.
    You will get email notification for update in your connect report.
    If you submit it, please share us the link here, so we could get the latest information from the product team members.
    Sincerely,
    Jack
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Launch 2 urls from one flash button

    Hi,
    I have a Flash button, which I want to use getURL to both
    - call the Google Analytics tracking function
    - send the user to a new page
    on (release) {
    getURL("javascript:pageTracker._trackPageview('/folder/file.html');");
    getURL("some web page");
    Currently, only one of these getURL calls works. How can I
    get the one Flash function to use getURL twice? Or do I have to do
    something different?
    Thanks!

    you cannot make javascript calls using a getURL as of player
    9 rev 124. The new security restrictions prevent it, as it is an
    insecure method of communication.
    To call the javascript function, use the ExternalInterface
    class.

  • Download File Via JavaScript Calls From Website

    Hello,
    I am currently trying to create a program in c# that will download the file "PracticeProfiles.xls" from this website:
    http://fingertips.phe.org.uk/profile/general-practice/data
    I need to somehow on navigation to this site pass the javascript calls "showExport();exportData();", which will start the download.
    Any help would be greatly appreciated.
    Many Thanks

    The link has a method which apparently works, however I had to modify a few things to make it compile:
    public void DownloadIEFile(Browser browser)
    HwndSource source;
    source = HwndSource.FromHwnd(WatiN.Core.Native.Windows.NativeMethods.GetWindow(browser.hWnd, 5));
    Window windowMain = source.RootVisual as Window;
    System.Windows.Automation.TreeWalker trw = new System.Windows.Automation.TreeWalker(System.Windows.Automation.Condition.TrueCondition);
    System.Windows.Automation.AutomationElement mainWindow = trw.GetParent(System.Windows.Automation.AutomationElement.FromHandle(browser.hWnd));
    source = HwndSource.FromHwnd(WatiN.Core.Native.Windows.NativeMethods.GetWindow(new WindowInteropHelper(windowMain).Handle, 5));
    Window windowDialog = source.RootVisual as Window;
    // if doesn't work try to increase sleep interval or write your own waitUntill method
    Thread.Sleep(1000);
    windowDialog.Activate();
    System.Windows.Automation.AutomationElementCollection amc = System.Windows.Automation.AutomationElement.FromHandle(new WindowInteropHelper(windowDialog).Handle).FindAll(System.Windows.Automation.TreeScope.Children, System.Windows.Automation.Condition.TrueCondition);
    foreach (System.Windows.Automation.AutomationElement element in amc)
    // You can use "Save ", "Open", ''Cancel', or "Close" to find necessary button Or write your own enum
    if (element.Current.Name.Equals("Save"))
    // if doesn't work try to increase sleep interval or write your own waitUntil method
    // WaitUntilButtonExsist(element,100);
    Thread.Sleep(1000);
    System.Windows.Automation.AutomationPattern[] pats = element.GetSupportedPatterns();
    // replace this foreach if you need 'Save as' with code bellow
    foreach (System.Windows.Automation.AutomationPattern pat in pats)
    // '10000' button click event id
    if (pat.Id == 10000)
    System.Windows.Automation.InvokePattern click = (System.Windows.Automation.InvokePattern)element.GetCurrentPattern(pat);
    click.Invoke();
    However I am getting null when I try to get the hwnd source, can't see why?
    Any Suggestions?
    Many Thanks

  • How to SHOW/HIDE a dreamweaver layer from a flash button?

    I have almost 2 weeks tying to find a solution for this. Please help...
    -How can you SHOW/HIDE an thml-dreamweaver layer from a flash movie button.
    My html layer name is LAYER1, and my FlashMC botton name is FLBOT1
    Now, what is the actionscript that im suppouse to place in the flash button?
    Please respond, Thanks

    Adobe removed Flash Text and Flash Buttons from CS4 for accessibility reasons.  Flash buttons aren't web friendly.  And if you use this approach, you'll need to work in Flash because DW doesn't write Action Script for you.
    That said, you could do something similar without Flash.
    Pure CSS Disjointed Menu Rollovers
    http://alt-web.com/DEMOS/CSS-Disjointed-Menu-Rollover.shtml
    Pure CSS Disjointed Text Rollovers
    http://alt-web.com/DEMOS/CSS-Disjointed-Text-Rollover.shtml
    Show/Hide Layers with DW behaviors:
    http://www.cbtcafe.com/dreamweaver/showhidelayers/index.html
    Walter Zorn's Tooltips
    http://www.walterzorn.com/tooltip/tooltip_e.htm
    FloatBox Demos
    http://randomous.com/floatbox/demo
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb
    www.alt-web.com/blogspot.com

  • Can I Capture Javascript Calls from a Loaded SWF?

    My scenario:
    My main movie (SWF A) loads another movie (SWF B) and plays it.
    SWF B is legacy content - I can't modify it.
    SWF A is AS3. SWF B might be AS2 or AS3
    SWF B makes several calls to a javascript function that would normally reside in the hosting web page.
    The javascript calls might use ExternalInterface, or they might use getURL(javascript: xxx) or they might even use fscommand.
    My questions:
    Is there any way I can intercept the javascript call in movie A? I don't want to have to resort to the browser, so simply using ExternalInterface or similar to pipe the request back into the movie won't work.
    If there is a way, how does it vary across the different versions (ie. what's the difference between the child movie being AS2 or AS3, and what's the difference between the various means of calling js?
    I'm working on a web deployment, using Flex 4.0. I would be interested also in whether this is possible in Air, or Air Mobile.
    Many thanks in advance for any replies.
    JcFx
    http://www.jcfx.eu

    no, not with all those constraints.

  • URGENT help for calling a window from a flash button in a frame not working

    Hello, i'm really desperated, because i can't call a window
    in a frame from flash with the getURL, i tried other but do
    nothing! and something of external something doesn't work too, so
    please can enya tellme what can i do???? i'm using flash 8
    professional, explorer 6, (and let me tell you that i didn't have
    issues before)!!

    chen1 wrote:
    > Hello, i'm really desperated, because i can't call a
    window in a frame from
    > flash with the getURL, i tried other but do nothing! and
    something of external
    > something doesn't work too, so please can enya tellme
    what can i do???? i'm
    > using flash 8 professional, explorer 6, (and let me tell
    you that i didn't have
    > issues before)!!
    Please search the forum, in past weeks I personally replied
    to the very same topic
    few times.
    Search for "Flash Player 9 - broken getURL doesn't open
    specified frame"
    and "Problems with flash navigation in Internet Explorer 7"
    Best Regards
    Urami
    !!!!!!! Merry Christmas !!!!!!!
    Happy New Year
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • Javascript Call from AS3 Playbar

    Platform: Captivate 7
    Source: AS3 (hopefully obvious!)
    Output: Flash v10
    I'm making a one-off version of one of the default playbars.  I am trying to make the Exit button call a JavaScript function using the following code:
    var btnTipsId = 8;
    function onClicked()
              import flash.external.ExternalInterface; //Register ExternalInterface
              ExternalInterface.call("closeModule()"); //Call JS to close Div
    //parent.onPBCBtnClick("exit");
    As you can probably see, I don't want to Exit button to close the module the way it normally does.  My "closeModule()" function removes a a Div layer that hosts the Captivate.  I know this works as we use it in other places.  The problem I'm encountering is strictly with getting the Playbar to call that JavaScript instead of it's default "parent.onPBCBtnClick("exit");" function.
    Any ideas?

    Okay, it turns out my original code was totally right with one significant exception.
    What was it?
    Wait for it ...
    Wait for it ...
    I was calling the wrong JS function.
    <forehead slap>

  • Javascript called from actionscript not working properly

    I have a flash file that I want to change the background of
    an HTML frame when Scene2 begins. The code I have works fine in
    Safari and gives the desired result. However, calling it from
    firefox own Win IE, results in the javascript being placed in the
    address bar, and the name of the bkg image placed in the upper left
    corner.
    Here is the code in the flash file...
    getURL("javascript
    ocument.body.background='fork.jpg'");
    Here is the URL to the site
    http://www.nealstudio.com/ametricstest/flashtest.html
    Surely, it's something simple that I'm missing.

    MacManSC wrote:
    > I changed the code to make it work. Previously, I had no
    javascript in the HTML
    > document. I went in and changed the js in the flash to
    just a call for the code
    > in the HTML. It was my understanding that with my
    original code, that I didn't
    > need to have any further js.
    >
    yes that's quite correct although you'll find it's much more
    robust to
    put all your javascript into functions, which should be
    stored in an
    external .js file. That way, if you need to change anything
    you mostly
    won't need to go into flash at all, just edit the function in
    the .js
    file. Having the external .js then allow you to include the
    same
    functionality on different pages in your site whilst keeping
    all
    functions in one place.
    MOLOKO
    Macromedia Certified Flash MX 2004 Developer
    Macromedia Certified Flash MX Developer
    ::remove _underwear_ to reply::
    'There ain't no devil - it's just God when he's drunk' Tom
    Waits
    GCM/CS/IT/MC d-- S++:- a- C++ U--- P+ L++ !E W+++$ N++ O? K+
    w+++$ !O M+
    VMS? PS+++ PE- Y PGP+ t+ 5-- X-- R* tv++ b++++ DI++++ D+ G e
    h-- r+ y++

  • Help,I am trying to get function calls from a flash file within an embedded SMIL file to work with Netscape.

    Basically, the functions are on the html document in which the SMIL file is embedded and the flash file within the SMIL file calls the function from a button.
    The code on the html doc determines whether the browser is Netscape or IE and then executes the appropriate code. For ex. for Netscape the function is:
    document.radio.SetSource('video.smi')
    and for IE the function is:
    radio.SetSource('video.smi')
    All the function calls work fine in IE but in Netscape it does nothing.

    Basically, the functions are on the html document in which the SMIL file is embedded and the flash file within the SMIL file calls the function from a button.
    The code on the html doc determines whether the browser is Netscape or IE and then executes the appropriate code. For ex. for Netscape the function is:
    document.radio.SetSource('video.smi')
    and for IE the function is:
    radio.SetSource('video.smi')
    All the function calls work fine in IE but in Netscape it does nothing.

  • SetCookie Javascript call from applet pops up the launcher browser window

    Hi,
    With Jre 1.5 we started seeing a strange problem.
    From our applet code at the end of loading the applet we call a setcookie on our parent browser window (Browser window used to access our html/applet page).
    Once we make this call the browser window comes on top of our applet window.
    This was working fine earlier, with jre 1.5 we started seeing this issue. Any thoughts?
    A workaround is to call the toFront() function on the applet window's mainframe and set it in the front again. I was wondering if any one have seen similar problem.
    It happens only with IE on windows, no issue on netscape/mozilla.
    Thanks
    RT

    this is now resolved. My call to the transaction was slightly incorrect. This is now the working code:
    CONCATENATE 'http'
    '://' host ':' port
    '/sap/bc/gui/sap/its/webgui/?~transaction=*MIR4 RBKP-BELNR=5105600751' ';DYNP_OKCODE=SHOW'
    into url.

  • Link from a Flash button

    I have created some of my own navigation buttons in flash but
    can't work out how to add a link to them in Dreamweaver to go to
    another page in my website. If anyone can help I would be very
    pleased. Thanks a lot ..... Heather

    Do this in Flash, but be aware Flash navigation kinda sucks,
    why are you
    using Flash? Flash is not accessible at all by screen readers
    or other
    disabilities compliant devices, what about folks who don't
    have Flash
    installed? Flash is great for movies, things like youtube etc
    not for
    navigation.
    Cheers
    Pablo
    www.dellimages.com
    "Heather2005" <[email protected]> wrote in
    message
    news:fk0d1h$mt9$[email protected]..
    >I have created some of my own navigation buttons in flash
    but can't work
    >out
    > how to add a link to them in Dreamweaver to go to
    another page in my
    > website.
    > If anyone can help I would be very pleased. Thanks a lot
    ..... Heather
    >

  • Template with flash buttons

    Hi
    I have built a dreamweaver template and have used
    dreamweavers flash buttons. I can see these buttons on my web page
    but the link from the flash button will not work both files are
    ../home.html and ../home.swf .
    thanks for looking

    Unfortunately using Flash with templates is going to be a
    challenge until
    Adobe can get things sorted out.
    When you insert a Flash element onto a page in DW8.0.2 or
    later, two things
    happen:
    1. A link to a js file is inserted in the head of the page
    2. A chunk of code is inserted where you placed the Flash
    element,
    including a call to a function in the js file, and a pair of
    <noscript> tags
    that include the <object> and <embed> HTML tags.
    To make this process work when you are wanting to insert
    Flash on a child
    page, you have to do this -
    1. Create a blank HTML page, and insert the Flash on that
    page.
    2. Copy the link to the js from the head of the page you just
    created and
    paste it into the editable region of the head of the child
    page.
    3. Copy the entire section of code inserted in the body of
    the page, and
    paste that into the child page at the location where you want
    the Flash to
    appear.
    That should do it for you....
    However, if you want to use Flash for navigation, consider
    this -
    1. Some people don't have Flash installed - what do they do?
    2. Search engines don't parse Flash links - your site will
    not be spidered
    3. Screen assistive devices don't parse Flash links - what
    will those users
    do?
    4. DW cannot maintain links within a Flash movie, so if you
    move or rename
    a linked file, your navigation will break - what will you do?
    It's usually a very bad idea for these reasons...
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "neilpeel" <[email protected]> wrote in
    message
    news:[email protected]...
    > Hi
    > I have built a dreamweaver template and have used
    dreamweavers flash
    > buttons.
    > I can see these buttons on my web page but the link from
    the flash button
    > will
    > not work both files are ../home.html and ../home.swf .
    > thanks for looking
    >

Maybe you are looking for

  • Windows 7 Ultimate Does Not Recognize Tungsten E2

    After I upgraded to Windows 7 Ultimate, Windows will not recognize my Tunsten E2 cable in the USB port.  I went to the Device Manager to look for a triangle in order to use Aceeca.  However, there is no triangle. I tried using a USB Drive in the USB

  • E-Filing GB using SAP XI with ECC 6.0

    Hi, Has any one come across the e-Filing GB Implementing the scenario using XI? I have downloaded the Content(e-Filing GB.tpz & SAP HR 6.0.tpz) from SMP which is mentioned in the document. Successfully imported the content in IR, i can able to see th

  • Unable to open any modules in sap integration framework

    Hello I am not able to open any modules in sap bussinesssone frame worrk,even though I am able to log on into it.Kindly provide step by step solutions...!! Regards Rahul..!!

  • Problem about enabling GL Drawing.Any help,please?

    Installed PhotoshopCS5 trial on laptop Vaio , XP Pro, service pack 3. When setting preferences found that in Performance window, section GPU is dimmed and can not activate Enable GL Drawing . The message in Description area is that Graphics hardware

  • How to proper resize images and videos at runtime without losing quality?

    Hi guys. I need a bit of help here. I've built a flash site in which i want to resize a movie to the stage. I do it by keeping the proportion, thus i only resize the width and then i resize the height acordingly to the new width but keeping the propo