Forums
This topic is locked
Request URL Param from DB to iFrame
Posted 25 Nov 2004 12:11:21
1
has voted
25 Nov 2004 12:11:21 Rein van Spaendonck posted:
This problem is really getting me a headache...I have a page (default.asp) with an iframe where a photogallery needs to be displayed depending on the variables passed. The navigation menu passes the parameters to the iframe.
For example:
<pre id=code><font face=courier size=2 id=code>default.asp?page=projects&sc=ipi&sci=2</font id=code></pre id=code>
The iframe src is stored in a database and I have the following code: (replace * with % of course)
<pre id=code><font face=courier size=2 id=code>iframe src="<*=(rsPAGES.Fields.Item("getIframeSrc".Value)*>"</font id=code></pre id=code>
The "getIframeSrc" field is as following in the database:
<pre id=code><font face=courier size=2 id=code>includes/photogallery.asp?page=projects&sc=ipi&sci=<b><*Request.QueryString("sci"*></b></font id=code></pre id=code>
The problem seems to be in the bold part of the code. I have tried a few variations with that part, but none seem to work, no records are returned. The thing is, that if I manually enter a value for the sci variable it displays the records correctly.
Can someone please help me out?
Cheers!
Replies
Replied 25 Nov 2004 15:44:21
25 Nov 2004 15:44:21 Rein van Spaendonck replied:
I have already solved the problem <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>
Thanks anyway!
Thanks anyway!