Programming Tools
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 



Go Back   Dev Articles Community ForumsProgrammingProgramming Tools

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old August 12th, 2002, 05:29 PM
Joe4JC Joe4JC is offline
The name's Joe. Yours?
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Location: Lurking in the shadows...
Posts: 147 Joe4JC User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 17
Unhappy No support material for article

I just read the article on creating and implementing a browser-based WYSIWYG editor, and I am quite interested in using this information for a small, private CMS. Throughout the second article, support material is mentioned. However, at the end of the article, it says 'no support material provided'. Does it exist? Is there support material for/in PHP?

Thanks,
Joe of 4Life
http://www.4life.tk/
__________________
Check out 4Life today!

Reply With Quote
  #2  
Old August 12th, 2002, 06:47 PM
Lindset Lindset is offline
weirdomoderator
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2002
Location: Alta, Norway
Posts: 370 Lindset User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 17
Send a message via ICQ to Lindset Send a message via AIM to Lindset
I think mytch or Ben wrote that the support material for that article was lost while moving to a new ISP..
__________________
Best Regards,
Håvard Lindset

Reply With Quote
  #3  
Old August 12th, 2002, 07:56 PM
fakker fakker is offline
The calm b4 the storm
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Location: Manchester, UK
Posts: 404 fakker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 17
Send a message via Yahoo to fakker
what is it you need support with? Just post a msg and you'll get the help!! -- It worked for moi!!

__________________
Matt 'Fakker' Facer

mattfacer.com

Reply With Quote
  #4  
Old August 12th, 2002, 08:31 PM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
sorry to say we lost it during a server crash, on our old server, we apoligize for this convience. Due to the fact that they didnt keep a backup a regular backup, we have lost this suport file.

If you get stuck please feel free to post your comments in the forums.

Oh and welcome to the forums

Reply With Quote
  #5  
Old August 12th, 2002, 10:04 PM
Joe4JC Joe4JC is offline
The name's Joe. Yours?
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Location: Lurking in the shadows...
Posts: 147 Joe4JC User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 17
Basically what I am having trouble with is <FORM> tags. Whenever I try to use them, the editor doesn't work right!

Thanks y'all,
Joe of 4Life

Reply With Quote
  #6  
Old August 12th, 2002, 11:32 PM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
hmm, could you please post the offending code?

Reply With Quote
  #7  
Old August 13th, 2002, 12:22 AM
Joe4JC Joe4JC is offline
The name's Joe. Yours?
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Location: Lurking in the shadows...
Posts: 147 Joe4JC User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 17
Im not sure how much this helps...

Code:
PHP Code:
<? // Begin form ?>
<p><center><form onSubmit="return getinput()" name="eform" action="edit.php" method="post">
<input type="hidden" name="id" value="<?=id?>">
<input type="hidden" name="action" value="change">
<input type="hidden" name="stuff" value="">
<? // editor stuff goes here (JS & CSS are in <HEAD>) ?>
</form></center></p>
<? // End form ?>


Btw - the getinput() function is just some JS that puts the code from the IFRAME into a hidden input (stuff). I tried it without it, but it didnt make a difference!

Thanks,
Joe of 4Life

[edit]I tried it with just a plain <FORM> tag too. No go. [/edit]

Last edited by Joe4JC : August 13th, 2002 at 12:24 AM.

Reply With Quote
  #8  
Old August 13th, 2002, 02:15 AM
Joe4JC Joe4JC is offline
The name's Joe. Yours?
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Location: Lurking in the shadows...
Posts: 147 Joe4JC User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 17
One more question: How can I set a default text value for the edit box?

Thanks,
Joe of 4Life

Reply With Quote
  #9  
Old August 13th, 2002, 02:42 AM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
ok to set the default vaule (easy bit) create a file with the default data in it. then load that file, like this

<iframe src="default.html"> this will load up the default.html file, and make all the html code editable

Note: this doesnt mean you can edit the file and save it, just like that, you need a bit of script (php, asp or perl) to be able to edit files.

Now for your other question, it seems weird, that its causing the errors.

Try placing the form data underneath the wysiwyg editor, also what version of IE are you using?

Reply With Quote
  #10  
Old August 13th, 2002, 11:50 AM
Joe4JC Joe4JC is offline
The name's Joe. Yours?
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Location: Lurking in the shadows...
Posts: 147 Joe4JC User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 17
Quote:
ok to set the default vaule (easy bit) create a file with the default data in it. then load that file, like this <iframe src="default.html"> this will load up the default.html file, and make all the html code editable

