Mijn klant heeft een iframe waarin 2 textareas staan, 1 textarea in javascript staat, en de ander gewoon in HTML die hij vervolgens vernieuwd via javascript. Het is namelijk een HTML editor.
Het probleem is dat hij de gegevens die in textarea 1 wil kunnen opslaan. Mijn probleem is hoe kom ik nou bij de content van textarea 1 om vervolgens die op te slaan.
Edit: Het gaat hier om regel 32, in dat bestand staan de textareas.
Hoe kan ik dit het beste oplossen?
<?php include '../html/includes/data_compleet.php'; ?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Editor - HTML verwerker</title>
<link href="http://www.google.nl/intl/nl/services/css/default.css" rel="stylesheet"> <!-- Blauwe button -->
<link href="style.css" rel="stylesheet"> <!-- Medals en gewone CSS -->
<script>
<!--
if (window!= top)
top.location.href=location.href
// -->
</script> <!-- Anti-iframe script -->
</head>
<body onload="begin('tec/begin.html'); return false;" class="icoMr">
<div style="position:absolute; margin:.8em; bottom:0em; right:0em; font-family:verdana;font-size:13px;">
<a style="margin-top:20px;" class="maia-button" data-g-action="Editor" data-g-event="Editor" data-g-label="Editor" href="#" onclick="forum('forum/index.php'); return false;">Forum</a>
<?php
if(isset($_SESSION['user_id']) === true) {
echo '<a style="margin-top:20px; margin-right: 3px; " class="maia-button" data-g-action="Editor" data-g-event="Editor" data-g-label="Editor" href="#" onclick="account(\'ingelogt/welkomscreen.php\'); return false;">Account</a>';
echo '<a href="ingelogt/logout.php" class="maia-button">Log uit</a>';
} else {
echo '<a style="margin-top:20px; margin-right: 3px; " class="maia-button" data-g-action="Editor" data-g-event="Editor" data-g-label="Editor" href="#" onclick="account(\'account/login.php\'); return false;">Login</a>';
}
?>
</div>
<iframe name="c" src="tec/converter.html" frameborder="0" marginheight="0" marginwidth="0" width="100%" height="90%" scrolling="auto"></iframe>
<script type="text/javascript" lang="javascript" src="http://deseloper.org/examples/modal-simple/jquery-1.2.3.js"></script>
<script type="text/javascript" lang="javascript" src="http://deseloper.org/examples/modal-simple/modal-window.js"></script>
<script type="text/javascript" lang="javascript">
var begin = function(source)
{
modalWindow.windowId = "begin";
modalWindow.width = 700;
modalWindow.height = 400;
modalWindow.content = "<iframe width='700' height='400' frameborder='0' scrolling='no' src='" + source + "'></iframe>";
modalWindow.open();
};
var forum = function(source)
{
modalWindow.windowId = "forum";
modalWindow.width = 900;
modalWindow.height = 500;
modalWindow.content = "<iframe width='900' height='600' frameborder='0' scrolling='no' src='" + source + "'></iframe>";
modalWindow.open();
};
var account = function(source)
{
modalWindow.windowId = "account";
modalWindow.width = 600;
modalWindow.height = 400;
modalWindow.content = "<iframe width='600' height='400' frameborder='0' scrolling='no' src='" + source + "'></iframe>";
modalWindow.open();
};
</script>
</body>
</html>Eidt: Het gaat hier om regel