Questions tagged [anchor]
An anchor (<a>...</a>) is a HTML element used to define the link between the current element (the anchor) and the destination (URI).
4,837
questions
0
votes
0
answers
12
views
Transaction simulation failed: Error processing Instruction 0: Cross-program invocation with unauthorized signer or writable account
I am getting this error while adding a new blog: Error: Failed to send transaction: Transaction simulation failed: Error processing Instruction 0: Cross-program invocation with unauthorized signer or ...
0
votes
0
answers
14
views
Solana Rust (Anchor): TypeError: Cannot read properties of undefined (reading '_bn')
I'm trying to build a simple application with React that interacts with my Solana smart contract. When I click the <button> which calls getMsg() function, the following error is displayed.
...
0
votes
1
answer
48
views
Anchor test transaction failed with "An account required by the instruction is missing"
I am trying to code an anchor code where I can mint a new edition nft from a master edition ntf. I looked into the metaplex documentation and rust api documentation to come up with the code below, and ...
0
votes
1
answer
27
views
python tkinter place method from right
How can I make absolute placement from right? This is a piece of code I use:
# search textbox + search button
search_box = customtkinter.CTkEntry(master=root, placeholder_text="CTkEntry")
...
0
votes
4
answers
29
views
CSS anchor text-align its content center not working
Try to align the div in the center of the link, not working. still align left.
a {
display: block;
text-align: center;
background: green;
}
div {
width: 100px;
background: red;
}
<a&...
0
votes
0
answers
41
views
How to Solve "Links must have discernible text: Element has no title attribute" error in Anchor Tag? [duplicate]
Error Type : "Links must have discernible text: Element has no title attribute"
-1
votes
0
answers
26
views
Solana Project with Errors
ALL MY INSTALLATIONS in My PC:
C:\Users\carib\Desktop\UDEMY\UDEMY_BLOCKCHAIN\7_SOLANA_BLOCKCHAIN\apps_sol\calcdapp>node --version
v16.14.0
C:\Users\carib\Desktop\UDEMY\UDEMY_BLOCKCHAIN\...
-1
votes
0
answers
27
views
Solana Project Errors
$anchor build
Failed to obtain package metadata: cargo metadata exited with an error: error: failed to load manifest for workspace member \\?\C:\Users\carib\Desktop\UDEMY\UDEMY_BLOCKCHAIN\...
1
vote
0
answers
41
views
Anchor links jump to accurate position after images are loaded
Similar to this post, my case doesn't use React Router or jQuery. It's just a single page and vertically long.
As for the title, anchor links don't jump to the accurate position since the images are ...
0
votes
0
answers
15
views
IOS anchor link scroll to section not working
I'm facing a bit of an odd issue, I have a site which has anchor section links for navigation such as this:<a href="#people">People</a> ... <section id="people" ...&...
1
vote
0
answers
14
views
How to have an anchor tag linking to part of the page alongside base_url?
I have a site that for various reasons (mobile browser consistency mostly) needs the <base href="/"> tag in the <head>.
The only problem is this has affected anchor tags that ...
1
vote
1
answer
32
views
How can I change the sites url depending on the anchor tags?
urls.py:
app_name='listing'
urlpatterns = [
url(r'^listing/select/$',views.platformselect,name='listingselect'),
url(r'^listing/',views.listingpage,name='listingpage'),
]
views.py:
def ...
-1
votes
0
answers
23
views
How to get <a> tags value to django views?
In my django template I have some tags. They linked to my other pages. I want to know which anchor tag clicked in my views. How can I do that?
<div class="amazon">
...
0
votes
2
answers
32
views
Angular ver. 14.0.2, How to create anchors that redirect to certains blocks of the page?
I'm currently using Angular for a few weeks for a small project and I wanted to add an anchor in my app.
So normally in order to add an anchor without using any framework, you'd create a block with an ...
-1
votes
1
answer
14
views
YOLOV1 theory of 2 bounding box predictors in each grid cell and its possible power as psuedo anchor boxes
After YOLO1 there was a trend of using anchor boxes for a while in other iterations as priors (I believe the reason was to both speed up the training and detect different sized objects better)
However ...
0
votes
0
answers
17
views
How can I use jQuery to iterate anchor points and scroll to a position
I have the following image map that relate to anchor points in this table.
<table id="itemslist" class="table">
<tbody>
<tr data-position="1">
...
1
vote
0
answers
35
views
Pressing enter key to close button closes my modal but the event is attached to opener element and reopens the modal
I created a custom modal.
when the modal is closed,
it needs to move focus to the modal opener(focus restoration)
With this code, I can restore the focus and opener element focused OK.
import React, { ...
0
votes
1
answer
27
views
How can I do element into anchor tag dont have to clickable?
I have a card and this card is clickable due to anchor tag
<a href="{{ route('frontend.adv.show', $item->id) }}" class="card">
<div ...
0
votes
1
answer
18
views
Node express path hash anchor
I currently have the following url structure in my Node application:
http://localhost:3000/#record_2
Clicking on a link like the above will scroll the webpage to the element with the matching id of ...
0
votes
1
answer
12
views
Remove open class, on mobile navigation with jquery when anchor link is clicked
i read a lot of similar topics and created a code that is suppose when i click on a button with class - __mPS2id - to remove "opened" in my open menu with class "menu_mobile" but i ...
0
votes
1
answer
64
views
anchor build error: got target is not supported
Problem
When i try to run anchor build, i get the following error:
error: target is not supported, for more information see: https://docs.rs/getrandom/#unsupported-targets
--> /Users/mac/.cargo/...
1
vote
1
answer
44
views
Firefox uses URL-encoded part of href as the whole href
I have a html tag with a query parameter containing a URL-encoded URI:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta ...
0
votes
0
answers
35
views
Why my anchor link on shopify menu doesn't work on Safari?
I am using Shopify with PageFly builder and the issue is, that on Safari and iOS, all anchor links won't work. Even on Desktop or mobile.
I used all methods :
https//XXXXX/#link
#link
https://xxxxxx #...
0
votes
0
answers
15
views
Anchor Link with smooth scroll from a Container/Button to a other Section on my Site is not working
i try to create a smooth scrolling Anchor Link from my Glassmorphism-Button/Container to a other section of my Website. I tried different Ways to fix the Problem but its not working.
The id="page#...
0
votes
0
answers
18
views
Anchor links not working with scroll snapping
I am using the following script to enable scroll snapping:
<style>
.scroll-snap-wrapper {
overflow: scroll;
scroll-snap-type: y mandatory;
scroll-behavior: smooth;
...
0
votes
1
answer
53
views
How are GitHub markdown anchor links constructed?
From a GitHub Markdown header
# Söme/title-header_
GitHub's renderer creates the anchor
#sömetitle-header_
Apparently, spaces and / are removed, letters (ASCII and Unicode) are lowercased, and - and ...
2
votes
2
answers
30
views
How to use a element with href property in combination with react-router?
I want to use the navigation.push(url) functionality when clicking on an anchor tag element so that the app doesn't refresh by navigating to another page, and I can keep the application state.
The ...
0
votes
2
answers
38
views
Make anchor tag take up 100% of div
I want the "Home" and "History" tab to take up 100% of the bottom div but when I enter 100% in the css it clips out. I also want the overflow to be hidden so making it visible isn'...
0
votes
0
answers
14
views
How can Chrome be forced to favor the anchor specified in URL over the last scrollbar position?
On a site that has an anchor in the URL, when you first go to it in Chrome, it jumps to that anchor properly.
For example: https://plato.stanford.edu/entries/happiness/#HybAcc
But then, if you scroll ...
0
votes
0
answers
15
views
How to recognize utm parameter in jquery before anchor link?
On website we have popups what have unique url with anchor. Problem is url with UTM parameter doesnt work and showing this error:
Uncaught Error: Syntax error, unrecognized expression: .utm_blah=...
1
vote
1
answer
38
views
How to create an anchor link to a Sitecore rendering
We are using Sitecore 10.1 and GlassMapper 5. We would like to create anchor links to renderings on the same page and to other pages.
Ideally we'd like to use the general link field type to generate ...
0
votes
0
answers
10
views
Regular expression within anchor tag to match a file name
I am trying to match a part of the file name in the anchor tag with href like as follows.
<a href="../../examples/ai-python-1.0.3.tar.gz.">Download</a>
What is the regular ...
0
votes
1
answer
11
views
How to target text fragment on page with that fragment as param on URL
About a week ago I learned that you could add text segments to a URL and jump to that text on a page. I didn't even notice at first until I looked at the URL of a page that came up in a search and ...
0
votes
0
answers
28
views
How to print under a fixed banner in python
I want to be able to print the standard output while keeping a banner fixed anchored at the top of the console
Is there a way to do it that is simple enough to avoid refactoring the whole code?
-1
votes
1
answer
50
views
How do I prevent the anchor tag from overwriting my CSS style
I'm very new to all this. I'm trying to make my image into a link using the anchor tag but doing so seems to ignore the previous style I had for the image and I'm not sure why. In short: why does ...
0
votes
0
answers
30
views
Header ID anchore in markdown file is working in preview mode in vscode but it doesn't work in browser
sorry for inconvenient description
I'm doing a project on git-lab using vs-code, in documentation in doc.md file the header id anchors working only in preview mode in vs code and when i try to test it ...
0
votes
1
answer
47
views
Derive another address with the same pubkey and different uuid
I want to program a smart contract that stores data of a random generated "planet". I generated the data for the planet in another program and i use a uuid to recreate the planet.
Now i want ...
0
votes
1
answer
40
views
Link to div scrolls to a wrong position
On an article page, there are user comments which are marked with div id.
<div id="comment1234">
Comment
</div>
Users get a notification when the comment has been approved ...
0
votes
1
answer
28
views
Change video in iframe and scroll to iframe
I have one main iframe (vidframe) on a webpage. On that same page I have several links on different parts of the page to other vimeo videos that when clicked on, show in the main iframe. However, I ...
-1
votes
2
answers
42
views
Center Vertically Anchor Tag in inline-block [duplicate]
Hello I need to center anchor tag vertically and I'm using vertical-align: middle; but it doesn't work for me. Can someone tell me what can I do. I'm using inline-block for display and MDN Reference ...
0
votes
1
answer
24
views
Why on my react web the anchors of social media does not works propertly , and a misterious details it works just when user reload the page?
When user click, it does not open nothing and once reload the browser the
anchor open the url social media and all is fine until user navigate to other
page and come back again to Contact ...
0
votes
0
answers
13
views
How do I adjust the position where an anchor lands?
I'm using React and Material UI for this,
On my navigation bar at the top of the page I have several links that are anchor links:
return (
<Box sx={{
display: 'flex',
}}>
...
0
votes
1
answer
40
views
Angular routerLink with automatic href
In my Angular application I have a lot of buttons which navigate to a different location (navigation bar, etc.). As I have a single-page application (SPA) this is of course simulated by Angular.
...
2
votes
1
answer
30
views
Anchor tag clicks to differentiate within same onClick Javascript function
I have a simple anchor tag as below:
<a onclick="{!c.handleClick}" >Major</a>
<a onclick="{!c.handleClick}" >Minor</a>
Within handleClick function, I am ...
1
vote
0
answers
46
views
How to make a value into clickable value in laravel nova?
I am using laravel-nova for my UI pages,i have one value which should be displayed as masked value based on the some logic up to this part it's working fine .Now my requirement is the masked value ...
0
votes
0
answers
7
views
Using bootstrap navbar when i click on dropdown its just open dropdown items but i want to open another page when i click on "dropdown"
dropdown
Features
Free Quote
Our Team
Testimonial
...
0
votes
1
answer
36
views
Close hamburger menu when click on anchor links on same page (in mobile view)
I use this HTML, CSS and Javascript hamburger menu code: In the mobile view, it doesn't close the menu for me when I click on one of the other menus on the left that have an anchor. It works for the ...
0
votes
1
answer
44
views
Bold submenu items in sidebar menu
I followed the explanation below to create what I needed, but there is an additional requirement i am trying to fulfill.
highlight the navigation menu for the current page
My submenu items are anchor ...
0
votes
0
answers
20
views
Is it OK to have a nav element with a single link?
Is it good practice to use the nav HTML element to host a single anchor tag (link)?
In my use case, I have a page containing only a header with title tags, a form and a single back link.
I think I ...
0
votes
2
answers
121
views
Anchor tests not connecting to localhost:8899
I ran an anchor init, anchor build, and then deployed.
I ran "anchor run test" I keep getting this error even though my local validator is running.
What gives?
Error:
Is initialized!:
Error: ...