The
load() function doesn't appear any where in my live copy of jQuery? If it did I'd try to get it to work independent of jQuery though.
What I'm now trying to do is get an HTTP query to work via AJAX request instead of a normal (initial) GET request.
Code: Select all
ajaxpage('templates/ajax-site-contact-email.php?nameis=john', 'promptsajax');
Pay attention to
?nameis=john, it's the HTTP query I want to pass along, or something, anything really. This is the AJAX function to call a file and stick it's XHTML code in to the layer.
It's a contact form. I want to setup an array of people with corresponding email addresses. If an HTTP query with a name isn't set it defaults to sending
me the email written by the visitor. However if the PHP contact script sees an HTTP query defining someone else's name then the form will send the email to
them instead.
So obviously if I load a normal page like
contact.php?contact=john then the contact form will fill in the value, the value will be posted, the PHP form sees the post with the additional contact name set, and sends
that person the email instead. That way I can setup my current contact script to handle email for artists. However I don't want to reload the whole page because
I can't pass an HTTP query via AJAX. That is the issue I would like to resolve please.
