I've managed to get my fancybox content working, once my ajax post has completed - I'd like to display to change the fancybox content - which isn't working. Its the ajax post half way down the page thats causing me the problem.

Could you describe the problem for me again (I'm a bit lost).You have a calendar.When you click on a particular day, you see a FancyBox message, asking if you want to take the day off.If you click "no", then you're returned to the calendar view.If you click "yes", the day is marked as booked.

What's not happening that you want to happen?

PicnicTutorials
—
2012-12-10T20:11:32Z —
#6

I don't know how you have it set up. But if you have it all in an outside page and call fancybox via class iframe then everything should simply reload within fancybox just a it would on a normal page. Getting things such as your describing to work within fancybox while it lives within your same page is hard.

mattastic
—
2012-12-10T21:20:23Z —
#7

Thanks for the replies folks

I can't get the fancbox to display 'request sent' in the ajax post in the jquery.

If I can get something to show I'm sure I can figure it out

Cheers

Pullo
—
2012-12-10T21:25:28Z —
#8

So when the user clicks "yes", you want the FancyBox content to update and say "Request Sent"?

Pullo
—
2012-12-10T21:53:55Z —
#9

So, figured it out - You were almost there.All you have to do is remove the call to $.fancybox.close(); in the first part of the if statement, like so: