• We are available for any Development work:
  • Email us at: programmer_heart@yahoo.com

CSS class Adding by using JQuery

Is it possible to adding a CSS class to the 1st occurance of an element on a page? I have a list of lines like this: <div class=”classtest”><a href=test.html”></a></div> <div class=”classtest“><a href=test1.html”></a></div> <div class=”classtest“><a href=test2.html”></a></div> <div class=”classtest“><a href=test3.html”></a></div> Is is possible to add a CSS class (class=”myclass”) to just the first occurance of the above [...]

Continue reading

Random Image Auto Refresh By Jquery

For displaying the random image from the available images, we can do this by writing a little code by the help of jquery.For implement this you have to download jquery library from the web .

You have also required to declared the array of images which you are going to show with auto refresh.Then copy and paste the following code you can find your solution.Enjoy it…

Continue reading

Tutorials:How jQuery Works

jQuery: The Basics This is a basic tutorial, designed to help you get started using jQuery. If you don’t have a test page setup yet, start by creating a new HTML page with the following contents: <html> <head> <script type=”text/javascript” src=”jquery.js”></script> <script type=”text/javascript”> </script> </head> <body> <a href=”http://jquery.com/”>jQuery</a> </body> </html> Edit the src attribute in [...]

Continue reading

What is JSONP?

jQuery 1.2 introduced JSONP support, but on initial read of the release notes, I wasn’t completely sure what it was – so for anyone else that might want the Dr Seuss explanation.
You need to mould both your request and response to handle JSONP – and in doing so, you can have cross domain JSON requests.
JSONP is script tag injection, passing the response from the server in to a user specified function.
Your server will need to return the response as JSON, but also wrap the response in the requested call back, something like this in PHP (hosted on http://myotherserver.com):

Continue reading
Press Enter to Search