homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

?unable to copy text from PHP page!
trying to copy text from a PHP page is hard.. can't select text accurately

 6:55 pm on Aug 20, 2003 (gmt 0)

I've just created my first PHP page.. and it's simple and looks as I would want it to.

However I just noticed weird behaviour when I try to copy text. I was unable to select text without the selection jumping and selecting whole other paragraphs.

I could find no comment on this anywhere and wondered if this is a bugbear that people acknowledge but is offset by the benefits of PHP pages. Or is it just the IE6 I'm using?

You can see for yourself.. try to copy a paragraph from eg [glish.com...] (which is not my site :) and suggested and perfect example of CSS)




 6:59 pm on Aug 20, 2003 (gmt 0)

The behavior you described does occur within my IE6 browser, but not in NN7.1 -- NN allows me to select the text as I expected. And if I double click in IE6, it will select the entire <div>

[edited by: coopster at 7:02 pm (utc) on Aug. 20, 2003]


 7:00 pm on Aug 20, 2003 (gmt 0)

Text selection, copy / paste are done in your browser client side, nothing to do with PHP which is server side. As for the weird behavior you're describing, it probably has more to do with the way the page is rendered in the browser, although I don't really understand / can't replicate it.




 7:02 pm on Aug 20, 2003 (gmt 0)

This is an IE bug with absolute positioned DIVs.

Annoying isn't it?


 7:05 pm on Aug 20, 2003 (gmt 0)

Certainly is. I can't believe how bad IE is at rendering standards-based documents. Sure makes it tough for a developer.


 7:05 pm on Aug 20, 2003 (gmt 0)

I've seen this before, but it has nothing to do with PHP. It has something to do with either improper nesting of your <p> tags, or something wrong with your CSS. I can't find the thread that covered this problem, but my suggestion to fix it is to validate both your html and css, and check for improper nesting.

(just saw Stretch's post, and that may be the problem; although I have seen this happen on site's that do not have any absolute positioning. Can anyone verify this with another source or thread?)


 7:39 pm on Aug 20, 2003 (gmt 0)

Thanks for the quick replies.

It is annoying but being new to PHP, I'm full of naive enthusiam and so I'll continue to upgrade from my frames and tables towards the nirvana that is csszengarden, which quite insired me yesterday. :)

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved