I am running into an error on a javascript problem I have it display if the math problem is wrong, and an alert box that pops up, but when you hit OKAY on the alert box it still submits the form. I am wondering if there is an easy fix to this or not. I will post my code in a min here. I would really appreciate some help on this if you have the time. I have researched this for a while and rewrote my code many times but still not working. The part of the code i am …

Member Avatar
+0 forum 0

hi , this is my code. i want to return data using a php page after processing a query within it. [CODE]$.post('check_booked.php', { room:roomv, srtdate:sdatev, eddate:sdatev}, function(data){ alert( data); });[/CODE] before completing php page i test using online code which returned nothing.. i don't know what wrong, as i have understood anything within that php page eg: html code should be returned by this code. this is the test code i used and which didn't return anything. [CODE]$.post("check_booked.php", function(data) { alert("Data Loaded: " + data); });[/CODE] and i have [CODE]<h1>hi</h1>[/CODE] in my php page Please help me solve this much …

Member Avatar
+0 forum 0

Ive been playing around with a couple of scripts both of which work well on their own. The first is a basic alertbox that uses a hotkey; [Code] <script> $(document).jkey('o', function(){ alert('Pressed o');}); </script> [/code] The second is a custom alert box which displays after clicking on a link. How can I incorporate the jkey function from the first script to trigger the alert box in the second script? ie. I want to trigger the custom alert box by pressing 'O' [code] <html> <style type="text/css"> .alert { display:none; position:absolute; top:1px; left:1px; width:300px; background-color:white; border-style:solid; border-width:1px; padding:15px 20px 5px 20px; } …

Member Avatar
+0 forum 0

The End.