• Global community
    • Language:
      • Deutsch
      • English
      • EspaƱol
      • FranƧais
      • PortuguĆŖs
  • ę—„ęœ¬čŖžć‚³ćƒŸćƒ„ćƒ‹ćƒ†ć‚£
    Dedicated community for Japanese speakers
  • ķ•œźµ­ ģ»¤ė®¤ė‹ˆķ‹°
    Dedicated community for Korean speakers
Exit
0

Why is my Javascript Print with button not working?

Community Beginner ,
Jun 18, 2009 Jun 18, 2009

Copy link to clipboard

Copied

I am using a variable v_Name that is entered in a text box in the beginning of my program so that at the end of the program it is included in a certificate from a widget.

The  next screen after the text entry box includes the v_Name variable in a caption. The caption is within a box designed for a membership card.

The name appears fine in the box.

I then use a button to execute a javascript to print the membership card.

I have used the command window.print() within the execute javascript within the button properites. But nothing happens. The print dialog box never opens. Is this the correct javascript to use?

I have tried to preview in a web browser. Doesn't work. I've tried publishing to Flash 8 and to Flash 7. It does not work for either. I went in and changed the script in the publish folder so that the javascript should work in Flash 8. Still did not work.

I tried the print slide widget on the screen. It works but I don't want them to have to choose a slide. I simply want them to be able to print the screen with the membership card.

I do not know javascript. Is there a source of simple javascript codes to use in Captivate?

Thanks,

Jennifer

TOPICS
Getting started

Views

1.0K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 18, 2009 Jun 18, 2009

Copy link to clipboard

Copied

Hi there

Perhaps a couple of things to try.

Thing 1 - Does it work if you ensure Flash 7 when you publish?

Thing 2 - If that fails, perhaps try adjusting the Flash Security Settings using the link below:

Click here to view a tutorial

Cheers... Rick

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jun 18, 2009 Jun 18, 2009

Copy link to clipboard

Copied

LATEST

Rick,

I changed the Flash security setting and it worked. Thanks for your help. I

am doing this as a volunteer project for the Junior Rangers for the

Chattahoochee National Park. It's to encourage children in 4th thru 6th

grade to come out to the park and learn about the natural resources

especially our most valued source, water. So, the Park and the Atlanta area

Junior Rangers all thank you for your help.

Jennifer

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Help resources