Showing posts with label Javascript. Show all posts
Showing posts with label Javascript. Show all posts

Sunday, 24 July 2016

6 Easy Steps to Add Twitter Feeds to Your Webpage

5728.png

If you want to embed multiple Tweets on our website in a compact, single-column view and want to display the latest Tweets from a single Twitter account for this a Twitter collection may be rendered in either a list or a responsive grid template.

The steps below will help you. Ones you started using Twitter account, The most reliable and easy approach is that you can put the official Twitter widget on your website.

The widget can be embedded on any website that allows the use of JavaScript. The Widget is very clever and intelligent to handle size adjustment when using a responsive website.

Step 1. Go to twitter setting

Step 2: Select Twitter Widgets




Monday, 23 November 2015

Adding data to jqxtree dynimacally on click of nodes of a tree using AJAX call

In this blog we are explaining how to adding data to jqxtree dynimacally on click of nodes of a tree using AJAX call. We have explained with complete code and steps.


 jqtree-jquery-tree-plugin


There might be a case where user wants to add data to jqxtree on click of each individual node. Below is the code which help us to achieve the above functionality where user can get data from JSON file or database on click of each individual tree node , depending whether parent have child nodes or not. Check below code.
  1. <script type="text/javascript">
  2. $(document).ready(function () {
  3. var theme = "";
  4. // Create jqxTree
  5. var tree = $('#topictree');
  6. var source = null;
  7. $.ajax({
  8. async: false,
  9. url: "topic.php",
  10. success: function (data, status, xhr) {
  11. source = jQuery.parseJSON(data);
  12. }
  13. });
  14. tree.jqxTree({ source: source, theme: theme, height: 600, width: 400 });
  15. .....
Read full blog at- Adding data to jqxtree dynimacally on click of nodes of a tree using AJAX call .

You can check more informative blogs and tutorials at android development blogs section and can also browse the android developer forum for posting and viewing latest questions on android development.

Tuesday, 13 October 2015

How to Add and Remove items in array using AngularJS

With the help of Angularjs, We can dynamically add or remove list items in an array. It is shown In the example given below. Addition of the list items is done using 'push' method and removal of the item is done using “splice” method. Controller-

<div><input type="text" value="ItemName" placeholder="name of new item..." />
<button>Add Me</button>
<ul class="nav">
    <li id="item{{item.id}}"><a href="#">{{item.title}}</a> <a class="delete-item">x</a></li>
</ul>
</div>

'push' Method-

- Read the full Blog at: How to Add and Remove items in array using AngularJS.

Our Php developer forum forum is developed for those tech geeks who don’t want to wait for a longer duration of time, as the community members within FindNerd can answer any android query within shortest possible time frame.

Apart from this, If you have any language query like C, Java, JavaScript, iOS, Html, PHP etc . you can post at FindNerd’s Java questions and answers.

Tuesday, 29 September 2015

How to Open Android App from Web Browser and Get Data from the App and Return Back to Web Browser

Sometime we a have a situation in which we use android app in our web application.In that situation you can use this.
For opening the android app first we have to check 2 conditions .
1. If the device is android or not.
2. In the android device if the app is installed or not.
1. If the device is android or not- If device is not android then we do not perform that functionality. In that case you can either disable the button or hide the button by using this:
 
  1. $(document).ready(function () {
  2. var isMobile = {
  3. Android: function () {
  4. return navigator.userAgent.match(/Android/i);
  5. },
  6. any: function () {
  7. return (isMobile.Android());
  8. }
  9. };
  10. if (isMobile.Android()) {
  11. $("[id$btnOpenapp]").show(); //show the button
  12. }
  13. else
  14. {
  15. $("[id$btnOpenapp]").hide(); //hide the button
  16. }
  17. });
2.If the app is installed or not-.....

- Read the full Blog at : How to Open Android App from Web Browser and Get Data from the App and Return Back to Web Browser

Our Android questions and answers  forum is developed for those tech geeks who don’t want to wait for a longer duration of time, as the community members within FindNerd can answer any android query within shortest possible time frame.

Apart from this, If you have any language query like C, Java, JavaScript, iOS, Html, PHP etc . you can post at FindNerd’s ios developer forum.

Friday, 19 June 2015

Google Map integration in PHP to Calculate Latitude and Longitude

This code will calculate the latitude and longitude of the place in background on entering the place name.

For integration of Google map to calculate Latitude and Longitude major script is :
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false&libraries=places"></script>


To make the autocomplete of the address create a object of the class:

google.maps.places.Autocomplete
 

Here is the complete code to get the exact location latitude and longitude using Google map. Hope it may help you somewhere.

<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false&libraries=places"></script>
<script type="text/javascript">
function initialize() {
var address = (document.getElementById('my_address'));
var autocomplete = new google.maps.places.Autocomplete(address);
autocomplete.setTypes(['geocode']);
google.maps.event.addListener(autocomplete, 'place_changed', function() {
var place = autocomplete.getPlace();
if (!place.geometry) {
return;
}
 
 
- See Full Code at: http://findnerd.com/list/view/Google-Map-integration-in-PHP-to-Calculate-Latitude-and-Longitude/3558/



For queries about PHP Programming Questions and Answers, You can also Visit to PHP Developer Forum