Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

What is wrong in append function?

Posted on 2013-06-16
1
Medium Priority
?
332 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 2000 total points
ID: 39251557
$('#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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The viewer will learn the basics of jQuery, including how to invoke it on a web page. 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.: (CODE)
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…
Suggested Courses

916 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