;

PDA

Click to See Complete Forum and Search --> : HTML Editor..


jamnden
11-19-2006, 11:35 AM
...Nice job Chris Seahorn! They are featuring your Kool Moves HTML editor on the Flash Kit index page and it looks like a nice tool to have especially when working a Kool Moves content pane. Thanks! :thumbsup:

Chris_Seahorn
11-19-2006, 11:48 AM
Holy cow! Thanks for letting me know jamnden :thumbsup:

jamnden
11-19-2006, 12:05 PM
Chris,
Is there any way to highlight the HTML text to cut and paste it in a content pane?

Chris_Seahorn
11-19-2006, 12:12 PM
In the source...change the txt17.text textfield to selectable (in the properties). That way when you click the "Show Html" checkbox in the editor (when it's running), you can selct/copy the html source.

I can take a couple of screenshots when I get back if you need to help show what I mean (I'm at my sons birthday party right now :)).

jamnden
11-19-2006, 12:50 PM
Thanks-Works like a champ!

Stoke Laurie
11-19-2006, 05:04 PM
This will enable you to post your result to a text field
This is a php that works to write a file page1.txt, it also sends you back an e-mail to let you know that it has been done, useful if ever you think you may get hacked. I've not included any type of abuse filter, but that could give you an extra layer of protection if you need it.

<?
ini_set("sendmail_from", " admin@address.com");
$txt17 = $_POST["txt17"];
$txt17 = stripslashes($txt17);
$ip = $_SERVER['REMOTE_ADDR'];

$adminaddress = "admin@address.com";
$date = date("m/d/Y H:i:s");

$action = $_POST["action"];


if ($action == "send") {
mail ("$adminaddress","site update notice",
"An update of the site has been made, these are the new display values for page 1\n

page 1 content : $txt17\n



Logged Info :
------------------------------
Using: $HTTP_USER_AGENT
IP address: $ip
Date/Time: $date","FROM:$adminaddress" ) ;

$towrite .="$txt17\n";


$file= fopen("page1.txt", "w");

fwrite($file, $towrite);
fclose($file);
}


?>

------------------------------------------------------
In the editor code you need to
create a button on the movie clip with the editor on
then create a mc called theresult
and within it a dynamic text field titled myresult

and add this code to the action script for the keyframe


but1.onPress=function(evt){
if (txt17.text == "" ) {
theresult.gotoAndPlay("go");
theresult.myresult.text = "Empty Fields";

} else {
var result_lv= new LoadVars();
result_lv.onLoad = function(success) {
if (success) {
txt17.text="";

theresult.gotoAndPlay("go");
theresult.myresult.text = result_lv.returnMe;

} else {
theresult.gotoAndPlay("go");
theresult.myresult.text = "Error";

}
};
var send_lv = new LoadVars();
send_lv.action = "send";
send_lv.txt17 = "&txt1var=" + box1.text;
send_lv.sendAndLoad("exit.php", result_lv, "POST");

}
}

All this code is taken from Chris's loadvars mailform.
Cheers

Chris_Seahorn
11-19-2006, 06:02 PM
Guess that solves that.

Stoke Laurie
11-19-2006, 06:56 PM
cheers :thumbsup:

Stoke Laurie
11-20-2006, 07:52 PM
You can see the editor working live as an example here
www.henshallbusiness.com - follow the live demonstration button link from the instant site page.

Stoke Laurie
11-22-2006, 07:51 PM
Thanks guys over 100 of you have tried out the page in the last 48 hours, no one has reported any errors so I assume you all got to see it working ok on your various systems, thanks for that.

ps Chris what's with the edits?

Chris_Seahorn
11-22-2006, 08:42 PM
Just cleaning up some odds and ends. Since I tend to give things away I gave my oldest son my copy of Koolmoves today and since I won't be using it anymore some posts of mine in here were in need of an update. Thanks for the concern though :thumbsup:

HScott
11-23-2006, 12:30 PM
This is great works. I am just wondering if I can put this in my website as one of my free tools.

Thanks

Chris_Seahorn
11-23-2006, 12:52 PM
All my ties to Koolmoves are severed so there is no conflict there. It's archived here at Flashkit associated with my name , date of submission and copyright so I'm not sweating third party jacking. If it can help your users....go for it. :thumbsup:

HScott
11-23-2006, 01:47 PM
All my ties to Koolmoves are severed so there is no conflict there. It's archived here at Flashkit associated with my name , date of submission and copyright so I'm not sweating third party jacking. If it can help your users....go for it. :thumbsup:

THANK YOU so much Chris! you really a great person. You're the man! :thumbsup:

Chris_Seahorn
11-23-2006, 02:40 PM
THANK YOU so much Chris! you really a great person. You're the man! :thumbsup:

Statements like that will put you in the minority of Koolmoves users :)

It is nice to hear though ! :thumbsup: