Cp4 - create a random passcode within the swf

Hello all
I have a situation where I need to collect completion info on a particular project - but without an LMS, without email, without acrobat.com, without a server.In short, there'll be no connection between the content and any kind of tracking system.
It occured to me that I could display some kind of completion code on the last slide (navigation will be locked down) which the learners could enter into a separate surveymonkey survey.
But I don't want people sharing the code, so I'm thinking that if I could get Cp to generate say an 8 digit code, with the first 6 digits random, and the last 2 somehow derived from the first 6, I could easily check for duplicates or invalid codes in Excel.
The big question of course is how to generate the code!
Do I need to dip into Javascript for this? If so, can anyone suggest a good resource that help me learn how to put this together, and give me a heads up on the sorts of pitfalls I might be heading for? I've no experience whatsoever with Javascript, especially Javascript+Captivate.
Thank you 

Hi again.
The background image still doesn't show up.
There was an error in the image path. I corrected it but not better.
Here a screen capture of the files on the server. It might help !
Thanks.
Pwp
Le 09-12-04 à 09:25, Murray ACE a écrit :
<div style="background-image:url(http://www.uqac.ca/laboecov/indexdsf/fonddsf
<?php echo rand(1,3); ?>index1dsf980.jpg);overflow:hidden;" id="main">
Pierre-Y. Plourde
M. Sc. Environnement
Département des sciences fondamentales
Laboratoire d'écologie végétale
Université du Québec à Chicoutimi
555 boulevard de l'université
Chicoutimi (QC) - Canada - G7H 2B1
téléphone : 418-545-5011 poste 2327 ou 2330
télécopieur : 418-545-5012
courriel : [email protected]

Similar Messages

  • UWL Help - How can i create my own task within the Enterprise Portal

    Dear all,
    I am currently working with UWL .
    I have tried the customization and those stuffs associated with UWL , and it is working properly.
    My current issue is , how can create my own task within the Portal ( not using Ad Hoc  Workflow , which is present in Portal) ?.
    If i can create my own task within portal by API or using another method , then How can i add that task link within the drop down box that is present in the Collaboration launch pad and Mytask Workset.?
    Is there any API regarding  UWL (which is useful for creation of custom tasks in Portal using Developer Studio by means of Portal Application Creation) ?
    How can i add that custom task in the drop down ?.
    I have tried the customization of existing UWL.
    I shall be grateful to those who can help me to solve this issue with links regarding the  solution of my problem's.
    with regards
    Kishor Gopinathan

    Hi Kishore,
    I am trying to do the same thing. When i am creating Collaboration Task, it has standard templates in the dropdown like "Single Step" and "Multi-Step" etc., If i want to create my own Custom Task Template and display in that dropdown, how can i do that? Your help is really appreciated.
    Thanks
    Vijay

  • How to create a new folder within the video folder in media

    Hi, I'm trying to figure out how to create a new folder within the video folder in media. I can easily create new folders within the pictures folder but not in videos.....Why??? Thanks in advance for your help.
    Message Edited by dany_s on 06-25-2009 03:58 PM
    Solved!
    Go to Solution.

    Hello,
    I think you can try two things : the soft reboot, and if it does not work, the hard reboot. Don't worry, you can't lose data with these two reboots.
    Soft reboot :
    1) Hit the three following keys at the same time :
    - Alt
    - Right Shift
    - Delete
    2) wait 2 minutes for the Blackberry to wake up.
    Hard reboot :
    1) your Blackberry device is on
    2) remove the battery and wait for a minute
    3) Put the battery back
    4) wait 5 minutes for the device to wake up.
    Please tell us if it works for you.
    The search box on top-right of this page is your true friend, and the public Knowledge Base too:

  • How to create Default Schema from within the application

    Hi friends
    I am creating users using the following within my application using this syntax
    BEGIN
    APEX_UTIL.CREATE_USER
    (:P124_USER_ID, :P124_USER_NAME,:P124_USER_FIRST_NAME,:P124_USER_LAST_NAME,' ',:P124_USER_EMAIL_ID,'xxxx');
    END;
    The default workspace for the user is set as blanks. I would like to set it to be the default workspace as per the current logged in user.
    Can you help me with the syntax for this
    thank you in advance
    Laxmi

    Laxmi,
    The subject of the post is "How to create Default Schema from within the application".
    But your question asks how to set the "default workspace" for a newly created user.
    Those are different questions and not the ones I think you need answered.
    Let me answer this question "How can you set the default schema for an account when creating the account and set it to the same value used for the default schema attribute of the administrator account used to authenticate to the currently running application?".
    In the apex_util.create_user call use named parameter notation and fetch the information about the currently logged-in user first, e.g.,declare
      l_workspace               varchar2(256);
      l_user_name               varchar2(256);
      l_first_name              varchar2(256);
      l_last_name               varchar2(256);
      l_web_password            varchar2(256);
      l_email_address           varchar2(256);
      l_start_date              varchar2(256);
      l_end_date                varchar2(256);
      l_employee_id             varchar2(256);
      l_allow_access_to_schemas varchar2(256);
      l_person_type             varchar2(256);
      l_default_schema          varchar2(256);
      l_groups                  varchar2(256);
      l_developer_role          varchar2(256);
      l_description             varchar2(256);
    begin
    apex_util.fetch_user (
      p_user_id                  => apex_util.get_current_user_id,
      p_workspace                => l_workspace,
      p_user_name                => l_user_name,
      p_first_name               => l_first_name,
      p_last_name                => l_last_name,
      p_web_password             => l_web_password,
      p_email_address            => l_email_address,
      p_start_date               => l_start_date,
      p_end_date                 => l_end_date,
      p_employee_id              => l_employee_id,
      p_allow_access_to_schemas  => l_allow_access_to_schemas,
      p_person_type              => l_person_type,
      p_default_schema           => l_default_schema,
      p_groups                   => l_groups,
      p_developer_role           => l_developer_role,
      p_description              => l_description);
    apex_util.create_user(
      p_user_id        => :P124_USER_ID,
      p_user_name      => :P124_USER_NAME,
      p_first_name     => :P124_USER_FIRST_NAME,
      p_last_name      => :P124_USER_LAST_NAME,
      p_email_address  => :P124_USER_EMAIL_ID,
      p_web_password   => 'xxxx',
      p_default_schema => l_default_schema);
    end;Scott

  • Create fixed assets from within the transaction for creating the purchase order

    Hello All,
    I have gone through the notes on help.sap.com related to automatic creation of asset master record at the time of creating purchase order.  I am not sure how do we achieve this?
    Link to the notes on help.sap.com
    SAP Library - Asset Accounting (FI-AA)
    Any suggesstions from the expert group is appreciated.
    Thank you,
    Vinay

    Hi Vinay
    I know there is a feature whereby you assign asset classes per material group and then you create assets from within the PO. I never used it though
    Let me tell you one thing or rather ask you. Will you as a finance consultant be willing to let a MM guy create the assets??
    Or will a MM guy be willing to create it?? If you allow them, you should be ready for surprises.
    Honestly, this is a feature not worth exploring unless a FI guy is willing to create the PO. I would suggest the creation of asset masters should be with FI only
    Br. Ajay M

  • How can i create a gradient chooser within the plugin window

    Hi
    i'd like to create a gradient chooser similar to the one used in Photoshop but inside the plugin window.
    How can i do that ?
    And i need a way that is compatible Mac/windows if possible
    thanks a lot!
    Jeff

    Hi Chris
    thank you for your answer.
    finally i got WxWidgets working within Photoshop thanks to Dimitri from wx-users and i also found an all-done gradient editor! so all is good thanks
    Jeff

  • Can we create a sub Event within the main Event in iPhoto?

    I would like to reduce the amount of Events I have showing in iPhoto, to one Event for one catogory and then create sub events within this main Event.
    For example.
    Create 'Holidays' for Main Event
    Then various sub Events within 'Holidays' showing destinations for each holiday with the photos.
    Regards
    John

    This is what Larry is referring to:
    OT

  • Is it possible to create different font styles within the same text field?

    The form I am creating is getting really complex because when different fields require different font treatments (bold, italic, different font size, different font) I have to create a seperate text box and get it to align with the others. This wouldn't be an issue in most cases but this form is really detailed and has many text boxes. Before I stuggle too much longer on it, I thought I would check and see if there is a way to make them all in the same text field. If not, perhaps I am trying to use Acrobat for something it is not meant for. Any recommendations on other programs I could use? Thanks

    Thank you try76. I'm not sure if I did it correctly. As soon as I tick the Rich Text Formatting box it automatically changes the appearance of the text in the field (Helvetica Light to something like Helvetica Heavy) I can't seem to get the font back to Helvetica light or change the font size while the Rich Text Formatting box is ticked.

  • Creating an Order from within the Order_Save badi

    Hi Experts,
    I'm creating trying to create a sales order with in the 'order_save' badi.
    I heard that this is not a recommended practice.
    Any inputs on why this has to be avoided?
    Regards,
    Kris.

    Hi kris,
    DOnt worry about creating a transaction while saving a Document. In my previous project I used save badi not only to create new but also to Create and then attach the same to the transaction which is saved and then update the same as well with product.
    You can use the save badi but only make sure that you Dont; use the COmmit work or any Commit bapi else you will get short dumps while saving "Express document terminated"(Dump type).
    Hope this Helps.

  • BT Cloud - creating folders within the Web uploads...

    On the Help pages the question, "Can I upload a folder or multiple files to the BT Cloud Web Client" is answered by explaining how to upload multiple files and then says you can create a new folder within the Web uploads folder to store them. Unfortunately it does not explain how to create the said folder - and as yet I have not been able to. Help please.
    Solved!
    Go to Solution.

    This is an old thread, but still relevant to my current issue.
    I've just joined BT and have activated the BT Cloud. I've tried to create a folder by clicking on the three little dots, but it's disabled. I uploaded a file and then it became enabled. Clicking on it though only allowed me to move it to trash. I moved it to trash and the 3 little dots became disabled again.
    How do I enable this to create a folder? Surely it can't be that hard!!
    Cheers,
    Graham

  • Saving/Printing work from within a .swf file

    Okay so here's the deal. I have to create a flash game in
    which users will be creating artwork. When users are done with
    their artwork we want them to be able to SAVE their work, EMAIL it
    to a friend, and PRINT it out all within the .swf file.
    HOW IN THE WORLD DO YOU DO THIS?????? I have been searching a
    researching and going through many forums and tutorials trying to
    see if anyone out there can help but I have come up with nothing.
    Although I did come a across a website that was able to achieve
    what we are looking to do in this flash game.
    Click here to view
    Snowflake Website
    On this website users can make snowflake art the old fashion
    way but this time on the web within a flash site. When users are
    satisfied with their snowflake they can save it and the snowflake
    is added to an ever growing database of user created snowflakes
    that also can be viewed by others at anytime. Users are also given
    the option of emailing their snowflake design to friends and
    downloading their design as a JPEG or and EPS file. You can also do
    the same to any of other numerous snowflake designs with the
    snowflake design database.
    HOW IN THE WORLD DO YOU DO THIS??? I have contacted the
    agency that was responsible for creating this site for their help
    as well but any assistance I can get from you guys would be greatly
    appreciated as well.
    Still quite confused but eagerly awaiting your
    responses.

    Printing object:
    on (release) {
    //creates the object of the class printjob
    var pj:PrintJob = new PrintJob();
    //starts the procedure
    //opens the windows printing window
    pj.start();
    //sets the printing area (i may be made outside the stage,
    so using the A4 area and adding any other information that should
    not appear on screen)
    area = {xMin:0, yMin:28, xMax:465, yMax:296};
    //printing options - true=bitmap / false-=vetor... bitmap
    generates a bigger file, but results in better quality for images,
    vector is smaller and a good option if you work just with text
    options = {printAsBitmap:true};
    //adds the page the the printing queue
    pj.addPage(_root, area, options, null);
    //sends the page to the printer
    pj.send();
    //deletes the object to clear memory (very important)
    delete pj;

  • Creating another class window within one class

    Ok I have a main window class, at some point if you click some button I want it to make the first window invisible and have this other, second class, appear, and further on, for both to talk to eachother. These are applets, and I have tried having one applet launch using applet.init() and hoping it would launch but it doesn't work that easy.

    so it has to create a new window within the first class? I cannot use two classes? here:
       import java.awt.*;
       import java.awt.event.*;
       import javax.swing.*;
       import javax.swing.JOptionPane;
        public class Darkness extends JApplet implements ItemListener, ActionListener
              private int intBold = Font.BOLD;
              private int intItalic = Font.PLAIN;
          private Color currentColor = Color.blue;
              private Color dateColor = Color.red;
              private Color regColor = Color.black;
              private JComboBox Years;
          private JRadioButton Sword, Bow, Flame, Ice;
          private JButton Walk[] = new JButton[6];
          private int x, y;
            private ButtonGroup Months;
              private int MO;
          private String[] buttonnames = {"Walk", "Town"};
              private String[] section = {"Forest","Mountains"};
              private String SECTION;
    public void init()
                   SECTION = section[0];
                   Image image = getImage(getCodeBase(), "Background.jpg");
                   Container content = new Work(new ImageIcon(image).getImage());
                   setContentPane(content);
                   Years = new JComboBox(section);
                   Years.setMaximumRowCount(3);
                   Years.setSize(80,30);
                   Years.setLocation(260,450);
             Container c = getContentPane();
             c.setLayout(null);
                   c.add(Years);
             Sword = new JRadioButton("Sword");
             Bow = new JRadioButton("Bow");
             Flame = new JRadioButton("Flame");
             Ice = new JRadioButton("Ice");
             Sword.setLocation(50, 400);
             Bow.setLocation(175, 400);
             Flame.setLocation(300, 400);
             Ice.setLocation(425, 400);
                   Sword.setBackground(currentColor);
                   Bow.setBackground(currentColor);
                   Flame.setBackground(currentColor);
                   Ice.setBackground(currentColor);
             Sword.setSize(100,30);
             Flame.setSize(100,30);
             Ice.setSize(100,30);
             Bow.setSize(100,30);
             Sword.addItemListener(this);
             Flame.addItemListener(this);
             Ice.addItemListener(this);
             Bow.addItemListener(this);
             c.add(Sword);
             c.add(Ice);
             c.add(Flame);
             c.add(Bow);
             Months = new ButtonGroup();
             Months.add(Sword);
             Months.add(Ice);
             Months.add(Flame);
             Months.add(Bow);
    int b = 200; //for button placement
         for(int i = 0; i < 2; i++)
                        Walk[i] = new JButton(buttonnames);
                        Walk[i].setSize(80, 40);          
                        Walk[i].addActionListener(this);
                        Walk[i].setVisible(true);
                        Walk[i].setLocation(b, 500);
                        c.add(Walk[i]);
                        b = b + 100;
    public void itemStateChanged(ItemEvent e)
    Container d = getContentPane();
    d.setLayout(null);
    int y = 200;
              if(e.getSource() == Years)
         SECTION = section[Years.getSelectedIndex()];
         repaint();
    }//end
    public void paint(Graphics g)
    super.paint(g);
    g.setColor(Color.red);
    g.drawRoundRect(0,0,600,600,10,10);
    g.setColor(Color.red);
                   g.setFont(new Font("Courier", intBold + intItalic, 30));
    g.drawString("Darkness",250,50);
    g.setFont(new Font("Courier", intBold + intItalic, 12));
    g.drawString("Monster", 150,175);
    g.drawString("Monster Health", 250,175);
                   g.drawString("Pick an area", 260,445);
    public void actionPerformed(ActionEvent e)
    int Randomizer;
    java.util.Random r = new java.util.Random();
    Randomizer = r.nextInt(10)+1;
         if(e.getSource() == Walk[0] & SECTION == "Forest")
              JOptionPane.showMessageDialog(null, "" + Randomizer, "Damage!", JOptionPane.INFORMATION_MESSAGE);     
         if(e.getSource() == Walk[1])
    //**********************HERE IS WHERE I WANT TO CALL THE OTHER APPLET*************
    //**********************HERE IS WHERE I WANT TO CALL THE OTHER APPLET*************
    //**********************HERE IS WHERE I WANT TO CALL THE OTHER APPLET*************
    //**********************HERE IS WHERE I WANT TO CALL THE OTHER APPLET*************
    //**********************HERE IS WHERE I WANT TO CALL THE OTHER APPLET*************
    //**********************HERE IS WHERE I WANT TO CALL THE OTHER APPLET*************
    //**********************HERE IS WHERE I WANT TO CALL THE OTHER APPLET*************
              JOptionPane.showMessageDialog(null, "Returning to Town", "Info", JOptionPane.INFORMATION_MESSAGE);
    //THE FIRST CLASS SHOULD CALL THIS CLASS::::Completely different file not same .java
    //********************************************************************************8
    //********************************************************************************8
    //********************************************************************************8
    //********************************************************************************8
    //********************************************************************************8
    //********************************************************************************8
    //********************************************************************************8
    //********************************************************************************8
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.JOptionPane;
    public class Town extends JApplet implements ActionListener
                   private int intBold = Font.BOLD;
              private int intItalic = Font.PLAIN;
    private JButton Buy[] = new JButton[6];
    private String[] ButtonNames = {"Walk", "Town"};
    public void init()
              Image image = getImage(getCodeBase(), "Town.jpg");
              Container content = new Work(new ImageIcon(image).getImage());
              setContentPane(content);
    Container c = getContentPane();
    c.setLayout(null);
    Buy[0] = new JButton(ButtonNames[0]);
    Buy[0].setSize(80, 40);          
                        Buy[0].addActionListener(this);
                        Buy[0].setLocation(400, 300);
                        c.add(Buy[0]);
         public void paint(Graphics g)
    super.paint(g);
    g.setColor(Color.yellow);
    g.drawRoundRect(0,0,600,600,10,10);
    g.setColor(Color.red);
    g.setFont(new Font("Courier", intBold + intItalic, 30));
    g.drawString("Town",110,150);
    g.setFont(new Font("Courier", intBold + intItalic, 12));
    g.drawString("Sunday", 25,175);
    g.drawString("Monday", 100,175);
    g.drawString("Tuesday", 175,175);
    g.drawString("Wednesday", 250,175);
    g.drawString("Thursday", 325,175);
    g.drawString("Friday", 400,175);
    g.drawString("Saturday", 475,175);
                   g.drawString("", 260,445);
    public void actionPerformed(ActionEvent e)
    if(e.getSource() == Buy[0])
    JOptionPane.showMessageDialog(null, "" , "Info", JOptionPane.INFORMATION_MESSAGE);     
              public static int Money()
    int t = 3;
    return t;

  • Attachment in OSX Mail are placed in random areas within e-mail

    Why is it when I add an attachment to Mail in OSX mail, it places the attachement in random places within my typed e-mail? Why doesn't it just attach blow in a designate spot? Instead I could type out a long e-mail and then when I place the attachment it puts it in some random spot within the e-mail, breaking up the formatting of the e-mail and making it look very unprofessional. I am working with OSX Lion but this also happens on non Lion Machines. Most of the files are Word 2011 files, some others are Excel, while also occuring with JPEG, and MPEG. Fix this please.

    Being users like yourself, we cannot really fix anything.
    But...
    As far as I can tell, the attachment always gets inserted where your cursor is currently located.
    You can, of course, move the attachment to any place you want, e.g., the end of the message, by dragging.
    charlie

  • Embedd a database within a SWF?

    Hi -
    I'm wondering if the following can be done with Flash -
    - can a swf contain it's own database that the user can add,
    delete, read?
    - while the view is online, entering and interacting with the
    data- is it being sent back and forth to the server?
    - can this database be protected with some sort of encryption
    that is only unlocked by the user's code?
    - and so that if the user emailed the swf or the db file from
    within the swf, only a person with the key could access the data?
    Can it be done?
    Can someone point me to how to these features might be
    possible with Flash?
    TIA your input,
    jl

    Hi,
    1.- SWF files cannot contain their own databases but they can
    access several server side scripts to mantain/modify a server side
    database.
    2.- Yes the interaction with the database occurs without the
    user having to take notice.
    3.- You can use any type of session protection wih
    authentication to protect your data.
    4.- SWF are like HTML or plain text (anyone can find a way to
    read it) so I'd recomend using server side authentication rather
    than relying on swf key protection.
    Cheers,
    Gorka
    http://www.AquiGorka.com/blog

  • Can I package and call a java object in the swf? (on the client)

    Hello,
    Can I package and call/execute a java object within the
    swf/adobe flash player?
    I want to embed a java object in my swf, and then whne the
    swf executes have it call the java object......
    E.

    ..... there are few instances where it would be nice to
    develope a single java object that can be used on the server and
    the client..... let's say for the case of server side validation,
    that could also be used by the client application for validation,
    instead of having to maintain 2 sets of validation logic in two
    different languages (java and AS).....

