extraParams. Does it works?

Alex's Avatar


16 Aug, 2011 02:30 AM

Hi, maybe someone knows how to solve this problem.
Plugin uses parameter "extraParams". So I put it on it's place, and it looks like this:

extraParams: '&oid=' + oid

oid is some number here.

Then I want to access this oid in PHP code using construction $_GET["oid"]

But it seems, that PHP script does not see this index.
Please, tell me, what am I doing wrong?

Great thanks!

  1. 1 Posted by Alex on 18 Aug, 2011 02:32 AM

    Alex's Avatar

    PHP script does not seem to accept any $_GET parameters. (((
    Here is the JS code, may be there is something wrong:

    $g.getJSON('/_categories_suggest.php', function(data_categories) {

        $g.getJSON('/_categories_suggest_prefill.php',function(data_categories_prefill) {
        var oid = document.getElementById('object-id').value;
        if(oid != '') {
                $g('#object-categories').autoSuggest(data_categories, {queryParam: 'qp', extraParams: '&oid=' + oid, minChars: 2, keyDelay: '200', startText: '', emptyText: 'Nothing Found', selectedItemProp: 'c_short_name', selectedValuesProp: 'c_id', searchObjProps: 'c_short_name', asHtmlID: 'categories', preFill: data_categories_prefill });

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac