Anchor link with subpages









up vote
0
down vote

favorite












Bonjour From France !



I am working on a webapp and I'm stuck with how to go to a specific div in a page from another :
I have one page (myapp/#!/shop.php) with a list of products and a link on every product to a detail page (myapp/#!/shop-item.php).
The user scroll to a product from the list page, click on an item to see details.
I need to create a link in the detail page to go back to the list page BUT specifically to the last Item the user clicked on (to avoid the user to scroll another time the complete list).



Notes :
* I am using a jquery template
* The list page contains headers and mysql queries
* Notice that the link between pages contains myapp/#!/ + thenameofpage.php



Thanks for helps !










share|improve this question

















  • 1




    Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See: How to create a Minimal, Complete, and Verifiable example.
    – Derek Pollard
    Nov 11 at 6:17










  • I don not do nothing at the moment. So I have no code for instance...
    – jpsFR
    Nov 11 at 6:36










  • I'm not exactly sure how your paging works, but can you use a regular anchor? e.g. myapp/#!/shop.php#item5
    – showdev
    Nov 11 at 7:11











  • I finally understood that My problem is that I am using Framework7 and I do not know how to do an achor link...
    – jpsFR
    Nov 11 at 15:41














up vote
0
down vote

favorite












Bonjour From France !



I am working on a webapp and I'm stuck with how to go to a specific div in a page from another :
I have one page (myapp/#!/shop.php) with a list of products and a link on every product to a detail page (myapp/#!/shop-item.php).
The user scroll to a product from the list page, click on an item to see details.
I need to create a link in the detail page to go back to the list page BUT specifically to the last Item the user clicked on (to avoid the user to scroll another time the complete list).



Notes :
* I am using a jquery template
* The list page contains headers and mysql queries
* Notice that the link between pages contains myapp/#!/ + thenameofpage.php



Thanks for helps !










share|improve this question

















  • 1




    Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See: How to create a Minimal, Complete, and Verifiable example.
    – Derek Pollard
    Nov 11 at 6:17










  • I don not do nothing at the moment. So I have no code for instance...
    – jpsFR
    Nov 11 at 6:36










  • I'm not exactly sure how your paging works, but can you use a regular anchor? e.g. myapp/#!/shop.php#item5
    – showdev
    Nov 11 at 7:11











  • I finally understood that My problem is that I am using Framework7 and I do not know how to do an achor link...
    – jpsFR
    Nov 11 at 15:41












up vote
0
down vote

favorite









up vote
0
down vote

favorite











Bonjour From France !



I am working on a webapp and I'm stuck with how to go to a specific div in a page from another :
I have one page (myapp/#!/shop.php) with a list of products and a link on every product to a detail page (myapp/#!/shop-item.php).
The user scroll to a product from the list page, click on an item to see details.
I need to create a link in the detail page to go back to the list page BUT specifically to the last Item the user clicked on (to avoid the user to scroll another time the complete list).



Notes :
* I am using a jquery template
* The list page contains headers and mysql queries
* Notice that the link between pages contains myapp/#!/ + thenameofpage.php



Thanks for helps !










share|improve this question













Bonjour From France !



I am working on a webapp and I'm stuck with how to go to a specific div in a page from another :
I have one page (myapp/#!/shop.php) with a list of products and a link on every product to a detail page (myapp/#!/shop-item.php).
The user scroll to a product from the list page, click on an item to see details.
I need to create a link in the detail page to go back to the list page BUT specifically to the last Item the user clicked on (to avoid the user to scroll another time the complete list).



Notes :
* I am using a jquery template
* The list page contains headers and mysql queries
* Notice that the link between pages contains myapp/#!/ + thenameofpage.php



Thanks for helps !







jquery anchor anchor-scroll data-paging






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 11 at 5:59









jpsFR

297




297







  • 1




    Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See: How to create a Minimal, Complete, and Verifiable example.
    – Derek Pollard
    Nov 11 at 6:17










  • I don not do nothing at the moment. So I have no code for instance...
    – jpsFR
    Nov 11 at 6:36










  • I'm not exactly sure how your paging works, but can you use a regular anchor? e.g. myapp/#!/shop.php#item5
    – showdev
    Nov 11 at 7:11











  • I finally understood that My problem is that I am using Framework7 and I do not know how to do an achor link...
    – jpsFR
    Nov 11 at 15:41












  • 1




    Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See: How to create a Minimal, Complete, and Verifiable example.
    – Derek Pollard
    Nov 11 at 6:17










  • I don not do nothing at the moment. So I have no code for instance...
    – jpsFR
    Nov 11 at 6:36










  • I'm not exactly sure how your paging works, but can you use a regular anchor? e.g. myapp/#!/shop.php#item5
    – showdev
    Nov 11 at 7:11











  • I finally understood that My problem is that I am using Framework7 and I do not know how to do an achor link...
    – jpsFR
    Nov 11 at 15:41







1




1




Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See: How to create a Minimal, Complete, and Verifiable example.
– Derek Pollard
Nov 11 at 6:17




Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See: How to create a Minimal, Complete, and Verifiable example.
– Derek Pollard
Nov 11 at 6:17












I don not do nothing at the moment. So I have no code for instance...
– jpsFR
Nov 11 at 6:36




I don not do nothing at the moment. So I have no code for instance...
– jpsFR
Nov 11 at 6:36












I'm not exactly sure how your paging works, but can you use a regular anchor? e.g. myapp/#!/shop.php#item5
– showdev
Nov 11 at 7:11





I'm not exactly sure how your paging works, but can you use a regular anchor? e.g. myapp/#!/shop.php#item5
– showdev
Nov 11 at 7:11













I finally understood that My problem is that I am using Framework7 and I do not know how to do an achor link...
– jpsFR
Nov 11 at 15:41




I finally understood that My problem is that I am using Framework7 and I do not know how to do an achor link...
– jpsFR
Nov 11 at 15:41

















active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53246250%2fanchor-link-with-subpages%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53246250%2fanchor-link-with-subpages%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







這個網誌中的熱門文章

How to read a connectionString WITH PROVIDER in .NET Core?

In R, how to develop a multiplot heatmap.2 figure showing key labels successfully

Museum of Modern and Contemporary Art of Trento and Rovereto