Im trying to populate a chained select with ajax but im getting a error as you can see in the attachment. im working with external forms and i have the following code:
Teste - external form
<?phpdefined('C5_EXECUTE') or die(_("Access Denied."));
Loader::Helper('form');?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script type="text/javascript" src="<?phpecho$this->getThemePath()?>/jquery.min.js"></script>
<!--http://ajax.googleapis.com/ajax/libs/jquery/1.3.0/jquery.min.js... -->
<script type="text/javascript">
$(document).ready(function()
{
$("#parent_category").change(function()
{
var pc_id = $(this).val();
It seems your sql query is not returning valid sql resource. First check your sql query and connection. Accoding to your code you have not set your sql connection.
This website stores cookies on your computer. These cookies are used to improve
your website experience and provide more personalized services to you, both on this website and through
other media. To find out more about the cookies we use, see our Privacy Policy.
It seems your sql query is not returning valid sql resource. First check your sql query and connection. Accoding to your code you have not set your sql connection.
Thanks