0

i am POSTING an image from one page to another , the src of the image is "data:image/png;base64" .

While posting the page keeps loading ; is there a way to show a loader while data is being POSTED ?

Ekram
  • 149
  • 2
  • 8
  • 1
    You might try to post it with AJAX like with jQuery. Is POST required? – Jask Dec 19 '13 at 15:08
  • Not sure about that. Let me try jquery post and see if it fulfills the achievement. Thanks for reminding me @Jask – Ekram Dec 19 '13 at 15:14
  • @Jask - Even if POST is required, it can still be sent via AJAX. Can't it? – Ryan Dec 19 '13 at 15:14
  • @Stanyer Yes, it can, there is a question about it http://stackoverflow.com/questions/3877309/submit-cross-domain-ajax-post-request – Jask Dec 19 '13 at 15:21
  • @Jask I wasn't aware this question was regarding cross-domain posting – Ryan Dec 19 '13 at 15:22
  • @Stanyer I made assumption that it is. – Jask Dec 19 '13 at 15:28
  • 1
    Ah okay, I presumed that because he said one page to another it was on the same domain (might be wrong) which is why I thought a jQuery AJAX call was pretty self explanatory. @Ekram if it is on the same domain, a simple jQuery AJAX call with the type of POST would be sufficient, where you show a loading symbol on `beforeSend` and hide the loading symbol on `success` and `error`, or `complete`. – Ryan Dec 19 '13 at 15:35

0 Answers0