• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

ID (fka anchor) link to use for QR code

New Here ,
Jul 30, 2024 Jul 30, 2024

Copy link to clipboard

Copied

I'd like to use an ID (used to be anchor) on a page for a precise QR code link. If possible, how do I do that?

TOPICS
How to

Views

168

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 30, 2024 Jul 30, 2024

Copy link to clipboard

Copied

Although your question is clear, there are two inaccuracies...

Firstly, if you'd like clarification on the url to be transmitted to generate a QRCode pointing to a specific location in the document, simply indicate this anchor in the URL as you would for a link... so all you have to do is generate a QRCode pointing to, for example, https://www.the_web_server.com/the_page.ext#the_anchor

And secondly, would you like to understand how to generate the QRCode itself?
Therein lie two underlying questions :

  • Either, use a free online tool... just google Online QRCode generator... but free means... difficulty of updates (while preserving the same scheme), sometimes time-limited, ads and sniffer linked, etc... etc....
  • Either use your own library... for example... https://phpqrcode.sourceforge.net/... very easy to use and guaranteeing greater independence.

 

Please don't hesitate if you need further explanations.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 30, 2024 Jul 30, 2024

Copy link to clipboard

Copied

Thank you for your response. I don't understand the "two inaccuracies" statement, however.

 

My intent was to ask how the ID/anchor is "written" so when I create a QR code to link directly to this specific location on a page, it will work. I still am unclear as to how to actually write the link. Does it (#newlink) immediately follow the page url or is there a different naming convention?  page.html#newlink. I'm sorry, I cannot understand your example with underscores. We don't use underscores in our web files.

 

My university has a QR code generator that we use.

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 31, 2024 Jul 31, 2024

Copy link to clipboard

Copied

https: // Example.com/pagename.html/#QRLink1

https: // Example.com/pagename.html/#QRLink2

 

pagename.html/#QRLink1

pagename.html/#QRLink2

 

Content on page:

<div id="QRLink1">

Your QR Code here

</div>

 

<div id="QRLink2">

Your QR Code here...

</div>

 

Hope that makes sense.

 

Nancy O'Shea— Product User, Community Expert & Moderator

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 30, 2024 Jul 30, 2024

Copy link to clipboard

Copied

I'm sorry, certainly the word “inaccuracies” is probably a bit too strong in English (I'm from France, and English isn't my usual language)... in fact I wasn't sure whether you wanted to ask about the url itself or the QRCode generation.

 

Now that it's clearer to me, as I was saying earlier, use a URL as you would a simple link, except that the url must be absolute, otherwise your QRCode printout won't know where to start.

 

The underscores used are simply to allow you to read the sentence in a human way... the url is purely arbitrary and just allows you to understand its construction 🙂

 

https ://www.the_web_server.com/the_page.ext#the_anchor

or

https ://www.the_web_server.com/an_eventual_folder/the_page.ext#the_anchor

 

  • www.the_web_server.com must be replaced by your own domain
  • an_eventual_folder must be replaced by the folder name if one folder is present... (more folders if need in the path)
  • the_page.ext must be replaced by the page name (if the webserver default page is used, it can be omited)
  • #the_anchor must be replaced by the anchor (ID) name, but the #must be present just at start

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 31, 2024 Jul 31, 2024

Copy link to clipboard

Copied

I confess I don't understand your approach? 

 

On the one hand,

quote

https: // Example.com/pagename.html/#QRLink1

By @Nancy OShea

 

The links you give as an example use a slash between the page and the anchor, which will cause a syntax error. there shouldn't be a slash between the page extension and the anchor... just the hash symbol #.... well, that's how it's worked since we've been providing this service for our customers here at the https://qrcodes.epsyllum.net/ studio.

And on the other hand,

quote

Content on page:

<div id="QRLink1">

Your QR Code here

</div>

Hope that makes sense.

By @Nancy OShea

 

Why would you want to insert the QRCode within the web page itself... generally, the QRCode will be placed on a medium other than the web, precisely to link this medium (paper, video...) to the web...

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 01, 2024 Aug 01, 2024

Copy link to clipboard

Copied

LATEST

You're right about the stray slash /..  That was my bad.  🤕

 

It should be Example.com/pagename.html#QRLink1  (where QRLink1 is the target content).

 

Dreamweaver is web authoring software.  In that context, I assume this question is about creating a website.

 

Without more information to go on, like the site's file structure, this is mostly guesswork.  I'm afraid my Crystal Ball isn't working. There's too much interefence from the #ParisOlympics.  😍

 

pngtree-bohemian-divination-magic-crystal-ball-png-image_6637893.jpg

 

Nancy O'Shea— Product User, Community Expert & Moderator

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines