Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: Webbrowser and javascript

  1. #1
    Join Date
    Mar 2005
    Posts
    724

    Default Webbrowser and javascript

    If needed I can post screenshots I am finishing up a page in my NR skin but the problem is i get Javascript errors however if I open the same page directly in IE it works fine.

    Any ideas would be great,
    Yonu

  2. #2
    Join Date
    Mar 2005
    Posts
    724

    Default

    is this such a hard issue to address? I really need a solution for this

  3. #3
    Join Date
    Mar 2005
    Location
    Los Angeles, CA
    Posts
    1,003

    Default

    You have not provided enough information to be able to help you.

  4. #4
    Join Date
    Mar 2005
    Posts
    724

    Default

    Ok What information do I need to provide? As I said the page will not open in the NR browser without JS errors but if I open it in IE on the same device/PC it works

  5. #5
    Join Date
    Mar 2005
    Location
    Los Angeles, CA
    Posts
    1,003

    Default

    I presume the context in which you are seeing the issue is an embedded browser window in your NR page?

    If so, what is the javascript that is being executed, and what are the errors that it is producing?

    Do other pages execute/render correctly in that same embedded browser window?

    What OS version are you running on, and what NR version are you running on?

  6. #6
    Join Date
    Mar 2005
    Posts
    724

    Default

    Ok yes it is the embedded Browser window

    the JS being executed is a web interface for XBMC the error is expected identifier, string or number

    other pages yes however they are not JavaScript based.

    I have tried win7 and winXP netremote version is 2.0.16.139 on one and 2.0.21 on the other

    Thanks,
    yonu

  7. #7
    Join Date
    Mar 2005
    Location
    Los Angeles, CA
    Posts
    1,003

    Default

    When you look at the line that is failing in the javascript, what do you see?

    Anyone else out there running XBMC who has tried it in an embedded browser window?

  8. #8
    Join Date
    Mar 2005
    Posts
    724

    Default

    ok the error is for the error is simply }; and expected identifier

    I take it that the web plugin for NR is more than simply a IEwrapper? As it works fine when opened directly in IE
    Last edited by yonu; July 30th, 2011 at 02:15 AM.

  9. #9
    Join Date
    Mar 2005
    Location
    Los Angeles, CA
    Posts
    1,003

    Default

    The implication is that the block of javascript leading up to that bracket has some sort of missing identifier. If you look through that code block, you may be able to identify the source of the error.

    I'm not sure why the jscript parse through NR would behave differently than the jscript parse in IE. Identifying the specific code that is triggering the error may be edifying.

  10. #10
    Join Date
    Mar 2005
    Posts
    724

    Default

    here is the block of code that goes along with the error I don't see anything wrong with it
    clearAudioPlaylist: function(options) {
    var settings = {
    onSuccess: null,
    onError: null,
    };

    Edit: if it helps I ran the same js file through the windows script host and I get the same error Expected identifier, string or number Code 800A0404
    Last edited by yonu; July 30th, 2011 at 01:38 PM.

Page 1 of 2 12 LastLast

Posting Permissions

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