Solved

clicking on button should open a popup window to processing

Posted on 2009-07-10
6
308 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 15

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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 15

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 15

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 15

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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

When setting up new project requests for our site, one of the most powerful tools our team has available to use is Axure (http://www.axure.com/). It’s a tool for creating software and web prototypes that can function and interact as if it were the a…
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
The purpose of this video is to demonstrate how to properly insert a Vimeo Video into a WordPress site or Blog. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp…
The purpose of this video is to demonstrate how to set up basic WordPress SEO. This will be demonstrated using a Windows 8 PC. The plugin used will be WordPress SEO by Yoast. Go to your WordPress login page. This will look like the following: myw…

919 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now