Saturday, December 8, 2012

Foundation Details

Hey Guys

We started saitejaswinifoudation and we also got good response from the IT people.

We started designing the site.

http://saitejaswifoundation.appspot.com/

We are planning to get funds through online using paypal if every thing goes well we will start officially by 2013 jan.

Sunday, November 11, 2012

What Is Rest ?


REST stands for Representational State Transfer. (It is sometimes spelled "ReST".)
Rest have the following protocol.
1)stateless.
2)client-server.
3) cache able communications protocol.
What is the idea behind Rest?
The idea behind is instead of using complex mechanisms and heavy  weight components like CORBA,RPC and SOAP simple HTTP is used to make call between machines.
So how to use GET,PUT,POST,DELETE Interfaces .
The following image shows how to use javax.ws.rs 

Tuesday, October 16, 2012

Multipart Form Data Using Ajax For IE 7+ Browsers

The only simple way to handle ajax call to upload multipart form data in IE 7+ browsers .

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Jquery Ajax File Upload Plugin</title>
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.js"></script>
    <script src="http://malsup.github.com/jquery.form.js"></script>

    <script>
        // wait for the DOM to be loaded
        $(document).ready(function() {
            // bind 'myForm' and provide a simple callback function
            $('#myForm').ajaxForm(function() {
                alert("Thank you for your comment!");
            });
        });
    </script>
</head>
<body>
<form id="myForm" action="your URL" method="post" enctype="multipart/form-data">
           TextField <input type="text" name="formName"/>
           File<input type="file" name="fileName"/>
              <input type="submit" />
</form>
</body>
</html>


If you get an access denied Error in IE 7+.

I commented these lines in j query.form.js then every thing works fine for me. Don't ask me the reason, even i don't have the solution for that but it works for sure.

            if (io.contentWindow.document.execCommand) {
              try { // #214
                   io.contentWindow.document.execCommand('Stop');
             } catch(ignore) {}
          }