PHP Classes

Ordered Lists Problem

Recommend this page to a friend!

      AJAX Edit In Place  >  All threads  >  Ordered Lists Problem  >  (Un) Subscribe thread alerts  
Subject:Ordered Lists Problem
Summary:problem with this reading a file with <ol> in it
Messages:2
Author:kevin king
Date:2007-03-23 23:20:41
Update:2008-02-14 03:25:21
 

  1. Ordered Lists Problem   Reply   Report abuse  
Picture of kevin king kevin king - 2007-03-23 23:20:41
im pulling from a file with some very basic html characters in it. it works fine until it reaches an OL tag. it reaches the OL and stop, then prints the rest of the file below the clickable div tag.

view it here: http://www.k-king.com/glvb/dev/example.php
from the file: http://www.k-king.com/glvb/dev/bvn.txt.php

anyone have suggestions?

thanks!

  2. Re: Ordered Lists Problem   Reply   Report abuse  
Picture of Dustin Edwards Dustin Edwards - 2008-02-14 03:25:21 - In reply to message 1 from kevin king
What I did...

In AjaxEditInPlace.inc.php at the end,

I changed the p to div:

function getEditInPlaceCode($idName) {
return '<p class="'.$this->styleSheetClassName.'" id="'.$idName.'" title="Click here to edit this text">'.$this->codeToBeEdited.'</p>';


to this...



function getEditInPlaceCode($idName) {
return '<div class="'.$this->styleSheetClassName.'" id="'.$idName.'" title="Click here to edit this text">'.$this->codeToBeEdited.'</div>';




It returns valid xhtml and does not break the edit in place, as far as I can see.





Dustin Edwards