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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T05:00:45+00:00 2026-06-13T05:00:45+00:00

Looking for some thoughts on the best way to accomplish this: I am creating

  • 0

Looking for some thoughts on the best way to accomplish this:

I am creating a wordpress site that will have wrist watch instructions for different brands. I have 12 brands with one PDF instructions file for each brand. People will be able to enter in a brand or product number and be able to download the instructions (there are tons of product numbers and we want to make it easy for them to just enter in a product number and then be shown the corresponding instructions, may sound like overkill but the focus is on usability). That site does what I want it.

Here is what I need, there are other sites we have that sell watches, we want an instructions link on the product page that will dynamically create a link based on the product number and link back to the PDF file on the wordpress. A variable is created on the product page with the product number so my thought was to modify the following code along with a php file that will link to the correct PDF based on the product number which the PDF file will be tagged with in wordpress (code found here http://filamentgroup.com/lab/jquery_plugin_for_requesting_ajax_like_file_downloads/):

jQuery.download = function(url, data, method){
//url and data options required
if( url && data ){ 
    //data can be string of parameters or array/object
    data = typeof data == 'string' ? data : jQuery.param(data);
    //split params into form inputs
    var inputs = '';
    jQuery.each(data.split('&'), function(){ 
        var pair = this.split('=');
        inputs+='<input type="hidden" name="'+ pair[0] +'" value="'+ pair[1] +'" />'; 
    });
    //send request
    jQuery('<form action="'+ url +'" method="'+ (method||'post') +'">'+inputs+'</form>')
    .appendTo('body').submit().remove();
  };
};

My other thought was to just link to the file by brand name. I would have a file named _instructions.pdf and then append the brand to the front of _instructions.pdf that then links to the file on the wordpress site. I’m trying not to over think it, anyone have any thoughts?

  • 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-13T05:00:46+00:00Added an answer on June 13, 2026 at 5:00 am

    I would never make assumptions about actual file names when communicating between sites. Keep your list of dependencies that might change to a minimum, so that you don’t have to modify multiple code bases in the future.

    My solution would be similar to what you propose, but you don’t need to use jQuery. If you can create a simple PHP file on the wordpress site, then just create normal hyperlinks to that file from the other site. For the hyperlink hrefs, use something like http://wordpresssite.com/directory-that-custom-php-file-is-in/php-file-name.php?prodnum=n, where you replace “n” with the actual product number for the page being viewed. Then, in the php file, grab the prodnum query string parameter value, look up the correct file name based on the one tagged with that product number, and send the PDF file itself back as the response. This will all be hidden from the user; she will simply click the hyperlink and the file will begin downloading.

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

Sidebar

Related Questions

I'm looking for some advice/opinions on the best way to approach creating a sort-of-dynamic
Looking for some advice on the best way to implement localization along with client
Hi I'm using this module pattern variant and I'm looking for the best way
I'm looking for the best way to implement the following. I have a MySQL
I'm looking for some db design help. I have an existing application that I'd
Looking for some best-practice guidance. Let's say I have a line of code like
Looking for some guidance on a WCF service I’m prototyping. I have a WCF
Looking for some resources on SOA / BPEL best practices. Specially BPEL.
looking for some help with images referenced within the stylesheet. I have no problems
I am looking for suggestions as to the best way to design objects for

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.