# Ajax

**URL:** <https://forum.kirupa.com/t/ajax/199518>\
**Category:** Uncategorized\
**Created:** [September 3, 2006, 5:04pm UTC](https://forum.kirupa.com/t/ajax/199518 "2006-09-03T17:04:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vectar](https://avatars.discourse-cdn.com/v4/letter/v/b2d939/32.png) [@Vectar](https://forum.kirupa.com/u/Vectar)\
**Post date:** [September 3, 2006, 5:04pm UTC](https://forum.kirupa.com/t/ajax/199518/1 "2006-09-03T17:04:15Z")

</div>

Hey everybody,

I am working on a website, but i have a little problem.  
My website has music playing, and has buttons that you can click.  
I used AJAX to load the content in a div layer when presing a button, i did this so the music can keep playing when clicking buttons and not start over again.  
Now i have a mailform in that same Ajax system.  
The mailform checks on valid email adresses and lets you know if something is missing.  
When you say send it opens a new page and doesn’t refresh in the div layer.  
Also the comments like "email is missing"or “name is not filled in” are opening in a new page.  
Can somebody tell me what could be the trick.  
I now all the scripts are correct but the send button should not have the history-1 script but something different i think. Somebody got a idea or maybe a better way to open content in a div layer.

thanks in advance
