Solved

clicking on button should open a popup window to processing

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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…
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
The purpose of this video is to demonstrate how to make a WordPress Site faster and smaller in size by cleaning up the database. This will be demonstrated using a Windows 8 PC. Plugin WP Optimize will be used. Go to your WordPress login page. T…
The purpose of this video is to demonstrate how to Import and export files in WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Click on Too…

747 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

13 Experts available now in Live!

Get 1:1 Help Now