Archive: Ajax interview question
-
Mar 16, 2011
Comments Offhow to Pass javascript variable to PHP
There is lots of way to pass the php script data in javascript like simply echoing php varible in PHP. Yes you can simply echo php varibale in javascript within php tag like <?php $a = "hello"; ?> <script type="text/javascript"> function test() { var str = '<?php echo $a ?>'; } </script> You can also...
-
Mar 16, 2011
Comments OffJavascript Interview Questions – Seventh Part of Jquery Interview question
What is the difference between undefined value and null value? (i) Undefined value cannot be explicitly stated that is there is no keyword called undefined whereas null value has keyword called null (ii) typeof undefined variable or property returns undefined whereas typeof null value returns object What is variable typing in JavaScript? It is perfectly...
-
Mar 16, 2011
Comments OffJavascript Interview Questions – Sixth Part of Jquery Interview question
What’s relationship between JavaScript and ECMAScript? ECMAScript is yet another name for JavaScript (other names include LiveScript). The current JavaScript that you see supported in browsers is ECMAScript revision 3. What are JavaScript types? Number, String, Boolean, Function, Object, Null, Undefined. How do you convert numbers between different bases in JavaScript? Use the parseInt() function,...
-
Mar 16, 2011
Comments OffJavascript Interview Questions – Fifth Part of Jquery Interview question
What is the difference between the three following scenarios: var myFunction = function() { var person; person; window.person; } The first is local variable, the last two are global. How do you create an object in JavaScript? var person = new Object; or var person = {}; How to you assign a value to...
-
Mar 16, 2011
Comments OffJavascript Interview Questions – Fourth Part of Jquery Interview question
What is the difference between JavaScript and Jscript? Jscript supports more rich set of functionality/commands than the java script, through which ActiveX and local computer can be accessed. These commands are used in an intranet where the connecting computer’s configuration is known and they are all being accessed using Internet Explorer. While java script targets...
-
Mar 16, 2011
Comments OffJavascript Interview Questions – Third Part of Jquery Interview question
How to write a script for “Select” lists using JavaScript? 1. To remove an item from a list set it to null mySelectObject.options[3] = null 2. To truncate a list set its length to the maximum size you desire mySelectObject.length = 2 3. To delete all options in a select object set the length to...
-
Mar 16, 2011
Comments OffJavascript Interview Questions – Second Part of Jquery Interview question
What is JavaScript? JavaScript is a general-purpose programming language designed to let programmers of all skill levels control the behavior of software objects. The language is used most widely today in Web browsers whose software objects tend to represent a variety of HTML elements in a document and the document itself. But the language can...
-
Mar 16, 2011
Comments OffJavascript Interview Questions – First Part of Jquery Interview question
What is the difference between an alert box and a confirmation box? An alert box displays only one button which is the OK button whereas the Confirm box displays two buttons namely OK and cancel. What is a prompt box? A prompt box allows the user to enter input by providing a text box. What...
-
Mar 16, 2011
Comments OffJQuery Interview Questions – Third Part of Jquery Interview question
Explain the concepts of “$ function” in jQuery with an example? The type of a function is “function”. There are a lot of anonymous functions is jquery. $(document).ready(function() {}); $("a").click(function() {}); $.ajax({ url: "someurl.php", success: function() { } }); Why is jQuery better than JavaScript? * jQuery is great library for developing ajax based application....
-
Mar 16, 2011
Comments OffJQuery Interview Questions – Second Part of Jquery Interview question
How can we apply css in odd childs of parent node using JQuery library. $(”tr:odd”).css(”background-color”, “#bbbbff”); How can we apply css in even childs of parent node using JQuery library. $(”tr:even”).css(”background-color”, “#bbbbff”); How can we apply css in last child of parent using JQuery library. $(”tr:last”).css({backgroundColor: ‘yellow’, fontWeight: ‘bolder’}); How can we modify css class...
-
Mar 16, 2011
Comments OffJQuery Interview Questions – First Part of Jquery Interview question
What is Jquery? JQuery is Java Script library or Java Script Framework which helps in how to traverse HTML documents, do some cool animations, and add Ajax interaction to any web page. It mainly helps programmer to reduce lines of code as huge code written in Java Script, can be done easily with JQuery in...
-
Nov 29, 2010
Comments Off6 free ajax chat applications using PHP chat
While talking about chat application, these days people hate those kind application made in PHP which need page refreshing. In this post, I’ll show you six different free Ajax chat applications which might be very useful if you’ve to use Ajax based chat application. Depending upon the requirement of your chat application, you can use...
-
Nov 18, 2010
Comments OffChange dropdown list (options) values from database with ajax and php
I’m going to show you a example in php and ajax to change the values of the dropdown’s options without refreshing the page. The values (options) of the dropdown are fetched from the database and the certain portion of the web pages is only refreshed without need to refresh the whole page. Let’s start with...
-
Nov 09, 2010
Comments Offall Post of ajax javascript php magento jquery and all web developement related tutorials
Sleek and Smooth animated menu using jQuery by Bagesh singh 1 person liked this Today, I’m going to show you something interesting with jQuery. Yesterday I was thinking something to post something programming related stuff in blog after long time and I came across a website, whose menu impressed me a lot. But checking it...