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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T17:27:37+00:00 2026-06-08T17:27:37+00:00

The problem i am facing is in the GetAjaxPageBack function whenever i try to

  • 0

The problem i am facing is in the GetAjaxPageBack function whenever i try to write any function in it, like split, or any other function it do nothing and if i commented out the line
var url = url.split(“?”); is start working fine, but why i need to split the url and want to get the query string and want to resend it using ajax to fetch the records.

<script language="javascript">

function GetAjaxPageBack(url) {

//this line is not working  
var url = url.split("/"); 

alert(url);


/*  $.post(url,

function(data){     
    if (data != "") 
    {               

    }
}); 
*/}


function GetAjaxPage(value)
{   
if(value=='n')
{
    val     = $('#abc').val()+1;
    $('#abc').val(val);
}else
{
    val     = $('#abc').val()-1;
    $('#abc').val(val);
}
history.pushState(null, null, "?abc="+$('#abc').val());  

window.addEventListener("popstate", function(e) {           
    GetAjaxPageBack(location);          
});


}

</script>

</head>



<body><br />
<a href="javascript:;" onclick="GetAjaxPage('p')">Prev</a>&nbsp;|&nbsp;
<a href="javascript:;" onclick="GetAjaxPage('n')">Next</a>

<br /><br />

<input type="text" name="abc" id="abc" value="1" > 

please help out, thanks

  • 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-08T17:27:38+00:00Added an answer on June 8, 2026 at 5:27 pm

    The location isn’t a string but a Location object. Try using it’s native functions or converting it to a string first.

    location.toString().split('/')
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

iam facing problem in passing array to view. this is my controller code.. function
I am facing problem while aligning two text, one in center and other text
I am facing problem that whenever I turn off security settings in IE8, in
I have facing problem to access xmlrpc. Whenever I tried to access xmlrpc through
i am facing problem whenever i am running my wsdl2java the ExtensionMapper class is
i am facing problem with the return type for this function and not really
I am facing problem in android-ndk. When i try to call a java nan-static
i am facing problem in jquery tool tip, when i am searching any image
I am new to android here i am facing problem when i try to
I am facing problem with connection time out,during jquery ajax operation. The problem scenario

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.