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 7681459
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T18:20:47+00:00 2026-05-31T18:20:47+00:00

I am working on a jquery plugin which takes json data from the php

  • 0

I am working on a jquery plugin which takes json data from the php page. Now i am trying to do the same thing in a asp.net web service. But i m finding hard to understand the php code. Also i cant host the php page in iis due to restrictions. Please help me to modify the code for asp.net webservice.

<?php

    $year = date('Y');
    $month = date('m');

    echo json_encode(array(

        array(
            'id' => 111,
            'title' => "Event1",
            'start' => "$year-$month-10",
            'url' => "http://yahoo.com/"
        ),

        array(
            'id' => 222,
            'title' => "Event2",
            'start' => "$year-$month-20",
            'end' => "$year-$month-22",
            'url' => "http://yahoo.com/"
        )

    ));

?>

Jquery code for reading…

 $(document).ready(function () {
        $('#calendar').fullCalendar({

            eventSources: [

            // your event source
        {
        url: '/myfeed.php',
        type: 'POST',
        data: {
            custom_param1: 'something',
            custom_param2: 'somethingelse'
        },
        error: function () {
            alert('there was an error while fetching events!');
        },
        color: 'yellow',   // a non-ajax option
        textColor: 'black' // a non-ajax option
    }   
    ]
        });
    });
  • 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-31T18:20:48+00:00Added an answer on May 31, 2026 at 6:20 pm

    Have a read of http://encosia.com/using-jquery-to-consume-aspnet-json-web-services/ and http://encosia.com/3-mistakes-to-avoid-when-using-jquery-with-aspnet-ajax/

    The correct webservices should output JSON objects.

    If you want a JSON serialiser then have a look at: http://json.codeplex.com/

    Using @safarov’s code, you should be able to call the serialise method to return it as a JSON string:

    Newtonsoft.Json.JsonConvert.SerializeObject(someObject)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working with the jQuery Validation plugin and I wrote the following code which
I am trying to get this awesome JQuery plugin working with SQL Server. I
i m using jQuery tablsorter plugin, it's working perfect,but now problem is ... i
There is this cool jQuery plugin called timeago which converts time from the past
I'm working on a site which uses the EZPZ tooltip jquery plugin, and I
I am working with the jQuery Calculation Plugin on a page where I do
I am trying to make a jquery plugin for which the description is given
I'm working on a jQuery plugin and am trying to make a uniform, cross-browser
Just working with the Jquery Cycle plugin, and I have a box which allows
I'm working on my first jQuery plugin which is a simple countdown timer with

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.