Hello all. I'm brand new to jQuery/Javascript, so hopefully I don't sound like a complete idiot. I seem to be having a problem with loading a dialog box...
My HTML:
[code]
<html>
<head>
<script type="text/javascript" src="jquery-1.4.4.js"></script>
<script type="text/javascript" src="test.js"></script>
<script type='text/javascript' src='jquery-ui-1.8.7.custom.js'></script>
<script type='text/javascript' src='demos.css'></script>
</head>
<body>
<div id=’tmp’ title=’sha sha’><p>Howdy!</p></div>
</body>
</html>
[/code]
My jQuery:
[code]
$(document).ready(function() {
var diag = $('#tmp').dialog();
});
[/code]
All of the files are in the same directory... and actually, that's another quick question. When I try to load the complete path of the files, they don't seem to load (thanks to Firebug for pointing this out). I'm on a Windows machine, so I don't think I need to do escape characters (since I tried that too), but doing "C:\<location>\jquery-1.4.4.js" doesn't seem to work. Any ideas?
Anyway, Firebug is yelling at me for the demos.css file, saying:
[code]
missing ; before statement
file:///C:/Users/Jef/Downloads/jQuery/ui/demos.css
Line 1
[/code]
I haven't changed anything in demos.css and all of its lines seem to have semicolons, so I don't know why it's saying this. Any help for my two problems would be awesome. Thanks!
**How do I make code tags?