I’m trying to invoke a Blazor method in JavaScript inside of an OnSuccess callback for the Plaid API. Here’s the JavaScript that’s being run: Here’s the Blazor code being used: The Blazor method InitializePlaid is being called to invoke the JS method InitializePlaidLink. Then, on success, the Blazor method OnPlaidLink Success should be called. I used log statements to confirm
Tag: blazor
Blazor Server-side Restart the app @onclick event
Blazor Forms Calculator that takes inputs and calculates numbers. At the end I have two buttons, Download PDF (with the results) and New Calculation that will restart the application. Can I do that with the @onclick event or call a Javascript function? Answer I have used Navigation Manager and have navigated the app on the Index page calling it on
Cannot Move Divs in Blazor
I have a Blazor Server App with the following DIV tags I attempted to set the Height, Width, and X/Y coordinates using the code samples from this page – https://blazor.tips/blazor-how-to-ready-window-dimensions/ but that never worked and simply threw an uncaught exception no matter where I placed Try… blocks. I then moved to a more straightforward JS call: If I make this
How can I find and access a JavaScript property (‘Blazor’) of ‘window’ with a (GreaseMonkey) user script?
With the following (GreaseMonkey) user script I am trying to find (and later access) a JavaScript object (namely ‘Blazor’): When I run the script (i.e., reload the page), I get the following output in Firefox’ console: So window.Blazor can not be found. However, when I inspect (click on) the window object I can see the Blazor property: Calling ‘Blazor’ in
Invoking JS Interop Function for DOM element located in submenu in Blazor
I am trying to invoke a JS function that creates a modal on user click through JS Interop in Blazor. The thing is, the function is using a onclick event for a DOM element that is inside a Blazor submenu. When that DOM Element is outside the submenu in the side navbar, it works fine. When I put that element
Call a C# non static method from a static method in Blazor invoked by Javascript DotNet.invokeMethodAsync
I understand we can change a C# property value in Blazor from JavaScript by invoking the method DotNet.invokeMethodAsync. I have the below working but in this method I want to also call a non static method. JS File: Razor page: I am trying to run a non static method in a static method (IN BLAZOR APPLICATION). How can I call
Blazor autocomplete tagging
Similar to this question, I am looking for a component to add tags to an object like in stackoverflow, meaning autocomplete text field for tags. I am either looking for a native component or a way to wrap a JS solution so that it can be used in blazor. Another idea is a multi-select component with checkboxes like discussed here,
Changing an Input value in Blazor by javascript doesn’t change it’s binded property value
I’m building a website using app.net core 3.1 with blazor. In one of my components I have : <input @bind=”Message” type=”text” id=”input-message”/> Message is just a string property. and I have javascript: document.getElementById(‘input-message’).value = ‘some text’; The problem is after running the above js, <input> value changes but Message value doesn’t, and of course if I type or paste something