Google reCaptcha not working on bootstrap modal popup - bootstrap-modal

Hi i have added the google reCaptcha in the bootstrap modal i am using same key on the index page and on the modal which opens after button click on the index ,on page it is working fine but on modal popup it is showing error "ERROR for site owner:
Invalid domain for site key"
I have added the screenshot

Try to enqueue recaptcha script or add it to the footer like this
<script type=’text/javascript’ src=’https://www.google.com/recaptcha/api.js?;ver=2.0′></script>

Related

ionic2 set a page before ionic2-starter-sidemenu

i downloaded the ionic2 starter sidemenu template, now it is showing homepage as first page with sidemenu which is set in app.component.ts as below
rootPage: any = Home;
i'm planning to set my newPage as first page, there should be no side menu, from which i can navigate to the home page by clicking a button,
i added a page 'NewPage' already but no idea about where to set this page.
my ionic version : rc5
Just change the root page to your new page:
rootPage: any = NewPage

Can I call magento login and register page in to a bootstrap modal?

Can I call magento login and register page in to a bootstrap modal and when a customer add a product in their cart without logging in a modal popup instead of login page?
In default, Magento have a mini login form and we can use it any where in our page blocks.
Now I’m going to add this mini login form in our page header with in few simple steps.
First we want to add login form block to header for sign out customers. We can use our theme’s local.xml file for this purpose.
Just add below code snippet to our theme’s local.xml file.
<customer_logged_out>
<reference name="header">
<block type="customer/form_login" name="header_customer_form_mini_login" template="customer/form/mini.login.phtml"/>
</reference>
</customer_logged_out>
Then call this login form in header section of our template file.
<?php echo $this->getChildHtml('header_customer_form_mini_login') ?>
same applies for register form you have to create a mini.register.phtml file
with register.phtml code and change login in above codes to register

APEX 3.2: Popup confirmation after page is submitted

Working with APEX 3.2:
I want to show a confirmation popup on Page 2 when Page 1 has successfully been submitted.
Right now I can get the text from the 'Process Success Message' to appear on Page 2, but instead of the 'Process Success Message' text, I want an alert popup. Any idea how to do that?
NOTE: I don't want to put javascript on the 'Submit' button of Page 1, because if there is a validation error, the alert popup will appear anyway every time the 'Submit' button is clicked. I just want the popup to appear only if Page 1 has successfully submitted.
You could do this:
1) Edit the page template used by Page 2. Edit the Success Message subtemplate and put a span tag around the #SUCCESS_MESSAGE# placeholder like this:
<span id="successMessage">#SUCCESS_MESSAGE#</span>
2) Create some Javascript on Page 2 to run when the page is loaded that does this:
if ($x('successMessage')) alert ($x('successMessage').innerHTML);
The Success Message is only rendered if there is a success message to display, and so the alert will only happen when there is a success message to display also.
3) You could suppress the display of the success message on the page itself if you want by adding style="display:none" to the outer div of the Success Message subtemplate.
NB The template change will affect all pages that are based on it, not just Page 2, so you may need to take a copy of it first. You could include the Javascript in the page template so that you don't need to keep adding the same on load Javascript to each page.

Facebook Like box and Like buttons return Error

I'm integrating FB social plugins - Like box and Like buttons (as iframes) - on a web page, but they don't work.
When I click on Like in "Like box", I get "Error" text with link, which displays a message dialog "The page at https://www.facebook.com/provocateur.eu could not be reached.".
JSON response is:
for (;;);{"__ar":1,"payload":{"requires_login":false,"success":false,"already_connected":false,"is_admin":false,"show_error":true,"error_info":{"brief":"Website Inaccessible","full":"The page at https:\/\/www.facebook.com\/provocateur.eu could not be reached.","errorUri":"\/connect\/connect_to_node_error.php?title=Website+Inaccessible&body=The+page+at+https\u00253A\u00252F\u00252Fwww.facebook.com\u00252Fprovocateur.eu+could+not+be+reached.&hash=AQARp73z7huT0Eiu"}}}
When I click on the Like button, the JSON response is:
for (;;);{"__ar":1,"payload":{"requires_login":false,"success":false,"already_connected":false,"is_admin":false,"show_error":true,"error_info":{"brief":"An error occurred.","full":"There was an error liking the page. If you are the page owner, please try running your page through the linter on the Facebook devsite (https:\/\/developers.facebook.com\/tools\/lint\/) and fixing any errors.","errorUri":"\/connect\/connect_to_node_error.php?title=An+error+occurred.&body=There+was+an+error+liking+the+page.+If+you+are+the+page+owner\u00252C+please+try+running+your+page+through+the+linter+on+the+Facebook+devsite+\u002528https\u00253A\u00252F\u00252Fdevelopers.facebook.com\u00252Ftools\u00252Flint\u00252F\u002529+and+fixing+any+errors.&hash=AQAFI_8ieMUGPPxS"}}}
This is the "Like box" iframe code:
<iframe frameborder="0" scrolling="no" style="border:none; overflow:hidden; width:240px; height:70px;" src="//www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2Fprovocateur.eu&width=240&height=70&colorscheme=dark&show_faces=false&border_color&stream=false&header=true&appId=283499041689204"></iframe>
and this is the "Like button" iframe code:
<iframe frameborder="0" scrolling="no" style="border:none; overflow:hidden; width:203px; height:21px;" src="//www.facebook.com/plugins/like.php?href&send=false&layout=button_count&width=203&show_faces=false&action=like&colorscheme=light&font=arial&height=21&appId=283499041689204"></iframe>
The behaviour is the same for admin and non-admin visitors and for any browser. I created application with the same name as FB page with appId 283499041689204. Web page is XHTML transitional valid, and it contains no errors according FB debugger/linter. Formely there was age restriction (17+), but I removed it and for the moment it is accessible for anyone (13+).
URL of web page: http://provocateur.eu/
URL of FB page: in the first error message
Any help appriciated. Thanks in advance.

FB.ui apprequests is not working on iFrame Tab

I'm using facebook JS api and
FB.ui({
method: 'apprequests',
message: 'You should learn more about this awesome game.',
data: 'tracking information for the user'
});
but its not working on tab , the pop-up stats to load and then automatically become hidden .
http://developers.facebook.com/docs/reference/dialogs/
You can only use iframe in facebook apps, probably also on tab pages.