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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T12:03:14+00:00 2026-05-24T12:03:14+00:00

I’m really new to jquery and I am not a tumbleweed )-; so please

  • 0

I’m really new to jquery and I am not a “tumbleweed” )-; so please keep that in mind.

I have a jquery mobile app that current posts data to an api.

I have three xml documents based on daily, weekly, and monthly activities generated by an api. I need to take the value a user selects from three options (Previous Day Summary, Previous Week Summary, and Previous Month Summary) to call the correct XML document already provided for that time period, parse the XML document to locate three nodes, and then write the text from those nodes to a div for a different page of the jquery mobile application.

Right now the app isn’t calling the select change function. I’d appreciate any insight into what I’m doing wrong on that issue as well as any other suggestions for improving on my overall work here.

The XML document structure follows:

<StatusModel>

<Uid>
 xxxxxxx
 </Uid>

<Created>
2011-08-02T08:57:39.377
</Created>

<User>
xxxxxx
</User>

<Level>
x
</Level>

<Doing>
xxxxx
</Doing>

<Thinking>
xxxxx
</Thinking>

</StatusModel> 

The html for the select is as follows:

 <div data-role="fieldcontain">
 <label for="summaries" class="select">Review a summary of your scores and notes:</label>
   <select name="summaries" id="summaries" data-native-menu="false">
      <option value="time_period" selected>Choose a time period</option>
      <option value="Previous_Day_Summary">Previous Day Summary</option>
      <option value="Last_Week_Summary">Last Week Summary</option>
      <option value="Last_Month_Summary">Last Month Summary</option>
     </select>  
 </div>

The script is as follows:

$(function() {

$('[name = "summaries"]').change(function() {

alert("selection called");

$(this).children(":selected").text();

//getting the text from the summaryreviews form selection

var newVal = $("#summaries").val();

//newurl builds the url based on the timeframe chosen in the summaryreviews select box

var newurl = $("http://somedomainname/api/list" + "newVal");


$.ajax( {
type: "GET",
url: (newurl),
cache: false,
dataType: "xml",
success: summaryxml

});

function summaryxml(xml) {

    //parse the xml document including children using the *;

$(xml).find(*).each(function() {

    var level = $(this).find("level").text();
    var doing = $(this).find("doing").text();
    var thinking = $(this).find("thinking").text();


$('<li>' + 'level' + '<br />' + 'doing' + '<br />' + 'thinking' +  '</p></li>').appendTo("#summarylist");

//refresh the summarylist

$("#summarylist").listview('refresh');

    });
}

});

 });

The div I want to populate is on another jquery mobile page

<div data-role="page" id="summarynotes" data-theme="d" data-position="fixed" data-transition="slide">
<div data-role="header">

</div>


<div data-role="content" id="summarize" data-theme="d">


<ul id="summarylist" data-role="listview">

// Display Day, Week, or Month summary notes here


</ul>

<div data-role="footer" data-position="fixed">

</div>
</div>

  • 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-05-24T12:03:14+00:00Added an answer on May 24, 2026 at 12:03 pm

    A few thoughts that hopefully help:

    • did you mean to call document.ready on Line 1 of your JS? i.e. $(function() {
    • Line 3 – why not just use address your select by its ID? $('#summaries').change()
    • var newurl = $("http://somedomainname/api/list" + "newVal"); — this will evaluate to http://somedomainname/api/listnewVal. Is that what you intended?
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a jquery bug and I've been looking for hours now, I can't
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I need a function that will clean a strings' special characters. I do NOT
I have a bunch of posts stored in text files formatted in yaml/textile (from
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
I am reading a book about Javascript and jQuery and using one of the

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.