Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

82
Views
Invoking javascript to force a browser to return more than the first page on search

I use a forum which has a search feature, but it will only return the first page of search results (25 count). Someone gave me this piece of javascript which could be used to get a browser to return and access all of the pages of search results. I don't understand how that might work. I'm using Edge.

javascript:var frm = document.frmPage1; if (frm==null || frm.CtlPaging_selPage==null) alert("Not a TS search page"); else { frm.CtlPaging_selPage.value = prompt("choose page",2); frm.submit(); }

Tradestation user forum There are many things about this forum that are broken. It was designed for IE and there has been minimal updating. Users generally hate it.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

This code is designed to work with a specific pagination script that already has somewhere in its design an option that turns paginated results on or off.

What this code is doing is checking first to see if document.frmPage1.CtlPaging_selPage exists, because that is where this form stores the variable that defines if it will paginate or not. If it finds this, it uses a prompt to set it to the value to "2" which tells the system to return unpaginated results, then it submits the form.

Most likely the forum either has a an input somewhere you are not seeing that allows you to turn off pagination, or the developer/admin who setup the forum is hiding this option on purpose, but did not actually delete it from his code.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!