×

Discussion Board

Results 1 to 10 of 10
  1. #1
    Registered User
    Join Date
    Feb 2013
    Posts
    11

    HTTP 500 Internal server error

    Hi,

    I am developing video app...after i download my video in mobile...if i click back button or anything in my app its showing error https://jscallback/186382.... like that please anyone help me

    thanks,
    R.Manikandan

  2. #2
    Nokia Developer Champion
    Join Date
    Oct 2010
    Location
    Singapore
    Posts
    221

    Re: HTTP 500 Internal server error

    Hi manikandan12, will you be able to be more specific? Sample codes? Debug errors? Are you porting?

  3. #3
    Registered User
    Join Date
    Feb 2013
    Posts
    11

    Ajax call after download

    Hi,
    In my app once i download and come back to my app...am loading my data using ajax .... but ajax not working properly...can anyone please tell how to fix....

    <button onclick="download(myvideourl)">Download</button>

    function download(myvideourl)
    {
    mwl.loadurl(myvideourl);
    //after i download now i want to redirect to another dynamice page
    ajaxcall();
    }
    Thanks,
    R.Manikandan

  4. #4
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Budapest, Hungary
    Posts
    28,572

    Re: Ajax call after download

    Quote Originally Posted by manikandan12 View Post
    but ajax not working properly
    Does not work properly, or is not getting invoked at all? As far as I understand mwl.loadUrl may end up shutting down the Web App while changing to an other page.
    EDIT: merged your threads, and saw the original issue, now I think it is even more likely that the Web App execution is interrupted.

  5. #5
    Registered User
    Join Date
    Feb 2013
    Posts
    11

    Re: Ajax call after download

    thanks to reply...yes its not getting invoke....can u please tell how to fix that ...after i download i need to continue my app without interrupt...please help me

  6. #6
    Regular Contributor
    Join Date
    Jun 2010
    Posts
    161

    Re: HTTP 500 Internal server error

    Okay, the way you try to do it, it will not work. But there is a pretty simple workaround.

    Instead of trying to automatically call the function after the download, you do the following:

    Download-Page:
    Code:
    <div id="view-Download">
    <button onclick="mwl.show('#view-DownloadDone'); mwl.loadURL('myvideourl');">Download</button>
    </div>
    
    <div id="view-DownloadDone" class="fullscreen">
    <button onclick="mwl.hide('#view-DownloadDone'); afterDownload();">Done</button>
    </div>
    As soon as the user has completed the download and returns to the app, he is presented with an view where he has to click DONE. This onclick hides the view and calls the afterDownload-Function.

  7. #7
    Registered User
    Join Date
    Feb 2013
    Posts
    11

    Re: HTTP 500 Internal server error

    Hi lorion84 ,
    Thanks to reply... afterDownload() function working but ajax not invoked any data....after i download only am getting this problem...please help me

    Thanks

  8. #8
    Regular Contributor
    Join Date
    Jun 2010
    Posts
    161

    Re: HTTP 500 Internal server error

    That is strange. How do you do the AJAX call? Where do you test it?
    Can you upload a test case?

    It is working for me in the JAVA Emulator (501) and on my Asha 311.

  9. #9
    Registered User
    Join Date
    Feb 2013
    Posts
    11

    Re: HTTP 500 Internal server error

    Hi lorion84,
    For me also working in emulator...but in mobile creating problem

    Thanks

  10. #10
    Regular Contributor
    Join Date
    Jun 2010
    Posts
    161

    Re: Ajax call after download

    If you don't give us something to work with, we can't help you!

    Please reduce your app as much as possible (so that basically only the error is left) and upload it somewhere.
    Last edited by lorion84; 2013-08-06 at 18:44. Reason: Removed sarcasm.

Similar Threads

  1. jquery ajax call works local but not in cloud preview: No Transport
    By internetlabor in forum Nokia Asha Web Apps
    Replies: 4
    Last Post: 2013-04-10, 17:04
  2. App refreshes after an AJAX call, how to stop it?
    By pilps in forum Nokia Asha Web Apps
    Replies: 3
    Last Post: 2012-08-20, 21:55
  3. Problem with Ajax call
    By suryasraj in forum Symbian
    Replies: 3
    Last Post: 2011-07-06, 06:47
  4. Error Call ajax, wrt in localhost
    By cabeto41 in forum Symbian
    Replies: 2
    Last Post: 2010-10-10, 12:55
  5. Urgent::Can I use ajax to download file?
    By winwon14 in forum Browsing and Mark-ups
    Replies: 2
    Last Post: 2007-09-25, 23:33

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •