Cibiņš Posted November 6, 2011 Report Share Posted November 6, 2011 (edited) Nesaprotu kāpēc nevar atspoguļot pašu bildi pie AJAX uploada bet parāda faila vārdu ar tagiem priekšā pakaļā?? onComplete : function(file){ $('#example2 .text').text('<img src="./' + file + '" alt="Uploaded">'); } Parāda kā tekstu <img src="./failanosaukums.jpg" alt="Uploaded"> nevis kā attēlu.. Edited November 6, 2011 by Cibiņš Quote Link to comment Share on other sites More sharing options...
0 briedis Posted November 6, 2011 Report Share Posted November 6, 2011 $('#example2 .text').html(), nevis .text() Quote Link to comment Share on other sites More sharing options...
0 Cibiņš Posted November 6, 2011 Author Report Share Posted November 6, 2011 O bingo, super - LIELS paldies Tev :) Quote Link to comment Share on other sites More sharing options...
Question
Cibiņš
Nesaprotu kāpēc nevar atspoguļot pašu bildi pie AJAX uploada bet parāda faila vārdu ar tagiem priekšā pakaļā??
Parāda kā tekstu <img src="./failanosaukums.jpg" alt="Uploaded"> nevis kā attēlu..
Edited by CibiņšLink to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.