navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

Microsoft MVP

 

iframe text overflowing

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> Cascading Style Sheets >> iframe text overflowing
Page: [1]
 
lu lu

 

Posts: 418
From: wpg, mb
Status: offline

 
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

 

Posts: 4071
Joined: 7/24/2002
From: England (but live in Finland now)
Status: online

 
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 ;)

_____________________________

David Prescott
Gekko web design

(in reply to lu lu)
jaybee

 

Posts: 14145
Joined: 10/7/2003
From: Berkshire, UK
Status: offline

 
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.

_____________________________

If it ain't broke..... fix it until it is.
:)

:)
GAWDS
Now where did I put that Doctype?

(in reply to d a v e)
d a v e

 

Posts: 4071
Joined: 7/24/2002
From: England (but live in Finland now)
Status: online

 
RE: iframe text overflowing - 10/21/2006 7:01:21   
"Dave is right. "

sorry - it's a habit of mine ;)

_____________________________

David Prescott
Gekko web design

(in reply to jaybee)
lu lu

 

Posts: 418
From: wpg, mb
Status: offline

 
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

(in reply to lu lu)
jaybee

 

Posts: 14145
Joined: 10/7/2003
From: Berkshire, UK
Status: offline

 
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.

_____________________________

If it ain't broke..... fix it until it is.
:)

:)
GAWDS
Now where did I put that Doctype?

(in reply to lu lu)
lu lu

 

Posts: 418
From: wpg, mb
Status: offline

 
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?

(in reply to lu lu)
jaybee

 

Posts: 14145
Joined: 10/7/2003
From: Berkshire, UK
Status: offline

 
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.

_____________________________

If it ain't broke..... fix it until it is.
:)

:)
GAWDS
Now where did I put that Doctype?

(in reply to lu lu)
lu lu

 

Posts: 418
From: wpg, mb
Status: offline

 
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

(in reply to jaybee)
Page:   [1]

All Forums >> Web Development >> Cascading Style Sheets >> iframe text overflowing
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts