PopUp code issue
Hoping someone can help with this ongoing issue I have in AS3. I am using this code
popupBtn.addEventListener(MouseEvent.CLICK, popup);
function popup(e:MouseEvent):void{
ExternalInterface.call("window.open", "http://youtu.be/iGAHnZ555nI", "win", "width=1000,height=559");
to open a popup/popover window on this test site http://villagegreenstudios.com/view10 . It works like a charm in Chrome (both Mac and PC) and IE on PC. It works on Safari, Firefox (Mac) but takes a loooooooong time on Safari and even loooooonger time on FF for the new window to load. While loading in FF I get the spinning wheel of death and have to force quit after waiting over minute. I'm currently unable to check it on my PC's FF for unrelated reasons.
Help?
SOLVED
For anyone else that might be dealing with this odd issue, I have found a way to make it work.
First, add this code the the <head> section of your HTML doc:
<SCRIPT LANGUAGE=JavaScript>
function openNewWindow(URLtoOpen, windowName, windowFeatures) {
newWindow=window.open(URLtoOpen, windowName, windowFeatures);
</SCRIPT>
Then in AS3 use the following code for your buttons. I have the code below for the two buttons found here- http://villagegreenstudios.com/view10 Button 1 (top) is "test" and button 2 (bottom) is "popupBtn";
test.addEventListener(MouseEvent.CLICK, fl_MouseClickHandler);
function fl_MouseClickHandler(event:MouseEvent):void
var url:URLRequest = new URLRequest("javascript:openNewWindow('http://www.macromedia.com','thewin','height=400,width=400,toolbar=no,s crollbars=yes')");
navigateToURL(url,"_self");
popupBtn.addEventListener(MouseEvent.CLICK, fl_MouseClickHandler2);
function fl_MouseClickHandler2(event:MouseEvent):void
var url:URLRequest = new URLRequest("javascript:openNewWindow('http://youtu.be/iGAHnZ555nI','win','height=559,width=1000,toolbar=no,scrollbars=yes')");
navigateToURL(url,"_self");
I'm certainly open to any comments, especially ways of improving it but for all else, this works!
Similar Messages
-
Hi all,
I need to show a popup when feature dated records exists. For that on the Save action of the user I am checking the feature dated records and showing a popup.
ISSUE:
I am calling this popup in onSAVE action. Based on the user ok or cancel I need to perform some code in the same action. But the issue is the code below the popup is being run even before the popup is displayed and after user clicks OK or Cancel the cursor does not comeback to onSave action at all.
How to do in this scenario?
Code:
lo_window = lo_window_manager->create_window(
window_name = 'ZSDRPOPUP'
title = 'Feature Dated Records Exists.'
close_in_any_case = abap_true
message_display_mode = if_wd_window=>co_msg_display_mode_selected
close_button = abap_true
button_kind = if_wd_window=>CO_BUTTONS_OKCANCEL
message_type = if_wd_window=>co_msg_type_none
default_button = if_wd_window=>co_button_ok
lo_window->subscribe_to_button_event(
button = if_wd_window=>CO_BUTTON_OK
button_text = 'Overwrite'
action_name = 'SUBMIT'
action_view = lo_view_controller ).
lo_window->subscribe_to_button_event(
button = if_wd_window=>CO_BUTTON_CANCEL
button_text = 'Cancel'
action_name = 'CANCEL'
action_view = lo_view_controller ).
lo_window->open( ).Popups are not synchronous in Web Dynpro. Therefore it is normal for processing to continue (and the phase model to complete) before the popup is even displayed. That is why you register events for the buttons that are pressed within the popup. It is in the event handlers of these events that you will continue your processing. You probably need to be more modular with your code so that the actual save logic can be called from within the button OK event handler of the popup as well.
-
Is Muse compatible with Email Service Providers? A colleague said Muse has html code issues as PCs struggle to display the artwork correctly when emails are delivered.
Is Muse compatible with Email Service Providers? A colleague said Muse has html code issues as PCs struggle to display the artwork correctly when emails are delivered.
-
I purchased a full version of Adobe Photoshop CS4 Extended about a year and a half ago. I loaded it on my laptop just fine. However, following a HD crash, it's asking me for an upgrade check. I used the file just fine previously. How do I fix this issue?
Your post is entitled "Serial Code Issue" but you make no mention of that in your posting. You should provide the complete message that the software is providing to help make your problem clearer.
If the message is indicating you need to provide a serial number to confirm upgrade eligibility it means you purchased CS4 as an upgrade to a preceding version and you need the serial number from that preceding version in order to confirm the eligibility of the new CS4 version. -
EA4500 Intermittent Latency issue-Code Issue 2.0.37
I have been using the WRT54GV2 wireless G router for a while with no issues. I have upgraded to the EA4500. Periodically I am experiencing bursts of high latency(local area network) which is affecting certain apps I use such as a cisco soft phone. I am using the 2.4ghz band and connecting around 150mbps. What could be causing this? When I experience the latency issue, my data throughput fluctuates to different speeds as low as 60mb. I never had this issue on the older wireless router. I have upgraded my client drivers, could this be a code issue on the 4500? I am on 2.0.37
See if any of this helps.
I had something similar and this took care of it.
http://homecommunity.cisco.com/t5/Wireless-Routers/E4200V2-Bridge-Mode-wireless-disconnects/td-p/501... -
i have popup codes like this (too many around 12-20 popup screens) painted for demo.
most of them have a kind of 1-2 layout ie
the fields come dynamically from a resultset
i am guessing i can change the SQL code so that i can get the proper field names
eg
SELECT
FIELD1 AS DisplayName1,
FIELD2 AD DisplayName2
is there a way to dynamically adjust the layout to set the fields in a good way according to the recordset returned.
| Label1: Field1 |
| Label1: Field1 |
| Label1: Field1 |
| Label1: Field1 |
| OK Cancel |
package com.samples.swingsamples;
import javax.swing.*;
import javax.swing.border.*;
import java.awt.*;
import java.awt.event.*;
public class clsClaimsEDI extends JDialog
public clsClaimsEDI( JFrame frame ) {
super( frame, true );
setTitle( "EDI Information" );
setSize( 500, 300 );
// Creates a panel to hold all components
JPanel panel = new JPanel( new BorderLayout() );
panel.setLayout( new GridBagLayout() );
// give the panel a border gap of 5 pixels
panel.setBorder( new EmptyBorder( new Insets( 5, 5, 5, 5 ) ) );
getContentPane().add( BorderLayout.NORTH, panel );
GridBagConstraints c = new GridBagConstraints();
// Define preferred sizes for input fields
Dimension shortField = new Dimension( 40, 20 );
Dimension mediumField = new Dimension( 120, 20 );
Dimension longField = new Dimension( 240, 20 );
Dimension hugeField = new Dimension( 240, 80 );
// Spacing between label and field
EmptyBorder border = new EmptyBorder( new Insets( 0, 0, 0, 10 ) );
EmptyBorder border1 = new EmptyBorder( new Insets( 0, 20, 0, 10 ) );
// add space around all components to avoid clutter
c.insets = new Insets( 2, 2, 2, 2 );
// anchor all components WEST
c.anchor = GridBagConstraints.WEST;
JLabel lbl1 = new JLabel( "Claim ID" );
lbl1.setBorder( border ); // add some space to the right
panel.add( lbl1, c );
JTextField txt1 = new JTextField();
txt1.setPreferredSize( longField );
c.gridx = 1;
c.weightx = 1.0; // use all available horizontal space
c.gridwidth = 3; // spans across 3 columns
c.fill = GridBagConstraints.HORIZONTAL; // fills the 3 columns
panel.add( txt1, c );
JLabel lbl2 = new JLabel( "External Reference Number" );
lbl2.setBorder( border );
c.gridwidth = 1;
c.gridx = 0;
c.gridy = 1;;
c.weightx = 0.0; // do not use any extra horizontal space
panel.add( lbl2, c );
JTextField txt2 = new JTextField();
txt2.setPreferredSize( mediumField );
c.gridx = 1;
c.ipadx = 0; // reset the padding to 0
c.ipady = 0;
c.weightx = 1.0; // use all available horizontal space
// c.weighty = 1.0; // use all available vertical space
c.gridwidth = 3; // span across 3 columns
// c.gridheight = 1; // span across 2 rows
c.fill = GridBagConstraints.HORIZONTAL; // fills the cols & rows
panel.add( txt2, c );
JLabel lbl3 = new JLabel( "Trading Partner" );
lbl3.setBorder( border );
c.gridx = 0;
c.gridy = 3;
c.gridwidth = 1;
c.gridheight = 1;
c.weightx = 0.0;
c.weighty = 0.0;
c.fill = GridBagConstraints.NONE;
panel.add( lbl3, c );
JTextField txt3 = new JTextField();
txt3.setPreferredSize( mediumField);
c.gridx = 1;
c.gridwidth = 3; // span across 3 columns
c.gridheight = 1; // span across 2 rows
c.fill = GridBagConstraints.BOTH; // fills the cols & rows
panel.add( txt3, c );
c.gridx = 2;
panel.add( Box.createVerticalStrut(1), c );
c.gridx = 3;
panel.add( Box.createVerticalStrut(1), c );
c.gridx = 0;
c.gridy = 4;
panel.add( Box.createVerticalStrut(1), c );
c.gridx = 1;
c.gridwidth = 3;
panel.add( Box.createVerticalStrut(1), c );
c.gridx = 0;
c.gridy = 5;
panel.add( Box.createVerticalStrut(1), c );
c.gridx = 1;
c.gridwidth = 3;
panel.add( Box.createVerticalStrut(1), c );
c.gridx = 0;
c.gridy = 6;
panel.add( Box.createVerticalStrut(1), c );
c.gridx = 1;
c.gridwidth = 3;
panel.add( Box.createVerticalStrut(1), c);
c.gridx = 0;
c.gridy = 7;
c.gridwidth = 1;
panel.add( Box.createVerticalStrut(1), c );
c.gridx = 1;
c.gridwidth = 3;
panel.add( Box.createVerticalStrut(1), c );
JButton submitBtn = new JButton( "Close" );
c.gridx = 4;
c.gridy = 0;
c.gridwidth = 1;
c.fill = GridBagConstraints.HORIZONTAL;
panel.add( submitBtn, c );
JButton cancelBtn = new JButton( "Help" );
c.gridx = 4;
c.gridy = 0;
c.gridwidth = 1;
c.fill = GridBagConstraints.HORIZONTAL;
panel.add( cancelBtn, c );
JButton helpBtn = new JButton( "Help" );
c.gridy = 1;
c.anchor = GridBagConstraints.NORTH; // anchor north
panel.add( helpBtn, c );
setVisible( true );any other popup samples :))
-
Calculation of Tax Issue from FB60 (Tax Code Issue)
Dear All,
Normally when we purchase or received any services we post following entry.
INVOICE VALUE IS 1000
Purchase Ac Dr 1000
To Vendor 900
T o Tax 100
But our requirement is that
Purchase Ac Dr 1100
To Vendor 1000
T o Tax 100
System should add cost of TAX in purchase instead of reduction form vendor balance as we have to give 1000 RS to vendor.
Can we create TAX code in this manner.
This is not even possible form function available in Edit Option in FB60 (Calculate tax on Net Amount)
Not even from TDS (Withholding tax)
WE CANu2019T SUGGEST POSTING JV IN THAT CASE.
Regards,
BittuApologized for that Atif.
Withholding Tax Type does not control Vendor line item.
My issue is that system should not reduce value enter in vendor amount field.
System usually reduce amount which is payable to vendor
Please see my example once again. I also mention that it is not working from Withholding Tax nor form Tax code(FTXP)
Edit option in FB60 is also not useful in this case.
Regards, -
Skillbuilders modal Popup loading issue??
Hi All,
I have implemented skillbuilders modal plugin in my Application.We have some six different region in the home page.Each region is having a create and edit button.
In the report region,when i click edit icon against each record and modify some values and click apply changes,changes are getting reflected in the home page.When am trying to click the same record,popup is loading continuosly for 4 -5 mins,not opening the form,then i close the popup and refresh the page,again i clicked on the same record which i modified recently ,its opening quickly.
If anyone faced the same issue ,please post your comment like how you resolved that issue!!
It will be very helpful for me.
Many thanks
RamyaHi Dan,
Thank you very much for the response.
I have created a sample demo in apex.oracle.com.
Please find the link below
http://apex.oracle.com/pls/apex/f?p=4000:1500:2180107774088701:::::
Workspace name - newrmo
username/pwd - DAN/abc123
DEMO APPLICATION - 66096
Please check the report region in page 27.
Try to create a record in that report region and also try to edit the report and click on the show icon to view the record details.
Thanks,
-Ramya. -
Not sure if this is a code issue
Hello
I've had a fair bit of help from this and another forum to get my code working. Thanks to everyone.
Basically I've created a screensaver randomly selecting one of eight images registered as Movie Clips.
The issues that I have found are that the playing of the movie does not always work properly, ie it stops on a fade in or fade out.
The latest version I have is that if I create the swf and html file from my Virtual Machine (XP) at work the movi runs fine on my home (Vista) machine.
If I try and create these files from my home machine the test (Ctrl + Enter) freezes and also if I play the swf file that also freezes, the html file runs fine.
I had this also happen on the other way round on a previous version, things would stop on the Virtual Machine but when I copied the files to my home machine all worked fine.
Does anyone have any thoughts on this?
I've listed the full code below on what I am running.
Paul
import fl.transitions.Tween;
import fl.transitions.easing.*;
import fl.transitions.TweenEvent;
import flash.events.TimerEvent;
import flash.utils.Timer;
import flash.utils.setTimeout;
var mc0:mcClip0 = new mcClip0(); // each mc is associated with its' own class, whose base class is MovieClip();
var mc1:mcClip1 = new mcClip1();
var mc2:mcClip2 = new mcClip2();
var mc3:mcClip3 = new mcClip3();
var mc4:mcClip4 = new mcClip4();
var mc5:mcClip5 = new mcClip5();
var mc6:mcClip6 = new mcClip6();
var mc7:mcClip7 = new mcClip7();
var mcList:Array = new Array (mc0, mc1, mc2, mc3, mc4, mc5, mc6, mc7);
var imgCount:uint = 8;
var currentImage:uint = 0;
var myTimer:Timer = new Timer(1500, 1);
addChild(mcList[currentImage]);
mcLogoStart();
myTimer.addEventListener(TimerEvent.TIMER_COMPLETE, timerHandler);
function mcLogoStart():void{
mcList[currentImage].x= Math.floor(Math.random() * (stage.stageWidth-400)) + 200;
mcList[currentImage].y= Math.floor(Math.random() * (stage.stageHeight-400)) + 200;
var mcLogoTween:Tween = new Tween(mcList[currentImage], "alpha", None.easeIn, 0, 1, 2, true);
mcLogoTween.addEventListener(TweenEvent.MOTION_FINISH, freezeImage);
function freezeImage(e:TweenEvent):void{
if(mcList[currentImage].alpha==1){
myTimer.start();
if(mcList[currentImage].alpha==0){
currentImage=Math.floor(Math.random() * (imgCount-1)) + 1;
addChild(mcList[currentImage]);
mcLogoStart();
function timerHandler(e:TimerEvent):void{
mcLogoFinish();
function mcLogoFinish():void{
var mcLogoTweenOut:Tween = new Tween(mcList[currentImage], "alpha", None.easeOut, 1, 0, 2, true);
mcLogoTweenOut.addEventListener(TweenEvent.MOTION_FINISH, freezeImage);for example:
import fl.transitions.Tween;
import fl.transitions.easing.*;
import fl.transitions.TweenEvent;
import flash.events.TimerEvent;
import flash.utils.Timer;
import flash.utils.setTimeout;
var mc0:mcClip0 = new mcClip0(); // each mc is associated with its' own class, whose base class is MovieClip();
var mc1:mcClip1 = new mcClip1();
var mc2:mcClip2 = new mcClip2();
var mc3:mcClip3 = new mcClip3();
var mc4:mcClip4 = new mcClip4();
var mc5:mcClip5 = new mcClip5();
var mc6:mcClip6 = new mcClip6();
var mc7:mcClip7 = new mcClip7();
var mcList:Array = new Array (mc0, mc1, mc2, mc3, mc4, mc5, mc6, mc7);
var imgCount:uint = 8;
var currentImage:uint = 0;
var myTimer:Timer = new Timer(1500, 1);
addChild(mcList[currentImage]);
mcLogoStart();
myTimer.addEventListener(TimerEvent.TIMER_COMPLETE, timerHandler); var mcLogoTween:Tween;
function mcLogoStart():void{
mcList[currentImage].x= Math.floor(Math.random() * (stage.stageWidth-400)) + 200;
mcList[currentImage].y= Math.floor(Math.random() * (stage.stageHeight-400)) + 200;
mcLogoTween = new Tween(mcList[currentImage], "alpha", None.easeIn, 0, 1, 2, true);
mcLogoTween.addEventListener(TweenEvent.MOTION_FINISH, freezeImage); -
Invoice not released to accounting: tax code issue
Hi All,
Iam getting an error while i released my invoice to accounting. No accounting document generated. the error is " Tax code V0 does not appear in any G/L account item Message no. FF753"
we have various condition types in our invoices. Only TAX condition type ZWST has tax code V0. rest of the condition types like basic price, cash dicsount, rebate condition etc do not have tax code assigned to them which is right since only tax conditions have tax code assigned to them and which is ZWST only.
My question is why the above error comes " Tax code V0 does not appear in any G/L account item Message no. FF753" . if I double click on the error message, system shows me the following
""""""""""""""""tax code V0 does not appear in any G/L account item
Message no. FF753
Diagnosis
The document entered contains a customer or vendor item with tax code V0. This does not occur in any of the G/L account or asset items.
Consequences:
If you have not entered the cash discount base manually, the system will set it to zero in this item.
If this item was paid with cash discount deduction and the cash discount amount contains a tax portion, the tax code entered is used for the backdated tax calculation. An automatic breakdown does not take place on the basis of the offsetting items.
Procedure
Check whether the tax code was set correctly. If necessary, correct it or enter "**".
There are, however, also situations in which it makes sense to enter a tax code manually which differs from the offsetting items, for example, during data acquisition.
Effects on Customizing
You can define when this system message is to be issued in accordance with your requirements.
In Customizing, choose Cross-Application Components -> Bank Directory -> Change Message Control.
The application area and message number can be taken from the technical documentation """""""""""""
I do not know what system is saying.Could anybody help.
regards
sachinHi Sonu,
Please refer SAP Note 112609.
Thanks & Regards,
Santosh -
Urgent please-sorting code issue in BIP
Hi,
issue with sort order in BIP reports. I gave code like this but saying expression error. Please help me.
sort should be in the order of numbers , then upper case then lower case values.
declared variable is <?variable: srtStr; "'01234567890ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'"?>
then i am trying to apply code in my group
<?for-each-group:ssAssetMgmtAsset;./ssReferenceNumber3?><?sort:current-group()/string-length(substring-before ($srtStr,substring(ssReferenceNumber3,1,1)));'ascending';data-type='text'?>
the above code saying expression error
Thanks,
laxWhat is the exact error you get?
I believe that the data-type (within the for-each-group) should be number. Try that and let me know if that fixes your issue.
Thanks,
Bipuser -
Hi Gurus,
We have one issue by F110,by using the bank transfer.so all the payments are cleared.and DME file is generated.we have to upload to the bank.before that we have to convert the file into notepad.by using our local software we upload into our PC.but here
some vendors are not picking up the right sort codes.on which base it is picking up.only for some vendors we are facing this issue.
Thanks in advance
JanaDear,
Please check the vendor master for the sort key entry in accounting information accounting, compare the sort key with other vendor masters. Check whether reconciliation GL in vendor master is also given the same sort key as in the vendor master. -
TDS Certificate, Challan Payment Issue and BSR Code Issue
Hi All,
I have configured Extended withholding tax as follows and encountered some issues
1. Specify Document Type (Accounts Payable): Here I have given Document type as SA and I am able to Pay the remittance challan through Post Vendor challan transaction.
MY question is How can I update my check no. I tried to update through FCH5 But it is showing no data.
2. Form 16A Certificate: How the field Cheque / DD No (If Any) gets updated?
3. BSR Code in Form 16A: I have maintained Bank branch in FI02. and made the remittance challan through that bank.
but still my BSR Code is not updating in Form 16A.
4. Form 16A Certificate: How does the Quarter Acknowledgement No field gets updated?
Kindly provide me the solutions for the above queries.
Your inputs are very much appreciated.
Thanks in Advance
Best Regards
Shashi
Edited by: shashi mantripragada on Apr 7, 2010 9:43 AM
Edited by: shashi mantripragada on Apr 12, 2010 2:13 PMHi,
Please check entries in the number ranges that needs to be maintained for WT certificates.
Financial Accounting (New) - Financial Accounting Global Settings (New) - Withholding Tax - Extended Withholding Tax - Posting - India - Withholding Tax Certificates for Vendors and Customers - Maintain Number Ranges
And also check its assignment.
Hope this helps.
Vikas. -
Please help with this registration code issue!
Hi,
I just purchased Quicktime Pro, and am trying to use it. For some reason when I am working with a video, my registration code is always showing in the window under the video.
Why is this, and how can I remove it so that it doesn't constantly show?
Thanks!If you do post a pic, blur out or hide your registration number.
Never heard of your type of issue either. -
How do I redeem a coupon code issued by Apple, due to a previously botched iPhoto book?
I had a recent iPhoto book order that was misprinted twice & although it was eventually redone & perfect, Apple issued me a coupon code for a credit on a future job. I'm trying to redeem that now but can't find where to do so.
The instructions that came with the code say to "click Buy then click Use A Coupon on the right". There is no Use A Coupon on the right or anywhere else. I've gone through all the ordering screens, up to the point where it says "Place Order" & there is no Use A Coupon button.
On the very last Place Order screen there was an Enter Promo Code box & I tried to enter my coupon code there but it woudn't take it.
The email states that the coupon code is valid until the end of 2011 so I know it's not expired.
Anyone ever done this before?"Promo Code" is the only option I see in iPhoto '11.
If you haven't already, make sure you are copying and pasting the code from the email to the promo box.
If that doesn't help I suggesty you email them back to ask them how to use the code they gave you.
Maybe you are looking for
-
I already did the troubleshooting given by Apple, but it didnt work. So i tried resetting it to factory settings, but it just shows me a black screen so I can connected to iTunes. Please Help ME!!
-
Disappointed with "features" not in Numbers
I just bought iWork and am really disappointed with the shortage of "features" in Numbers. Why don't we get simple icons such as cut, copy, paste, file save, and print? Why must we always use keystrokes or go to a menu when a simple icon on the toolb
-
Why are the PDF files in v27 bigger than in v25?
I have just created a v27 version of my single iOS app, which has been v25 before. Now the app has a size of about 550 MB instead of about 430 MB. I found out that the PDF files of the slideshows are bigger than before. What is the reason for this c
-
Problem with Class Category log4J
Can I set a different Priority in my object Category if I am not inside a method ? If I write this: Category cat = null; cat.info("Hello I am cat"); and before that I would like to set for cat object a different priority but without to do that inside
-
How do I get rid of 'Top Hits' in the search bar/ url address bar?
I have websites in my bookmark folders but I don't want them to appear as a suggestion when I search, I've cleared my history and they are still there. I don't wish to delete my bookmarks though. I'm using Safari version 6.0