Want to Create a Skin Button that runs JavaScript

Hi Everyone,
I'm using RoboHelp 9.
I found a script (see below) that creates an email and automatically inserts the URL from where the user is sending the email.
I pasted the script directly into the HTML of a page to test it worked – and it does.
However, I now want to add a button to a skin that runs this javascript for each page, and have no idea where to begin to get the button to run correctly. I have been able to create a button on a skin, and can see that there are javascript options but that’s as far as it goes…
<script type="text/javascript">/*<![CDATA[*/document.write("<a href=\"mailto:[email protected]?subject=ACME%20Application%20("+document.title+")&body="+location.href+"%0A%0A"+"\">Send Feedback</a>")/*]]>*/</script>
Thanks everyone in advance.
Emma

Hi Peter,
Thanks so much for your information - it has worked perfectly!
The only thing that wasn't obvious in the snippet information was where to actually put the script text on the Action tab. At first I pasted the script into the Inline Javascript option in the bottom section. This did nothing so I pasted the script into the OnClick action option. This worked perfectly.
Is it okay to leave the script text in the OnClick option?
Thanks again.
Emma

Similar Messages

  • How to create a JavaMe library that runs on all devices?

    I have the Java ME 3.0 SDK. If I start a Java ME project (Midlet) I have to choose a device that I'm developing for. While I want to create an 'Engine' library that runs on any device. This library won't use any device specific libraries. So if I make different midlets for different devices they can all use the same generic 'Engine' library.
    I've googled a lot on this already and did quite some reading in the documentation of Java ME but didn't find any info on how to do this. I found a way to convert Java projects to midlets with the J2ME plugin for eclipse, but then I'd have to reconvert my Engine project to midlets for every device I want to support every time I make a change in the code of my 'Engine' library.
    Edited by: user8973897 on 23-feb-2011 4:42

    You can find some information here I guess:
    http://www.codeproject.com/Tips/634208/Create-and-Deploy-Custom-Timer-Job-Definition-in-S
    http://www.c-sharpcorner.com/uploadfile/anavijai/custom-timer-job-in-sharepoint-2010/
    http://blogs.msdn.com/b/guruketepalli/archive/2012/01/23/sharepoint-2010-custom-timer-job-send-an-email.aspx
    ***If my post is answer for your query please mark as answer***
    ***If my answer is helpful please vote ***

  • Want to create a InDesign document that is Interactive as a PDF

    I want to create an InDesign form that is made into a PDF that can be filled out (populated with their answers) and returned via email to someone.
    Can I make the document in InDesign or do I have to do it in Acrobat? I am running CS2.
    If you can point me into the right direction I would greatly appreciate it.
    Thanks
    Barb

    Just started doing interactive PDFs so I'm learning as I go. Been using Sandee's VQS and Scott Citron's Professional Design Techniques to learn the mechanics. Scott's book is my current favorite. Sure hope he gets well soon.
    I rushed through most of the books to get the first issue out but I have a week or so to smooth out my template. Main concern is navigation. I don't want page numbers on the pages but I do want people to click on nav guide and be taken to a specific page. Here's an example of what I mean (note how the page you're on is indicated in red):
    layout template
    I can't upload the entire PDF since it's proprietary material. Not even sure there is still an Adobe magazine. Is that now called Layers?
    Reading up on bookmarks, buttons and hyperlinks this morning. If I complete my template today, I'll put it up later.

  • How can I create a submit button that only saves?

    Our end users will save the completed form and later upload it to anotherg place.  I created a save button that works fine, but without a Submit button there is nothing to trigger the reminder to go back and answer required questions.  I don't want to lose that part.  Thanks in advance for any help you can offfer!

    Would something like this work for you?
    var OKToSave = true;
    if (tfSomething.isNull) {
              tfSomething.border.edge.color.value = "255,0,0";
              OKToSave = false;
    else tfSomething.border.edge.color.value = "255,255,255";
    if (!OKToSave) app.alert("Please fill in all required fields");
    else app.execMenuItem("SaveAs");

  • Create a clear button that will clear a jpanel

    so i have two classes. One being a frame, and the other being a panel.
    On the panel, i can draw various shapes with various colours etc. The frame contains the panel, and also a north panel containing various buttons to achieve this.
    What i would i need to do is create a clear button that will clear the panel.
    I know i can go and set it so it's draws a rectangle the same colour as the background but that would be cheating.
    I will post a section of the paint just so you get an idea.
        public void paintComponent(Graphics gPanel) {
            if (this.buffer == null) {
                Dimension d = getSize();
                this.buffer = new BufferedImage(d.width, d.height,
                        BufferedImage.TYPE_INT_ARGB_PRE);
                myLineColour = new Color(0, 255, 0);     // initial colour for drawing
                this.g2Buffer = (Graphics2D) this.buffer.getGraphics();
                this.g2Buffer.setColor(Color.white);
                this.g2Buffer.fillRect(0, 0, d.width, d.height);
                // This time we'll draw with a broad pen 
            g2Buffer.setStroke(new BasicStroke(myLineWidth));
            if (myShapeFlag == 1){{
                this.g2Buffer.setColor(Color.white);
                g2Buffer.setXORMode(myLineColour); //go into the overwrite mode
                g2Buffer.drawLine(xStart, yStart, xOld, yOld); // undraw last
                g2Buffer.drawLine(xStart, yStart, xEnd, yEnd);     // draw new
                g2Buffer.setPaintMode();          // out of XOR overwrite mode
                xOld = xEnd;                    // store last end point
                yOld = yEnd;
            if(mouseReleased) {          // final time through
                g2Buffer.setColor(myLineColour);
                g2Buffer.drawLine(xStart, yStart, xEnd, yEnd);     // draw final
                mouseReleased = false;
            gPanel.drawImage(this.buffer, 0, 0, this); }Any help on this would be much appreciated

    no idea how to do this.. sorry...
    for the jbutton action listenener i'm not sure.
    I think i'm on the right tracks with a method
        public void clearPanel(Graphics gPanel){
                g2Buffer.fillRect(100,100,100,100);     // draw final
                gPanel.drawImage(this.buffer, 0, 0, this);
    }but again i think i'm way off the mark..

  • How can I creat a control button that will allow the vi to run?

    Instead of pressing the run button, I want to creat my own run button that will allow my vi to run.
    Any idea?
    Thank you

    First you need to set the VI to Run When Opened (VI Properties>Execution). Then you create a front panel Boolean. On the diagram what you need to do is have some sort of idle state where nothing is done until the Boolean is pressed. It could be a separate while loop that doesn't exit until the Boolean is pressed, an Event Structure, or as part of a state machine. Look at the shippings examples Queued Message Handler, New Event Handler, Using Buttons for Options to name just a few.

  • How to create a radio button that changes colors

    I'm using Acrobat X and ID CS5 on Mac OS X.
    A couple of years ago someone on the forums explained to me how to create a button that changes color with each click. You can view a sample PDF at https://dl.dropboxusercontent.com/u/52882455/colorcycle.pdf. They gave me the document JS and showed me how to set the properties of the button. I've integrated the button into a particular series of PDF forms and it's worked out very well.
    Now I would like to do the same thing, but using a circle instead of a square. Can anyone tell me the best way to do this? Can I somehow set a radio button to cycle through colors in the same way? I design my forms initially in ID CS5 and then activate and format the fields in Acrobat X. I've tried using circles instead of squares in my ID document, but when I export to an interactive PDF, they're converted to squares.
    Any ideas?

    I understand how to make buttons cycle through colors-- the problem I'm having is that I'm trying to figure out how to make a circular button cycle through colors. When I export my ID document to PDF, my round button maintains it's original appearance, but when I click on it to cycle through the colors, it behaves like a square (see new PDF at https://dl.dropboxusercontent.com/u/52882455/colorcycle2.pdf).
    If I use a radio button, I can get it to cycle through colors, but I don't want it to have a black dot in the middle. Is there a way to format the radio button to not show the black dot when clicked?

  • Can Designer create a submit button that works in Acrobat Reader

    Just got Adobe Professional 7.0 for Windows XP. Was able to design a form in Professional that works in Acrobat Reader (the majority of my users do not have the full product). To do this I set the email button to export the data in a .fdf format. I received the full form as an attachment in my email.
    I then brought up the form in Designer 7.0 to use its expanded design capability. The button choices for the email submit button did not allow me to select a format and the saved file would not work in Adobe Reader. I then changed the button to a plain button using the submit control type. I found several submit format choices (XML, PDF, etc.). I saved the file in a variety of the choices but could not get Adobe Reader to send the format versions. FDF was not a choice. XML works but I would rather see the full form directly as an email attachment instead of taking the extra step of importing the XML data into the form
    Anybody have a work around?

    Andrej -
    Can you be more specific about what is needed and how to do it? I just downloaded the trial version of Designer and Document Server 6. I've created the form with a submit button but it ain't working.
    I want the "Submit by email" button to do just that - send the viewable .pdf (not just the data).
    To take a step back - I can't even get the darn button to send anything. I have the info entered correctly in Designer but when the buttons clicked, an error msg. reads: "An error occured while sending mail". That tells me a whole lot of nothing. Is it because it's the trial version, or is there something else going on?
    Anyway can you explain how to use Reader Extension Server in conjunction with Designer?
    Thanks -
    Dewey

  • Create an exit button that (really) works

    Hello,
    I'm using Captivate 6.
    I have create a playbar with trigger zone for "previous slide" button, "next slide" button and a "home" button.
    Trigger zone for previous and next slide are working perfectly in the preview and from the swf i have published.
    Concerning the "Home" button, it is in fact an exit button that closes the swf (an advanced action including cpCmndExit with 1).
    It is working from the preview but not at all from the swf (played in Chrome and IE9).
    Kind regards,
    Vincent

    I just went through a very similar struggle using the variable CPcmdexit =1 here was what I found and the solution for me.  First off, this variable only seems to work when using Internet Explorer (couldn't get it to work with chrome and didn't test firefox).  Luckily our LMS standard is the users use IE so that helped me passed the hurdle.  The second part of the equation though that took me forever to figure out was that in the Reporting Settings make sure that your success criteria is being obtained.  In other words my criteria was that the user viewed 100% of the slides before being complete.  This did not work for me because I had slides past my end point that the presentation jumped and returned from.  My resolution was to set it to the number slide instead of percentage that I wanted my user to view.  So success now looks like the user viewing to slide 37 (note: It seems although I didn't throroughly test that if you have hidden slides along the way to get the end number that it throws the count off since user can't actually view it).  When that criteria is met it seems that the Cpcmdexit button functions properly otherwise it is unresponsive.
    Hope that helps.
    Brian

  • Making a button that runs a demo.msi installer

    Using pro 8 Im trying to make a button that would run the
    installer for our software,
    fscommand ("exec", "demo.msi") , doesnt work like it did for
    the exe. does anyone know what code I need to install an msi
    file?

    Juan Valdez wrote:
    > Using pro 8 Im trying to make a button that would run
    the installer for our
    > software,
    > fscommand ("exec", "demo.msi") , doesnt work like it did
    for the exe. does
    > anyone know what code I need to install an msi file?
    you can't call MSI files. EXEC can only call executable type
    of files, exe, bat, com....
    Best Regards
    Urami
    !!!!!!! Merry Christmas !!!!!!!
    Happy New Year
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • Want to create a menu/list that expands with additional links when you rollover it

    The hardest part about using the "help menu" is figuring out
    what to search for.... I want to create a button on my website that
    expands to additional options/links when you roll over it.... An
    example would be on this Adobe website.... There is a bar across
    the top that says solutions, products, etc. When you roll over it,
    the link expands to additional options.... If someone can tell me
    what to search on in the help menu, I can take it from there....
    Thanks,
    Nancy

    Haaga wrote:
    > The hardest part about using the "help menu" is figuring
    out what to
    > search for.... I want to create a button on my website
    that expands
    > to additional options/links when you roll over it.... An
    example
    > would be on this Adobe website.... There is a bar across
    the top
    > that says solutions, products, etc. When you roll over
    it, the link
    > expands to additional options.... If someone can tell me
    what to
    > search on in the help menu, I can take it from there....
    http://www.google.com/search?hl=en&sa=X&oi=spell&resnum=0&ct=result&cd=1&q=css-based+drop+ down&spell=1
    Thierry
    Articles and Tutorials:
    http://www.TJKDesign.com/go/?0
    The perfect FAQ page:
    http://www.TJKDesign.com/go/?9
    CSS-P Templates:
    http://www.TJKDesign.com/go/?1
    CSS Tab Menu:
    http://www.TJKDesign.com/go/?3

  • Do not want to create EUPEXR IDoc during F110 run

    HI All
    I am running F110 with RFFOEDI1 program, and after the payment program, it is generating payext IDocs as well as EUPEXR IDocs. But I do not want to create EUPEXR IDocs. I Could nt figure out what settings are  driving these EUPEXR IDocs . Can any one help me out? plzz

    sorry,  I have nt added the message type to the partner profile.the program is still creating the EUPEXR IDocs...but those idocs are failing anyway as there is no EUPEXR Message type in the partner profile.

  • I want to create checklist for rpd that tells about best practices

    Hi all,
    i want to create a checklist for rpd..that tells about what are all the best practices that we have to do..
    we have to write some script based on this script only it has to create the checklist.
    Thanks in advance
    Edited by: 988084 on 13/05/2013 02:34

    Hi,
    Pls refer the following link...
    http://www.peakindicators.com/media_pi/Knowledge/25%20-%20twenty%20golden%20rules%20for%20rpd%20design.pdf
    Thanks,
    Jprakash

  • I want to install a learn software that runs normally in windows?

    I am trying to instal a lern software for my kid on a mac that runs only on windows. is there a possibilty to download it and make it run?

    Have your cake and eat it too!   With the Intel Macs, you can run windows in a virtual machine. You will need our own copy of Windows.
    Don't miss the free VirtualBox.
    "VirtualBox is a general-purpose full virtualizer for x86 hardware. " Runs Windows on Mac OS.
    http://www.virtualbox.org/
    Parallels:
    http://www.parallels.com/en/products/desktop/
    & some catalog order places sell Parallels for 9.99 when you buy a mac.
    With VMware Fusion, run the most demanding Mac and Windows applications side-by-side at maximum speeds without rebooting
    http://www.vmware.com/products/fusion/
    Wine emulates the windows api's on an intel Mac.
    "Wine lets you run Windows software on other operating systems. With Wine, you can install and run these applications just like you would in Windows."
    http://www.winehq.org/
    Robert

  • Create Email/Submit button that asks the user what email address to submit to

    Is it possible to have an Email/Submit button that will ask for the users to imput the email address in which to submit to?

    My own opinion is that you are going to tick off more people than you realize. I think you can handle this in one of a few better ways:
    1) Institute an interface/web service where the HR system can send you people that are terminated. If the person has sensitive company data or anything on your site it would be in their best interest to remove their access.
    2) Force password resets every x days. To reset a password, your page can send the link to their email. That way they have to establish they still work there to reset it.
    3) Along the lines of #2, just make them verify their account every x days. If they don't do it within a week timespan, lock their account until they can prove they work there.
    I mean unless you're dealing with top secret information, if someone gets a few extra days of your service its not a big deal. You have to balance the user experience with the reality that someone may get your service for free for a bit.
    I can still get into My Oracle Support with my old email address. I obviously would not dare to put in a ticket, but I can view bug notes, knowledge base..etc. So it happens.

Maybe you are looking for

  • How do I save more than 1 page at a time?

    <blockquote>Locking duplicate thread.<br> Please continue here: [/questions/836178]</blockquote> I've tried this before, and lost it every time. Forget about it.

  • Windows Vista--again- Cannot install Creative Media Sou

    Hello. I have a Zen Microphoto. I bought a new computer running window vista home premium 32 bit. I have been tryng to install the creative media source 5 to manange my music and playlists. I prefer this over Media Player. Every time I try to install

  • MAX don't release LAN connction while communicating with Agilent 86122A

    Dear guys, Yesterday I met a communication issue while talking to Agilent 86122A via LAN. It showed I cannot run MAX before launching LabVIEW; otherwise I'd have trouble in send commands in LabVIEW. I doubt if MAX MAX don't release LAN connection whi

  • Validation on BAPI output

    Hi Experts,       I have a BAPI with output either 1 or 0, if output of BAPI is 1 it has to navigate to one form, if output is 0 it should navigate to another form. Can any one of you please suggest me how to perform validation on BAPI output. Regard

  • Creative Cloud Desktop Installation Error

    While I mostly work off-line due to the nature of the material I work with, and needed to convert a PDF (produced by InDesign) back into InDesign format. Late last night I purchased the PDF2ID add-on, unaware that I also needed the CC Desktop in orde