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

  • SEARCH
  • Home
  • 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 am currently testing this in Mozilla FireFox 3.0.5 using FireBug 1.3.0 with jQuery
I am stress testing a .NET web application. I did this for 2 reasons:
I seem to be having some problems creating a jquery plugin. I am testing
I am looking to use this plugin: http://keith-wood.name/countdown.html but I need to use the
I have done a bit of testing on this myself (During the server side
This question isn't about unit-testing. And it is for a desktop product. This is
I was testing on a customer's box this afternoon which has Windows Vista (He
I ran into this today when unit testing a generic dictionary. System.Collections.Generic.Dictionary<int, string> actual,
I recently stumbled across this entry in the google testing blog about guidelines for
When I commit I get this error from Subversion: bash-2.05b$ svn commit -m testing

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.