Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2009-02-23 14:10:40

Pioden
Xinha Community Member
From: Bangor, Wales
Registered: 2008-06-06
Posts: 39
Website

IE 7 unreliability

Hi folks

I've come across a weird issue with IE7. I load Xinha into my CMS using this code.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Untitled Document</title>
<link href="eos.css" rel="stylesheet" type="text/css" />
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript">
    _editor_url  = "xinha/"  // (preferably absolute) URL (including trailing slash) where Xinha is installed
    _editor_lang = "en";      // And the language we need to use in the editor.
    _editor_skin = "blue-look";   // If you want use skin, add the name here
    _editor_icons = "Crystal" 
</script>
<script type="text/javascript" src="xinha/XinhaLoader.js"></script>
<script type="text/javascript" src="xinha/XinhaConfig.js"></script>  
</head>
<body>
<div id="container">
<div id="header"></div>
<div id="horzdivider">
<div class="homebut"><a href="index.php"><img src="images/home.png" alt="Home" width="16" height="16" />Home</a></div>
<div class="logoutbut"><a href="logout.php">Logout<img src="images/logout.png" alt="Logout" width="16" height="16" /></a></div>
</div>
<div class="padder">
<h4>Create New Content Page in Language One</h4>
<form action="new_content_2.php" method="post">
<p>Page Title: 
  <input name="lang_1_title" type="text" value="<?php echo "$err1"; ?>" size="30" maxlength="128" />
</p>
<input name="referer" type="hidden" id="referer" value="<?php echo"pageone"; ?>" />
<div>
<textarea id="myTextArea" name="myTextArea" rows="25" cols="50" style="width: 800px; height:500px"><?php echo "$err"; ?></textarea>
</div><br />
<input type="submit" value="Submit" name="submit" />
</form>
<noscript><p><b>Javascript must be enabled to use this form.</b></p></noscript>
</div>
</div>
</body>
</html>

The page loads reliably in FF3. However in IE7 it's unpredictable. Sometimes Xinha loads sometimes it doesn't! The script error in IE7 is "Line:17  blah blah Object Required". As I said it doesn't fail everytime, hitting refresh a few times will usually get it working. Any ideas?

TIA

Huw

Offline

#2 2009-02-24 16:35:13

Pioden
Xinha Community Member
From: Bangor, Wales
Registered: 2008-06-06
Posts: 39
Website

Re: IE 7 unreliability

Any ideas guys? Is it anything to do with this?

<script type="text/javascript">
    _editor_url  = "xinha/"  // (preferably absolute) URL (including trailing slash) where Xinha is installed
    _editor_lang = "en";      // And the language we need to use in the editor.
    _editor_skin = "blue-look";   // If you want use skin, add the name here
    _editor_icons = "Crystal"
</script>
<script type="text/javascript" src="xinha/XinhaLoader.js"></script>
<script type="text/javascript" src="xinha/XinhaConfig.js"></script>

It's the only thing I can think of!!!

Offline

#3 2009-02-24 19:00:46

Pioden
Xinha Community Member
From: Bangor, Wales
Registered: 2008-06-06
Posts: 39
Website

Re: IE 7 unreliability

I seem to have found the answer. Removing the trailing slash from the _editor_url entry!!

Changing the line to _editor_url  = "xinha" *seems* to have cured the IE7 problem.

Offline

Board footer

Powered by FluxBB