Bug Tracker

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#9527 closed bug (invalid)

Selector not working goed with table's

Reported by: stijn.haulotte@… Owned by: stijn.haulotte@…
Priority: undecided Milestone: 1.next
Component: unfiled Version: 1.6.1
Keywords: Cc:
Blocked by: Blocking:

Description

<?
include_once "../../instellingen.inc.php";

echo Site::boven("Nieuw Topic");
?>
<script type="text/javascript">
$('#aanmaak').click(function(){
		$.post('leden/forum/nieuwValidate.php?wat=aanmaak', $("#testform").serialize(), function(data){
			$('#result').html(data);
		});
	});
</script>
<div id='result'></div>

<form method='post' id='testform'>
*/*<table>
<?
if(!isset($_GET['catid'])){
	echo "<tr><td>Categorie</td><td><select id='select'>";
	$forum = new Forum();
	$cats = $forum->getCategorien();
	$count1 = count($cats);
	for ($i = 0; $i < $count1; $i++) {
		echo "<optgroup label='".$cats[$i][1]."'>";	
		$cats2 = $forum->getSubCategorien($cats[$i][0]);
		$count2 = count($cats2);
		for ($ii = 0; $ii < $count2; $ii++) {
			echo '<option value="'.$cats2[$ii][0].'">'.$cats2[$ii][1].'</option>';
		}
		echo '</optgroup>';
	}
	echo "</select></td></tr>";
}
?>
<tr><td>Titel:</td><td><input type='text' name='titel'></td></tr>
<tr><td colspan='2'><?=Site::editor()?></td></tr>
*/*</table>
<?
echo Site::balkOnder("<input type='button' id='aanmaak' value='Post' name='aanmaak' />");
?></form><?
echo Site::onder();
?>

deze code werkt goed maar als je de 2 lijnen met */* er uit laat niet meer. maar mijn functie boven begint al een tabel {{{public static function boven($tekst, $color=0, $border=0){

$table = "<table id='boven' style='width:100%; position:relative;'"; if($border != '0'){

$table .= "border='".$border."'";

} if($color != '0'){

$table .= "background-color='".$color."'";

}

return $table.'><tr><td colspan="20" valign="top" class="menu"><h1>'.ucfirst($tekst).'</h1></td></tr> <tr><td colspan="20">';

} onderste van een tabel te tonen public static function onder(){

return "</td></tr>

</table>";

}}}}


    

Change History (3)

comment:1 Changed 8 years ago by dmethvin

Owner: set to stijn.haulotte@…
Status: newpending

Hi, can you provide a simple test case in jsFiddle, that doesn't include any PHP? Thanks!

comment:2 Changed 8 years ago by trac-o-bot

Resolution: invalid
Status: pendingclosed

Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!

comment:3 Changed 8 years ago by stijn.haulotte@…

i dont now how to work with that jsfiddle zo hier is the puire html

   <meta http-equiv='cache-control' content='no-cache'>
<meta http-equiv='expires' content='0'>
<meta http-equiv='pragma' content='no-cache'> 
<link rel="stylesheet" type="text/css" href="jquery.cleditor.css" />
<link rel="stylesheet" type="text/css" href="jquery-ui-1.8.13.custom.css" />
<link rel="stylesheet" type="text/css" href="css.css" />
<script type="text/javascript">
function pause(millis) {
	var date = new Date();
	var curDate = null;
	do {
		curDate = new Date();
	}while(curDate-date < millis)
}

$().ready(function(){
	$("#divTooltip").hide();
	
	$("a[href]").unbind('click');
	$("a[href]").click(function(event){
		$.post($(this).attr("href"), function(data){
			$('#content').html(data);
		});
		event.preventDefault();
	});
});
</script>
<table id='boven' style='width:100%; position:relative;'><tr><td colspan="20" valign="top" class="menu"><h1>Nieuw Topic</h1></td></tr>
		<tr><td colspan="20"><script type="text/javascript">
$('#aanmaak').click(function(){
		$.post('leden/forum/nieuwValidate.php', $("#testform").serialize(), function(data){
			$('#result').html(data);
		});
	});
</script>
<div id='result'></div>

<form method='post' id='testform'>
<table>
<tr><td>Categorie</td><td><select name='cat' id='select'><optgroup label='World-war'><option value="13">Belangrijke Aankondigingen</option><option value="14">Ide�en</option><option value="15">Technische problemen/fouten</option><option value="18">Discussies</option><option value="19">Vragen?</option></optgroup><optgroup label='Projecten'><option value="16">Grafisch</option><option value="20">(Tijdelijk) Solliciteerforum</option></optgroup><optgroup label='Off-topic'></optgroup><optgroup label='Werelden'><option value="17">Wereld 1</option></optgroup><optgroup label='Acties'><option value="21">G-coins</option></optgroup></select></td></tr><tr><td>Titel:</td><td><input type='text' name='titel' /></td></tr>
<tr><td colspan='2'><script type="text/javascript">
		$(document).ready(function() {
			$("#input").cleditor();
		});</script>
       
        <textarea id="input" name="input" style="width:560px;height:200px;">Hier je tekst</textarea></td></tr>
</table>
<tr><td align="right" colspan="20" valign="top" class="menu"><b><input type='button' id='aanmaak' value='Post' name='aanmaak' /></b></td></tr></form></td></tr>
  		</table>

as you can see there is a <table who just contains the 2 firts fiels(input and selectbox) wiothout is the jquery doenst wrok with it it works yust as expetected

Note: See TracTickets for help on using tickets.