What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-02-24 11:20:13
mvc asp.net partial view from js
//You can call a Partial View through AJAX <div id="containerId"></div> $.ajax({ type: "Get", url: '<Your url>/GetView', data: mydata, contentType: "application/text; charset=utf-8", da... Add solution -
Python 2022-02-24 10:05:20
base template
<!doctype html> <html lang="en"> <head> <!-- Required meta tags --> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no... Add solution -
TypeScript 2022-02-20 03:10:16
typescript class import csv file
// # csv file import csvData from './latlong.csv'; //# text import import textData from '../common/text/info.txt'; //# json import import jsonData from '../common/json/jsondata.json'; export const TextResource = textData; // not-work export const JsonRe... Add solution -
PHP 2022-02-20 01:40:29
weather in php
<?php $apiKey = "API KEY"; $cityId = "CITY ID"; $googleApiUrl = "http://api.openweathermap.org/data/2.5/weather?id=" . $cityId . "&lang=en&units=metric&APPID=" . $apiKey; $ch = curl_init(); curl_set... Add solution -
Javascript 2022-02-18 09:35:02
reactjs get checkbox value
handleChange(e) { let isChecked = e.target.checked; // do whatever you want with isChecked value } render() { // ... your code here return ( {/* your other jsx here */} <Checkbox otherProps onChange={e => this.handleChange(e)} />... Add solution -
Other 2022-02-14 02:30:06
how to add bootstrap modal for video on page load
<!doctype html> <html lang="en"> <head> <!-- Required meta tags --> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=... Add solution -
PHP 2022-02-11 16:25:24
php serialize object to json
edit: it's currently 2016-09-24, and PHP 5.4 has been released 2012-03-01, and support has ended 2015-09-01. Still, this answer seems to gain upvotes. If you're still using PHP < 5.4, your are creating a security risk and endagering your project. If yo... Add solution -
Javascript 2022-02-10 14:30:02
convert json into map in java example
public static Map<String, Object> jsonToMap(JSONObject json) throws JSONException { Map<String, Object> retMap = new HashMap<String, Object>(); if(json != JSONObject.NULL) { retMap = toMap(json); } return retMap;... Add solution