Breaking

Code Gripper

Code Gripper

Responsive Advertisement
  • Home
javascript
api

HTTP GET request in JavaScript?

byMahabubur Rahman -March 28, 2022

Browsers (and Dashcode) provide an XMLHttpRequest object which can be used to make HTTP requests from JavaScript: function httpGet ( theUrl ) { var xmlHttp = new XMLHttpRequest ();…

javascript

JavaScript return tab order to top of the page after blur event

byMahabubur Rahman -February 07, 2022

Instead of using blur , just set the tabindex of the form to -1 and focus it. Here's a vanilla JS example, which you can adapt with a ref in React. const form = document.queryS…

javascript

Issue when trying to show only specific array id value inside of component in Vuejs?

byMahabubur Rahman -February 07, 2022

Something like this: https://codesandbox.io/s/white-bird-z6orf Add props to the components Send the id from the params to the components Filter the list Source : stackoverflo…

html

Jquery replacement for .html() function that won't try to rewrite the html on Redactor imperavi - Xss vulnerability

byMahabubur Rahman -February 03, 2022

You can override JQuery's htmlPrefilter function: htmlPrefilter: function( html ) { return html; }, If special character are the issue then try escaping them like this: // try…

angular

add a div with class row in bootstrap after every 16 items using ngFor in angular

byMahabubur Rahman -February 03, 2022

I don't think I understood you well. But here is an implementation of what you are trying to accemplish: // template.html <ng-container *ngFor="let item of list; let i = ind…

array

String to Array JavaScript

byMahabubur Rahman -August 19, 2021

let str = "book, pen, pencil"; console.log(str.split(",")) ["book","pen","pencil"] let str = "How are You ?"; console.log(str.s…

date

How to get current day date in JavaScript

byMahabubur Rahman -August 19, 2021

I have written a javascript function to solve this problem. Here I get the current date-time using the new Date() object. Then formate it. Get Current Date Function: function getCurrentD…

javascript

JavaScript string replace

byMahabubur Rahman -August 19, 2021

The replace() method returns a string where a part of the string replace with another string. Example: var str = "Hello Donald Tramp"; str.replace("Donald Tramp","…

date

How to get the current year in JavaScript

byMahabubur Rahman -August 19, 2021

Steps :  Create a new Date() object. call getFullYear() from the object. the code will as bellow -  var date = new Date(); var currentYear = date.getFullYear() console.log(currentYear); O…

javascript

Loop through an array in JavaScript

byMahabubur Rahman -August 11, 2021

There are many way to loop JavaScript array, some of them are -  for (var i = 0; i < xs.length; i++) { console.log(xs[i]); } xs.forEach((x, i) => console.log(x)); for (const x of xs) …

Load More
That is All

Follow Us

Popular Posts

CKEditor5

ModuleNotFoundError: No module named 'ckeditor_uploader'

byMahabubur Rahman-September 13, 2022

Subscribe Us

Facebook

Categories

Main Tags

Code Gripper

September 30, 2023

Total Pageviews

Search This Blog

CODE GRIPPER

Code Gripper
CODE GRIPPER

  • Home
  • Python
  • PHP

Menu Footer Widget

  • Home
  • About
  • Contact Us
Code Gripper

About Us

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's.

Categories

Main Tags

Latest Posts

Most Popular

ModuleNotFoundError: No module named 'ckeditor_uploader'

September 13, 2022
Design by Blogger | Distributed by Gooyaabi
  • Home
  • About Us
  • Contact Us
  • RTL Version