Need help debugging an issue with Load Plugin To Div Behaviour
So I have a page which I load a page into a div via the regular static plugin like so:
<?php
if("" == ""){
$WA_display_quote_1472681007248 = new WA_Include("display-quote.php");
require($WA_display_quote_1472681007248->BaseName);
$WA_display_quote_1472681007248->Initialize(true);
}
?>
and this works fine but when I try to replace the content of the div on form submit (within a jQuery function) like so:
$('#frmModelAdd').on('submit', function(e){
// prevent default form submission
e.preventDefault();
framework_load_plugin_url('plugins/display-quote.php',false,'displayQuote','../../../../','');return document.MM_returnValue;
});
I get the following error message:
Warning: chdir() [function.chdir]: No such file or directory (errno 2) in /Users/davidbuchholz/Sites/*********/webassist/framework/ajax_wrapper.php on line 22
Framework file not found: _plugins/site-pages/public/sales-plus-pages/display-quote.php
The site uses pretty URL's so the actual URL of the page is formatted like so:
http://sitename/salesplustools/create-quote/
I am assuming this is a path issue and I have tried changing the "../../../../" portion of the code without any success.
I will put the files online shortly and include links etc. in a private message.