fout melding object wordt verwacht

Status
Niet open voor verdere reacties.

ilse20

Gebruiker
Lid geworden
23 feb 2010
Berichten
16
hallo,

ik ben bezig met een website en daarvoor heb ik een image en als ze daarop klikken moet er een javascript functie gerunt worden.

hierbij geeft ie aan dat er een object wordt verwacht zodra ik er op klik.

dit is mijn code.
[JS]
$(document).ready(function(){
var showDone = $("#showdone").attr('src') == 'img/done_checked.png';
var showNotDone = $("#shownotdone").attr('src') != 'img/notdone_checked.png';
var showPayed = $("#showpayed").attr('src') == 'img/payed_checked.png';
var showNotPayed = $("#shownotpayed").attr('src') == 'img/not_payed_checked.png';
var strbedrijfsnaam = $("#zoek").val();
//window.location.href = 'zoek.php?done='+showDone+'&notdone='+showNotDone+'&payed='+showPayed+'&notpayed='+showNotPayed;
$.get("zoekresultaat.php", {name:strbedrijfsnaam,done:showDone,notdone:showNotDone,payed:showPayed,notpayed:showNotPayed}, function(data){$("#inhoud").html(data);}, "html");
}); [JS]

Code:
<?php
		$doneStr = 'done_checked.png';		
		$notDoneStr = 'notdone_checked.png';	
		$payedStr = 'payed_checked.png';
		$notPayedStr = 'not_payed_checked.png';
	?>
	<div class="button" onclick="ShowDoneClick()" id="Donebutton">
		<img id="showdone" src="img/<?php echo $doneStr; ?>" />
	</div>
	<div class="button" onclick="ShowNotDoneClick()" id="NotDonebutton">
		<img id="shownotdone" src="img/<?php echo $notDoneStr; ?>" />
	</div>
	<div class="button" onclick="ShowPayedClick()" id="Payedbutton">
		<img id="showpayed" src="img/<?php echo $payedStr; ?>" />
	</div>
	<div class="button" onclick="ShowNotPayedClick()" id="NotPayedbutton">
		<img id="shownotpayed" src="img/<?php echo $notPayedStr; ?>" />
	</div>

graag hulp hierbij.
 
Laatst bewerkt:
Status
Niet open voor verdere reacties.
Terug
Bovenaan Onderaan