{A_K_A} Posted March 18, 2012 Share Posted March 18, 2012 Helloooo... I am trying to get a link to open on click in an iframe but I keep getting errors. <iframe src="read.asp" name="read" hieght="300" width="500">Response.Write ("<a href=""read.asp?ID=" & rsGuestbook("ID") & "target=""read"">") I am using the above code and when I run my page the iframe has already appeared and the page has errored. Please help! Link to comment Share on other sites More sharing options...
{A_K_A} Posted March 19, 2012 Author Share Posted March 19, 2012 Any ideas? Link to comment Share on other sites More sharing options...
dsonesuk Posted March 19, 2012 Share Posted March 19, 2012 waiting for more source code, with you given errors i see are <iframe src="read.asp" name="read" height="300" width="500"></iframe> because the iframe will go the src as soon as it is rendered, if it needs the query string with id, it will always attempt to load and give an error, unless you give it a default address to a default page onloading of the page. the asp code for querrystring does not seem to have a closing quote either? and you probably have quote conflicts i would use single quotes Response.Write ('<a href="read.asp?ID=' & rsGuestbook("ID") &' " target="read">') easy to ready, and less confusing. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.