menu are ID based so open in one page just scrolling down the page, how can I go the the page id from separate page [closed] - javascript

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I have menu in the website most of them are ID based so open in one page just scrolling down the page, but I have made couples pages which has different page so, how can I go the the page id which which will scroll down to the id when I click the menu from the different page? Let me be specific, Here is the project which I am working for http://pasalnepal.com.np/yadavbhatta/ so the forum is separate page in the menu, so when I click on education, it should go to education part of the page.

This is due to some JavaScript code of your project. If I disable JavaScript in my browser and open http://pasalnepal.com.np/yadavbhatta/#education it will jump to the education anchor like its supposed to. But if JavaScript is enabled it jumps to the anchor and goes to the top of the page immediately.

Related

How do I get all my pages to be updated automatically when I update a page? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
So, as I was making my website, I started to have many pages. So, I wanna ask today, if ya'll know anyway way how I can make a change to a page of my website, and those changes be apply to my other pages automatically. For example, if I make a change to my nav bar of my website, I don't wanna have to go to every single page and and do it manually, I wanna know if there is a way how I can make a change to the nav bar in one of the web page, and get the other pages get the updates automatically. I would very much appreciates any advice, thank you.
You can just write your navbar code into a separate file and include it wherever you need navbar. This way if you change the main navbar.php file it will reflect in every other page that includes navbar.php

How to keep menu items intact in all web pages of a website [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
I am creating a simple website containing an index page with some information. At the top of index page I have a horizontal menu bar like this
Now, whenever I click on any menu item, a new page opens without retaining the menu bar, i.e., a new page does not show the menu bar. I want to keep the menu bar visible in all the web pages. Another problem I am facing is that
apart from index page all pages open in full window, I mean to say index page is centralized (having empty left and right sides) but other pages span full screen width. So ,how should I ensure that all pages of website have same width and contain the top menu bar?
Note: Initially I started with some template, but now I am facing these issues.
The style included in your index page is the thing that centralizes the page, so you have to include that style in all your pages if you want all your pages to have the same style.
There is more than one way to share the menu in all your pages. One thing you can do is to write the menu in a separated HTML file and include that file using the iframe tag in all of your pages.

what is the ajax url to get new table content? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I'm trying to do a home project that consists in a desktop application with some info and stats from a website.
This is the link of the information: http://www.fpb.pt/fpb2014/!site.go?s=1&show=jui&id=5144
I want to have the first table content (ĂšLTIMOS JOGOS REALIZADOS) in my application, my problem is getting the content that only appears when you press the next arrow.
My ideia was to find the ajax url to get the next content, but I dont manage to find how its done... The only ajax url that I found was this:
http://www.fpb.pt/fpb2014/do?com=DS;1;317.101000;++ID(5144)+BL(ULTIMOS_JOGOS);+MYBASEDIV(dJuiz_Ficha_Home_Jogos);+RCNT(2444445)+RINI(44443)&
But it only gets me the initial table content, can anyone tell me how I get the next table content?
http://www.fpb.pt/fpb2014/do?com=DS;1;317.101010;++CO(JOGOS_REALIZADOS)+BL(JOGOS)+K_ID_JUIZ(5144)+MYBASEDIV(JuizJogos_JOGOS_REALIZADOS);+RCNT(10)+RINI(11)&
http://www.fpb.pt/fpb2014/do?com=DS;1;317.101010;++CO(JOGOS_REALIZADOS)+BL(JOGOS)+K_ID_JUIZ(5144)+MYBASEDIV(JuizJogos_JOGOS_REALIZADOS);+RCNT(10)+RINI(21)&
+RINI(XY) is the part that varies, where X is the page number
Update (How to do it for yourself)
Open chrome dev tools (F12)
Click on the network tab
Click on the link you're interested in
Look at the requests in the network tab.
Compare then in Notepad or what ever editor you want
Link here

How to change an entire div element to another [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I'm building a site with visual studio for web for a school project and I did a user login system. so in my site I have on the top bar a place to put your username your password and to press log in. now I want that when the user will press the log in button all of this will changed to "welcome back" while his session is activated. so I just need to know how can I changed a div element (that has all the login things) to another div that display text.
Thanks for answering.
You should have 2 divs.
First one is the "login-bar" div, this one should be visible. And the second one is the "welcome-back-bar" div which should be hidden.
When the user log in, you should hide the "login-bar" div and show the "welcome-back-bar" div.
This way it will look like that the "login-bar" div is replaced by the "welcome-back-bar" div.
$(function(){
$("#login-button").click(function(){
$("#login-bar").addClass("hidden");
$("#welcome-back-bar").removeClass("hidden");
});
});
See this
JSFiddle

Tab System overflows into drop down [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I have been asked to create a tab based interface to switch content without refresh. Which is fine and dandy, but the tab list items can be dynamically added creating a longer set of tabs. When they reach a certain point based on window width the overflowing tabs should 'fall' into a drop down menu giving users the option of opening a tab content div from there.
Personally I would have gone with tabs forming two lines but the requirement is for a drop down to the right very similar to Firefox's functionality when there are too many tabs open for the available width.
Any help or pointers greatly appreciated as this is driving me mental!
Responsive layouts might be what you are looking for:
http://webdesign.tutsplus.com/tutorials/site-elements/a-flexible-approach-to-responsive-navigation/

Categories