html - Passing file type variable from one external javascript to another external javascript -


is possible? saw lot of questions passing values 1 external js external js, didn't (or maybe didn't notice) see passing file 1 external js another.

the thing is, building web page consisting of 3 pages on it. first page uploading file using drag , drop, 2nd page formdata input , submitting formdata using ajax, while 3rd page show responsetext ajax. each page has own external script, because if try cram codes 1 external javascript, show error cannot call method 'addeventlistener' of null whenever moved 2nd or 3rd page, because drag , drop box located on 1st page.

but need file dropped external js handles 1st page external js handles 2nd page, because need append file along other data formdata, before submitting ajax. want know if there anyway can pass file (along file info obtained filereader) external js 1st page external js 2nd page? , if possible, method doesn't involve server side scripting (like php, jsp).


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -