Quote:
Originally Posted by DanInMa
i screwed up sorry, syntax problem. I fixed it:
Code:
$(function () {
$("#requestform").live("submit", function (e) {
e.preventDefault(); //prevernt default form sumbit action
var SubmitURL = "/staffpanel/_frontend/requests.php";
var dataString = $('#requestform').serialize();
$.ajax({
type: "POST",
url: SubmitURL,
data: dataString,
success: function () {
alert("request sent!");
}
});
});
});
|
Hey, thanks
It still doesn't seem to load
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Real FM</title>
<link href="_css/style.css" type="text/css" rel="stylesheet" media="all" />
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.0/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("#request").load('/staffpanel/_frontend/requests.php');
$("#dj-says").load('/staffpanel/_frontend/djSays.php');
});
</script>
<script type="text/javascript">
$(function () {
$("#requestform").live("submit", function (e) {
e.preventDefault(); //prevernt default form sumbit action
var SubmitURL = "/staffpanel/_frontend/requests.php";
var dataString = $('#requestform').serialize();
$.ajax({
type: "POST",
url: SubmitURL,
data: dataString,
success: function () {
alert("request sent!");
}
});
});
});
</script>
</head>
<body>
<div id="wrapper">
<div style="style=position:absolute;
left:220px;
top:-5px;" id="dj-says">
DJ Says:
</div>
<div id="banner"></div>
<div id="content-top">
<div id="blue-header">Welcome to Real-FM.net
</div></div>
<div id="content-middle">
<p>Hello! Welcome to <a href="http://www.real-fm.net" rel="noAJAX"><strong>real-fm.net</strong></a><strong></strong>!<br /><br />
We are still developing a homepage but untill then we will have this page, also known as the "Player". We do however have a forum which is free to register to, You can simply visit the forum by clicking <a href="http://www.real-fm.net/forum"><strong>here</strong></a>.<br />
<br />
On air now is <strong><span id="cc_stream_info_title">No DJ</span><br />
</strong><br />
The current song is <strong><span id="cc_stream_info_song">Loading...</span><br /></strong></p>
<p><script type="text/javascript" src="http://fast.zfast.co.uk/?port=8110"></script><br /></p>
You can also tune in via:<div id="cc_tunein">
<a href="http://193.33.186.20/tunein.php/habfab/playlist.pls"><img align="absmiddle" src="http://193.33.186.20/system/images/tunein-pls.png" border="0" alt="Winamp" title="Winamp" /></a>
<a href="http://193.33.186.20/tunein.php/habfab/playlist.asx"><img align="absmiddle" src="http://193.33.186.20/system/images/tunein-asx.png" border="0" alt="windows Media Player" title="Windows Media Player" /></a>
<a href="http://193.33.186.20/tunein.php/habfab/playlist.ram"><img align="absmiddle" src="http://193.33.186.20/system/images/tunein-ram.png" border="0" alt="Real Player" title="Real Player" /></a>
<a href="http://193.33.186.20/tunein.php/habfab/playlist.qtl"><img align="absmiddle" src="http://193.33.186.20/system/images/tunein-qtl.png" border="0" alt="QuickTime" title="QuickTime" /></a>
</div>
Below you can send a Request to our DJ's!
<div id="request">
</div>
</div>
<div id="content-bottom"></div>
<div id="footer">
Copyright <strong>Real-FM</strong> 2012
<div id="floatright">
Designed & Coded By <strong>Callum Allan</strong></div>
</div>
</div>
<script language="javascript" type="text/javascript" src="http://193.33.186.20/system/streaminfo.js"></script>
<script language="javascript" type="text/javascript" src="http://193.33.186.20/js.php/habfab/streaminfo/rnd0"></script>
</body>
</html>
Thanks alot
~ David