Maybe you are looking for

  • Typewriter problems in Acrobat 9 Pro

    I've been using the typewriter tool in Acrobat 9 Pro, and up until yesterday was able to change the font and size I was typing in. As of now, the whole typewriter tool bar at the top of my PDF is greyed out and seems to be locked. Please help! I have

  • Slow loading site

    I built my website with iWeb and it's horribly slow to load using the iPad and I just gave up with the Nook and the iPod Touch. None of the files are very big. There are some image files over 100k but the rest are under 100k each. Any suggestions as

  • Doubts in Classic Scenario

    Hi Friends, i am having a doubt... Let's say in classic scenario 1) SHC created in SRM 2) PO replicated in ECC in Editable mode & in display mode in SRM Question 1: If I change PO qty in ECC(as its in editable mode) will it get updated in SRM PO?(i.e

  • Help on Importing the SAP Exchange Profile

    Hello, I could not find file   /usr/sap/<SID>/SYS/global/exchange_profile.xml , while doing post installation step in installation guide. the step is importing the SAP XI profile. It is just to to save the profile, i mean to save user passwords for s

  • Need help AT-dsp2200 won't configure with 4.9.01f nidaq

    Recently tried to up grade to 5.1 labview  from 5.0 this cause me to loose controlle of me AT-dsp 2200 card  to make a long story short I have now gone to back to labview 5.0 with 4.9.0.1F and used the device manger to install the DSP cca then set th