This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$("document").ready(function() { | |
//自分のサーバのファイルを取得してファイル サイズをリンク横に出力するスクリプト | |
//IMG タグの場合と class="noFileInfo" 指定の場合は除外 | |
$("a[href]").not(":has('img')").not(".noFileInfo").each(function() { | |
var obj = $(this); | |
var href = obj.attr('href'); | |
if (href.match(/\.(TXT|CSV|PDF|MP3|ISO|ZIP|7Z|LZH|RAR|EXE|DMG|SIT|TAR|GZ|DOC|DOCX|XLS|XLSX|PPT|PPTX|MOV|AVI|MP4|WMV|MSI|MSP|SWF)$/i)) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$("document").ready(function() { | |
//別サーバのファイルを取得してファイル サイズをリンク横に出力するスクリプト | |
//IMG タグの場合と class="noFileInfo" 指定の場合は除外 | |
$("a[href]").not(":has('img')").not(".noFileInfo").each(function() { | |
var obj = $(this); | |
var href = obj.attr('href'); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%@ page contentType="text/html; charset=UTF-8" pageEncoding="WINDOWS-31J" %> | |
<% | |
//ローカル サーバ内のファイル サイズを返す | |
String callbackFunc = request.getParameter("callback"); | |
String DOWNLOAD_FILE_URL = request.getParameter("url"); | |
try { | |
java.net.URL url = new java.net.URL (DOWNLOAD_FILE_URL); | |
java.lang.String root = "/http_root_dir/"; //URLのルートにあたるサーバのローカル ディレクトリ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//ローカル サーバ内のファイル サイズを返す | |
$root = "/http_root_dir/"; //URLのルートにあたるサーバのローカル ディレクトリ | |
$url = $_GET['url']; //URLパラメータ | |
$parse_url_arr = parse_url ( $url ); //URLをパース | |
$path = $root.$parse_url_arr['path']; //URLからパスを取得してローカル ディレクトリを取得 | |
$size = filesize($path); //ファイルサイズを取得 | |
//ファイル サイズが取得できない場合 -1 を返す |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel; | |
using System.Data; | |
using System.Drawing; | |
using System.Text; | |
using System.Windows.Forms; | |
using ESRI.ArcGIS.Carto; | |
using ESRI.ArcGIS.Geometry; | |
using ESRI.ArcGIS.Display; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'レイアウト ビューでマウス クリック地点の用紙座標とマップ座標の両方を取得する方法 | |
Private Sub UIToolControl1_MouseDown(ByVal button As Long, ByVal shift As Long, ByVal x As Long, ByVal y As Long) | |
Dim pMxDocument As IMxDocument | |
Set pMxDocument = ThisDocument | |
Dim pPoint As IPoint | |
Set pPoint = pMxDocument.ActiveView.ScreenDisplay.DisplayTransformation.ToMapPoint(x, y) | |
Debug.Print "FormPoint:", pPoint.x, pPoint.y '用紙座標 | |