技術者派遣の技術日誌ブログ

July 31, 2008

Django snippets: ROR link_to_remote clone. simple django ajax

Filed under: Ajax, Javascript/Xhtml/Css — Tags: , , , — Shotalow @ 1:16 am

coding: utf-8 -*- # GitHub http://gist.github.com/3247 from django import template from django.template import resolve_variable register = template.Library() ”’ ROR link_to_remote clone Example 1: {% ajax %} link_to_remote url …

coding: utf-8 -*- # GitHub http://gist.github.com/3247 from django import template from django.template import resolve_variable register = template.Library() ”’ ROR link_to_remote clone Example 1: {% ajax %} link_to_remote url …

Continue reading here:
Django snippets: ROR link_to_remote clone. simple django ajax

July 21, 2008

DropThings: Open Source ASP.NET 3.5 AJAX Portal – new and improved …

Filed under: Ajax, Asp.Net, C#, Javascript/Xhtml/Css — Tags: , , , , , , — midori @ 4:07 pm

Omar AL Zabir (author of Building a Web 2.0 Portal with ASP.NET 3.5) updated his very cool ASP.NET AJAX Portal application with 3.5 features, Workflow Foundation and new C# 3.0 features.

Omar AL Zabir (author of Building a Web 2.0 Portal with ASP.NET 3.5) updated his very cool ASP.NET AJAX Portal application with 3.5 features, Workflow Foundation and new C# 3.0 features. Play with it here:http://dropthings.omaralzabir. …

See the rest here:
DropThings: Open Source ASP.NET 3.5 AJAX Portal – new and improved …

Django snippets: Custom color field with Javascript color picker

A custom model field ‘ColorField’ which stores a hex color value like ‘#FFFFFF’ and shows a Javascript color picker in the admin rather than a raw text field. It is written to work with the current trunk (i.e.

A custom model field ‘ColorField’ which stores a hex color value like ‘#FFFFFF’ and shows a Javascript color picker in the admin rather than a raw text field. It is written to work with the current trunk (i.e.

A custom model field ‘ColorField’ which stores a hex color value like ‘#FFFFFF’ and shows a Javascript color picker in the admin rather than a raw text field. It is written to work with the current trunk (i.e.

A custom model field ‘ColorField’ which stores a hex color value like ‘#FFFFFF’ and shows a Javascript color picker in the admin rather than a raw text field. It is written to work with the current trunk (i.e. after newforms-admin …

A custom model field ‘ColorField’ which stores a hex color value like ‘#FFFFFF’ and shows a Javascript color picker in the admin rather than a raw text field. It is written to work with the current trunk (i.e.

More:
Django snippets: Custom color field with Javascript color picker

July 18, 2008

Tip: Solving the browser caching problem of AJAX applications …

Browser caching is generally a good thing, why download the same image again and again while you can download it once and save it on the browser? In some cases, however, this is not a wanted behavior. The problem:

Browser caching is generally a good thing, why download the same image again and again while you can download it once and save it on the browser? In some cases, however, this is not a wanted behavior. The problem:

Follow this link:
Tip: Solving the browser caching problem of AJAX applications …

July 14, 2008

IE8 AJAX Navigation – IEBlog – Site Home – MSDN Blogs

Filed under: Ajax — Tags: , , , , , , , — strmozo @ 7:22 pm

Hi, I’m Sharath Udupa, developer on the IE team focusing on AJAX features for IE8.

Hi, I’m Sharath Udupa, developer on the IE team focusing on AJAX features for IE8. One of the AJAX improvements we adopted in IE8 from HTML5 is AJAX page navigations. In IE8 mode, we provide support for script to update the travel log …

Visit link:
IE8 AJAX Navigation – IEBlog – Site Home – MSDN Blogs

DotNetSlackers: MSMQ, WCF and IIS: Getting them to play nice (Part 3)

,ASP.NET,JAVASCRIPT,JQUERY

In the last three posts I’ve documented pretty well everything I’ve learned over the past few months about getting MSMQ, WCF and IIS 7 playing nice, both on single machines and across multiple machines. Even though it took quite a while …

In the last three posts I’ve documented pretty well everything I’ve learned over the past few months about getting MSMQ, WCF and IIS 7 playing nice, both on single machines and across multiple machines. Even though it took quite a while …

Continued here:
DotNetSlackers: MSMQ, WCF and IIS: Getting them to play nice (Part 3)

July 10, 2008

'System.CodeDom.Compiler.CodeDomProvider.CreateGenerator error C# .NET

