PDA

View Full Version : Random iframe content



rezeik
02-22-2006, 06:27 PM
script: Random iframe content
http://www.dynamicdrive.com/dynamicindex17/randomiframe.htm

I've entered this script and when I view the page with IE 6+ I get the following results displaying in the i-frame:

{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fcharset0 Courier New;}{\f1\fswiss\fcharset0 Arial;}} {\*\generator Msftedit 5.41.15.1507;}\viewkind4\uc1\pard\f0\fs20 \par \par \par \par \par \par \par 'I just had to share this with you... I had the Site of the Day on 7/26 and I had the most AMAZING results... 4 signups to my paid program. Unheard of! \par Now that MAV is in full-launch, I will *definitely* be putting in regular bids for the SOTD.'\par

\par Sabra Bryant\par \par
\par \par \par \par \f1\par }

I searched the FAQs and here and didn't find anything like this.

Does anyone have any idea what I am doing wrong?

Thanks,

Michael

Twey
02-22-2006, 06:39 PM
Just a guess, but I'd say the character encoding is wrong.

rezeik
02-22-2006, 06:42 PM
I'm sorry... character encoding?

How would I fix that?

Twey
02-22-2006, 07:03 PM
Get your server to send a Content-Type header that matches the one used by the page in the iframe.