I am writing a dictionary program using CefSharp by C#. When the dictionary page(i.e.[Longman-love][1]) is loaded I want it could play its pronounce automatically(by clicking the pronouce icon using JavaScript). Here are related codes: C# part: JavaScript part(I copyed it from web and added some ‘alert’s for debugging the program): The last alert sentence alert(‘will play’); showed but I could
Tag: c#
jQuery to pass data in Ajax call to MVC action method
I have two lists (list-left and list-right) prepared and populate. Then I have this JS code to move elements from one list to another. And it works fine. But honestly I don’t know how to pass the result back to codebehind when user clicks the submit button on the form? This is my cshtml code: And my controller: The [HttpPost]
how to perform substraction in Html Table using JQuery
Net MVC and i am facing a issue in this . Please help me in this. I am creating a project in which i am just adding a product and show the total bill amount in the below of the table. I am able to do that but when i am removing the item from the table i want my
Is it possible add/remove pin marker on location plan(image or vector) by using Javascript or DevExpress?
There are nearly 1000 cameras in the factory where I work. What I asked for is to mark the locations of these cameras on the map(non-geographical) of the factory. And by clicking on one of the camera icons by zooming, it is necessary to connect to the camera with a IP address and instantly watch the camera in the popup.
DateTime in UTC within the database and perform no timezone conversion from the controller, handle conversions only in the client browser
I was faced with a problem which there are many discussions about on SO. I actually read SO questions & answers for 2 days trying to determine a good way to handle my problem. The problem is a fairly basic concept. Dates and Times should be sent to the mvc controller method and saved in the database as UTC. All
Why is my on click event not working? (ASP.NET MVC)
I have a checkbox in my view, with an onclick event which sends the checkboxes ID to an action result in my controller (using Ajax). However, after running a breakpoint on the passed value within my controller, it seems as thou nothing is happening when i click on the checkbox? Why could this be? My checkbox: Jquery for sending the
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
Connecting NodeJS app to SignalR (with .NET Core 3)
I have a server running SignalR using .NET Core 3. The project was started with the template and I followed a guide (https://learn.microsoft.com/en-gb/aspnet/core/tutorials/signalr?tabs=visual-studio&view=aspnetcore-3.0). I have created a clone of the project, and can successfully connect to the server and can receive messages as expected. This also means I added CORS. I want to be able to use SignalR in a
How to create chartjs chart with data from database C#
I am trying to create a chart.js graph in my .Net Core Web app, with data from the database. I am using ajax to call a method that will pull the data from the database, but I’m unsure how to group the data to display in the graph. At the moment I have a database that looks like so: I
JavaScript seems to be doing floating point wrong (compared to C)
From everything I’ve been able to find online, JavaScript allegedly uses IEEE 754 doubles for its numbers, but I have found numbers that can work in C doubles, but not in JavaScript. For example, prints 131621703842267136.000000 NOTE: IN AN EARLIER VERSION OF THE QUESTION I COPPIED THE WRONG NUMBER FOR C, but in JavaScript outputs 131621703842267140. From everything I’ve read