Solved

clicking on button should open a popup window to processing

Posted on 2009-07-10
6
317 Views
Last Modified: 2013-12-24
Hi i want that when i should click the rate buttn, a popup should open and rating selected should

be updated in the table.

Here is my form below

<cfform>
<table width="100%" border="0">
  <tr>
    <td width="13%">
        <input type="radio" name="RateType" value="1" style="width:16px;">
        <input type="radio" name="RateType" value="2" style="width:16px;">
        <input type="radio" name="RateType" value="3" style="width:16px;">
        <input type="radio" name="RateType" value="4" checked="yes" style="width:16px;">
        <input type="radio" name="RateType" value="5" style="width:16px;"></td>
    <td width="87%"><cfoutput>
    <input type="button" class="button" value="Rate" onClick="WinOpen('imgrated.cfm?rate=#form.rateType#','400','400');">
	</cfoutput>
    </td>
  </tr>
</table>
</cfform>

Open in new window

0
Comment
  • 4
  • 2
6 Comments
 
LVL 16

Author Comment

by:Gurpreet Singh Randhawa
ID: 24825499
it is not working as i am getting a error:

Undefined ratetype in form
0
 
LVL 13

Expert Comment

by:srikanthmadishetti
ID: 24825512
window.open is the js function uset to open a window.

change WinOpen
to
window.open



example URL:

http://www.javascript-coder.com/window-popup/javascript-window-open.phtml
<input id="gwProxy" type="hidden"><!--Session data--><input onclick="jsCall();" id="jsProxy" type="hidden">
0
 
LVL 13

Accepted Solution

by:
srikanthmadishetti earned 500 total points
ID: 24825554


<form name="test>
<table width="100%" border="0">
  <tr>
    <td width="13%">
        <input type="radio" name="RateType" value="1" style="width:16px;">
        <input type="radio" name="RateType" value="2" style="width:16px;">
        <input type="radio" name="RateType" value="3" style="width:16px;">
        <input type="radio" name="RateType" value="4" checked="yes" style="width:16px;">
        <input type="radio" name="RateType" value="5" style="width:16px;"></td>
    <td width="87%"><cfoutput>
    <input type="button" class="button" value="Rate" onClick="window.open('imgrated.cfm?rate='+document.form.RateType.value,'400','400');">
        </cfoutput>
    </td>
  </tr>
</table>
</form>
0
Save the day with this special offer from ATEN!

Save 30% on the CV211 using promo code EXPERTS30 now through April 30th. The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

 
LVL 16

Author Comment

by:Gurpreet Singh Randhawa
ID: 24826068
it is not working, when i click the button, nothing happens

What is going wrong.
0
 
LVL 16

Author Closing Comment

by:Gurpreet Singh Randhawa
ID: 31602180
Just need to rename the document.form to the name of form as document.test and it worked

Cheers
0
 
LVL 16

Author Comment

by:Gurpreet Singh Randhawa
ID: 24826248
if i want to add one more string then how do i do, i mean one more value in the onclick event
0

Featured Post

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
The purpose of this video is to demonstrate how to add AdSense Ads to a WordPress Website, and how to set up WordPress to automatically place Ads in Sidebars. This will be demonstrated using a Windows 8 PC. Log into your AdSense account. : Cli…
The purpose of this video is to demonstrate how to set up an RSS Feed on a WordPress Website. This will be demonstrated using a Windows 8 PC. Feedburner will be used for this demonstration. Go to your WordPress login page. This will look like the…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question