Is there a way to embed JavaScript within JavaMails?

I have a program that creates and sends e-mails. Is it possible to insert JavaScript inside the mail message so that when a user clicks on a link in the html e-mail a alert("Warning : blah balh "); may appear?
I know it's possible to embed the JavaScript, but can't get it to work. Is that not possible with html e-mails?

Yes. surely.
What can be done is :
1. define an ascii file with the necessary
<script>
<!-- javascript -->
function funcName() {
alert("Blahhha");
</script>
__YOUR-PAGE-CONTENTS-HERE__
2.Read the above <script></script> block in a Str Buffer
3.Also substitute the __YOUR-PAGE-CONTENTS-HERE__ with ur page contains along with onLoad = funcName();
4.This will dynamically generate a page for u, which u need to send as a plain message or as an .html (attachment).
I think u will easily do it.
Best Lucks
from:
Dhiraj.

Similar Messages

  • Is there a way to embed PDF files within Captivate?

    Is there a way to embed PDF files within Captivate 5?
    I'm trying to avoid pop-ups.
    I know there's a widget out there, but it's for Captivate 3.
    I couldn't get it to work.
    Thoughts?

    Hello,
    Have a look at this widget from Jim Leichliter:
    http://captivatedev.com/2010/11/05/adobe-captivate-5-web-page-widget/
    Lilybiri

  • Is there a way to embed copyright information with forms?

    I would like to put a copyright on custom forms I am creating, or not really a copyright but just an acknowldgement of my company as the creator of the form and of the practice which is using the form. Is there a way to embed this in a PDF. Not necessarily in a visible way either. I am using Adobe Acrobat Pro 9. My boss is demanding this so please help!

    First you can add the information as a footer in the authoring program.
    Next you can add custom meta data fields to include the copyright notice, contact information, and usage restrictions through the "File => Properties => Custom" UI or with JavaScript. Doc Properties info
    You can also set the meta daa copyright through the "File => Properties => Description => Additional Metadata..."  or with JavaScript. Doc Properties metadata
    You can modify these scripts to make them functions that can be accessed by adding an option to an Acrobat menu item or as a tool bar button.
    app addMenuItem method
    app add subMenu
    app addToolButton
    app removeToolButton

  • Is there any way to embed the pdf file in the book created in iBooks Author to make it available to be downloaded or sent to email? So that the user can print it out.

    Is there any way to embed the pdf file in the book created in iBooks Author to make it available to be downloaded or sent to email?
    I'm making the book for children and there is one chapter providing coloring pages. So I wish to attach pdf files that allow users to download it at the end of chapter so that  they can print it out. Been searching through discussion, I've found some advice about taking screen snapshot page-by-page > then send the pics from photo album to email. However, I'm wondering if there's a way that make the process easier.

    Warehouse that PDF on your own server, then link to it from your book.
    Ken

  • Is there a way to "embed"/add Office updates to the image before deployment?

    Hi,
    in my TS I enabled preapp and postapp Updates
    So first windows patches are applied. Then computer reboots installs apps.
    I just enabled bunch of Office 2013 updates on WSUS. Office patches takes very long time.
    Is there a way to embed patches in MDT to save update time.
    Never used Packages node in MDT may this thing can help?
    How you deal with massive updates?
    Windows image can be updated, but Office for example that is installed after Windows deployment...
    Thx.
    &quot;When you hit a wrong note it's the next note that makes it good or bad&quot;. Miles Davis

    b.lange,
    no I do not install O2013 into the image. It is deployed as post OS install Application.
    I really don't see any significant gain of using individual patches in Updates or from WSUS.
    BTW, I am still confused about getting MS patches (KBs) beside by WSUS and creating msp from bunch of them.
    Could you please briefly describe where and how to download Office 2013 patches for Example from Feb 1 2014 until Sep 15 2014. And then create msp for placing to Updates folder.
    Is there something specific for Office 2013 patches that makes it easy to get as a package (one file)?
    Thanks.
    &quot;When you hit a wrong note it's the next note that makes it good or bad&quot;. Miles Davis

  • Is there a way to embed a document in a FormsCentral form that users can download?

    I want users (i.e., people submitting a form) to be able to download a document.  Is there a way to embed a document in a FormsCentral online form?

    You can't embed it directly. You could put the document on your website then create a hyperlink on the FormsCentral form to your document.
    Randy

  • Is there a way to EMBED Flash player?

    Hello Earth-lings,
    Good Day!
    First of all, I have created a website for a client of mine
    but whenever they wanted to
    visit their 100% Flash website, they can see the 'Flash
    Detection - Download Flash
    Player from Adobe' prompt but they could not install the
    downloaded Flash Player
    as they got an error something like ' You don't have
    privilages . Please contact your
    Admin.'
    Is there any way to solve this issue?
    PS. Sorry for the 2x posts.

    But is there a way to embed Flash Player in it so that it's
    easier for
    them - what I meant was the trouble to inform their admin
    just for
    this.

  • IS THERE ANY WAY TO EMBED LINKS INTO THE FILE YOU ARE WORKING ON?

    IS THERE ANY WAY TO EMBED LINKS INTO THE FILE YOU ARE WORKING ON?

    Ha! Perfectly classic case of XY problem! Pointed out by Jongware in some other thread recently - couldn't find an exact link right now...
    In short:
        User wants to do X.
        User doesn't know how to do X, but thinks he can fumble his way to a solution if he can just manage to do Y.
        User doesn't know how to do Y either.
        User asks for help with Y.
        Others try to help user with Y, but are confused because Y seems like a strange problem to want to solve.
        After much interaction and wasted time, it finally becomes clear that the user really wants help with X, and that Y wasn't even a suitable solution for X.
    Maybe it worth to add to a list of tips and best practices of the forum:
    Avoid XY problem!

  • Is there a way to embed an image inside a script?

    I've a logo I use on a user interface.  Right now I'm opening the image from a file, is there a way to embed the image inside the script so I don't have to distribute the image with the script?

    xbytor, of the photoshop scripting forum has a tool kit that you can download & instal. The majority is to do with PS but part of that contains some conversions that 'may' be of use to you… See this recent post in the Photoshop forum…
    http://forums.adobe.com/thread/729330?tstart=0
    Not done this myself so if you have any problems you may be better posting back there… I probably won't be able to help…

  • HT5973 Is there any way to remove labels within Maps app?

    Is there any way to remove labels within Maps app?

    No - just don't upgrade until Google release there maps app.  I wish I could go back to yesterday and give myself this advice.

  • Is there a way to embed an html editor in a webdynpro application?

    Hi,
       I need to create a webdynpro app that has an html editor. I have javascript code(for an html editor) avalaible, but as far as I know there is no way to embed it. Any suggestions? Or is there an existing UI element that I missed?
    Regards,
    Harsh

    hi ,
    Using a Iframe UI u can give the source as the path to this html file(the javascript code). But everytime a event occurs the content i the IFrame UI gets refreshed.
    If u have to just display a content in Iframe UI its fine. If u r planning to navigate inside it ..it wont work out .
    You can fire a exit plug to the javscript code if its the last step in ur application or u can fork a process and create a external window with this url.
    Hope this helps
    Regards
    Bharathwaj

  • Is there a way to create guides within ruler guides or aligned to ruler guides?

    So I was wondering for my own sake if there was a way to create guides within ruler guides or have it align to ruler guides? I am working on this magazine where the layout has a ruler guides. Which is inside the margins. I'm guessing this is to ensure the content is safe and also leaving adequate room for folios and running heads. This leaves me with the inside of the ruler guide to create my own grid. I tried doing this by hand and it seems to work fine however I was wondering is there a way to align the guides/grid (columns and rows) to the ruler guides instead of the margin or page? This would be extremely helpful as doing it by hand is quite the task. I'm trying to personally see how many rows and columns I can get in for a verstatile grid that can be used for different sorts of layout. (although I guess the grid could too many rows and columns) Any help would be greatly appreciated.

    Is there a way to make it align to the ruler guides instead of the page and margin? example of what i'm talking about:

  • Is there a way to put links within documents in Pages

    Is there a way to put a link on the first page of a Pages document that would take you to a certain location within the same document or to another document?

    Barry,
    See "Using Hyperlinks and Bookmarks" on page 110 of the Pages User Guide PDF. You can download the guide from the Help menu.
    Jerry

  • Is there a way to "embed" -Xmx command into program

    Hi fellow members,
    I have been working on a program to analyze web page structural similarity and has been posting on this forum for some help recently. At the moment I manage to parse html into DOM tree and perform tree edit distance analysis.
    But I'm facing a problem which is heap memory running out. More complex web pages run up to >1000 nodes and the recursive comparing which has a time complexity of N^2 will cause outofmemory error. I have already reduced the number of nodes such as excluding text nodes as I'm primarily concerned with the structural similarity.
    By using -Xmx to increase the heap memory helps to solve the problem partially. I would prefer to embed this command into the program so that user does not need to type it out every time. Is there a way to do this?
    Thanks in advance.

    I see, thanks a lot guys, I will read up on batch file processing.
    But I'm wondering if I'm going to make it into a .exe file which will include the GUI in the near future, will I still need to write a batch file or any swing component can set the memory?
    One more wild question, is there a way to set heap memory to be dynamic, as in increasing according to the program needs?

  • Is there a way to navigate (TOC) within a video without SWF?

    My project requires that we do not use Flash. Is there a way to create bookmarks/TOC inside a video without using Flash/SWF? I was thinking maybe a PDF, but that bookmarks pages, not within a video.
    Suggestions?

    I created something like it with Captivate in the past so I was going to again. I guess the scope has changed enough that Captivate is not the right tool. But I thought it was worth asking in case a Captivate user has had a similar need and might have some advice in how I can accomplish this. I don't know much about video editing, but in my research, I haven't yet found a way.

Maybe you are looking for

  • How do I use face time I have 3G and its telling me I need a wi fi connection

    HOw do I use my face time I have a 3G model but when I try to use FaceTime its telling me that I need a wifi connection

  • Can't drag and drop in to open/save dialog

    Hi, guys! Is that true that in the Mac OS Lion you can't drag and drop file into open (or save, or any other) dialog? In Snow Leoprd and Leopard I use that ability very often and now when I drag and drop something like that, nothing happens! Is it bu

  • HT4914 vinyl recordings in my i tunes library what happens

    vinyl recordings in my i tunes library what happens

  • Local views with NW2004s

    In BW 3.5 there is the web item "Query View Selection" where a user has the possibility to create a own local view per template and also to delete it. In the new Java environment for NW2004s I don't see this possibility. I only have the options with

  • Opening in code view in CS5

    A while back I posted a discussion seeking information about having PHP files open in code view instead of design view. (CS4). I found out that I was able to tell PHP files to open in code view, but for some reason the creators of DW saw it fit to fi