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 8861485
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T15:30:09+00:00 2026-06-14T15:30:09+00:00

I am using the WinJS.UI.Pages.render call to load fragments into a page. I read

  • 0

I am using the WinJS.UI.Pages.render call to load fragments into a page. I read that a page’s ready method can return a promise that completes when the page is ready. I thought that this promise is what would be returned by the WinJS.UI.Pages.render method, but it is not. I was thinking this would be a nice mechanism to asynchronously pass values back from the fragment to the caller.

Is it possible to access the ready promise from the WinJS.UI.Pages.render promise done handler?

  • 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-14T15:30:10+00:00Added an answer on June 14, 2026 at 3:30 pm

    Looking at the code in the implementation, it looks like this may actually be a bug in WinJS. The WinJS.UI.Pages.render method does return a promise, but it’s the one from just after processed is complete and and results in the control instance been returned as the completed promises value.

    Your best bet is to place an additional promise as a member of your Page class. Then when you get render, peel off from that promise, rather than the render promise itself.

    It’s important that you use the promise created in the constructor or similar, since the promise returned from render is going to complete when processed is called on your page class — before your ready returns, so accessing the value immediately after the render completes, your ready method has not yet been called.

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

Sidebar

Related Questions

I'm trying to call a webservice using WinJs.XHR in a windows 8 app; the
I have a main .fla file that I am using to load a sequence
I've got a chunk of ASP.Net 2.0 code in the Page Load handler that
using this http://bl.ocks.org/950642 we can see how to add images to nodes, the question
Using Location.getBearing(); I seem to get randomly changing bearings. Aka, I can turn the
I am trying to automate JavaScript forms/pages in IE7 using VBA. I have already
I am using the NetCDF 4 java library from unidata to read GRIB2 files
Is there a way to evaluate a global resource using WinJS directly in my
I can't access my host machine from my guest machine using the computer name
Ignore the fact that I using raw pointers/arrays. I am making a card game

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.