Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

Detecting URL changes in iframe in Blazor

$
0
0

How can I detect URL changes in an iframe in a Blazor app? Blazor WASM Standalone in my case.

In .NET MAUI, there's a WebView control that allows embedding web pages in the mobile app which also allows detecting URL changes in it. I don't think there's an equivalent control in Blazor so we can use iframe to embed web pages into the web app but how can I detect a URL change in the iframe?

For context, here's what I'm trying to do: I'm thinking about displaying a Stripe checkout page (hosted by Stripe) inside an iframe and then detect the URL Stripe redirects to once the transaction is completed e.g. success or cancel.

I want to use an iframe so that the user's experience is fairly consistent during the payment process. I've implemented this approach successfully in a .NET MAUI app and now would like to use the same approach in my Blazor WASM app.


Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>