Master:
# 1    upload photo with ajax style way                  
exp
Online no
State
Grouping Member
Class class4
Score 348
Wealth 219
Posts 269
Login 11:49:09
http://ehsun7b.blogspot.com/2007/11/uploading-files-using-ajax_12.html

Actually use iframe since XMLHttpRequests in ajax does not support file upload.
Hits: 232, Date: 2009-06-30 06:55:44
[Agree] ( 13 ) [Against] ( 14 )

# 2    the main good thing is iframe can control its parent doc                  
exp
Online no
State
Grouping Member
Class class4
Score 348
Wealth 219
Posts 269
Login 11:49:09
var par = parent.document;//not parent.content.document;
var board = par.getElementById("board");

parent.document is the iframe's parent document.From this document, you can access to any object there.

Be careful for the file path, actually the src of iframe must be in the same server and is not open from remote, e.g, http://www.somesit.com is not right, this could cause access denied error. the path must like this src="/fileforler/filename.php"
Hits: 229, Date: 2009-07-03 10:24:58
[Agree] ( 13 ) [Against] ( 14 )

1 - 2 [ 2]

Reply: upload photo with ajax style way

*First line:


More content:


Tags:



Hint: You cannot post here before loginLogin | Register

nothing