Skip to main content
April 25, 2008
Question

pass variable in iframe

  • April 25, 2008
  • 1 reply
  • 466 views
<cfset Number = #Number#> --Variable to pass to iframe---

<iframe src="iframe.cfm?Number=#Number#" height = "200" width = "80%">

it doesn't work. any idea how to pass variable in iframe.

Thanks
This topic has been closed for replies.

1 reply

Inspiring
April 25, 2008
It should actually work - I have done it before, but remember that the IFRAME tag is a regualr HTML tag, so you will have to surround the #NUMBER# (at the very least) with CFOUTPUT.