Classic ASP Response write statement -


in html these working, how write code uses response write statement in classic asp html statement below?

<div id="the_div" style="border: 1px solid red"><iframe src=asp3.asp> <br><br></div>  <a href="#" onclick="hide('the_div');return false;">hide div until link click again.</a><br>  <a href="#" onclick="remove('the_div');return false;">remove div until link click again.</a> 

i tried below not succesful, huh?

  response.write "<div id='the_div'><iframe src=asp3.asp> </iframe><br><br></div>"     response.write "<a href='#' onclick='hide('the_div');return false;">"hide div until link click again.</a><br>"    response.write "<a href='#' onclick='remove('the_div');return false;">"remove div until link click again.</a>" 

use double double quotes if need escape them within response.write statement, ie

response.write "<div id=""the_div"" style=""border: 1px solid red""><iframe src=""asp3.asp""> </iframe><br><br></div>"  response.write "<a href=""#"" onclick=""hide('the_div');return false;"">hide div until link click again.</a><br>"  response.write "<a href=""#"" onclick=""remove('the_div');return false;"">remove div until link click again.</a>" 

you can use single quotes instead of double quotes tried do, if you're using them js onclick events starts confusing, , might find there's conflict


Comments

Popular posts from this blog

node.js - Using Node without global install -

How to access a php class file from PHPFox framework into javascript code written in simple HTML file? -

java - Null response to php query in android, even though php works properly -