Accessing cmsms() in file loaded by JS
Posted: Mon Nov 28, 2011 10:13 am
Hello,
I'm having a difficulty to come up with solution to my problem.
Basicly I wan't to use jQuery chain combo box to browse hierarchy in Products module. (after i pick "cars" from combo box, 2nd combo box appears with brands - after i pick brand from 2nd combo box, 3rd combo box appears with models....)
I have a class which uses "$this->db = cmsms()->GetDb();" in constructro to get db instance.
The issue I'm having is that whenever i call the php file, which uses object of my class, from JS script, the script can't see the cmsms function.
Is there any simple solution to that?
I'm having a difficulty to come up with solution to my problem.
Basicly I wan't to use jQuery chain combo box to browse hierarchy in Products module. (after i pick "cars" from combo box, 2nd combo box appears with brands - after i pick brand from 2nd combo box, 3rd combo box appears with models....)
I have a class which uses "$this->db = cmsms()->GetDb();" in constructro to get db instance.
The issue I'm having is that whenever i call the php file, which uses object of my class, from JS script, the script can't see the cmsms function.
Is there any simple solution to that?