Filed under: .NET Framework, ALL, Asp.Net, C#, JAVA, PHP — Tags: , , , , , , , , — doku @ 6:17 pm

,ASP.NET,JAVASCRIPT,JQUERY

If you want a C# provider, do not use CreateGenerator, but create a CodeDomProvider: CodeDomProvider p = new Microsoft. CSharp .CSharpCodeProvider(); And then use it. For example p.CompileAssemblyFromDom(…) or p.GenerateCodeFromCompileUnit( …).

If you want a C# provider, do not use CreateGenerator, but create a CodeDomProvider: CodeDomProvider p = new Microsoft.CSharp.CSharpCodeProvider(); And then use it. For example p.CompileAssemblyFromDom(…) or p.GenerateCodeFromCompileUnit( …). … Technically speaking it is a template driven source code generator that automates the creation of common application source code for any language (C#, Java, VB, PHP, ASP.NET, SQL, etc.) or any text based output. …

Read more from the original source:
'System.CodeDom.Compiler.CodeDomProvider.CreateGenerator error C# .NET

July 9, 2008

Windows Live ID の Web 認証 SDK がリリースされました

Filed under: ALL — Tags: , — citiszo @ 12:04 am

Windows Live ID の、いわゆる認証 API がリリースされました。これにより、独自の Web サイトで Windows Live ID を使った認証や、クライアントアプリケーションに Windows Live ID による認証を組み込むことができるようになります。

Angus Logan's Blog
SERVICE RELEASE ANNOUNCMENT: Windows Live ID Web Authentication Released!
http://blogs.msdn.com/angus_logan/archive/2007/08/16/service-release-announcment-windows-live-id-web-authentication-released.aspx

Windows Live ID はマイクロソフトのサービスやサイトで広く使われている、シングルサインオンの仕組みです。その SDK が公開されたことにより、どなたでも Windows Live ID を認証システムとして利用することができるようになります。

Web サイトで利用する場合、独自サイトのページ上のサインオンのリンクから、 Windows Live ID の認証ページに移動し、認証された後、元のサイトにリダイレクトされます。リダイレクトされたあと、必要なユーザー情報を処理します。つまり既存のサイトやホスティングサーバー上のサイトでも利用することが可能です。

なお、利用に際して料金はかかりません。利用規約は http://dev.live.com/terms/ をご確認ください。

Windows Live ID は今後 Windows CardSpace とも連携し、「アイデンティティ・メタシステム」を構成する、アイデンティティ・プロバイダの一つとして、重要な役割を果たしていくことになります。その観点からもぜひウォッチしていただければと思います。

July 7, 2008

星屑のステージ

Filed under: ALL — Tags: — Sayuri @ 9:55 pm

スターレーティングって使う?
使うよね!作ってみた。いろんなところで公開されてるみたいだけど、作ってみた。prototype.js使って。
チェッカーズは関係ないです...。

デモページ

ちなみに会社のサーバーじゃなくてGoogle Page Creatorにアップロードしてみた。
prototype.jsはGoogle Ajax Libraries。

画像は↓ここの素材を使ってPaint.NETで。

Icojoy – stock icons shop, article 'Free web development icons #4 SE'

prototype.js使って、お手軽なのが欲しかったんだけど、なかなかシンプルなのがみつからなくて...。
アニメーションはしないけど、ちゃんと小数点分も埋まるようにはなってまふ。

思ったよりソースが長くなっちゃった。
A要素でhoverで色付けしようと思ったけど、手前の星(4個目の星にマウス持ってった時の1~3個目とか)の色付けるのが面倒じゃね?と思ってJavaScriptで色付けするようにしたのがちょっと心残り。

Komodomedia

File uploads with the MVC Framework

Filed under: ALL — Tags: , — strmozo @ 9:51 pm

There have been a couple of questions on the ASP.NET MVC newsgroup about this recently. It's pretty straight forward, you simply use the standard HTML input tag (type=”file”) in your form and then iterate through the HttpRequest's Files collection in your controller.

Here's the view's HTML:

And here's the controller action:

public void SaveDocuments()
{
foreach (string inputTagName in Request.Files)
{
HttpPostedFile file = Request.Files[inputTagName];
if (file.ContentLength > 0)
{
string filePath = Path.Combine(@"C:\MyUploadedFiles", Path.GetFileName(file.FileName));
file.SaveAs(filePath);
}
}
}
Older Posts »

このページの上部に戻る

Powered by WordPress