Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7814717
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T05:16:56+00:00 2026-06-02T05:16:56+00:00

I am currently building an application on Windows Phone 7 using the WebBrowser control.

  • 0

I am currently building an application on Windows Phone 7 using the WebBrowser control. The WebBrowser is navigated to a URL, but I also inject my own javascript into the control.

However the code which seems to work well on other platforms (WebView for Android and iOS) doesn’t seem to work in the WebBrowser:

function parseToString(outObject)
{
    var outJSON = null;
    try{
        if(outObject != null){
            outJSON = JSON.stringify(outObject);
        }
    }
    catch(err)
    {
        outJSON = err.message;
    }
    window.external.Notify(outJSON);
}

I found out that the “control JSON is undefined” is thrown in the try block.

Can someone recommend an alternative method for stringifying the JSON in the WebBrowser/IE? Furthermore, I cannot use external libraries as those javascripts are injected into the WebBrowser.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T05:16:58+00:00Added an answer on June 2, 2026 at 5:16 am

    The WP7 browser does not supply a JSON object, so you will need to use a third party library in order to convert an object into a JSON string. I have used both of these in the past:

    • Douglas Crockford’s JSON library.
    • The knockoutJS toJSON function.

    See this related question:

    Serializing to JSON in jQuery

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently building an application for Windows Phone 7 which has to play
I am currently building an application using ASP.NET MVC. The data entry pages are
I am currently building an application using Tomcat, Spring and JAVA. I am using
I'm currently building a Facebook Application for a client using the new timeline layout
Currently I'm building an application using latest Prism for Silverlight 4. I've a module
I'm currently building a small web application that includes a fair amount of JavaScript.
I'm currently using ant for building my java project on a Windows XP machine.
I am building a small Windows Phone application which has a databound ListBox as
I'm building an application that connects to SQL Server 2005. It currently uses Windows
I am currently building a gallery web application using php. I am currently developping

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.