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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T04:18:18+00:00 2026-06-05T04:18:18+00:00

I have got Pjax loading the inner content for my site, but for PDFs

  • 0

I have got Pjax loading the inner content for my site, but for PDFs it fails and seems to try and read the content within the container, rather than forcing it try its default behaviour. Resulting in stuff like this

%PDF-1.4 %���� 74 0 obj <> endobj xref 74…

http://nti.mywellbeing.org/articles/prioritising-tools-and-techniques and then clicking on the Find Out More button…
http://ogilvyeast.mywellbeing.org/ckeditor_assets/attachments/14/8C_johari_window.pdf

How can I make pjax fail/default to standard behaviour?

Thank you

  • 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-05T04:18:21+00:00Added an answer on June 5, 2026 at 4:18 am

    As far as I can tell, you’re probably using the pjax-rails gem. In that case just set the data-skip-pjax attribute on the PDF link to do a full page load:

    <a href="/ckeditor_assets/attachments/14/8C_johari_window.pdf" target="_blank" data-skip-pjax="true">Find out more...</a>
    

    Or using link_to:

    link_to "Find out more...", whatever_path, :target => "_blank", :"data-skip-pjax" => true
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I finally got pjax working, but I have another question.. How do I add
I have got a field that has been setup to allow for Null, but
I have got two sections with billing and delivery address within a datalist: <asp:DataList
I have got this function : function getTitle(){ $crawler = new DOM_Crawler($this->url); try{ if
I have got a Wavefront OBJ Parser up running but after spending endless hours
I have got the following code from here to read an Excel file using
i have got <div><a class='link' href='index.php' data-container='target'>Load</a></div> <div class='target'></div> i need to write jquery
I have got entity: Entry { public virtual ICollection<Content> Contents { get; set; }
I have got a path to some external program in my pom.xml, but this
I have got the resize thing working but when i use the pie chart

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.