473,406 Members | 2,217 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

How to trigger radio button element's eventhandler from the mail body of the mail

Hi,
Pls help me in solving this problem.

How to trigger radio button element's eventhandler from the mail body of the mail

I am trying like this...

Expand|Select|Wrap|Line Numbers
  1. strHTMLBody = "<html><head><script language='javascript'>function fdBckMail(){alert('HI')}</script></head><body><CENTER><SPAN style='FONT-SIZE: 10.5pt; COLOR: #0000ff; FONT-FAMILY: Bookman Old Style'>***********THIS IS AN AUTOGENERATED MAIL***********</span><BR><BR></CENTER><SPAN style='FONT-SIZE: 10.5pt; COLOR: #00008b; FONT-FAMILY: Bookman Old Style'>Dear Travel Coordinator,</SPAN><br><br>";
  2.             strHTMLBody = strHTMLBody + "<form name='frmfdBck'><table border=0><tr><td><SPAN style='FONT-SIZE: 10.5pt; COLOR: #ff6600; FONT-FAMILY: Bookman Old Style'>User's Remarks on FTR Ticket:</SPAN></td></tr>";
  3.             strHTMLBody = strHTMLBody + "<tr><td><SPAN style='FONT-SIZE: 10.5pt; COLOR: #00008b; FONT-FAMILY: Bookman Old Style'></SPAN></td></tr></table><br>";            
  4.             strHTMLBody = strHTMLBody + "<table border=0><tr><td><SPAN style='FONT-SIZE: 10.5pt; COLOR: #ff6600; FONT-FAMILY: Bookman Old Style'>Confirm Travel Ticket Details:</SPAN></td</tr></table>";            
  5.             strHTMLBody = strHTMLBody + "<table border=0><tr><td><SPAN style='FONT-SIZE: 10.5pt; COLOR: #00008b; FONT-FAMILY: Bookman Old Style'><a href>Click here to provide Travel Ticket Details</a></SPAN></td</tr></table>";
  6.             strHTMLBody = strHTMLBody + "<table border=0><tr><td><input type='radio' name='rdfdMail' value='Satisfied' onclick='javascript:alert('HI')'></td</tr>";
  7.             strHTMLBody = strHTMLBody + "<table border=0><tr><td><input type='radio' name='rdfdMail' value='Not Satisfied' onClick='fdBckMail()'></td</tr>";
  8.             strHTMLBody = strHTMLBody + "<table border=0><tr><td><input type='textarea' name='txtArMail'></td</tr>";
  9.             strHTMLBody = strHTMLBody + "<table border=0><tr><td><input type='button' name='btnFdBckMail' value='Submit' onclick='fdBckMail()'></td</tr></table>";                           
  10.             strHTMLBody = strHTMLBody + "<table border=0><tr><td>&nbsp;</td></tr><tr><td><SPAN style='FONT-SIZE: 10.5pt; COLOR: #00008b; FONT-FAMILY: Bookman Old Style'>Regards,</SPAN></td></tr><tr><td><SPAN style='FONT-SIZE: 10.5pt; COLOR: #00008b; FONT-FAMILY: Bookman Old Style'>TEDWEB Team</SPAN></td></tr></table></form></body></html>";
Oct 11 '07 #1
1 1629
acoder
16,027 Expert Mod 8TB
By mail body, do you mean this will be sent as an email and is supposed to work in the user's email client?
Oct 15 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: amith | last post by:
hi, i have some 10 radio buttons meant to take the rating from the user. ex: 1 2 3 4 5 6 7 8 9 10 looks O O O O O O O O O O 1 2 3 4 5 6 7 8 9 10 features O O O O O O O O O O
2
by: kj | last post by:
How does one trigger an event programmatically? I'm interested in how to do this in both the "Level 0" event model as well as in the DOM Level 2 event model. Thanks! kj -- NOTE: In my...
1
by: sman | last post by:
Hi, I recently read this article on About.com on how to create required fields for a form: http://javascript.about.com/library/scripts/blformvalidate.htm Everything works great except that there...
10
by: DettCom | last post by:
Hello, I would like to be able to display or hide fields based on whether a specific Yes/No radio button is selected. This is in conjunction with a posting a just made here in the same group...
4
by: Oscar Monteiro | last post by:
I Have to sets of Radio buttons like so: <input type="radio" name=p1 value=1> <input type="radio" name=p1 value=2> <input type="radio" name=p1 value=3> <br> <input type="radio" name=p2 value=1>...
0
by: Chris K | last post by:
I have a page on a customer's site - asp.net, c#, hosted on windows 2003. There's a server-side button on the page which updates a value in a sql database. This has worked fine for months, but...
16
by: Stuart | last post by:
I have a page where I utilise the left and right cursor keys to change an image, also on this page is a groups of radio buttons, unfortunately when a radio button is clicked the focus for the...
8
by: photoboy | last post by:
I have racked by brain long enough on this, so now I need the help of someone who knows what they are doing. Here is what I am trying to achieve: First, I have two radio buttons (both unchecked)...
2
by: Laser Lips | last post by:
Hi All. This one has plagued me for a while. I want to get the value of the selected radio button in 2 ways. Bearing in mind that the radio buttons are always in a form tag. 1) I want to be...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.