To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here
PHPBuilder.com  
 

 

Go Back   PHPBuilder.com > Misc Help > ClientSide Technologies

ClientSide Technologies Discuss HTML/CSS/Javascript, and any other client-side technologies, here.

Reply
 
Thread Tools Rate Thread Display Modes
Old 02-19-2006, 09:58 PM   #1
jmrouleau
Designer
 
jmrouleau's Avatar
 
Join Date: Feb 2006
Posts: 65
resolved [Resolved] Trouble loading updated info from database into wysiwyg

I design farely small scale websites for local companies. I am working on a content management system coded in php but I cant get past this one problem.

I have a wysiwyg editor that loads a page which you choose to edit. After submitting the changes the content is put in the database. But, if you try to edit the page again the changes won't show up. It seems that the wysiwyg is loading from cache rather than drawing from the database.

Any help with this problem would be great!!

Thanks

www.BlackPearlWeb.com

Last edited by jmrouleau; 02-21-2006 at 07:14 PM. Reason: Resolved
jmrouleau is offline   Reply With Quote
Old 02-20-2006, 11:30 AM   #2
bpat1434
NMaOtBG
 
bpat1434's Avatar
 
Join Date: Oct 2004
Location: Around 255.255.255.0
Posts: 8,093
umm... what wysiwyg editor are you using?
bpat1434 is offline   Reply With Quote
Old 02-20-2006, 11:57 AM   #3
jmrouleau
Designer
 
jmrouleau's Avatar
 
Join Date: Feb 2006
Posts: 65
Text Area Rich for now. I'm hoping to develop my own eventually though.

I am also having an issue when I try to create a new page....The editor locks up with a javascript error saying the viewMode is undefined. This problem came about after changing the blank.html file that loads into the editor. I tried to change it back but it still doesn't seem to work.

blank.htm:
HTML Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>

</body>
</html>
I'm pretty sure it has something to do with this file because if I try to edit a page it works fine.
editable.php:
PHP Code:
<?php
require'connect.php';

if(isset(
$_GET['id'])){
    
$getContents= 'Select content, title FROM pages WHERE keyword="'.$_GET['id'].'" LIMIT 1';
    
$content=$conn->Execute($getContents);
        
    if(
$content->EOF){
        die(
'The Page You Have Requested Is Currently Unavailable.');
    }else{
    
    echo
'<html>'.$content->fields[0]->value.'</html>';
    }
}
?>
BTW...the editor is configured to only save from <body> to </body>...I then trim these tags off before I send to database.
__________________
Justin
Owner
Black Pearl Web Design and Development LLC

LetsTalkRE.net - Open Real Estate Discussion Forum

Life's a game, so you better learn how to play.
jmrouleau is offline   Reply With Quote
Old 02-20-2006, 04:39 PM   #4
bpat1434
NMaOtBG
 
bpat1434's Avatar
 
Join Date: Oct 2004
Location: Around 255.255.255.0
Posts: 8,093
have you physically looked in the database to see the changes?

You might try a cache handeling header in your php file....
bpat1434 is offline   Reply With Quote
Old 02-21-2006, 06:12 PM   #5
jmrouleau
Designer
 
jmrouleau's Avatar
 
Join Date: Feb 2006
Posts: 65
Yea...the changes do take effect in the database and they even show up on the website.

Cache handling header?? I'm not familiar with these.
__________________
Justin
Owner
Black Pearl Web Design and Development LLC

LetsTalkRE.net - Open Real Estate Discussion Forum

Life's a game, so you better learn how to play.
jmrouleau is offline   Reply With Quote
Old 02-21-2006, 06:13 PM   #6
bpat1434
NMaOtBG
 
bpat1434's Avatar
 
Join Date: Oct 2004
Location: Around 255.255.255.0
Posts: 8,093
header
Look in the user notes for Cache-Control and the like...
bpat1434 is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 03:12 PM.






Acceptable Use Policy

internet.comMediabistrojusttechjobs.comGraphics.com

WebMediaBrands Corporate Info


Advertise | Newsletters | Feedback | Submit News

Legal Notices | Licensing | Permissions | Privacy Policy


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.