The main difference between the two pages is the method of sending messages. Recieving messages is the same in both.
Send messages to iframe using iframeEl.contentWindow.postMessage
Recieve messages using window.addEventListener('message')
| package main | |
| import ( | |
| "context" | |
| "fmt" | |
| "log" | |
| "net/url" | |
| "os" | |
| "github.com/Azure/azure-storage-blob-go/2016-05-31/azblob" |
| public static List<T> Query<T>(this DataContext db, string sql, object param = null, int? commandTimeout = null, IDbTransaction transaction = null, [CallerFilePath]string fromFile = null, [CallerLineNumber]int onLine = 0, string comment = null) | |
| { | |
| using (db.Connection.EnsureOpen()) | |
| { | |
| try | |
| { | |
| return db.Connection.Query<T>(MarkSqlString(sql, fromFile, onLine, comment), param, transaction ?? db.Transaction, true, commandTimeout).AsDapperList(); | |
| } | |
| catch (SqlException ex) when (ex.Is(SqlErrorCode.DatabaseReadOnly_3906)) | |
| { |
| public class HomeController : Controller { | |
| private readonly ViewRender view; | |
| public HomeController (ViewRender view) { | |
| this.view = view | |
| } | |
| public string Test () { | |
| // render ~/Views/Emails/ResetCode |
| // Reference: http://www.blackdogfoundry.com/blog/moving-repository-from-bitbucket-to-github/ | |
| // See also: http://www.paulund.co.uk/change-url-of-git-repository | |
| $ cd $HOME/Code/repo-directory | |
| $ git remote rename origin bitbucket | |
| $ git remote add origin https://github.com/mandiwise/awesome-new-repo.git | |
| $ git push origin master | |
| $ git remote rm bitbucket |
| <div ng-app="videoApp" ng-controller="VideoController"> | |
| <table> | |
| <thead> | |
| <th>Title</th> | |
| <th>Length</th> | |
| <th></th> | |
| </thead> | |
| <tbody> | |
| <tr data-id="{{video.Id}}" ng-repeat="video in videos"> |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <!-- Le styles --> | |
| <link href="../bootstrap/css/bootstrap.css" rel="stylesheet"> | |
| <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.js"></script> | |
| </head> | |
| <body> |