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
uploadImg: function(file, imgPreview, imgUrl) { | |
var self = this | |
console.log('file=', file) | |
imgPreview.html('<i class="icon-spinner icon-spin"></i>') | |
imgUrl.val('') | |
reader = new FileReader(); | |
reader.onload = (function(tFile) { | |
return function(evt, response) { |
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
var data = {}; | |
$(".form-selector").serializeArray().map(function(x){data[x.name] = x.value;}) |
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
public function split_title($title,$maxStr) | |
{ | |
$newStr = Array(); | |
$maxLines=3; | |
$lineNum = 1; //to be line 1,2, or 3 | |
$split = explode ( " ", $title); | |
foreach($split as $str) | |
{ |
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
<div id='status'></div> | |
<form id="file-upload-form" name="file-upload-form"> | |
<input type="file" id="upload-doc-file" name="upload-doc-file"> | |
</form> | |
<iframe id="postiframe" name="postiframe"></iframe> |
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
if (!String.prototype.trim) { | |
String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g, '');}; | |
} |
NewerOlder