Today, after 2 years, I released a new Markdown Editor components for JavaScript and Blazor. The full source code is available on GitHub.
Search Results for: javascript
Custom JavaScript function in Blazor
In this new post custom JavaScript function in Blazor, I present how to create functions in C# in a Blazor page and integrate them with JavaScript
Dynamically add JavaScript from Blazor components
In this new post, I show you the code to dynamically add JavaScript from a Blazor components coming from the component itself or another URL
TypeScript: JavaScript made Easier and Simpler
TypeScript is a language that is strongly typed and object-oriented. TypeScript is a combination of JavaScript and Type Annotations
Write C#. Run JavaScript.
Open Source C# to JavaScript Compiler and Frameworks. Run Your App On Any Device Using JavaScript. Use Bridge.NET to build platform independent applications for mobile, web and desktop. Run on iOS, Windows, Mac, Linux and billions of other devices with JavaScript support. Compile your C# code into native JavaScript and deploy on Billions of devices. Try it on bridge.net or fork it on GitHub
Crypt and decrypt your email with JavaScript
If you want to publish an email on your site but you want to protect it, I have a simple solution HTML <!DOCTYPE html> <html xmlns="https://www.w3.org/1999/xhtml"> <head> <title></title> <script src="crypto.js"></script> <script src="uncrypto.js"></script> </head> <body> <h1>JavaScript eMail Encrypter</h1> <p>You can encrypt mailto: links on a website, so that spiders can’t detect them, with a simple javascript.</p> <p>Example: <a href="javascript:linkTo_UnCryptMailto(‘nbjmup;spttjojAftjb/dp’);">rossini [at] esia [dot] co</a></p> <form> <div> <div class="container"> <div class="desc">enter your eMail address:</div> <div><input type="text" name="emailField" size="40" maxlength="255" /></div> </div> <div class="container"> <div class="desc"><input type="button" name="ecrypt" value="Crypt eMail Address" onclick="CryptMailto()" /></div>…
Classical Inheritance in JavaScript
JavaScript is a class-free, object-oriented language, and as such, it uses prototypal inheritance instead of classical inheritance. This can be puzzling to programmers trained in conventional object-oriented languages like C++ and Java. JavaScript’s prototypal inheritance has more expressive power than classical inheritance, as we will see presently. Java JavaScript Strongly-typed Loosely-typed Static Dynamic Classical Prototypal Classes Functions Constructors Functions Methods Functions But first, why do we care about inheritance at all? There are primarily two reasons. The first is type convenience. We want the language system to automatically cast references…
What is the JavaScript Equivalent of print_r in PHP?
What is the JavaScript Equivalent of PHP print_r() function? In other words, how you can “print” a javascript object in a way that’s readable by humans? Code You could use JSON.stringify, as following: The HTML part Let’s create two links for demo: <p><a id=”print_demo” href=”javascript:void(0);”>Print object</a></p><p><a id=”pretty_print_demo” href=”javascript:void(0);”>Pretty Print object</a> The JAVASCRIPT part Remark: I use jQuery to handle events, but you can use plain javascript (if you prefer). <script type=”text/javascript”> $(function() { // create an object var person = new Object(); person.firstname = “John”; person.lastname = “Doe”; person.age =…
How to Detect Browser (and browser version) using JavaScript
Browser (and browser version) detection is an “all time classic” development requirement. jQuery.browser WAS an excellent solution, but it was removed in jQuery 1.9. Actually, it would be better to try to detect a browser feature instead of browser name itself, where possible. An ideal solution for this is Modernizr (a JavaScript library that detects HTML5 and CSS3 features in the user’s browser). But, if you still need to detect browser and browser version (using javascript), I suggest the following solutions (among many others): Bowser – A Browser detector and…
Variables and simple data types in Python
Continue the series of posts about Python: this new post is about variables and simple data types and constants.
Introduction to Node.js
This is an introduction to Node.js that is a server to run JavaScript apps. After a brief history, I will create a simple web application.
Blazor integration with Identity Server
I share the code for a Blazor integration with Identity Server and BFF. All browsers don’t allow to share or save an authentication token
NET8 is announced
Microsoft has recently announced the release of NET8, the latest version of its popular software development platform
Labels and OnClickChart for ChartJs
In this new post, I introduce an update with labels and OnClickChart event, my ChartJs component for Blazor. Let me know what you think
Getting started with Java
In this new post “Getting started with Java”, I share with you my consideration about this programming language in comparison to C#
How to make menus with CSS
I will show how to make menus with CSS without using JavaScript: dropdown menus, drawers, and even a mobile hamburger menu
Drag and drop with Blazor
I show how to implement drag and drop with Blazor because drag and drop has become a popular interface solution in modern applications.
Create documentation with Docsify and GitHub Pages
Documentation is an essential part of making any project useful to users. Here how to Create documentation with Docsify and GitHub Pages
Guided Tours Blazor component
I introduce you my new Guided Tours #Blazor component to help your users to understand the UI of your application
Blazor component for ChartJS
I finally complete the first implementation of my Blazor component for ChartJS that helps you to create beautiful graphs
Add Security Headers to Blazor WebAssembly
In this new post, I like to explain how to add security headers to Blazor WebAssembly to follow the recommendations from OWASP.
Add Security Header our website
In this new post, I’ll show you how to add security header to our website to be ready for a penetration test. Quick and easy to implement.
Validate JSON with Postman
In this new post, I explain how to validate a JSON result with Postman from your APIs using JavaScript with few lines of code. Full code here
Remote debug Android devices
In this post, I show you how to remote debug live content on an Android device from your Windows, Mac, or Linux computer. Easy peasy
Browser detect component for Blazor
In this post, I talk about user-agent and I’m going to create a browser detect component for Blazor WebAssembly and Blazor Server with .NET6.