26 Aug 2013

What is a Web Service.?

Web services are small units of code designed to handle a limited set of tasks.
An example of a web service can be a small program designed to supply other applications with the latest stock exchange prices. Another example can be a small program designed to handle credit card payment.

Web services use the standard web protocols HTTP, XML, SOAP, WSDL, and UDDI.

• Web Services Standards (XML-based)
– SOAP (Simple Object Access Protocol)
– WSDL (Web Service Description Language)
– UDDI (Universal Description, Discovery, Integration)
– WS-I (integration), WS-Policy, WS-Security, etc.
• Chances and Challenges
– Application Wrappers to WS
– Web Services Compositions
– Holy Grail: large reusable library of WS with interoperability:
1,000 public WS ~ 1 Million private WS
– ROI (Return of Investments): > 10x ?
– Issues: Privacy, Security, Performance

example:-

using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Web;
using System.Web.Services;

namespace WebServiceExample
{
    public class Service1 : System.Web.Services.WebService
    {
        public Service1()
        {
            
            InitializeComponent();
        }
        [WebMethod(Description="This Method prints HelloWorld")]
        public string HelloWorld()
        {
            return "Hello World";
        }
    }

}

How to create Datepicker in jquery

<html lang="en">
<head>
<meta charset="utf-8" />
<title>jQuery UI Datepicker </title>
<link rel="stylesheet" href="css/jquery-ui.css" />
<script src="js/jquery-1.9.1.js"></script>
<script src="js/jquery-ui.js"></script>
<link rel="stylesheet" href="csss/style.css" />
<script>
$(function() {
$( "#datepicker" ).datepicker();
});
</script>
</head>
<body>
<p>Date: <input type="text" id="datepicker" /></p>
</body>

How to set cookie expiration time in jquery

$.cookie("testing", "testvalue", { expires: 1 });

How to create cookie in jquery

$.cookie("testing", 1);

how to find url in jquery.



$(document).ready(function() {
   var url= window.location.pathname;
   var fullurl= window.location;
});


23 Aug 2013

Create autocomplete textbox in jquery

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
  <meta charset="utf-8" />
  <title>jQuery UI Autocomplete - Default functionality</title>
  <link rel="stylesheet" href="js/jquery-ui.css" />
  <script src="js/jquery-1.9.1.js"></script>
  <script src="js/jquery-ui.js"></script>
  <link rel="stylesheet" href="css/style.css" />
  <script>
  $(function() {
    var availableTags = [
      "ActionScript",
      "AppleScript",
      "Asp",
      "BASIC",
      "C",
      "C++",
      "Clojure",
      "COBOL",
      "ColdFusion",
      "Erlang",
      "Fortran",
      "Groovy",
      "Haskell",
      "Java",
      "JavaScript",
      "Lisp",
      "Perl",
      "PHP",
      "Python",
      "Ruby",
      "Scala",
      "Scheme"
    ];
    $( "#tags" ).autocomplete({
      source: availableTags
    });
  });
  </script>
</head>
<body>

<div class="ui-widget">
  <label for="tags">Tags: </label>
  <input id="tags" />
</div>


</body>
</html>




Create a table in jquery

In html page create a div like
<div id="div_id"></div>
and in jquery:
$('#div_id').append(  '<table>' );

 for(i=0;i<3;i++){
    $('#div_id').append( '<tr><td>' + 'result' +  i + '</td></tr>' );
}

 $('#div_id').append(  '</table>' );


How to Create WEBSITE DESIGN

Way2finder Technologies is a web design studio that offers corporate web design and custom web design. Our website designers offer cheap w...