Cool

Quote:
Note: this doesnt mean you can edit the file and save it, just like that, you need a bit of script (php, asp or perl) to be able to edit files.

Could you please explain what you mean?

Quote:
Now for your other question, it seems weird, that its causing the errors.

Yep, it is weird

Quote:
Try placing the form data underneath the wysiwyg editor, also what version of IE are you using?

I tried placing the form data in several places, including below the editor. It didn't seem to make a difference I'm using IE6.

Thanks,
Cheers,
Joe of 4Life

Reply With Quote
  #11  
Old August 13th, 2002, 07:59 PM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Quote:
Note: this doesnt mean you can edit the file and save it, just like that, you need a bit of script (php, asp or perl) to be able to edit files.


Some people got the idea, that if you placed the wysiwyg editor in a page, lets say index.html, it would enable you to edit the index.html page, and save it. Sorry, that was just to clear things up for people.

anyway, ive been thinking about your problem, the funny thing is that ive used the wysiwyg editor before, and i didnt have that problem.

Could you attach the code your trying to use, and ill test it out on a few computers for you.

Thanks

Reply With Quote
  #12  
Old August 13th, 2002, 09:49 PM
Joe4JC Joe4JC is offline
The name's Joe. Yours?
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Location: Lurking in the shadows...
Posts: 147 Joe4JC User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 17
Well, the page that I intergrated the editor into is a PHP script, with dependencies (required files), so I hope that a link is fine.

I'll have to comment the code that only lets valid admins in, though. I am only gonna leave like that for about a day, however.

Anyhow, here's the link: http://techneaux.mine.nu:81/~c4life/cms/edit.php?id=4

[Note]I edited the CSS on the <IFRAME> to make it look more like an real text area.[/Note]

[Note]The main problem is the 'Toggle Mode' switch.[/Note]

[Note]The submit button on that form currently goes nowhere.[/Note]

Btw, Im sorry if I sound funny or upset. It's just that the heat here is making me both sick and tired. lol

Thanks,
Cheers,
Joe of 4Life

Reply With Quote
  #13  
Old August 13th, 2002, 11:05 PM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
could you remove, all the input tags from your code, and tell me what happens?

Reply With Quote
  #14  
Old August 14th, 2002, 12:02 AM
Joe4JC Joe4JC is offline
The name's Joe. Yours?
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Location: Lurking in the shadows...
Posts: 147 Joe4JC User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 17
I tried that, no diff....in fact, they're new - I just added them earlier!

Thanks,
Joe of 4Life

Reply With Quote
  #15  
Old August 14th, 2002, 01:50 AM
Joe4JC Joe4JC is offline
The name's Joe. Yours?
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Location: Lurking in the shadows...
Posts: 147 Joe4JC User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 17
Talking Lookie Here!

Lookie what I found!: http://www.devarticles.com/forum/sh...s=&threadid=626

Even has the support file, and how to fix the Toggle Mode switch!

Gonna go try it now!

Cheers,
Joe of 4Life

Reply With Quote
  #16  
Old August 14th, 2002, 02:53 AM
Joe4JC Joe4JC is offline
The name's Joe. Yours?
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Location: Lurking in the shadows...
Posts: 147 Joe4JC User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 17
Well, I got it working by placing the form at the bottom of the control, but I can't get it to save the data!

Reply With Quote
  #17  
Old August 14th, 2002, 02:59 AM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
<form action="print_script.php" method="post">
<script language="JavaScript">
function getCode()
{
var src = iView.document.body.innerHTML;
document.all.test.value = src;
}
</script>
<input type="hidden" name="test">
<input type="button" onClick="getCode();" value="update">
<input type="submit" name="submit" value="upload to DB">
</form>


That should do it.

Reply With Quote
  #18  
Old August 14th, 2002, 03:24 AM
Joe4JC Joe4JC is offline
The name's Joe. Yours?
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Location: Lurking in the shadows...
Posts: 147 Joe4JC User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 17
Thank you, but I got it working. The problem was a slight bit of stupidity on my part involving variables. lol

Cheers,
Joe of 4Life

Reply With Quote
  #19  
Old August 14th, 2002, 08:07 PM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Ahh ok, thats cool

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingProgramming Tools > No support material for article


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.

© 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap