Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...I also believe that we all can contribute to each other's growth by sharing knowlege and experiences. I would love to take my skills and help people around the world solve problems..."

Geography

Where in the world do Tek-Tips members come from?

Output iframe with style tag / the use of quote marks inside response.write

unssupport (MIS)
20 Jun 12 9:52
Hi

I'm trying to get this iframe to output to page with response.write, however cannot get my head round ASP classic and using html tags with quote marks , e.g. style="border:0px dotted"

can someone guide me on this, and how I can correct the below

response.Write "<iframe style="border:0px dotted" src=quote_display.asp?fvrecid=" & varquote_id & "'/> </iframe>"

thanks
guitarzan (Programmer)
20 Jun 12 11:12
Either way should work

CODE

response.Write "<iframe style='border:0px dotted' src=quote_display.asp?fvrecid=" & varquote_id & "/> </iframe>"

or

CODE

response.Write "<iframe style=""border:0px dotted"" src=quote_display.asp?fvrecid=" & varquote_id & "/> </iframe>"
unssupport (MIS)
20 Jun 12 11:47
Hi
I tried your examples and now receiving this error, which I didn't receive before trying the iframe

any ideas?



Microsoft VBScript runtime error '800a000d'

Type mismatch: 'CInt'

/xml_qte_display.asp, line 43
guitarzan (Programmer)
20 Jun 12 12:04
Well, there is no CInt in the code you posted, so you would have to post the code that is giving the error...
unssupport (MIS)
20 Jun 12 12:52
this worked, thanks

CODE --> ASP

response.Write "<iframe src='quote_display.asp?fvrecid=" & varquote_id & "' style=border:0px dotted scrolling=none

width=600 height=600 align=left/> </iframe>"
ChrisHirst (IS/IT--Management)
21 Jun 12 11:55
I found that using a constant is much easier, then concatenate the output.


const sQM = chr(34)


"<iframe style=" &sQM& "border:0px dotted" &sQM& ..........

Chris.

Indifference will be the downfall of mankind, but who cares?
Time flies like an arrow, however, fruit flies like a banana.
Webmaster Forum

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close