Forum Moderators: open
- John
Page Function
contact_artist(law);
Current Attempt
function contact_artist(artist) {
var ajax_this = 'templates/contact-email.php?nameis=' + (artist);
ajaxpage(ajax_this, 'promptsajax');
}
Currently Working / Static
function contact_artist_static_name {
ajaxpage('templates/contact-email.php?nameis=static_name', 'promptsajax');
}
var ajax_this = 'templates/contact-email.php?nameis=' + artist;
Error: law is not defined
Source file: javascript: contact_artist(law);
Using...
var ajax_this = 'templates/contact-email.php?nameis=' + artist;
ajaxpage(ajax_this, 'promptsajax');
I think ajaxpage(ajax_this might be triggering this? The parameter artist is equal to 'law' in my example function, so?
- John