[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Flash Button created from Dreamweaver

Posted on 2006-05-12
5
Medium Priority
?
153 Views
Last Modified: 2013-12-24
Passing a variable from a coldfusion page.

I have a coldfusion page and a Flash Button that was created using Dreamweaver MX.

I edited the Flash Button's link property using Dreamweaver MX.  I typed in the following code on the link property box:

javascript: MM_openBrWindow('act_revise.cfm?id="#get_num.id_num#"','testpage','status=yes,width=1000,height=500')

The variable #get_num.id_num# is coming from the page where the flash button is residing. I want to pass this variable to the new pop up page.  The varaible wil not pass.  

Can someone please help?

Thanks
0
Comment
Question by:jramos74
  • 3
  • 2
5 Comments
 
LVL 7

Expert Comment

by:bwasyliuk
ID: 16671974
I have not used a flash button's link property before, but it occurs to me that this (Flash) object may have no knowledge of CFMX variables as it is being included (Precompiled) by the Coldfusion server, and that its link property will probably contain a script with the #get_num.id_num# variable unevaluated.

Is this what you mean by saying the variable will not pass?  Does it show the variable in the URL string as "#get_num.id_num#" instead of evaluating it to the actual value?
0
 

Author Comment

by:jramos74
ID: 16681910
Yes. I have a query and I need to pass a variable from .cfm page to another .cfm page using the flash button as the bridge.
0
 
LVL 7

Expert Comment

by:bwasyliuk
ID: 16710468
Can you post the code for your flash button from the CFM page where it is included?
0
 

Author Comment

by:jramos74
ID: 16711216
Here is the code for the flash  button:

 <td width="17%"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"  width="100" height="30">
      <param name="BGCOLOR" value="">
      <param name="movie" value="edit.swf">
      <param name="quality" value="high"><param name="SCALE" value="noborder">
      <embed src="edit.swf"></embed>
    </object></td>
0
 
LVL 7

Accepted Solution

by:
bwasyliuk earned 1500 total points
ID: 16711754
Ok, I dont think you can make this work in the manner you are attempting, however - I am prepared to be corrected.

To make it work, I would change your link property on the flash button, which is currently:
javascript: MM_openBrWindow('act_revise.cfm?id="#get_num.id_num#"','testpage','status=yes,width=1000,height=500')

to something like :
javascript: my_function_name()

Then, on your CFM page, add some javascript:

<script>
function my_function_name() {
  MM_openBrWindow('act_revise.cfm?id=<cfoutput>#get_num.id_num#</cfoutput>','testpage','status=yes,width=1000,height=500');
}
</script>

This assumes, of course, that you have the variable "get_num.id_num" already defined above where you place the <script></script> content on your page.
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

Introduction This article explores the design of a cache system that can improve the performance of a web site or web application.  The assumption is that the web site has many more “read” operations than “write” operations (this is commonly the ca…
When it comes to security, close monitoring is a must. According to WhiteHat Security annual report, a substantial number of all web applications are vulnerable always. Monitis offers a new product - fully-featured Website security monitoring and pr…
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 insert an Iframe into 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 : Open Page or Post…
Suggested Courses
Course of the Month18 days, 21 hours left to enroll

834 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