Skip to content

Conversation

@ZipoKing
Copy link

When I was implementing textext in my project, I found that there's no possibility of live notifications about tags list change, so I've added such functionallity into tags plugin :)

@gruby-karol
Copy link

Is there a way to force jsonp on the notifications?

Right now my autocomplete can utilize jsonp (via proper dataType parameter).
Is it possible to set dataType for request on add/del events?

My example:

            $('#skills).textext({
                plugins : 'tags prompt focus autocomplete ajax arrow',
                tagsItems : ['ala', 'ola', 'viola'],
                prompt : 'Add one...',
                ajax : {
                url: "${apiUrl}/getBizSkillsAutocomplete",
                    dataType : 'jsonp',
                    cacheResults : false// true
                },
                notify :{
                    add: "${apiUrl}/addBizSkill",
                    del: "${apiUrl}/remBizSkill",
                    params: "email=${profile?.email}",
                }
            });

Pozdrawiam,
gruby

@sstok
Copy link
Contributor

sstok commented Mar 19, 2012

I think a observer pattern for adding/removing tags would be better (I recall seeing an related pull request about this).
#26

And its already possible to do something else, by overwriting the prototype functions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants