I'm trying to implement a side menu in my app ionic 5. but i can't seem to do so. when i run the app, it will go to home page but won't go to other pages like stats page, savings page. triedto look at the console log for errors but there were no errors.
This is my html page
html page
This is routing-module.ts
routing module page
This is my console log page.
Console page
It doesn't state any error but it won't go to the page i want either
In the HTML code instead of routerLink="home" change it to [routerLink]="['/home']". Hope it will work.
You should also check your menu-rooting.module.ts to check if the pages are defined as children of the menu page.For example: children: [{path: 'statistics',loadChildren: () => import('../statistics/statistics.module').then(m => m.StatisticsPageModule)}]
Related
I recently got started creating an app with flutter web. in my experience I am using a named navigator to navigate between pages. whatever name I give to the screen is the name that shows up in my URL.
for example if URL is https://www.example.com and Screen Name is home the URL when I navigate to this screen become https://www.example.com/home.
In my use case I hit an API on the splash screen which gets the contents of the next page and on flutter web if I was to reload my https://www.example.com/home page the screen is blank because it turns everything I got from the API into null.
Is there a way I can hide subdomain? so no matter which page the user is at he/she only sees the main domain https://www.example.com.
any help would be appreciated thanks.
PS: I already used setURLStrategy to remove the # symbol from my sub domains
Have you tried using non-named navigation like
Navigator.push, Navigator.pop
Looks like the path appears on the web when you use named routes.
I injected <script> tags into my squarespace template making the <main> display:none. Now I cannot edit that section through squarespace because it is gone. Recommendations how to get it back without starting from scratch?
$( "#page" ).css( "display", "none" );
was the code I injected into the HTML.
Thank you in advance.
Its hard to understand what you are asking, but i'll assume that you added that single line of code, it hides everything when you navigate to your site page, and you are not sure how to go back to the adminstration page to remove that line of code?
You used "code injection" to insert that code. You can go back to that same code injection location and remove that line of code. The squarespace manual has documentation on code injection. If you are not sure where to go to get back to the administration pages, you can enter a url like this: https://<yoursite>/config for example: https://mysquarespacesite.com/config
For your problem I have one solution using Chrome inspector console tool(inbuilt tool of Chrome browser), make sure you open your website on Chrome browser with login to your squarespace website and follow these steps:
On your website homepage for example: https://<yoursite>/config, Click F12 from your keyboard OR right click using mouse and click on Inspect which will show you inspector mode of Chrome browser
Go to Console tab from inspector tool
Paste following code into Console:
document.getElementById('page').style.display = "block";
Hit enter and your <main> tag will be set as display block
Now your <main> section should be visible, go to code injection of your website and permanently remove display : none which will fix your website hiding <main> section problem for forever
Following are pictures of every step:
Note: I have tested this code into demo template of Squarespace website: https://bedford-demo.squarespace.com
Use the below code. Your code will execute only when you are not logged in as administrator.
if (window.top.location.href == window.self.location.href) {
$("#page").css("display", "none");
}
I relate to this well known Page Tab Tutorial by FB: https://developers.facebook.com/docs/appsonfacebook/pagetabs.
The third step, after filling of page tab info and adjusting of the tab width is getting a prompt to select a page, to which the newly created tab will be added. But i don't get this promt, like it's written in the tutorial and seems to be the normal case for all users.
After i edit tab details and press "save changes", the page reloads with "saved"-message, like on this screenshot,
and i see no further given possibility to add created app to any of my pages. If i go into the administration area of any of my pages, in the tab "apps" is this newly created app not present, so i can't add it from there too. What i'm doing wrong? The solution must be simple - i go crazy:( I tried it with Firefox and Chrome, setted off all popup- and adblockers - nothing goes...
Thanks for ideas and advice!
Evgeniy
The "manual solution" to this problem has changed. While logged into facebook, visit this link in your browser:
https://www.facebook.com/dialog/pagetab?app_id=YOUR_APP_ID&redirect_uri=YOUR_URL
There are two parts of this link you must change before it will function.
YOUR_APP_ID: Find this in your app settings or app dashboard URL. It's a long number, 16+ digits.
YOUR_URL: Use the URL of the content your new tab page will call, ie "Tab Page URL" as entered in your app settings.
This newly modified URL will load a page with a dialog where you can choose which of your Facebook Pages to add the tab to.
These instructions appear here but they are far from clear. Good luck!
For anybody who will look for solution:
to add a page tab to any page do it manually: edit a link
http://www.facebook.com/dialog/pagetab?app_id=HERE-COMES-APPID-OF-YOUR-PAGE-TAB-APP&redirect_uri=http://www.facebook.com
fill into the link the app id of your newly created page tab and run this link in your brwoser: you will get a site with the prompt from the first image i cited in the first post. There you will be able to select one or, with pressing SHIFT, many pages to add your app/page tab.
You must choose "PAGE TAB" in the dialog ! ! !
see the TUTORIAL here: https://stackoverflow.com/a/35287477/2377343
I've created this facebook tab, and for some reason it will not work in IE once implemented into facebook. It DOES work on the website url where it is placed. The url is: https://www.enterprisebanking.com/assets/fb-products/
The tab works great in every browser except for IE. In IE, the entire middle section is missing and the tabs are unable to be clicked on.
Here's a screenshot of how the tab looks in IE: http://grab.by/s9Qu
Any advice is appreciated.
Dan
You have a console.log in https://www.enterprisebanking.com/assets/fb-products/js/tabs.js this will cause it to break in IE.
I am using ChildBrowser phonegap(Cordova) plugin, downloaded from Github
So far i am able to load my external page www.xyz.com/login.aspx, which has login id/pass and login button. Upon login button click with valid login data, my application should load www.xyz.com/tasks.aspx page. But blank screen is displayed. Please help to load correct page.
In log i can see following texts
New Address is : http://xyz.com/login.aspx
New Address is : http://xyz.com/tasks.aspx
but content of tasks.aspx is not displayed.
Has anyone faced such issue, or its plugin issue (if so, how to get fixed code from github?)
In my case Child browser is working fine , If you can able to navigate to "tasks.aspx" from login.aspx . I think in your coding wise no issue , if this page usage any flash content it will show blank , can you check this again.