I’m making a dApp and I want to add a button where a user (the one with their wallet connected) can send exactly 0.01 SOL to another user. I already wrote the function in my Rust program and after testing it with anchor test it seems to be working when I use my own personal wallet’s Keypair to sign the
Tag: anchor
Navigating around website adds a [object object] to URL after clicking around anchors
Thanks for reading. I just wanted to know why i get a “/index.html#[object Object]” at the end of URL when clicking around anchors on a single page website. I would also like to know if i can remove it if it isn’t too game changing with htaccess or resolve the issue that is occuring? If you require more information that
How to invoke javascript function when # is present in URL
I am trying to call JavaScript function when # is present in URL. I know normal behavior is to navigate / scroll to the specific tag. But could not find how to invoke a JavaScript function. The below example is close but not solving my problem. What is the meaning of # in URL and how can I use that?
How to open a new PWA window from inside the PWA?
I’m trying to open a new window of my PWA application inside of it. But when I click on the anchor a new chrome tab is open. Anyone can help me to open two instances of my PWA application? An example of it is outlook, where you can open a new window of the application to write your email. Thanks
Prevent navigation on anchor that has routerLink
In my markup, there is [routerLink]=”(onLink | async).linkURL” And when its there, I’m unable to stop the navigation from happening when user clicks it. If I remove [routerLink]=”(onLink | async).linkURL”, the navigation is stopped as expected. Is there a way I can stop the navigation here? I’m unable to remove [routerLink]=”(onLink | async).linkURL” from the markup. My js below is
ScrollTo function in AngularJS
I’m trying to get a quick nav to work correctly. It’s floating on the side. When they click on a link, it takes them to that ID on the page. I’m following this guide from Treehouse. This is what I have for the scrolling: I initially placed it before the </body>. But I seem to be running into a race