{"action":"opened","issue":{"url":"https://api.github.com/repos/qcubed/framework/issues/819","labels_url":"https://api.github.com/repos/qcubed/framework/issues/819/labels{/name}","comments_url":"https://api.github.com/repos/qcubed/framework/issues/819/comments","events_url":"https://api.github.com/repos/qcubed/framework/issues/819/events","html_url":"https://github.com/qcubed/framework/issues/819","id":118283920,"number":819,"title":"Namespaced QForm","user":{"login":"dmarkic","id":6991504,"avatar_url":"https://avatars.githubusercontent.com/u/6991504?v=3","gravatar_id":"","url":"https://api.github.com/users/dmarkic","html_url":"https://github.com/dmarkic","followers_url":"https://api.github.com/users/dmarkic/followers","following_url":"https://api.github.com/users/dmarkic/following{/other_user}","gists_url":"https://api.github.com/users/dmarkic/gists{/gist_id}","starred_url":"https://api.github.com/users/dmarkic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmarkic/subscriptions","organizations_url":"https://api.github.com/users/dmarkic/orgs","repos_url":"https://api.github.com/users/dmarkic/repos","events_url":"https://api.github.com/users/dmarkic/events{/privacy}","received_events_url":"https://api.github.com/users/dmarkic/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-22T19:40:17Z","updated_at":"2015-11-22T19:40:17Z","closed_at":null,"body":"Hello all!\r\n\r\nI'm testing qcubed-3 and some other stuff and I've noticed that if my QForm is in Namespace, (e.q. Vendor\\Something\\Form) qcubed will not work. It's because any javascript that renders FormId will render it like this:\r\nqc.pA('Vendor\\Something\\Form', ...);\r\n\r\nWhich basically means, that qcubed.js will receive this as string \"VendorSomethingForm\". So to overcome that, I had to use addslashes() on action: eg: \r\n```php\r\nreturn sprintf(\"qc.pA('%s', '%s', '%s#%s', %s, '%s');\",\r\n\t\t\t\taddslashes($objControl->Form->FormId), $objControl->ControlId, ...\r\n```\r\nAnd this will render it like this:\r\n```php\r\nqc.pA('Vendor\\\\Something\\\\Form', ...);\r\n```\r\nAnd further, I think officially '\\' char is not allowed in element Id, but anyway, jQuery does support selectors with '\\' in it, but they have to be escaped. So I had to add another escape of '\\' char to qcubed.js. For example:\r\n```javascript\r\n    postAjax: function(strForm, strControl, strEvent, mixParameter, strWaitIconControlId) {\r\n        strForm = strForm.replace(/\\\\/g, '\\\\\\\\');\r\n```\r\nThat way, namespaced QForm is working. \r\n\r\nWas this never an issue for anyone? Would this fix be OK? Non-namespaced classes are not affected by this.\r\n\r\nAny thoughts?\r\n\r\nKind regards,\r\nDejan Markic\r\n\r\n"}}