How to create routes that loads up a new page - meteor

Newbie to this entire web development domain.
I have a main page and a registration page. Whenever I navigate to subscription page I find the contents of registration page appended at the bottom the main page. How can I create routes in a way where both pages are separate. So when I click home I only see my main page and when I click registration I only see the registration page.
Thanks in advance.

You can use routing on the server side to serve a separate html page. It can be useful for landing pages, etc.
Usually it's done in Meteor by passing a middleware to connect npm module which is accessible in WebApp.connectHandlers or you could use Iron-Router's server-side routing feature.

Related

How to show a preloader when LANDING on a NextJS page?

Yes, I know you can do it using the built in router of NextJS, but how do you make it so it shows a loader when you LAND (NOT WHEN CHANGING ROUTES) on the page? For example I perform a reload or I open a new tab and type localhost:3000 to visit the local version of the website. The NextJS Router does not fire events when you land on the page from another website thus the loader does not appear, all you see is the page loading each component. I really hope I am well understood!

Google Analytics: 100% Drop off from landing page

I have a Web site built in Drupal 7 - we'll call it website.com. Outside of that site, I have a campaign specific landing page - we'll call that website.com/landingpage. On this page, there are a couple of buttons back to the main website (website.com). I have goals set up that track a user from that landing page, back to the main site home page, then through a few other steps. for some reason, even though I know users are clicking through to the site, I'm getting a 100% drop-off from the landing page to the main site...
...anyone have any thoughts as to why this is?
Is it a dynamic webapp? Is the routing is handled in the client and not on the server side?
If it is a dynamic webapp and routing is handled in the client, then GA won't track your pageviews automatically, and you have to do it manually. https://developers.google.com/analytics/devguides/collection/analyticsjs/single-page-applications
If you are using angularjs you can use this great tool:
http://luisfarzati.github.io/angulartics/

How to link to specific page on website with custom tab

Now that the App Profile Page is no longer available, I tried using this link provided by Facebook to open a specific file on a WordPress website to the custom tab:
http://www.facebook.com/dialog/pagetab?app_id=YOUR_APP_ID&redirect_uri=YOUR_URL
This worked well for yoururl.com/ (main directory) which is also the index.php home page of the website. However, when I attempted to use a custom tab to connect to a different page on the site, such as yoururl.com/about/ I received the dreaded 191 error message:
API Error Code: 191
API Error Description: The specified URL is not owned by the application
Error Message: redirect_uri is not owned by the application.
The workaround I ended up using was to copy the source code of the page by hand and create a new standalone HTML document, but I would really rather have the custom tab open the actual page so my client can update the WordPress herself without me having to edit the HTML for small changes.
Any advice?
I think your Facebook app settings may not be correct. Your site url should be the url to your main website domain homepage, eg http://www.domain.com Then your canvas url should be a link to the page you are trying to pull in, eg http://www.domain.com/facebook-tab
It should be as simple as that....fingers crossed
I am not a developer, but have been reading about building a custom app for my business page. I read that the url needs to be from a secure page url (https). Hope that helps.

Adding multiple facebook page tabs from single facebook application using php

I have created a facebook application.
Now i want that using this application i need to add multiple pagetabs in a page.
and all of this i want to do in php
I have completed following steps
1) Logged in to facebook using my php script and got authenticaticationc code for managing pages.
2) Retrieved the list of pages i have in loged in users profile.
Now i don't know how to add a page tab in facebook programmatically.
I know there is a manual option and that is in applications settings to add a page tab
but I want to add it Programmatic using php.
Any help will be very appreciated.
regards
Applications are allowed to have one Page Tab. So if you need to have multiple tabs for same app on single page where is no way to achieve this.
If you desire to add tabs for other applications you just need to issue POST with page access_token (from accounts connection of user who is admin of that page) request to:
https://graph.facebook.com/PAGE_ID/tabs?app_id=APPLICATION_ID&access_token=...
You need either repeat that step for every APPLICATION_ID you want to be added as tab or Batch requests. Read more on page tabs creation in documentation for page object

Asp.net iframe page payment gateway integration

I am implementing ebook website, where we allow other partners' website to add our book advertisement widget.
When people click on the book adv, redirect back to our website and continue the checkout process with PayPal.
One of our partner does not want to checkout from our website. He want the checkout flow inside his website itself.
I provide the iFrame page to embed in. However, PayPal checkout is not displaying inside his website. It show as full page and after successfully payment it redirect back to our website download page.
Is there any way or other payment gateway which i can use in iframe?
Give your client an option, to change the redirect page to his site including your page in iframe, or what ever you design,
Then add this return page to the parametre you send on PayPal the "return" with this parameter. Also the cancel parameter must be similar, the "cancel_return" parameter
The same way I believe that you can design a page on your site that looks like your client, setup by your client, and do the job, entering and exit to your client site.

Resources