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
Several pages in my AngularJS webapp are being created through a custom directive that I wrote. The browser back button in all pages where the directive is not used works as expected(pressing the back button loads the previous page).
But in the case of the custom directive web pages, pressing the browser back button just reloads the current page that its in.
How do I get the back button to work as expected in the custom directive pages?
Do I have to inject any angular services, or do i have to write my own function
to handle the back button event?
Thanks for your suggestions.
It looks like you are changing window.location property somehow in your directive and Back button visually refreshes page where in reality it returns previous value of location property
Related
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
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 4 years ago.
Improve this question
I currently have a timer set up on an “admin” page with JavaScript and I want to display that same live clock on the homepage of my website. How can I do this? It’s basically two input fields that display number values. One displays minutes and one displays seconds. The values are updated using buttons which are found on the admin page. What I’m trying to do is display the current time that the clock is showing on the admin page on a separate page. Is there a simple way to do this?
You could store the value of the timer server side and just query it each second to see at what time it currently is. You could also use socket.IO to have real time access to the server timer.
It's impossible. website is connectionless.
You can't push any event to other client page
without client behavior(like button click..)
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 6 years ago.
Improve this question
I stuck in the problem. I am working on website where I have main page, we can say it Parent page. And through that I am redirecting to other pages in new tab only, to them we can call as Child Page. My question is that, how I can detect on child page that the parent page tab has been closed by user?
I don't know where I can use Javacript or PHP to detecting on every child page.
I want to get the detection on real time. I mean, I do not want to execute function in every 1 minute which check for the value to detect that the parent page was closed.
You can capture the window.onClose event in the parentwindow and send a value to the child window when this happens (set a variable in the child window). Note that the only way to get a reference to the child window is through the return value of window.open(). window.beforeunload might be more widely supported, but it also fires when you go to a different page of your website in the parent page-- this is actually more useful in some cases, especially if the user goes to a new website using the same tab. See How to capture the browser window close event?.
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
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 8 years ago.
Improve this question
There is a plan like this;
Create an html page.
Create a button on the html page.
Create a function for the button's click event that does a call to a
dynamic page such as ; http://xyzexampleserver.com/QR/query/gettable.asp which
presents an html table while it is called directly.
Get the table from the called page.
Show it on the html page (created on the 1 item)
The question is here using another page's result value on an html page using javascript or any client based technologies.
How can I call the gettable.asp and use the return value (the html source code), in the buttons click event?
This can be done using an AJAX call on your dynamic page, getting the HTML response and putting it in your HTML page. This would be quite easy using jQuery.