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

  • Home
  • SEARCH
  • 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 8643293
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T11:59:56+00:00 2026-06-12T11:59:56+00:00

I have two div tags in single HTML with data-role as ‘page’. First one

  • 0

I have two div tags in single HTML with data-role as ‘page’. First one is a form which contains a table with two columns say A and B and a button.The second page contains a text box and dropdown and sublit button. On clicking of button in first page jquery should call web-service and should navigate to second div in which, the dropdown should be filled with result of webservice.
Finally on clicking submit whole data should be converted to a xml and should be posted to another webservice.

Please help me in this scenario

HTML PAGE

     <body>
    <div data-role="page" id="page-a">
        <div data-role="header"><h1>Place order</h1></div>
        <div data-role="content">
            <table align="center">
            <tr>
            <th>Part Number</th>
            <th>Quantity</th>
            </tr>
            <tr>
            <td><input type="text" id="t1"></td>
            <td><input type="text" id="q1"></td>
            </tr>
            <tr>
            <td><input type="text" id="t2"></td>
            <td><input type="text" id="q2"></td>
            </tr>
            <tr>
            <td><input type="text" id="t3"></td>
            <td><input type="text" id="q3"></td>
            </tr>
            <tr>
            <td><input type="text" id="t4"></td>
            <td><input type="text" id="q4"></td>
            </tr>
            <tr>
            <td><input type="text" id="t5"></td>
            <td><input type="text" id="q5"></td>
            </tr>
            </table>
    </div>
    <center>
    <div>
        <a href="#page-b" id="nextpage" data-role="button">Next</a></center>
        <!--<button  onclick="jaffa()">NEXT  </button>-->
    </div>
    </center>
    </div>

    <div data-role="page" id="page-b">
        <div data-role="header"><h1>Head</h1></div>
        <div data-role="content">
        <table align="center">
        <tr>
        <td> <label for="uname" class="floatleft" >Customer Reference ID</label>     </td>
        <td> <input id="cref"type="text" name="name" size="20"  data-mini="true"  autocomplete="off" style="width:220px;" class="floatleft1"/></td>
        </tr>
        <tr>
        <td><label for="address" class="floatleft">Address</label></td>
        <td><select id="addr">
        <option>--SELECT--</option>
        </select></td>
        </tr>
       </table>             
        </div>
        <div>
      <button  onclick="execute()"> place order </button>
      </div>

    </div>

SCRIPT

      <script type="text/javascript"> 
       $.("#nextpage").click(function)()        {
    alert("jaffa");
    $.ajax({

            type: "POST",

            url:"http://172.18.98.31/TrwAftermarket_M/login.asmx/GetShipToList",
            data: {UserId:"TRW2008" , Storefront:"DE" , CustomerNumber:"987654"},
            dataType: 'xml',
            success:function(data, textStatus, jqXHR){

            var xml = '';
            xml = $(data).find('string').text();
            xmlDoc = $.parseXML(xml),
            $xml = $( xmlDoc ),
            $(xml).find('shiptoName').each(function(){
                                    var value = $(this).text();
                                    //alert(value);

                                    $(addr).append("<option class='ddlcustomer' value='"+ value +"'>"+value+"</option>");
                                });
        },

         error: function (jqXHR, textStatus, errorThrown) { 
                                      alert("Error occured");
                                        alert(textStatus); 
                                       alert(errorThrown);
                         } 

                    });
               });
  • 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-12T11:59:57+00:00Added an answer on June 12, 2026 at 11:59 am

    Try

    var position = $('#page-a').position();
    
    $("html, body").animate({
        scrollTop: position.top
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two div in my website page one beside the other(one left and
I have two div tags - current page appears like ------------- <tag-1> <tag-2> ---------------
I have one parent div tag containing two child div tags and i want
I have two <div> tags inside a container. one of them floating right and
I have a view page that has two DIV tags. If the session[UserType] =
It is a basic HTML question. I have some div tags, which have some
I have two div tags, one is for the search and the other is
I have two pages (basically two div tags; only one is shown at a
I have two div tags, first div is the father and the second div
At the moment, I have two div tags which are set to float:left; I

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.