R
R
Roman Friedman2017-04-01 13:23:56
JavaScript
Roman Friedman, 2017-04-01 13:23:56

How to make content appear without reloading the page?

Greetings. There is a navigation bar on the left (vertical), bootstrap is used. How can I make the content of these sections appear on the right when clicking on the menu sections on the left, without reloading the page? Are there any tools or similar implementation examples?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Ruslan Polin, 2017-04-01
@VeRe777

How would you implement it using ajax. There is nothing difficult in this.
implementation example
another example
example without jquery
example from community habr
Did you google it before asking a question?

E
Eugene, 2017-04-01
@e_snegirev

When clicking on a link, do not go to it, override the default action, load the required block from the required URL and write its content to the content block on the current page
$('a').on('click', function(e) {
$( " #content" ).load( $(this).attr('href') + " #content" );
});

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question