htmlArea

A directory of browser-based WYSIWYG editors

  MAIN
INDEX
SEARCH
POSTS
WHO'S
ONLINE
LOG
IN

Home: htmlArea 3 (beta): htmlArea 2 & 3 archive (read only): htmlArea v3.0 - Discussion: Re: [Fyrespray] htmlArea fails to load properly: Edit Log



Fyrespray
Novice

Jan 18, 2005, 2:46 PM


Views: 37659
Re: [Fyrespray] htmlArea fails to load properly

Here's the quick fix I made for this problem using PHP. I'm sure there are probably neater ways to do it but it works and will do for now.

Place this between your <head></head> tags

<?
if (isset($_GET['IENeedFix'])=='TRUE')
{
$RedirectURLArray[0]=$_SERVER['PHP_SELF'];
$RedirectURLArray[1]="?";
$ManipulateQueryString=$_SERVER['QUERY_STRING'];
$WhereStartStrip=strpos($ManipulateQueryString, "&IENeedFix=TRUE");
$ManipulateQueryString=substr_replace($ManipulateQueryString, '', $WhereStartStrip, 15);
$RedirectURLArray[2]=$ManipulateQueryString;
$RedirectURL=implode("",$RedirectURLArray);
?>
<META HTTP-EQUIV=Refresh CONTENT='1 URL=<? echo($RedirectURL); ?>'>
<?
}

and use this bit of code to add the flag to trigger the above bit of code into your link that directs you to the htmlarea populated with data (i'm using a button to submit a form to populate the htmlarea with data so this is data submitted with a form and would be between <form></form> tags)

<?
//Check to see if Browser is MSIE
if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE'))
{
if (!(strpos($_SERVER['HTTP_USER_AGENT'], 'Opera')))
{
?>
<input type="hidden" name="IENeedFix" value="TRUE">
<?
}
}
?>

Hope it will help some people.

Fyrespray
---------------------------------------------
http://www.lazeryattack.com
http://www.ardescosolutions.com

(This post was edited by Fyrespray on Jan 18, 2005, 3:15 PM)


Edit Log:
Post edited by Fyrespray (Novice) on Jan 18, 2005, 3:15 PM


Search for (options)