Login   Register  
PHP Classes
elePHPant
Icontem

Changes

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      "Clevertext" AJAX text box  >  All threads  >  Changes  >  (Un) Subscribe thread alerts  
Subject:Changes
Summary:A list of minor changes since the classes release:
Messages:10
Author:Gary Hockin
Date:2006-07-11 14:39:48
Update:2007-06-12 22:14:26
 

  1. Changes   Reply  
Picture of Gary Hockin
Gary Hockin
2006-07-11 14:39:48
- Added a "htmlentities" call to the clevertext.php file.
- Changed line 25 of "class.clevertext.php" to read:
$name.'_edit" onblur="javascript:updatetext(\''.$name.'\', \''.$pk.'\', \'';
- Thank you Alejandro for pointing that out.

  2. Re: Changes   Reply  
Picture of Tobias Heiny
Tobias Heiny
2006-07-12 08:47:55 - In reply to message 1 from Gary Hockin
I still get an error at line 25
.$name.'_edit" $name.'_edit" onblur="javascript:updatetext(\''.$name.'\', \''.$pk.'\', \'';

The error note says: Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in /users/PL12920/data/public/heiny/testfeld/clevertext/class.clevertext.php on line 25

any idea?

thanx
MrLongbaugh

  3. Re: Changes   Reply  
Picture of Gary Hockin
Gary Hockin
2006-07-12 13:36:57 - In reply to message 2 from Tobias Heiny
Checking now Tobias, be patient :D.

  4. Re: Changes   Reply  
Picture of Gary Hockin
Gary Hockin
2006-07-12 14:35:09 - In reply to message 3 from Gary Hockin
Fixed the error. Re-download class.clevertext.php, or modifiy line 25 of that class to read:

$name.'_edit" onblur="javascript:updatetext(\''.$name.'\', \''.$pk.'\', \'';

  5. Re: Changes   Reply  
Picture of Calvin
Calvin
2006-07-12 15:26:59 - In reply to message 4 from Gary Hockin
I found that \ slashes were added on display so in CleverText.PHP file, change:

$val = stripslashes(htmlentities($val, ENT_QUOTES));

It seems to work for me.

CalQL8tor

  6. Re: Changes   Reply  
Picture of Calvin
Calvin
2006-07-12 15:49:55 - In reply to message 5 from Calvin
actually this is not working 100% yet. Stripslashes worked on display, but then it stores &quot in the db. Not what I'm looking for.

Java seems to have issues with # & too. As these two are not big for me....that might be alright. The biggest for me are single quote double quote.

  7. Re: Changes   Reply  
Picture of Daniel
Daniel
2006-09-04 11:07:22 - In reply to message 6 from Calvin
If I want to extract multiple rows to edit from the db is not working:

while(list($id,$min,$max,$id_firma) = mysql_fetch_array($result)) {
// fieldname, fieldvalue, table name, primary key, primary key value
$b = $clever->textbox("field$id", $max, 'carduripvc', 'id', $id);
$a .= "<td> $b </td>";
}

  8. Re: Changes   Reply  
Picture of Alex Slaik
Alex Slaik
2007-01-12 07:34:32 - In reply to message 4 from Gary Hockin
Script doesn't save changes!
It returns JS error:

Error: http.responseXML has no properties
Source File: http://test/ajax/clevertext/clevertext.js
Line: 35

I tested in Firefox and IE.

  9. Re: Changes   Reply  
Picture of Alex Slaik
Alex Slaik
2007-02-08 11:50:56 - In reply to message 8 from Alex Slaik
Sorry, your script is works :)
I forgot to change settings in clevertext.php file!

LOL

  10. Re: Changes   Reply  
Picture of João Romão
João Romão
2007-06-12 22:14:26 - In reply to message 1 from Gary Hockin
This does not work in Opera! :(