iframe text overflowing (Full Version)

All Forums >> [Web Development] >> Cascading Style Sheets



Message


lu lu -> iframe text overflowing (10/21/2006 2:07:12)

Hi i have an iframe displaying in a main page. The iframe displays data from a database, but the data is overflowing the iframe?

how can i prevent this?

I tried to put the contents of the iframe in a table but still no luck, any ideas?

Thanks




d a v e -> RE: iframe text overflowing (10/21/2006 5:57:09)

have you got scrolling on the iframe? have you got a url we can look at, please ;)




jaybee -> RE: iframe text overflowing (10/21/2006 6:56:36)

Dave is right. We're not mind readers. We need to see the code and the css controlling the layout.




d a v e -> RE: iframe text overflowing (10/21/2006 7:01:21)

"Dave is right. "

sorry - it's a habit of mine ;)




lu lu -> RE: iframe text overflowing (10/21/2006 13:18:03)

sry, can't give a url,

this is the iframe:

if not recordset.eof then myArray = recordset.getrows
recordset.close:set recordset=nothing
Conn.close: set Conn=nothing

response.write("<html><head></head><body style='overflow-x:hidden; overflow-y: auto'><table><tr><td width='315'><font face='Courier'>")
For lnRowCounter = 0 To Ubound(MyArray,2)
Response.Write MyArray(lnColumnCounter, lnRowCounter) & "<hr />"
Next
response.write("</font></td></tr></table></body></html>")


and the main page:

<br/><iframe scrolling='yes' src='contribute.asp' width='360'>Sorry your browser does not support Iframes</iframe>


now if i have a value in the db that is like
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv

then the text flows over. The iframe only displays 35 characters per line. Any suggestions on how i can make the above string cut off at 35 and continue on the next line? THanks again




jaybee -> RE: iframe text overflowing (10/21/2006 13:30:58)

You can't because that's all one word. It won't break a word. Try putting some proper text, with spaces, in.




lu lu -> RE: iframe text overflowing (10/21/2006 13:47:02)

Thanks Jaybee,

I'm not the one putting in porper text, its for a blog type site and i'm creating client usability on funny posts, i could use:
style='word-wrap:break-word;'> but that only IE supported (and i'm creating this now so the CSS3 feature like this isn't quite available. Mybe i need to handle these types of strings that are coming for the database, server side with ASP string formating... Any Suggestions?




jaybee -> RE: iframe text overflowing (10/21/2006 14:07:33)

Well you'll have to shorten them somehow or make your iframe wider.

You could break them up first, if you want asp though suggest you post in the asp forum. I'm php.




lu lu -> RE: iframe text overflowing (10/21/2006 14:26:55)

Thanks, if your really php then shouldn't you have a PHP on your chest, it just looks blue to me ..lol




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
4.699707E-02