java script

Implementing Google Sign-In for Websites java script and PHP

Implementing Google Sign-In for Websites java script and PHP

First step you need to create a google client id

Go to https://console.developers.google.com/project/_/apiui/apis/library

then create a new project or select an existing project

Step.1

create project

Step.2

I am going to create a new project (If you are having a project already you can select that one also)

new project

Step.3

Enable google+ Api

enableing google pluse

enableing google pluse 2

 

Step.4

Choose an Email Address, specify a Product Name, and press Save.

create creadential

In the Credentials tab, select the New credentials drop-down list, and choose OAuth client ID.

create creadential2

Under Application type, select Web application.

create creadential3

 

create creadential4

 

Copy the client id from the google developer console and past it in to the meta tag of the bellow index,html “<YOUR CLIENT ID>”

 

 

Server side verification (PHP)

 

Out Put

login1

login2

login3

login4

ref

https://developers.google.com/identity/sign-in/web/sign-in

  Like
By bm on June 29, 2016 | html, java script, php | A comment?
Tags: , , ,

How to create popup using javascript

Syntax

Example 1

Example 2

Window Features

status The status bar at the bottom of the window.
toolbar The standard browser toolbar, with buttons such as Back and Forward.
location The Location entry field where you enter the URL.
menubar The menu bar of the window
directories The standard browser directory buttons, such as What’s New and What’s Cool
resizable Allow/Disallow the user to resize the window.
scrollbars Enable the scrollbars if the document is bigger than the window
height Specifies the height of the window in pixels. (example: height=’350′)
width Specifies the width of the window in pixels.

 

Advanced popup use plugin like jquery ui

https://jqueryui.com/dialog/#modal-form

  Like
By bm on May 10, 2016 | java script | A comment?