View Single Post
Old 03-14-2012, 06:18 PM   PM User | #4
DanInMa
Senior Coder

 
DanInMa's Avatar
 
Join Date: Nov 2010
Location: Salem,Ma
Posts: 1,307
Thanks: 12
Thanked 204 Times in 204 Posts
DanInMa is on a distinguished road
thast becuase you didnt put it in the same position as before.

youve put it in the head of the document which means, as written, you are trying to manipulate something on the page that doesnt exist until the page is done laoding.

Code:
$("#request").load('/staffpanel/_frontend/requests.php')
$("#dj-says").load('/staffpanel/_frontend/djSays.php')

should be:

Code:
$(document).ready(function(){
$("#request").load('/staffpanel/_frontend/requests.php');
$("#dj-says").load('/staffpanel/_frontend/djSays.php');
});
__________________
- Firebug is a web developers best friend! - Learn it, Love it, use it!
- Validate your code! - JQ/JS troubleshooting
- Using jQuery with Other Libraries - Jslint for Jquery/other JS library users
DanInMa is offline   Reply With Quote