Click here to Skip to main content
15,913,610 members
Home / Discussions / JavaScript
   

JavaScript

 
QuestionRe: How to call ajax in php databse file in jvector map? Pin
ZurdoDev20-May-15 8:56
professionalZurdoDev20-May-15 8:56 
QuestionjQuery validates all required fields except file upload. Pin
samflex19-May-15 8:29
samflex19-May-15 8:29 
AnswerRe: jQuery validates all required fields except file upload. Pin
ZurdoDev20-May-15 8:56
professionalZurdoDev20-May-15 8:56 
GeneralRe: jQuery validates all required fields except file upload. Pin
samflex21-May-15 2:40
samflex21-May-15 2:40 
GeneralRe: jQuery validates all required fields except file upload. Pin
Richard Deeming21-May-15 5:51
mveRichard Deeming21-May-15 5:51 
QuestionHow to pass image in javascript? Pin
Shän Yü18-May-15 2:56
Shän Yü18-May-15 2:56 
QuestionRe: How to pass image in javascript? Pin
2Programmer7829-May-15 11:38
2Programmer7829-May-15 11:38 
QuestionBase64 string corrupted or truncated Pin
JeganMaria18-May-15 0:51
JeganMaria18-May-15 0:51 
My requirement is to display thumbnail images on to my MVC view. What I am doing here is to convert image to byte array and convert them to base64 string and send this string back to JavaScript.

In JavaScript, I am assigning this base64 string to src attribute of image tag as below

$(img).attr("src", "data:image/png;base64," + data);

This process happened continuously 10 times in a for loop as I need to display 10 images in a page.

When I run this, I am getting half image in IE and showing nothing in Firefox. When I went into fire-fox console I am getting "Image is corrupted or truncated" exception and not sure what it is.

Could anyone throw some light on this issue?

If source code need for any of the said one, please let me know
Questiondesign a game Pin
Member 116724807-May-15 9:17
Member 116724807-May-15 9:17 
AnswerRe: design a game Pin
ZurdoDev7-May-15 9:22
professionalZurdoDev7-May-15 9:22 
Questiondesign a game Pin
Member 116724807-May-15 9:15
Member 116724807-May-15 9:15 
AnswerRe: design a game Pin
ZurdoDev7-May-15 9:23
professionalZurdoDev7-May-15 9:23 
JokeRe: design a game Pin
CodeReady7-May-15 21:32
CodeReady7-May-15 21:32 
GeneralRe: design a game Pin
Sascha Lefèvre31-May-15 10:02
professionalSascha Lefèvre31-May-15 10:02 
GeneralRe: design a game Pin
CodeReady9-Jun-15 20:26
CodeReady9-Jun-15 20:26 
AnswerRe: design a game Pin
Anurag Gandhi31-May-15 2:29
professionalAnurag Gandhi31-May-15 2:29 
QuestionHi friends, How to apply bootstrap classes to the particular selected content from textarea. Pin
Member 113964094-May-15 19:44
Member 113964094-May-15 19:44 
QuestionHow do I secure my access token? Pin
Marc Clifton4-May-15 9:16
mvaMarc Clifton4-May-15 9:16 
GeneralRe: How do I secure my access token? Pin
CodeReady7-May-15 21:31
CodeReady7-May-15 21:31 
GeneralRe: How do I secure my access token? Pin
Marc Clifton8-May-15 0:29
mvaMarc Clifton8-May-15 0:29 
AnswerRe: How do I secure my access token? Pin
CodeReady8-May-15 1:17
CodeReady8-May-15 1:17 
QuestionMaintain Scroll Position Pin
BobbyStrain30-Apr-15 11:59
BobbyStrain30-Apr-15 11:59 
SuggestionRe: Maintain Scroll Position Pin
ZurdoDev7-May-15 9:24
professionalZurdoDev7-May-15 9:24 
AnswerRe: Maintain Scroll Position Pin
Simewu15-Jun-15 13:46
professionalSimewu15-Jun-15 13:46 
GeneralRe: Maintain Scroll Position Pin
BobbyStrain15-Jun-15 15:52
BobbyStrain15-Jun-15 15:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.