473,324 Members | 2,166 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,324 software developers and data experts.

ColdFusion Function and JavaScript

Hi everyone,

I have a coldfusion form (ReportMenu.cfm) that the action page is itself as below:
Expand|Select|Wrap|Line Numbers
  1. <cfform action="/cfreport/ReportMenu.cfm" method="POST" enctype="multipart/form-data">
  2.  
and it's button:

Expand|Select|Wrap|Line Numbers
  1. <input type="Submit" value="View Report" class="button" name="submit"  >
  2.     <!--- onclick="MM_openBrWindow('','','toolbar=yes,scrollbars=yes,width=910,height=600')" --->
  3.  
and finally the end tag and if statement to call a function:

Expand|Select|Wrap|Line Numbers
  1. </cfform>    
  2.  
  3. <cfif isdefined("form.Submit")>
  4.    <cfinvoke component="ScholasticObjects.importExport" method="Report">
  5.         <cfinvokeargument...>
  6.    </cfinvoke>
  7. </cfif>
  8.  
This function creates my report. I want my report to be open in a new window (you can see the commented onclick inside the button) but I have the button outside the <cfif> so it opens my report on the same window. Do you guys have any idea how I can make it work. I appreciate your comments.
Mar 13 '08 #1

✓ answered by acoder

Use the form target attribute. Set it to the name of the popup window.

Just a note that target is deprecated, so it will not pass strict validation, but you can use a transitional doctype instead.

4 3200
acoder
16,027 Expert Mod 8TB
Use the form target attribute. Set it to the name of the popup window.

Just a note that target is deprecated, so it will not pass strict validation, but you can use a transitional doctype instead.
Mar 13 '08 #2
Use the form target attribute. Set it to the name of the popup window.

Just a note that target is deprecated, so it will not pass strict validation, but you can use a transitional doctype instead.

Ohhhhhh Daaaa. Thanks so much. It works!
Mar 13 '08 #3
Ohhhhhh Daaaa. Thanks so much. It works!

What about my new window's attribute?
Mar 13 '08 #4
acoder
16,027 Expert Mod 8TB
Create the popup window with a name and then use that name in the target.
Mar 14 '08 #5

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

Similar topics

60
by: English Teacher | last post by:
Which would be more useful to learn, PHP or COLDFUSION? I know Coldfusion is popular in the work force. Is PHP? Thanks!
2
by: entact | last post by:
I've got a simple coldfusion query output (title, id and disclaimer) that I use to dynamically populate a select box with the title using the id as the value. What I need is to use javascript to...
2
by: am_pcguy | last post by:
I have a web based application for my company. We use Coldfusion, I wanted to see if I could use Javascript to make the page a bit more dynamic. Right now I use the command: <cfhttp...
4
by: dusiapapa | last post by:
Hello, all! I'm faced with next problem. I have ASP.NET page which takes url-parameters from ColdFusion site. These parameters are encrypted with ColdFusion Encrypt function and I can not...
4
by: jnag | last post by:
Hello, I have date fields on a form which is generated by a Coldfusion custom tag (another piece of code). I want to change something else on the form when the user changes the date. But, how do...
3
by: jnag | last post by:
Hello, I have a website with various font options (small to large) buttons that the user can click on the banner, which runs through the site. Site contains both static and dynamic content. I...
7
by: kmitchell00 | last post by:
I am coding in Coldfusion MX7 and using Javascript for some of the functionality. The basic functionality I'm coding is, based on a value the user chooses from a dropdown box, I populate address...
3
by: dmorand | last post by:
I have a page where I'm using ajax to retrieve some employee info when a user clicks a "Retrieve Employee Info" button. The issue I'm having is that when the user updates the employee info,...
106
by: bonneylake | last post by:
Hey Everyone, Well i don't know if my question should be in javascript/ajax or coldfusion, i figure this is more of a coldfusion question. But if this is in the wrong section let me know an all...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.