Solved

What is wrong in append function?

Posted on 2013-06-16
1
318 Views
Last Modified: 2013-06-16
Hi E's. Can you please help me to put bellow code working?
$('#fb_login').append("<fb:login-button size="xlarge" autologoutlink="true" scope="email,user_hometown"
                 onlogin="require('./log').info('onlogin callback')">
  Login com Facebook
</fb:login-button>");

Open in new window

the aspect of the code in editor program
OR, maybe can have a alternative to the append function!
The objective is put the code inside the div #fb_login.

The best regards, JC
0
Comment
Question by:Pedro Chagas
1 Comment
 
LVL 58

Accepted Solution

by:
Gary earned 500 total points
Comment Utility
$('#fb_login').append("<fb:login-button size=\"xlarge\" autologoutlink=\"true\" scope=\"email,user_hometown\" onlogin=\"require('./log').info('onlogin callback')\">Login com Facebook<\/fb:login-button>");

Open in new window

0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Introduction A frequently asked question goes something like this:  "I am running a long process in the background and I want to alert my client when the process finishes.  How can I send a message to the browser?"  Unfortunately, the short answer …
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now