Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4244790
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T03:45:16+00:00 2026-05-21T03:45:16+00:00

I am testing this JQuery plugin Tag-it by Levy Carneiro in my ASP MVC

  • 0

I am testing this JQuery plugin “Tag-it” by Levy Carneiro in my ASP MVC application.

Website: http://levycarneiro.com/2010/03/tag-it-tag-suggestions-editor-and-autocomplete-in-a-jquery-ui-plugin/

I want the plugin to fetch tags that i have in my mssql database and i wonder how to connect to it if someone could help?

Now, my javascript looks like this:

$('#mytags').tagit({

   availableTags: ["c++", "java", "php", "coldfusion", "javascript", "asp", "ruby", "python", "c", "scala", "groovy", "haskell", "perl"]

 });

how should i write to connect to the address ‘/Questions/GetTags’ ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T03:45:17+00:00Added an answer on May 21, 2026 at 3:45 am

    JS

    $.ajax({
       url: '/Questions/GetTags',
       dataType: 'json',
       success:function (data){
          //data should be a json object that returns an array
          $('#mytags').tagit({
            availableTags: data
          });
       }
    });
    

    PHP SERVER side or find asp equivalent

    <?php 
    
    $tag = array('json','java','javascript');
    echo json_encode($tag);
    
    ?> 
    

    To explain :

    Your telling to fetch an ajax page, that returns a json object. and then you are telling that the input #mytags should be a tagit ui, and then the tag it should have the json object to be its tags availableTags

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using this plugin http://www.fyneworks.com/jquery/star-rating/#tab-Testing . I was attempting to make a client-side validation
this is the plugin i am trying to work http://andreaslagerkvist.com/jquery/image-zoom/ no matter what i
I am using Lazy Load Jquery plugin here on my test page: http://bloghutsbeta.blogspot.com/2012/03/testing-2_04.html And
I am trying to use the jQuery CSV plugin, as documented here: http://code.google.com/p/js-tables/wiki/CSV According
So i'm using this plugin https://github.com/podio/jquery-mentions-input for my comment system, everything works fine but
I am using jQuery Form Plugin http://jquery.malsup.com/form/ to submit my form. Here is the
I'm testing this out in LINQPad with the CRM plugin. What should my query
I've written a mapping application which uses GPS. Testing this on my phone (a
I seem to be having some problems creating a jquery plugin. I am testing
Greetings, I'm using https://github.com/blueimp/jQuery-File-Upload (downloaded the version as of 5/21/2011) along with ASP.NET MVC3.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.