ActionPerformed method not working when applet is loaded in browser window.

Hey there guys. I need urgent help from anybody who has experience in deploying websites whose code is in java.
I am having two problems as mentioned below...
first, I have made a simple login screen using java swing and JApplet. there is a single button to login. the action performed for this button accesses a private method to check the username and password which are there in atext file. the applet is working perfectly in appletviewer but when i load the applet in a Internet Explorer window using HTML's Applet tag, the button is giving no response at all even when i enter the correct username and password.
I guess it is either not calling the private function that is checking the username and password from the tes=xt file or it can not access the file. Please help as soon as possible as this is related to my college project.
I am attaching the code herewith. Suggestions to improve the coding are also welcome.
the second problem is that while writing my second program for generating a form which registers a user the html is not at all loading the applet into the browser and also if im trying to access a file to write all the details into the console is showing numerous amount of error after i press the button which i can't not understand. the only thing i can understand is that it is related to file access permissions. If anybody could put some light on the working of worker threads and thread safe activities of SwingUtilities.invokeandWait method it would be really appreciable.
import java.io.*;
import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
import javax.swing.event.*;
import javax.swing.plaf.*;
<applet code = "UserLogin" width = 300 height = 150>
</applet>
public class UserLogin extends JApplet implements ActionListener, KeyListener {
     private JLabel lTitle;
     private JLabel lUsername, lPassword;
     private JTextField tUsername;
     private JPasswordField tPassword;
     private JButton bLogin;
     private JLabel lLinkRegister, lLinkForgot;
     private JLabel lEmpty = new JLabel(" ", JLabel.CENTER);
     private JPanel panel1, panel2;
     public void init() {
          try {
               UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
               SwingUtilities.invokeAndWait(new Runnable() {
                    public void run() {
                         LoginGUI();
          catch(Exception e) {
               e.printStackTrace();
     public void start() {
          setVisible(true);
     public void stop() {
          setVisible(false);
     private void LoginGUI() {
          super.setSize(300, 150);
          super.setBackground(Color.white);
          lTitle = new JLabel("<HTML><BODY><FONT FACE = \"COURIER NEW\" SIZE = 6 COLOR = BLUE>Login</FONT></BODY></HTML>", JLabel.CENTER);
          lUsername = new JLabel("Username : ", JLabel.CENTER);
          lPassword = new JLabel("Password : ", JLabel.CENTER);
          tUsername = new JTextField(15);
          tPassword = new JPasswordField(15);
          bLogin = new JButton("LOGIN");
//          bLogin.setEnabled(false);
          bLogin.addActionListener(this);
          bLogin.addKeyListener(this);
          panel2 = new JPanel();
          GridBagLayout gbag = new GridBagLayout();
          GridBagConstraints gbc = new GridBagConstraints();
          panel2.setLayout(gbag);
          panel2.addKeyListener(this);
          gbc.anchor = GridBagConstraints.CENTER;
          panel2.setMinimumSize(new Dimension(300, 200));
          panel2.setMaximumSize(panel2.getMinimumSize());
          panel2.setPreferredSize(panel2.getMinimumSize());
          gbc.gridx = 1;
          gbc.gridy = 1;
          gbag.setConstraints(lUsername,gbc);
          panel2.add(lUsername);
          gbc.gridx = 2;
          gbc.gridy = 1;
          gbag.setConstraints(tUsername,gbc);
          panel2.add(tUsername);
          gbc.gridx = 1;
          gbc.gridy = 2;
          gbag.setConstraints(lPassword,gbc);
          panel2.add(lPassword);
          gbc.gridx = 2;
          gbc.gridy = 2;
          gbag.setConstraints(tPassword,gbc);
          panel2.add(tPassword);
          gbc.gridx = 2;
          gbc.gridy = 3;
          gbag.setConstraints(lEmpty,gbc);
          panel2.add(lEmpty);
          gbc.gridx = 2;
          gbc.gridy = 4;
          gbag.setConstraints(bLogin,gbc);
          panel2.add(bLogin);
          panel1 = new JPanel(new BorderLayout());
          panel1.add(lTitle, BorderLayout.NORTH);
          panel1.add(panel2, BorderLayout.CENTER);
          add(panel1);
          setVisible(true);
     public void keyReleased(KeyEvent ke) {}
     public void keyTyped(KeyEvent ke) {}
     public void keyPressed(KeyEvent ke) {
          if(ke.getKeyCode() == KeyEvent.VK_ENTER){
               String username = tUsername.getText();
               String password = new String(tPassword.getPassword());
               if(username.length() == 0 || password.length() == 0) {
                    JOptionPane.showMessageDialog(new JFrame(),"You must enter a username and password to login", "Error", JOptionPane.ERROR_MESSAGE);
               else {
                    boolean flag = checkUsernamePassword(username, password);
                    if(flag)
                         JOptionPane.showMessageDialog(new JFrame(),"Username and Password Accepted", "Access Granted", JOptionPane.INFORMATION_MESSAGE);
                    else
                         JOptionPane.showMessageDialog(new JFrame(),"Username or password Incorrect", "Access Denied", JOptionPane.INFORMATION_MESSAGE);
     public void actionPerformed(ActionEvent ae) {
          String gotCommand = ae.getActionCommand();
          if(gotCommand.equals("LOGIN")) {
               String username = tUsername.getText();
               String password = new String(tPassword.getPassword());
               if(username.length() == 0 || password.length() == 0) {
                    JOptionPane.showMessageDialog(new JFrame(),"You must enter a username and password to login", "Error", JOptionPane.ERROR_MESSAGE);
               else {
                    boolean flag = checkUsernamePassword(username, password);
                    if(flag)
                         JOptionPane.showMessageDialog(new JFrame(),"Username and Password Accepted", "Access Granted", JOptionPane.INFORMATION_MESSAGE);
                    else
                         JOptionPane.showMessageDialog(new JFrame(),"Username or password Incorrect", "Access Denied", JOptionPane.INFORMATION_MESSAGE);
     private boolean checkUsernamePassword(String username, String password) {
          String user = null, pswd = null;
          try {
               FileInputStream fin = new FileInputStream("@data\\userpass.txt");
               DataInputStream din = new DataInputStream(fin);
               BufferedReader brin = new BufferedReader(new InputStreamReader(din));
               user = (String) brin.readLine();
               pswd = (String) brin.readLine();
          catch(IOException ioe) {
               ioe.printStackTrace();
          if(username.equals(user) && password.equals(pswd))
               return true;
          else
               return false;
}PLEASE HELP ME GUYS......

RockAsh wrote:
Hey Andrew, first of all sorry for that shout, it was un-intentional as i am new to posting topics on forums and didn't new that this kind of writing is meant as shouting. Cool.
Secondly thank you for taking interest in my concern.No worries.
Thirdly, as i mentioned before, I am reading i file for checking of username and password. the file is named as "userpass.txt" and is saved in the directory named "@data" which is kept in the same directory in which my class file resides.OK - server-side. That makes some sense, and makes things easier. The problem with your current code is that the applet will be looking for that directory on the end user's local file system. Of course the file does not exist there, so the applet will fail unless the the end user is using the same machine as the server is coming from.
To get access to a resource on the server - the place the applet lives - requires an URL. In applets, URLs are relatively easy to form. It might be something along the lines of
URL urlToPswrd = new URL(getCodeBase(), "@data/userpass.txt");
InputStream is = urlToPswrd.openStream();
DataInputStream din = new DataInputStream(is);
So the problem is that it is reading the file and showing the specific output dialog box when i run it through appletviewer.. Huhh. What version of the SDK are you using? More recent applet viewers should report security exceptions if the File exists.
..but the same is not happening when i launch the applet in my browser window using the code as written belowHave you discovered how to open the Java Console in the browser yet? It is important.
Also the answer to your second question
Also, the entire approach to storing/restoring the password is potentially wrong. For instance, where is it supposed to be stored, on the server, or on the client?is that, as of now it is just my college project so all the data files and the username and password wiles will be stored on my laptop only i.e. on the client only. no server involved.OK, but understand that an applet ultimately does not make much sense unless deployed through a server. And the entire server/client distinction becomes very important, since that code would be searching for a non-existent file on the computer of the end user.

Similar Messages

  • JVM crashed when applet is loaded in browser

    when applet is loaded in browser after some time JVM crashedwith hs error log.
    i am using
    JRE 1.6.0_10,
    1GB RAM,
    XP SP3,
    IE6
    Error log
    # An unexpected error has been detected by Java Runtime Environment:
    # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d02bd1d, pid=6032, tid=4772
    # Java VM: Java HotSpot(TM) Client VM (11.0-b15 mixed mode windows-x86)
    # Problematic frame:
    # C [awt.dll+0x2bd1d]
    # If you would like to submit a bug report, please visit:
    # http://java.sun.com/webapps/bugreport/crash.jsp
    # The crash happened outside the Java Virtual Machine in native code.
    # See problematic frame for where to report the bug.
    #

    It appears from the following statement that a native code process failed when called by the jvm.
    The crash happened outside the Java Virtual Machine in native code.Not much more can be said. The cause does not appear to Java code.

  • GetURL not working when swf is loaded into another swf

    Ok, I need some help for something relatively simple which
    for some reason I've not been able to find any information on at
    all?
    Hopefully it will be something easy to fix.
    Essentially I have the following:
    my main movie "Home.swf"
    another movie "Sub.swf"
    I've loaded "Sub.swf" into "Home.swf" via an empty movieclip.
    Within "Sub.swf" I have some links which when clicked call
    getURL and open a HTML page in the browser.
    But for some reason the getURL isn't working and I believe
    its because the getURL is called from a loaded movie within
    "Home.swf".
    I've tried changing the actionscript to:
    _root.getURL('/mypage.html');
    _parent.getURL('/mypage.html');
    but neither (_root / _parent) seems to work?
    Need help here please.
    Many thanks.
    Kind regards,
    M.

    Hi kglad,
    Yes the button is definitely firing ok.
    In the "Sub.swf" movie, on the second frame of the timeline
    (the first frame is some preloader code) there is the following
    code:
    imgMC.mascara.onPress = function() {
    //trace('mc[activo] = ' + mc[activo]);
    switch(mc[activo])
    case _level0.imgMC.MC0:
    trace('0 - ' + mc[activo])
    break;
    case _level0.imgMC.MC1:
    trace('1 - ' + mc[activo])
    break;
    case _level0.imgMC.MC2:
    trace('2 - ' + mc[activo])
    break;
    case _level0.imgMC.MC3:
    trace('3 - ' + mc[activo])
    break;
    case _level0.imgMC.MC4:
    trace('4 - ' + mc[activo])
    break;
    case _level0.imgMC.MC5:
    trace('5 - ' + mc[activo])
    break;
    If I run this movie in Flash (ctrl-enter) then the trace
    works fine.
    But the trace stops working when I run the main "Home.swf"
    movie in Flash (ctrl-enter) when the "Sub.swf" is loaded into an
    empty movie clip.
    And when I change the trace for a getURL and test in a
    browser it still doesn't work?
    What do you reckon?
    Thanks.
    M.

  • Form button does not work when a program is moved from Windows 8.2 to Windows 7

    Hi,
    I have a few Excel programs which use the ODBC to get data from Access and which have macros which writes data to an external program, MYOB.
    When the macros tries to write the data to MYOB it fails if I am not running the program in administrator mode.   It seems that Windows 8.2 has a different level of security than Windows 7 and must be run in administrator mode for the ODBC to work. 
    I have had issues after running the program in administrator mode (testing) if I simply do a save (in administrator mode) and then send it to the customer.   The issue is that it just will not work on the customer's site.   I have gotten
    around this in the past by saving any changes, going back out of excel, loading the program again (not in administrator mode) and saving it - before sending it to the customer.   This worked until now.
    For some unknown reason, the last time I sent a program to the customer and carried out the above process, the program stopped working.   Originally I thought that the macro just wouldn't work on windows 7, but eventually found that it is the form button
    that will no longer work when the program is moved from 8.2 to 7.
    Does anyone know why there is an incompatibility between 8.2 and Windows 7 and what I should be doing to ensure that my programs work in my customers environment(windows7)?
    In the meanwhile, I have changed the form button to an activex button and the program works fine in both environments.
    Thanking you in advance,

    there is some OP report after Windows update Dec 2014 macro stop responding ( I cant confirm if this is also related to your issue) its because security update for Office maybe conflict with the active-x that you are installed
    try to
    Close Excel
    Start Windows Explorer.
    Select your system drive (usually C:)
    Use the Search box to search for *.exd
    Delete all the files it finds.
    Start Excel again
    Open that file and save it, and try open at Windows 7
    to get more detail about this issue, I suggest also contact Office forum
    this case also will be solve installing kb3025036
    good luck

  • Fscommand is not working when opening PDF document in browser with Acrobat 9, why?

    We embedded a flash application in PDF using screen annotation. In the flash we use fscommand to call methods available in AcroJS.  In acrobat reader 9, if we view the document in Internet Explorer, we receive a security sandbox violation message saying that it cannot make fscommand calls to <unknown> (allowScriptAccess is ). But when we open the document in Firefox, it works fine.

    Have a read of this article on the web:
    http://www.actionscript.org/resources/articles/99/1/FS-Command-JavaScript-Library/Page1.ht ml
    The part that caught my eye was the following:
    "...These methods will not work with Internet Explorer on Macs. This lack of functionality is a brower issue with communication with plugins and cannot be resolved by anyone except MicroSoft. "
    I wonder if the same is true for Windows?
    Sabian

  • 16 gig nano problem- nike+ did not work when photos were loaded by iTunes.

    I recently got a lovely new purple nano for my birthday which appeared to work fine right out of the box. I let iTunes fill it up with a random selection of music and then there was no room for photos, but that was fine.
    I used it for 5 runs without problem, but today, every time I tried to start a workout, the nano would reset itself. Luckily I could revert to my trusty old nano.
    The first 4 runs had taken place without much customisation of the nano, and then I decided to choose my own music instead of having iTunes do it for me, but I also let iTunes choose and load photos on it. The 5th run seemed to work ok after this customisation, but that was it, attempting another run made the nano reboot itself.
    I have since deleted all the photos and Nike+ worked just fine again. I then chose to upload just a few photos, instead of letting iTunes fill the nano up, and again Nike + is working fine. So I've fixed my own problem, but thought I would post in case anyone else is having similar problems

    Jochemd,
    Since Black Monday, I have now deleted cookies, cleaned the cache and deleted all Temp Internet files 4x. I am on IE7.0.5xxx.x, on an XP-Pro SP3 laptop. All of the problems mentioned in my original post have continued, totally unabated.
    If you have a suggestion for me, please share it. I will try about anything now.
    Please note that, related to my OP, everything worked perfectly on Sunday PM, and well into the day on Black Monday. Since then, the issues that I outlined haver been present, and have not changed. The issue is not on my part, though I will attempt to correct anything on my end.
    The pleasure of helping others in these fora has been greatly diminished. I'd guess that about 10% of my posts used to include screen-caps, to direct the various posters, to the correct Panel, switch, Tool, or fly-out menu, to solve their problem. Now, all of my screen-caps have to go to queue. I have about 1500 of them in my Adobe folder, and add more, as the questions come.
    I can live with having to do Block Quotations a half-dozen times, and can Backspace out of those line breaks, but my camera icon is part of my life. Over in the PrE forum, I posted on Saturday afternoon, and that image just came out of queue tonight! Think about some poor Adobe user, lookng for the fix to their problem, with maybe a family event, at which they are hoping to present a DVD, and my answer has been in queue for 2.5 days.
    We do, what we do, with little thanks, and no remuneration, and it should behove Adobe to help us, help other users - ones who have given Adobe their $, and only want their program to function. We, the forum subscribers, can often help them, and save the bacon. That is something that the current Adobe T/S cannot do. Maybe next quarter, but not yet.
    Please help me to help others in the product fora.
    Hunt

  • Save as method not working when variable is in the name...

    Refer to code below.  "currentWord" contains the string "classthatisverylong". The first "filename" works great.  The second one does not.  How can I get around this?  Is there an easy way? Or even a hard way?  Im open to anything!
    'fileName = "T:\Text Editing and Proofreading\Testing folder\classthatisverylong"
    fileName = "T:\Text Editing and Proofreading\Testing folder\" & currentWord
    docref.SaveAs fileName
    docref.Close

    I convert everything to forward slashes before scripting paths in Adobe. Also, instead of using a path variable I believe you should use a File object like in this example:
        var intResult = 1;
        var checkPath = new Folder(docSetup.savePath);
        if(!checkPath.exists)
            checkPath.create();
        if(!checkPath.exists)
            alert('Unable to save at location ' + docSetup.savePath);
        else
            try
                var fileName = docSetup.savePath + docSetup.docTitle;
                var filePath = new File(fileName);
                var saveOpt = new IllustratorSaveOptions();
                saveOpt.compressed = true;
                saveOpt.pdfCompatible = true;
                doc.saveAs(filePath,saveOpt);
                intResult = 0;
            catch(e)
                intResult = 2;
    So, please try replacing backslashes with forward slashes and using the File object instead of a string value. I also separate the file name from the directory so I can create the directory if necessary.

  • Movie clip resize not working when image is loaded

    Hello,
    I'm having some strange luck in building an image slide
    show. I load the image paths into an array from an XML
    page and then step through the array elements w/ forward and
    back buttons.
    I have an empty image clip on the stage where I create an
    empty movie clip inside each time a new image is loaded. I load the
    image into the second movie clip like this:
    [code]
    _root.picsPage_mc.mc_pic_loader.mc_individual_pic_loader.unloadMovie();
    _root.picsPage_mc.mc_pic_loader.createEmptyMovieClip(
    'mc_individual_pic_loader', 1 );
    _root.load_movie_and_stop(
    _root.picsPage_mc.mc_pic_loader.mc_individual_pic_loader,
    _root.photo_array[_root.photo_index].image,
    _root.picsPage_mc.mc_pbar, 'regular_load');
    [/code]
    The load_movie_and_stop function is as follows:
    [code]
    function load_movie_and_stop( target_mc:MovieClip,
    movie_clip_to_load:String, p_bar:MovieClip, action:String )
    mc_loader._width = 0;
    mc_slider_bar.mc_drag_pan._x = 0;
    if( action != 'simple_load' )
    p_bar._visible = true;
    p_bar.bar._width = 0;
    var mclListener:Object = new Object();
    mclListener.onLoadStart = function( target_mc )
    if( action != 'simple_load' && action !=
    'regular_load' ){ target_mc.stop(); }
    if( action == 'load_and_play' ){ target_mc.play(); }
    mclListener.onLoadInit = function( target_mc )
    _root.resize_movie_clip(target_mc, 160, 120, 250, 190);
    if( action == 'load_and_stop' ){ target_mc.stop(); }
    mclListener.onLoadProgress = function( target_mc )
    if( action != 'simple_load' )
    percentLoaded = Math.floor( (
    target_mc.getBytesLoaded()/target_mc.getBytesTotal() )*100);
    p_bar.bar._xscale = percentLoaded;
    p_bar.txt_percent = percentLoaded + "% loaded.";
    mclListener.onLoadComplete = function( target_mc ){
    p_bar._visible = false; }
    var my_mcl:MovieClipLoader = new MovieClipLoader();
    my_mcl.addListener(mclListener);
    my_mcl.loadClip( movie_clip_to_load, target_mc );
    }//___endFunc___
    [/code]
    After the image is loaded into the movie clip, I then resize
    the image to be a specific width.
    The image resizing is done w/ this function:
    [code]
    function resize_movie_clip(clip_loader_name:MovieClip,
    max_width:Number, max_height:Number )
    orig_width = clip_loader_name._width;
    orig_height = clip_loader_name._height;
    aspect_ratio = orig_width / orig_height;
    if( (orig_width > max_width) || ( orig_height >
    max_height ) ) // If either dimension is too big...
    if( orig_width > orig_height ) // For wide images...
    new_width = max_height;
    new_height = new_width / aspect_ratio;
    else if( orig_width < orig_height )
    new_height = max_height;
    new_width = new_height * aspect_ratio;
    else if( orig_width == test_height )
    new_width = max_width;
    new_height = max_width;
    else { trace( "Error reading image size."); return false; }
    else { new_width = orig_width; new_height = orig_height; }
    clip_loader_name._width = Math.round(new_width);
    clip_loader_name._height = Math.round(new_height);
    [/code]
    Now, 98% of the time this works perfectly, but there is some
    certain times where the image resizing is completely ignored and
    the image gets loaded as it's normal size.
    Can anyone see why the image sizing get's ignored in some
    instance?
    Thanks for any help,
    Clem

    Found the solution that worked (used ._xscale and ._yscale
    instead of ._width and ._height
    [code]
    function resize_movie_clip(clip_loader_name:MovieClip,
    max_width:Number, max_height:Number, center_offset:Number )
    if( (clip_loader_name._width > max_width) || (
    clip_loader_name._height > max_height ) ) // If either dimension
    is too big...
    if( clip_loader_name._width > max_width )
    _root.picsPage_mc.txt_test = "func if 1";
    clip_loader_name._width = max_width;
    clip_loader_name._yscale = clip_loader_name._xscale;
    if( clip_loader_name._height > max_height )
    _root.picsPage_mc.txt_test = "func if 2";
    clip_loader_name._height = max_height;
    clip_loader_name._xscale = clip_loader_name._yscale;
    else { new_width = orig_width; new_height = orig_height; }
    [/code]

  • Keyboard backlighting not working when using Windows in Boot Camp

    Hi, I'm posting this for a friend with a new Macbook Air. He says that his keyboard backlighting does not work when he is using it for Windows (don't know which, but probably Vista). Any ideas why? Thanks. Gary

    Install all the drivers needed when running boot camp - try for example inserting a DVD - then press the eject key - See if it comes out - If it doesn't install all the drivers - try Control Panel - If not try re-installing your version of Windows.

  • I just got the iPhone 5.  It's completely synced and working.  All my contacts are loaded.  However, caller ID is not working when I receive a call or a text.  Can anyone help me out with this?

    I just got the iPhone 5. It's completely synced and working.  All my contacts are loaded.  However, caller ID is not working when I receive a call or a text.  Can anyone help me out with this?

    Well, assuming all of the above, Notifications, etc., it just might be time for a visit to the Apple tore genius center for a session with the techs.  See if it is a fault in the hardware or just an iOS reinstall is the answer.
    One more thing you could try, backup so you have a record of content, then restore to factory conditions be an Erase All Contents and Settings.  Then restore from the backup you just made.  That has helped some with WiFi problems, may be it would work with your problems.
    But with that behavior of another app with problems, the geniuses looks like a less stressful thing to do.

  • HT1430 For some unknown reason my Apple ID password does not work when trying to down load books from the IBook or Nook Apps.  It also has stop work when trying to down load new Apps.  Any suggestions out their???

    For some unknown reason, my Apple ID Password does not work when trying to down load IBooks, Nook books, or new Apps.  Everything else seems to work.  Any suggestions out their???

    I appreciate the info and realize that the Nook App is not related to my Apple account but this too has stopped working.  My situation first started with the Nook App not down loading and then has now spread to my IBook and new app downloads.  I have checked into my ITunes account and the ID and password are correct  and at times when I am asked to submit my Apple password such as setting up this Apple Support Community the ID and password work.  My problem seems to be just with trying to use my ID and password when wanting to download new books or apps.  I can go into the IBook, Nook, and App stores and seemingly download an item but when clicking on the new book or app nothing happens and I get a message that states it can not get into the ITunes store and it wants me to either try again or cancel.  This message appears usually ten minutes after I have tried to make a purchase.  At other times when I attempt to download a book or app I lose the screen and the IPad goes into the opening screen.  Short of redoing my Apple account or deleting an app and attempting to reload the app (but this won't work because the App store won't load new apps) I don't have a clue what to do.

  • Css3 animation does not work when triggerd by backing bean method

    Hi,
    I use Jdev 11.1.1.4 (but I guess the Jdev/ADF version does not matter in this case) and Firefox 15.0.1.
    I tested some parts of article https://blogs.oracle.com/groundside/entry/css_animations_the_panel_flip from Duncan Mills.
    The CSS3 animation for styleClass "rotateOut" works fine when I trigger it from mouse hover.
    The problem is that the animation does not work when I set the styleclass in a backing bean.
    In this case the UI component to rotate (in my case the calender component) changes immediatelly to the transition target without the transition-duration of 2 seconds and therefor there is no animation effect visible for the user.
    Here the backing bean code:
        public void doRotate() {
           afCalender.setStyleClass("rotateOut");
           AdfFacesContext.getCurrentInstance().addPartialTarget(getAfCalender());
        }Here the skin:
      .rotateOut {
        -moz-transition-property: -moz-transform;
        -moz-transition-delay: 2s;
        -moz-transform: rotateY(45deg);
        -moz-transition-timing-function: ease-in-out;
        -moz-transition-duration: 2s;
      .rotateReturn {
        -moz-transition-property: -moz-transform;
        -moz-transform: rotateY(0deg);
        -moz-transition-timing-function: ease-in-out;
        -moz-transition-duration: 2s;
      }In Duncan's article java script is used to change the style class.
    Does the CSS3 animation only work when java script is used to change the style class or shoud java in a backing bean also work?
    Any hints?
    regards
    Peter

    I have tested several other settings but no success.
    Any ideas?
    regards
    Peter

  • SSRS CatalogItem method not working for deploying a shared data source

    I have been working with the SSRS CreateCatalogItem method to deploy reports to a SSRS 2012 in SharePoint integrated mode with SharePoint Server Enterprise 2013. I am using Powershell. The CreateCatalogItem method works fine when I deploy RDL files,
    but fails when I deploy an RDS. I get an rsInvalidXML1400 error, whatever that is. Here is a cut-down version of my code to establish the bare essentials:
        [String] $reportserver = "server20";
        [String] $url = "http://$($reportserver)/sites/AdventureWorks/_vti_bin/reportserver/reportservice2010.asmx?WSDL";
        [String] $SPFolderPath = "http://server20/sites/AdventureWorks/BICenter/Data%20Connections/";
        [String] $fileFolder = "C:\SiteBackups\BIReports\BIReports\";
        [String] $itemName = "AdventureWorksCube.rds";
        $ssrs = New-WebServiceProxy -uri $url -UseDefaultCredential;       
        $warnings = $null; 
        $itemPath= $($fileFolder + $itemName);
        $definition = get-content $itemPath -encoding byte;      
        try
            $ssrs.CreateCatalogItem("DataSource", $itemName, $SPFolderPath,$False,$definition,$null, [ref] $warnings);
        catch [System.Web.Services.Protocols.SoapException]
            $msg = $_.Exception.Detail.InnerText;
            Write-Error $msg;
    I have a workaround whereby I read the XML of the data source file directly and extract the ConnectString and Extension elements then use the text within them to create the data source using the DataSourceDefinition class. My point is not to get a workaround.
    I want to establish that the CreateCatalogItem method indeed does not work when used with the ItemType "DataSource". In the code above, if I change the itemType i.e. first parameter of CreateCatalogItem to "Report" and change the $itemName
    to the name of an RDL file, it deploys correctly. Has anyone else encountered this behavior or am I doing something wrong here?
    Charles Kangai, MCT
    author of the following Microsoft Business Intelligence courses:
    http://www.learningtree.co.uk/courses/139/sql-server-analysis-services-for-business-intelligence/
    http://www.learningtree.co.uk/courses/134/sql-server-integration-services-for-business-intelligence/
    http://www.learningtree.co.uk/courses/140/sql-server-reporting-services/
    http://www.learningtree.co.uk/courses/146/sharepoint-business-intelligence/
    Charles Kangai, MCT

    Hello,
    We can invoke the SSRS proxy endpoint (ReportService2006.asmx)from PowerShell to publish report definitions (.rdl) and report models (.smdl) to a SharePoint library, but this does not apply to data source (.rds) files.
    In order to deploy .rds to SharePoint library without using SSDT, you should convert the .rds file to its .rsds counterpart which is pretty contains same content but in different schema.
    If you want to fully automate your deployment, you should write your own converter and perform the deployment by utilizing SharePoint feature framework and SSRS proxy endpoint (ReportService2006.asmx).
    Please refer to the following blog about this issue:
    PowerShell:Deploying SSRS Reports in Integrated Mode
    Deploying Reports in Integrated Mode
    Regards,
    Fanny Liu
    If you have any feedback on our support, please click
    here.
    Fanny Liu
    TechNet Community Support

  • Report with JDBC connection does not work when they includes CommandTable

    I am trying to render using the new version of Crystal report java component - CRJ a report contains Data base Fileds of type Command Table (Row Set) which seems to be not working.
    when i use the previes version of crystal SDK it works fine.
    after deugging the Sample CrystalHelper.java file which contains the method .changeDatasource()
    i found that the DataBaseController.setLocation() method changes the CommandTable class to Table when using it on CommandTable instance and as result all the fields defined into that CommandTable were disappear.

    That appears to be a known issue:  Eclipse JRC: To change the JDBC connection at run time
    Sincerely,
    Ted Ueda

  • Help! Javascript not working when object moved from one page to another!

    Hello all:
    I am new to Adobe Livecycle Designer (version 8.0). I have created a 3 page interactive pdf form with numerous objects (text fields, radio buttons, drop-down boxes, etc.), that our business wants to begin using soon.
    I am having difficulty with some of my Javascript not working with a few of my objects on page 2 of the form. Specifically, there is a drop-down box for "Country" on page 2 of my form. When the user selects, for example, "United States" from the list, I have Javascript that is supposed to change the "Currency" drop-down box rawValue to "US Dollars" accordingly (upon the change event).
    I think my Javascript syntax is proper, but I am not certain. Here is my simple Javascript associated with the "Country" drop-down box (Note: rawValue 80 = "United States" and rawValue 105 = "US Dollars"):
    form1.Page1.cmbContactInfoCountry::change: - (JavaScript, client) -
    if (this.rawValue == 80) {     
         cmbCurrency.rawValue = 105;
    This seems pretty straight forward and it WORKS when my "Country" drop-down box is moved to page 1 of the form, but it WILL NOT WORK when I move the "Country" drop-down box back to page 2 of the form (which is where it belongs).
    Does anyone have any suggestions or solutions? I have spent probably 6-8 hours racking my brain trying to figure out why it works when on one page, but it does not work when move to a different page. I am guessing that I may have corrupted something OR that I am not fully addressing the proper name of the object?
    Please help!
    Frustrated and helpless near Chicago!
    Taylor T

    Hi Jono:
    Thank you for your quick reply.I was able to obtain the full name of the cmbCurrency object using the method you taught me. That is brilliant! Great short-cut tool.
    Unfortunately, I am still having issues with getting Javasript for the cmbCountry object to work with the cmbCurrency object. I haved pasted my new Javascript below.
    JavaScript for cmbCountry object:
    //UNITED STATES
    if (this.rawValue == 1) {
              xfa.resolveNode("form1.#subform[1].cmbCurrency").rawValue = 1;
    else
    //CANADA
    if (this.rawValue == 2) {
              xfa.resolveNode("form1.#subform[1].cmbCurrency").rawValue = 2;
    I have checked the "Specify Item Values" checkbox of the cmbCurrency drop-down object and Value 1 = "US Dollars" and Value 2 = "Canadian Dollars".
    When I select "Canada" from the cmbCountry drop-down object, the rawValue of the cmbCurrency drop-down object is changed to "US Dollars" (when it is clearly defined as "Canadian Dollars"). When I select "United States" from the cmbCountry drop-down object, the rawValue of the cmbCurrency drop-down object stays blank for uknown reasons. Very strange.
    Since I am not able to further explain in detail on what I am experiencing, I have posted a link to my file below (I just signed up for an account at ShareFile). I would forever be indebted to you if you can help me figure this out!
    https://thomptk.sharefile.com/?cmd=d&id=07ede2fe11db4549

Maybe you are looking for

  • Mail 2.1 / Entourage/ MS Exchange

    I've searched all over the forums and Google but couldn't find the answer I needed. My company uses Exchange and I successfully setup Entourage. Public folders work, email works, calendars works, etc. The only issue I have with it still is setting up

  • MS SQL queries in DIAdem 10.2

    Hello, I have a dBase which I manage in MS SQL server express.  I was able to use the NAVIGATOR to get a table out of my dBase (ex. tblTesting). So, in the NAVIGATOR screen I see all my column headers. The next thing I would like to do, is to perform

  • Time Machine Duplicates

    Hello, First of all: Sorry if this has previously been discussed! I couldn't find an answer so far. I recently had to have my MacBook Pro repaired by a local Apple Shop, the logic board had to be changed, and when it came back, I wanted to run Time M

  • Have downloaded 5s iPhone. Instructions for activating iCloud gives wrong email address to verify account. How can I get around this problem and get my phone set up with iCloud

    Have downloaded 5s iPhone. Instructions for activating iCloud gives wrong email address to verify account. How can I get around this problem and get my phone set up with iCloud

  • Grey Screen Restart Crash

    Hello, I had a quick look through other posts and saw lots of grey screen bugs, but nothing quite matching mine, so sorry if this has been asked before... My 2010 Macbook Air has recently - in the last couple of months or so - started randomly crashi