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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T08:15:53+00:00 2026-06-14T08:15:53+00:00

Was not sure what to title this post, I’ve been having a go at

  • 0

Was not sure what to title this post, I’ve been having a go at trying to make a little Windows 8 app, I don’t have much knowledge and sorry in advance if this is hard to understand, below is my itemDetail.js

(function () {
"use strict";

WinJS.UI.Pages.define("/pages/itemDetail/itemDetail.html", {
    // This function is called whenever a user navigates to this page. It
    // populates the page elements with the app's data.


    ready: function (element, options) {
        var item = options && options.item ? Data.resolveItemReference(options.item) : Data.items.getAt(0);
        element.querySelector(".titlearea .pagetitle").textContent = item.group.title;
        element.querySelector("article .item-title").textContent = item.title;
        element.querySelector("article .item-subtitle").textContent = item.subtitle;
        element.querySelector("article .item-image").src = item.backgroundImage;
        element.querySelector("article .item-image").alt = item.subtitle;
        element.querySelector("article .item-content").innerHTML = item.content;
        element.querySelector("article .track1").innerHTML = item.track1;
        WinJS.Utilities.query("#playMP3").listen("click", getStartVideoFuntion("http://www.ikkmusic.com/ikkmusic.com%20mix.mp3"));
    },
});

function getStartVideoFuntion(src) {
    return function () {
        // Set video element's source
        var vid = WinJS.Utilities.query("#playback")[0];
        vid.src = src;
        vid.play();
    };
}})();

So I have a file called data.js which has all the sample data in, and I’m getting the info here and displaying it and it works fine, but my problem is with the bottom one (below) where the url is shown, when the button is pressed it plays the url in the html5 player tag, this works, is there a way for me to put the contents of item.track1 where the URL is now, I can’t get it to put the contents of the data there.

WinJS.Utilities.query("#playMP3").listen("click", getStartVideoFuntion("http://www.ikkmusic.com/ikkmusic.com%20mix.mp3"));
  • 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-14T08:15:55+00:00Added an answer on June 14, 2026 at 8:15 am

    WinJS.Utilities.query(“#playMP3”).listen(“click”, getStartVideoFuntion(item.track1));

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

Sidebar

Related Questions

I am not sure if I have set the right title for this post
Ok so I'm not even sure how to title this post but I have
I'm not really too sure how to title this question, but I'm trying to
Ok I'm not sure the title of this post is the correct way to
Not sure about how to title this post. I just inherited a set of
Not entirely sure of a good title for this, feel free to edit it
Not sure if I've just missed something but this doesn't work: $(this).children('td.threadtitle a').html('thread title');
My apologies for an inaccurate title, but I'm not sure what this is called
for sure this is not the best title. I'm creating a system to generate
Not sure the title fully describes the problem/question I'm trying to ask, sorry. One

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.