Show image on button pressed in another page php - php

I would like to show certain image on a page which is open in a tab, only when the other page press a button. I know I can post on the other page, but is it going to be live? Because I am not gonna be refreshing the page at all. My whole plan is to press a button on one page and show live result on an another page without refreshing it. How can I make it possible? I just need the basic idea behind it. Sorry if I made it sound complicated.
Thanks

Related

How to go back previous ajax url in codeigniter?

When page loaded http://something.com/user/mycourses address in the browser url. In the page there are two ajax requests are there. One is http://something.com/user/learnnow address(Shows learning courses) and http://something.com/user/teaching(shows teaching courses). If I click on teaching, ajax will load the page. If I click on browser back button to go to learnnow page, it takes me another url before mycourses page. I want when user click on browser back button it should go to learnow page from teaching page. How to do this please help me.

page navigation in html

Hi i am tryng to implement a web application and i was wondering if html offers any page navigation techniques.
My query is Am going like this in my current page navigation,
Page A --> Page B --> Page C --> Page B
if i press back from this Page B position it will go to Page C, I dont want that to happen, instead, i want it to go to Page A.
The reason is that consider
Page A as login page
Page B as home page with some options, when clicked on any one it will go to Page C
Page C corresponding clicked function, say text boxes where i can input name, address etc, and when i fill and click on submit, it will go to page B.
Now if i press on back button from this Page B, i will be navigated to Page C. I dont want this to happen, i just want to stay in that page in this case.
but if the scenario was like this
A->B->C->D->C..
then on pressing back from last C i need to go to B, and if i press back from B, either stay on that page or prompt me to logout.
Hope my question is clear please dont down vote this, i want to learn, only these forums are there to help me
Please help
The browser-back-button belong to the user.
Its a "go back in history"-button.
so ... imo dont touch it.
provide a useful navigation so that user dont even think about using the back-button =)
There are two ways to do this as far as i am aware.
Personaly i would use JS to create a simple logon page, that opens a page containing an iframe, which is linked to your site. If the user hits back, it will take them to the logon page, as the site is contained within an iframe.
The other way is to change the propertys of the back button, rather than removing it with JS. I think this can be done with.history, but i have never used personaly so i dont know.
Hope this helps :)

during button click load the same page using php

I have a signup page designed with PHP and HTML for back end connectivity.
After the button click is made entering the details, I display the message Success on the same page with the help of JavaScript.
I need the details to get stored after the button click (its working fine), what I want is after the button is clicked and the PHP database page is opened. I don't want that page to be opened after the button click.
The same signup page should be retained with the entered information saved in the database.
Is there any way to do this?
So right now, on submit, it goes to a page that stores all the data and displays a "database page". But you don't want it to do that, you just want it to go back to the index page, or to a page that says success. Correct?
If that's the case, you can use this on your "database page".
header('Location:http://yoursite.com/path/to/login.php');

When clicking a button go to next page and refresh the previous one Jquery Mobile

I got a Jquery Mobile app, when I click a button (ordernumber) on page (one) an ajax call is made and it goes to the next page (two) so you see the products for that order. Now at the same time I want to refresh the ordernumber buttons on the first page so the clicked orderbutton dissapears after click on every device (lets say I am having it open on multiple devices). Whenever I refresh I am stuck at the same page. Also when I do auto refresh I need to trigger the styling of jquery mobile as it gets lost, when I do that it flickers as it goes to little button to big button in shorts amounts of time. I tried this:
function refreshone(){
$('#ordersdiv').load('getorders.php');
$('#ordersdiv').page('refresh');
$("#ordersdiv").trigger("create");
}
This function is called when the ajax call is complete after it goes to the second page. Yet it doesn't update anything and the orderbutton is still visible at the other devices.
Reload a Div with jquery timer
The answer on this question fixed it. Because of the Ajax that refreshes the page it doesn't blink when triggering the jquery mobile styling.

Back button on pages with tabs

I'm doing a system where the pages are displayed by tabs (easytabs Plugin http://os.alfajango.com/easytabs/#tabs1-js)
At one point in the process it performs a query in the database, where we
see all the details of each item that appears. I'd like to go into the details of the item, click back to the (on broswer or a button) the page to return to the list displayed by the SQL query, just as with any single page, but currently it only displays a blank page.
I wonder how can I do to implement this solution using the layout tabs.
Thank you.
There are various ways to maintain UI state. One of them is using a "url hash". For example, you click tab 2, change the url hash to:
mypage.php#tab=2
Then if someone presses BACK and goes FORWARD, you use JavaScript to look at the URL has and determine that the user had previously pressed tab 2, so you run your own bit of code that triggers the same event.
I'm unfamiliar with "easytabs" so I'm sorry I can't help with the specific implementation details, but that's the gist of the technique.

Categories