PDA

View Full Version : Resolved doctype and firefox trouble



axis155
05-07-2009, 10:42 AM
1) Script Title: dhtml popup

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex8/dhtmlwindow/index.htm

3) Describe problem:

hi

i have problems with doc type and firefox

when i use divwin.hide() into the iframe it works well with IE and firefox without doctype

but when i add a doctype it no longer walk with firefox (fine whith IE) because "diwin is undefined"

i've try to change de doctype but still have de same

any adea?

th

patrice

nikomou
05-07-2009, 11:07 AM
which doctype are you using?

axis155
05-07-2009, 12:06 PM
hi nikomou

i have try several with the same result, actually i have this one

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

kerth
05-09-2009, 05:05 AM
Hi,

I had a similar problem and solved it with php get_browser()
You can get the client's browser and let the php to add or not add the doctype...

http://www.php.net/get_browser

You will need to add browscap.ini to /home and edit php.ini

There is also a browscap.ini file for asp.

axis155
05-11-2009, 07:42 AM
Thank you kerth

I will have a look to your suggestion

awaiting that change the link for a classic link which reloads the page

not so fine but still walking with all browsers

patrice