Trying to use a popup window as a component  in another component

Hi guys,
I am unable to use a popup component in another component in
Flex .
Its not calling the popup compopnent.
Could anyone plz hel me.
This is my code.
This is the parent component TitlWindow where i want to call
my popup
component.
<mx:TitleWindow xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="absolute" width="100%" height="100%"
xmlns:util="userinterfaces.util.*"
creationComplete="showWindow();"
title="CREATE PROFILE">
This is my script where i am writing a function to call a
component
whose name is fielupload.mxml
<mx:Script>
private function showWindow():void
pop =
fileupload(PopUpManager.createPopUp(this,fileupload,true));//
fileupload.mxml
is called
pop.title = "Please enter your login information.";
pop.showCloseButton =true;
PopUpManager.centerPopUp(pop);
pop.addEventListener("close",removeMe);
</mx:TitleWindow>
This is the code for fileupload.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:TitleWindow xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="absolute" width="100%" height="100%"
xmlns:util="userinterfaces.util.*" title="File Upload">
<mx:Script>
<![CDATA[
import mx.collections.XMLListCollection;
import flash.events.Event;
import flash.events.IOErrorEvent;
import flash.events.ProgressEvent;
import mx.controls.Alert;
import flash.net.FileFilter;
import flash.net.FileReference;
import flash.events.SecurityErrorEvent;
import mx.controls.Button;
import mx.controls.TextInput;
import mx.controls.ProgressBar;
import mx.core.Application;
import flash.net.URLRequest;
import flash.net.URLRequestMethod;
import mx.core.UIComponent;
import mx.managers.PopUpManager;
public var fileFilterImage:FileFilter = new
FileFilter("Images","*.png;*.gif;*.jpg");
public var fileFilterDocument:FileFilter = new
FileFilter("Documents", "*.txt;*.doc;*.pdf;*.rtf");
public var fileFilterArchives:FileFilter = new
FileFilter("Archives", "*.zip;*.tar;*.hqx");
public var fileFilterAll:FileFilter = new
FileFilter("All", "*.*");
public var fileRef:FileReference;
public var selectedId:String;
public function init():void {
fileRef = new FileReference();
fileRef.addEventListener(Event.CANCEL,
traceEvent);
fileRef.addEventListener(Event.COMPLETE,
completeEvent);
fileRef.addEventListener(Event.SELECT,
selectEvent);
fileRef.addEventListener(IOErrorEvent.IO_ERROR,
traceEvent);
fileRef.addEventListener(Event.OPEN, traceEvent);
fileRef.addEventListener(ProgressEvent.PROGRESS,
onFileProgress);
fileRef.addEventListener(SecurityErrorEvent.SECURITY_ERROR,
traceEvent);
public function traceEvent(event:Event):void {
var tmp:String =
"================================\n";
public function
ioErrorEvent(event:IOErrorEvent):void{
Alert.show("IOError:" + event.text);
traceEvent(event);
public function selectEvent(event:Event):void{
//var selectedId:String =
selectButton(event);
//Alert.show("i am in id" +
Application.application.winMyProfile.selectedId);
btnUpload.enabled = true;
iptFile.text = fileRef.name;
public function
selectButton(catchButton:Event):void{
var newButton : Button = new Button;
newButton = catchButton.currentTarget
as Button
selectedId = newButton.id;
//Alert.show("i am in id" +
selectedId);
public function
onFileProgress(event:ProgressEvent):void {
prgBarUpload.label = "Loaded " +
event.bytesLoaded + " of " +
event.bytesTotal + " bytes";
prgBarUpload.setProgress(event.bytesLoaded,
event.bytesTotal);
public function
completeEvent(event:Event):void {
Alert.show("File Uploaded
Successfully");
btnUpload.enabled = false;
btnBrowse.enabled = true;
public function uploadFile(url:String):void {
url = url + "?
folder="+Application.application.winLogin.userInfo.getUsername();
var req:URLRequest = new
URLRequest(url);
req.method = URLRequestMethod.POST;
var folder:String =
Application.application.winLogin.userInfo.getUsername();
fileRef.upload(req, folder,true);
]]>
</mx:Script>
<mx:VBox id="vbMain" width="100%" height="60">
<mx:HBox width="100%" height="22">
<mx:TextInput height="22" id="iptFile"
width="100"/>
<mx:Button id="btnBrowse" label="Browse"
click="selectButton(event),fileRef.browse([fileFilterAll]);"
/>
<mx:Button id="btnUpload" label="Upload"
enabled="false"
click="uploadFile('fileupload.do');" />
<mx:Button id="btnCancel" label="Cancel"
enabled="false"
click="PopUpManager.removePopUp(this);"/>
</mx:HBox>
<mx:ProgressBar width="200"
source="iptFileResume" height="5"
id="prgBarUpload" mode="manual"/>
</mx:VBox>
</mx:TitleWindow>
Its not even showing any error , i dont know whats the
problem with
it.
Thanks for your help,
Mario.

If I understand, you want to display a popup Titlewindow from
within another popup TitleWindow? This is possible.
Simplify your code to get it working first.
Tracy

Similar Messages

  • Trying to get a popup window to work via report

    I have a need to offer a link in reporting on the Opportunity Description field where the description would be displayed in a popup window (I do not wish to launch another child OOD window via prompt report). The fact that these description field can be quite long and make reports difficult to read drives this request. I am currently looking at overriding the data statement on the column in question. For example, I can easily do the following:
    @[html]"<a href=""http://www.cnn.com"">"@"</a>" -which simply proves that I can embed html code with the column value
    I have tried the following with no success:
    @[html"<a href=""javascript:mywindow=window.open('','','width=200,height=100');
    mywindow.document.write('"@"');mywindow.focus();"">"@"</a>"
    I have a feeling that the problem lies in the escaping of the quotes but hoping that someone else may have the answer.  Also, if there is a better way to accomplish what I'm trying to do, please chime in.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hi Glfnute,
    When writing the HTML code in column formula, ensure you start it with a single quote and also end the expression with it. So your code will look something like this:
    '{<}a href = "http://.... com" target="_blank" {>}' || column name here || '{<}/a{>}'
    Using target = blank will open your link in new window.
    Curly brackets are used above to prevent the text from getting rendered as an html over here. Remove them and use the remaining string in your report.
    I hope this helps.

  • "rastertoescpII failed" when trying to use a shared windows printer

    I have a 2010 MBP running Snow Leopard and I am trying to use my mother's Epson C88 printer that is shared from a Windows computer running Windows XP. Everything is fine (my computer picks up the printer) except with drivers... when I use the "Epson C88 Series" drivers I get an error that says "rastertoescpII failed." If I use the Gutenprint drivers, the printer prints out 10,000 pages of gibberish. I read the archived articles on here about the ways that people solved it but none of those solutions are working for me (probably since I am using a shared printer on my network not a printer connected to my computer). Any ideas on how I can fix this?

    I have an EPSON Stylus CX3900 Multifunctional. With the drivers provided by Apple or Epson, I got the same message. I checked the gutenprint drivers and found out my printer wasn't even listed (Latin American model or something like that). Anyway, I installed the printer (samba) using the CX3810 driver and it's working perfectly now. A bit slow but I can live with it.
    A question: Am I supposed to be able to use the scanner from a multifunctional printer (hooked to a PC network) from my mac? That is, if the Epson or Apple drivers did their jobs correctly??
    TX!!

  • Trying to use iphone with Windows Vista

    I previously owned a Macbook which I just got rid of and have decided to go back to PC after having way too many problems with my Mac. I just purchased a new laptop which runs Windows Vista.
    I tried connecting my iphone to the computer and it is not being recognized.
    Can anyone offer any advice on why it isn't working? (I connected my iPod which just said I had to restore before I could use which I will be doing once I'm sure all the info has been backed up)
    Thanks in advance for any assistance!

    This can be a problem with the file places.sqlite that stores the bookmarks and the history.
    * http://kb.mozillazine.org/Bookmarks_not_saved
    * http://kb.mozillazine.org/Locked_or_damaged_places.sqlite

  • Why won't the color code I am trying to use from a windows machine work on my Mac? Code: PMS7409

    Hi I'm an intern at a telecommunications and management company who are about to release an update on their website and server screens. My job is to create the new graphics and remake the presentation layers. I am also assigned to create a business card template, which is where my question comes. I am give a color code, from a Windows OS, and try to input that code into Photoshop CS6. That color code won't appear. It's a deep orange and the code I am being told is; PMS7409. I'm not sure thats a code (atleast on the Mac), but I haven't used a Windows OS in so long I don't even know if Windows has their own color coding system or what. Can someone help me out and tell me if this is me, my boss, or we're missing something and I'm going to look like an idiot?

    Definitely not a colour code for mac, the only thing I suggest you do is if you get the code on your windows version is to get the other values i.e
    instead and input those into it rather than the #colour code (Hue, Sat, B, R, G B) etc.
    Also ... Colour codes are 6 figures long i.e the one displayed and also black #000000 and white #ffffff
    however the one you gave is 7!
    Message was edited by: ConstantAngel

  • Trying to use a button to move form data to another section of the document

    Not sure how to form this question, but hoping you guys (the experts) will be able to help me along....
    I'm trying to setup a form that, when you select a button it moves data like below:
    and then will move it to the correct section as indicated by which button you pressed:
    Is this possible? Any help you can provide would be very appreciated! Thanks in advance.

    Alright - so I've been trying to work w/the scripting language (I'm sorry, I'm fairly new, and one of two things happens whenever I enter it in.
    1. The text disappears from the box on the right and doesn't show up in the assigned boxes.
    2. Nothing happens
    I've attached a photo (below) of the script as my ignorant self believes it should look. Any thoughts? (Again, I appreciate your patience here - thanks!):

  • Trying to use bluetooth to print from my computer through another laptop

    My Mac Pro doesn't have airport (long story there) and the printer is connected to the airport base thingy. We have a laptop that is connected to the airport, and prints. The other day I accidentally set something to print from the Mac Pro and to my great surprise it printed! I thought it must be b/c it is paired with the laptop via Bluetooth. But today I can't print and when I open the Bluetooth drop down menu it says that the computers are not connected. Can't seem to get them to connect - how do I do this?

    Welcome to the Apple Community.
    I'm not entirely sure what you are trying to do. If you are trying to import content over homesharing from a computer you no longer have, you are out of luck. If you are just trying to redownload purchased content, you don't need homesharing.

  • Can't get popup window to work, could use code help.

    This is the first time I've tried to open a popup window in
    flash, and I can't get it to work. The site I'm building has the
    navigation buttons contained in an animated movie clip. All of the
    navigation buttons work fine. But there's a link that the company
    wants me to add that opens a window to another site who hosts a
    video commercial for the company (it has to be a link to the other
    site, it can't be added directly to the customers site).
    The link the other company sent me is for javascript (I'll
    include it in the attached code), and the code works great if I
    just insert the javascript in the html. But I wanted to try and get
    the link in the Flash menu. I've tried several versions of the
    code, from applying it directly to the button to naming an instance
    of it and attaching the actionscript in the movie clip. When I'm
    done, I get two different problems. On my XP machine, I get a
    warning error about the flash trying to open something to another
    server. On my Vista machine, nothing happens at all.
    Anyway, I'm including the original javascript and several
    versions of the actionscript I've tried (with the actual site
    information replaced with "fakeurl.com", wasn't sure how these
    forums felt about including site info). Any help at all would be
    greatly appreciated. I've searched and searched for about a week,
    and I'm tempted to just do away with the Flash button and use a
    cheesy javascript button for this one link.
    Thanks!
    MoAtt

    In article <[email protected]>,
    [email protected] wrote:
    > All I want to do is have a Close Window link in my popup window that works.
    Select your text that you want to act as a trigger to close the window,
    just as if you were going to create a link.
    Then paste the following line of code into the link Inspector:
    javascript:self.close();
    That should do the trick.
    Cheers Martin

  • Pop-up errors when trying to use FaceBook on Sarafi 4 on Windows

    Hi there.
    When trying to use Safari on Windows, I get an annoying pop-up whenever I try to use chat on FaceBook and it says something about MIME type not recognised and pluggin errors. I have installed the latest flash but it keeps happening - is there another plug-in I need to reinstall?

    Here is a link to the info on how to access the 4200 set up pages and how to do Port Forwarding with it
    http://portforward.com/english/routers/port_forwarding/Siemens/4200/iChat.htm
    Use the Access info and then see if you have it doing UPnP to open the ports.
    If it is then the Port Forwarding does not need setting.
    Next, if you did originally set it to do Port Forwarding this should have pointed to an IP (The one your computer has/had)
    Check the Port Forward that is set is pointing to the IP the computer has now by Looking in System Preferences > Network
    QUite a way done the log your end suddenly switches the port it sends the SIP part of the invite on
    INVITE sip:user@rip:61042 SIP/2.0
    Via: SIP/2.0/UDP sip:60442;branch=z9hG4bK672a7283709f480e
    Max-Forwards: 70
    To: "u0" <sip:user@rip:61042>
    From: "0" <sip:user@lip:16402>;tag=2100237526
    Call-ID: 5c6e32e2-2788-11dd-904a-8c2872d74012@lip
    CSeq: 1 INVITE
    Contact: <sip:user@sip:60442>;isfocus
    User-Agent: Viceroy 1.3
    Content-Type: application/sdp
    Content-Length: 744
    This is not an iChat port and it messes up where iChat then says to send the Video and Audio data.
    The log from the other end implies the ports are not even open.
    10:42 PM Wednesday; July 9, 2008

  • Help with Flex based popup windows and data population.

    Hello, I need a bit of help with Flex popups. I have a flex
    application that uses a popup window when you click on a button and
    displays information about the image above the button the user
    clicked. I have about 4 images and I need to be able to display
    information about each of them through the popup window when users
    click on the buttons below the image.
    At this time, I am trying to do this from somewhat of a
    "static" point of view because I do not believe my hosting company
    supports Flex Data services. You will find my code below.
    First File.
    <?xml version="1.0" encoding="utf-8"?>
    <!--Application Initialization -->
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute" width="850" height="750"
    cornerRadius="10" borderColor="#000000"
    backgroundGradientColors="[#1b3434, #000000]">
    <!-- Popup-->
    <mx:Script>
    <![CDATA[
    import mx.managers.PopUpManager;
    [Bindable]
    private var win:IMSAI;
    private function init():void{}
    private function createPopup():void{
    win=IMSAI(PopUpManager.createPopUp(this,IMSAI,true));
    win.title = 'IMSAI.Net';
    win.x = -500;
    win.y = 0;
    customMove.end();
    customMove.play();
    ]]>
    </mx:Script>
    <mx:Style>
    TitleWindow {
    borderStyle:solid;
    borderThickness:2;
    </mx:Style>
    <mx:Parallel id="customMove" target="{win}">
    <mx:Move duration="2000" xTo="{(stage.width - win.width)
    / 2}" yTo="{(stage.height - win.height) / 2}" />
    <mx:WipeDown duration="2000" />
    </mx:Parallel>
    This is the code to trigger the popup when a user clicks on
    the button. The code below is the code for the popup.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:TitleWindow xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="vertical" creationComplete="init()"
    close="PopUpManager.removePopUp(this)"
    showCloseButton="true" alpha=".8"
    headerColors="[#000000,#1F3F62]" color="#FFFFFF"
    minHeight="200" minWidth="300"
    backgroundColor="#000000" title="IMSAI.net" width="520"
    height="394" verticalAlign="middle" horizontalAlign="center">
    <mx:Script>
    <![CDATA[
    import mx.managers.PopUpManager;
    private function init():void{}
    ]]>
    </mx:Script>
    <mx:Canvas width="470" height="338">
    <mx:Image x="10" y="10" width="140" height="103">
    <mx:source>file:///C|/ColdFusion8/wwwroot/IMSAI/Web-App/Site_Images/IMSAI
    Final Movie.swf</mx:source>
    </mx:Image>
    <mx:Text x="10" y="121" text="Description:" width="75"
    height="25" fontWeight="bold" color="#ff0000"/>
    <mx:Text x="158" y="10" text="Client:" width="52"
    height="28" fontWeight="bold" color="#ff0000"/>
    <mx:Text x="196" y="10" text="IMSAI Microcomputers
    &amp; Fischer-Freitas Company" width="252" height="39"/>
    <mx:Text x="159" y="46" text="Industry:"
    fontWeight="bold" color="#ff0000"/>
    <mx:Text x="216" y="46" text="Computer &amp;
    Microcontroller Manufacturing." width="232" height="35"/>
    <mx:Text x="83" y="121" text="IMSAI.net is the front-end
    web application for IMSAI Computer " width="355"/>
    <mx:Text x="10" y="136" text="manufacturing, customer
    support, and order processing. Driven by a Microsoft database
    back-end, this application includes rich flash forms, site search
    capabilities, and flash content. Currently under phase II of a
    three phase development plan, the e-commerce logic and processing
    capabilities are under development. Once finished, this application
    will be able to process orders provide customers with instant order
    confirmation numbers, shipment dates, and payment processing."
    width="428"/>
    <mx:Text x="10" y="244" text="Technologies:"
    fontWeight="bold" color="#ff0000"/>
    <mx:Image x="100" y="244" width="50" height="50">
    <mx:source>file:///C|/ColdFusion8/wwwroot/Sapphire
    Development/content/cf8icon.jpg</mx:source>
    </mx:Image>
    <mx:Image x="244" y="244" width="50" height="50">
    <mx:source>file:///C|/ColdFusion8/wwwroot/Sapphire
    Development/content/flashlogo.jpg</mx:source>
    </mx:Image>
    <mx:Text x="53" y="290" text="Coldfusion 8 Enterprise"
    height="30"/>
    <mx:Text x="230" y="290" text="Adobe Flash 8"/>
    </mx:Canvas>
    What I want to do is either be able to create a popup file
    for each button and photo, or find a way to pass a name like a
    button ID that corresponds to a XML data structure and then
    provides the appropriate data for the photo. I have tried altering
    the first page of code with the "public" declaration to allow for a
    second popup file for each button and image, but the IDE won't
    allow me to do such because it creates errors stating I can only
    have one public declaration of the kind and function above per
    application. Help resolving this would be greatly appreciated.
    Thank you.

    I have an idea of what I want to do. I am just having
    difficulty articulating how to go about such. I know I want to find
    a way so that if a user clicks on button 1, button 1 will send some
    kind of variable. For example, a user clicks Btn1 under a picture.
    Btn1 sends some kind of variable or binding to a data structure
    which returns the picture's description, price, etc. and calls the
    popup to display that data in a form like manner. Then the user
    click Btn2 which does the same thing. The only purpose of the popup
    is to display the data.
    Do I create a data structure with a related name to say a
    button name so when the btn is clicked, the a variable title btn1
    will prepend itself to the data structure like
    {btn1.imagename}
    {btn1.price}
    {btn1.description}.
    I want each btn to call a different set of data about each
    picture because right now, the code I have is allowing me multiple
    buttons, but is just displays the popup. Is there a way to create a
    separate popup window for each button? Thats seems as though it
    would be easier. Thank you for your help.

  • Issue with displaying ALV in a popup window

    Hi Experts,
    I am trying to create an popup window with an ALV in it. TO display the ALV i have defined the component usage for SALV_WD_TABLE component.When the ALV is displayed for the first time it shows up correctly with required data. When i try to display ALV popup again only the popup window frame gets displayed the ALV is missing from the popup window.
    If i refresh the main component by clicking browser refresh buttion and then click for ALV popup dsplay i get the correct popup display the first time and then agin the same issue.
    Has anyone else come across this issue before. All your suggestions, responses are welcome.
    Thanks,
    Vivek

    HI,
    My popup window has only one embedded view, the TABLE view of used component SALV_WD_TABLE hence i cannot modify the TABLE view.
    I tired putting the following code for context node initialization in both the the methods WDDOONOPEN and WDDOINIT of the window which has the embedded view. But it dosen't make any difference i face the same issue even with these changes.
    types: begin of  ty_belnr,
             belnr type vbkpf-belnr,
           end of  ty_belnr.
    data: lt_belnr type standard table of ty_belnr,
          lo_node type ref to if_wd_context_node,
          lo_element type ref to if_wd_context_element.
    select belnr
      from vbkpf
      into table lt_belnr
    where ausbk = 'UC'
       and bukrs = 'UC'
       and gjahr = '2011'
       and usnam = sy-uname.
    if sy-subrc eq 0.
       lo_node = wd_context->get_child_node( 'DOC_NUMBERS').
       lo_node->bind_elements( new_items = lt_belnr[] ).
    endif.
    Edited by: Vivek Priyadarshi on Sep 14, 2010 5:24 PM

  • Problem when trying to use IWDWindow

    Hello all,
    I am trying to get a popup window. After searching the forum, and using the tutorials, I use the following code:
    // get the repository content at runtime of the Web-Dynpro-
    // Window “ICONummerWindow”
    IWDWindowInfo windowInfo = (IWDWindowInfo)wdComponentAPI.getComponentInfo().findInWindows("ICONummerWindow");
    //create the “ICONummerWindow”
    IWDWindow window = wdComponentAPI.getWindowManager().createWindow( windowInfo, true);
    //set the WindowPosition on the screen
    window.setWindowPosition(300, 150);
    //and show the window
    window.open();
    // Save WindowInstance in Context
    wdContext.currentPopupElement().setWindowInstance(window);
    However, I get the following error messages:
    IWDWindowInfo cannot be resolved or is not a type
    IWDWindow cannot be resolved or is not a type
    How can I solve this?
    TIA,
    Jaron Frenk

    Hi
         Organize imports Right click -> select source -> select Organize imports
    or
    do this
    Ctrl+ Shift+O
    regards
    Siva

  • Problems using JAXB in windows(Failed to load Main-Class manifest)

    Friends,
    I am trying to use JAXB in windows environment. I have already included rt and xjc jar files in my system classpath.
    I have sucessfully created java files using the xjc compiler(without the xjs map file). They rock!!
    But I am facing problems while creating .xjs file from my dtd. I tried looking into previously discussed topics, with no help. :(
    my command line:
    java -jar C:\jaxb-1.0-ea\lib\jaxb-rt-1.0-ea.jar mySchemaFile.dtd
    This is what i get :
    Failed to load Main-Class manifest attribute from
    C:\jaxb-1.0-ea\lib\jaxb-rt-1.0-ea.jar
    Please help, if you have come across this or similar issue..
    Or let me know how you create a .xjs file.
    Any idea what is the main file class in jaxb-rt-1.0-ea.jar that creates a xjs file ?
    All/any help appreciated. Thanks in advance.

    Hi,
    You cannot use xjs files with the JAXB Beta RI.
    This has been mentioned at http://java.sun.com/xml/jaxb
    "Note that this version is not API-level compatible with the previous released version of the specification and DTD schemas are no longer supported."
    You can generate code using the xjc binding compiler for schema documents.
    Pls let me know if you have more questions
    Thanks,
    Bhakti
    Friends,
    I am trying to use JAXB in windows environment. I have
    already included rt and xjc jar files in my system
    classpath.
    I have sucessfully created java files using the xjc
    compiler(without the xjs map file). They rock!!
    But I am facing problems while creating .xjs file from
    my dtd. I tried looking into previously discussed
    topics, with no help. :(
    my command line:
    java -jar C:\jaxb-1.0-ea\lib\jaxb-rt-1.0-ea.jar
    mySchemaFile.dtd
    This is what i get :
    Failed to load Main-Class manifest attribute from
    C:\jaxb-1.0-ea\lib\jaxb-rt-1.0-ea.jar
    Please help, if you have come across this or similar
    issue..
    Or let me know how you create a .xjs file.
    Any idea what is the main file class in
    jaxb-rt-1.0-ea.jar that creates a xjs file ?
    All/any help appreciated. Thanks in advance.

  • Trying to use Alert.show in module- possible?

    I have some user data that I have to validate before
    submitting it to a db and so I was planning on popping up an
    Alert.show to ask them if they are sure in the usual fashion.
    Button click event points to function that should show the Alert.
    debug shows that function gets entered, but Alert does not show. no
    error, just no Alert. code and controls are in a module that's
    loaded into main application based on user input. Is this the
    problem? Should I be using a popup window instead of Alert? Thanks
    in advance.
    Andy C.(never #)

    First, thanks for the reply:
    I can't browse outside from my windows box( well I can but
    they can see what I'm doing), so I can paraphrase.
    <mx:Button label="Add Button" id="btnAddUser"
    click="doAddUser(event)" />
    <mx:Script>
    <![CDATA[
    import mx.everything and its brother;
    private function doAddUser(event:Event):void
    var alrtmsg:String="Are you sure you want to add this data
    to the database?";
    var alrtttl:String="Confirm User Add";
    Alert.show(alrtmsg,alrtttl, Alert.YES | Alert.NO, this,
    alertClickHandler);
    private function alertClickHandler(event:CloseEvent):void
    if(event.detail==Alert.YES)
    rest of code does validation
    ]]>
    </mx:Script>
    This is pretty much straight out of the help screens. Now
    this is in a module that's loaded into the main application.
    Everything else works as I expect it to, but I can't get the Alert
    to popup. And obviously, since I'm validating user input I have to
    have a way to show them when they forgot to put something in.
    Thanks

  • Date picker in a popup window

    Hi all,
    There are 2 pages, page 1 contains a button, when user click on it, a new window will popup showing page 2 which is a entry form has a date picker item.
    The javascript behind the button in page 1 is like: (in target URL field.)
    javascript:popupURL('f?p=101:2:&SESSION.');
    It works fine except the date picker window wouldn't popup again in the second page. If I run the 2nd page individually it works well, it doesn't work only if I run it in a popup window.
    Is this a bug or something? How can we fix it.
    Many thanks!
    Pete

    Hello Pete,
    >> It works fine except the date picker window wouldn't popup again in the second page. If I run the 2nd page individually it works well, it doesn't work only if I run it in a popup window.
    You are using the ‘popupURL’ function, which uses a hard coded value – WinLov – for the ‘name’ parameter. That could be a problem in a recursive call.
    Patrick solution is of course valid, but if you want to use a popup window format, try using the ‘popUp2’ function. The function generates a “random” name, so the problem should be solved.
    Regards,
    Arie.

Maybe you are looking for

  • Iphoto will no longer download from camera

    I have been using the earliest version of iphoto for several years and it worked great downloading from my Canon Powershot S1IS. About 6 months ago some of the images started coming in with parts grayed out, not all there, etc. Then it went through t

  • Hard drive install question

    I want to install a second hard drive in my HP dv7-6c95dx. the main drive that is in it now is a, 750GB 5400RPM hard drive with HP ProtectSmart Hard Drive Protection I want to put in a second drive (the one above) for a total of 1.5TB of hard drive s

  • Number range mapping to alphanumeric numbers.

    Gurus, I want some help in writing some logic in ABAP. I have a scenario when a the numbers that are coming via interface are greater then 99. In that case, I have to map according to following scenario: Ex: If its 100, it should be converted to A1 a

  • Exporting from iPhoto to SD card?

    I am trying to export photos from iPhoto onto an SD card on my iMac.  Each time I try to do this directly from iPhoto to the card I only get 10% of them. It is  a 2GB card and there are 900 photos which according to Info is taking up 2.0GB? The card

  • Replacement Path for Chaging the Field Names

    Hi Gurus, I have a requirement to build a query containing 31 columns say day1,day2u2026. The Report should display the fields as 1-Sep-2008.2-Sep-2008 and so on, when the query is executed in the month of September. The same query executed in the mo