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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T03:39:02+00:00 2026-06-16T03:39:02+00:00

I have created a pagination input that on change will go to the value

  • 0

I have created a pagination input that on change will go to the value entered into the input.

enter image description here

It will detect the page range and allow navigation between those pages in that range.
e.g /image-gallery-album-1.aspx?page=3

<form type="get" onchange="return false">
  <div class="pagerUI">
    <table border="0" cellspacing="0" cellpadding="0">
      <tr> 
        <!-- previous page -->
        <xsl:if test="$page &gt; 1">
          <td class="pager-prev"><a class="previous" href="{concat('?page=', $page - 1, $qs)}" title="Previous page">&#8249;</a></td>
        </xsl:if>
        <td>Page</td>
        <td><input type="number" name="page" id="page" min="1" >
          <xsl:choose>
            <xsl:when test="$page=1">
              <xsl:attribute name="value">1</xsl:attribute>
            </xsl:when>
            <xsl:otherwise>
              <xsl:attribute name="value"> <xsl:value-of select="$currentPageNumber" /> </xsl:attribute>
            </xsl:otherwise>
          </xsl:choose>
          <xsl:attribute name="max"> <xsl:value-of select="$numberOfPages"/> </xsl:attribute>
          </input></td>
        <td>of <xsl:value-of select="$numberOfPages"/></td>
        <!-- next page -->
        <xsl:if test="$page * $resultsPerPage &lt; count($matchedNodes)">
          <td class="pager-next"><a class="next" href="{concat('?page=', $page + 1, $qs)}" title="Next page">&#8250;</a></td>
        </xsl:if>
      </tr>
    </table>
  </div>
</form>

However, when I added this to the XSLTSearch code it doesn’t work as the URL loses the search string.

So instead of navigating to: /image-search.aspx?search=football&page=3

It navigates to: /image-search.aspx?page=3 Which doesn’t display any results on that page as it’s missing the search criteria to display the search results.

I tried to change the form and include an “action” that would change the URL to include the search value but I can’t include the input value as it’s dynamic.

For example with the below form if I enter any value into the input the URL updates to following: /image-search.aspx?search=otbra&page= It’s missing the entered number of the input value.

Search form with onchange and action and method post attributes:

<form type="get" onchange="return false">
  <xsl:attribute name="method"> <xsl:text>post</xsl:text> </xsl:attribute>
  <xsl:attribute name="action"> <xsl:text>?search=</xsl:text> <xsl:value-of select="$search"/><xsl:text>&amp;</xsl:text>page= (input value)</xsl:attribute>

Is there some javascript or some way of detecting the value submitted and parsing it into the search string of the URL?

Any assistance would be appreciated. Cheers, JV

  • 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-16T03:39:04+00:00Added an answer on June 16, 2026 at 3:39 am

    NOTE: As comment on your post says the likely issue is with the $qs variable, however here’s an explanation of how you can get Query String values in Umbraco, for reference.


    In Umbraco you can retrieve a Query string value in XSLT using umbraco.library

    So to retrieve the value of search you would call something like:

    <xsl:variable name="searchValue" select="umbraco.library:RequestQueryString('search')"/>
    

    This creates a variable called searchValue which you can then use to re-inject the query string value in your url.

    Something like this:

    <a class="next" href="{concat('?page=', $page + 1, '&amp;search=', $searchValue)}" title="Next page">&#8250;</a>
    

    More information on umbraco.library can be found on the our.umbraco.org site.

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

Sidebar

Related Questions

I currently have created a pagination JavaScript class that will automatically paginate comments when
I have created some JQuery that will expand a div 'popup' on hover and
I have created one .html page. I have to use pagination in it so
I have created an AJAX function that is used with pagination links to load
I have created an android application that calls (using kSOAP library) a SOAP based
I have created a custom post type named People. I have created a page
I have created a function that shows/hides different messages according to a combination of
I have created a dialog and got a problem that only part of the
I have a JSF page that displays a table from an object called TableQuery
I am having difficulties implementing the codeigniter pagination class. I have created my model,

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.