Reputation: 1
I am having difficulties in the following problem:
I have a screen in PHP which displays a list of some records when I choose any of these records (by clicking) it gives me a web site to share the data with this record. So far, it works.
I need to click on some of these records, instead of him open another page, scroll down the screen and the record data to appear in the same screen, ie without opening another window.
Do you have any idea how to do this?
Thanks
Upvotes: 0
Views: 430
Reputation: 1
So
Indeed, there is no error, it just does not have the effect that (scroll down the screen and show the record data). For now, it only shows the record open in another window.
Upvotes: 0
Reputation: 40892
I would try adding some jQuery to your page to handle this effect. If you do add jQuery here is a function written to do just that:
Call the script like so:
Where a
is the record you are having them click on and href="[some anchor]"
located at the spot on the screen where you want the scrolling to stop:
<a id="gotop" href="#" onclick="goTop();return false;">click here</a>
Upvotes: 0
Reputation: 703
Create a DIV layer on the bottom of the page. Use a simple AJAX library like this
Create a new php page that will only load a new record based on the recordID and call this page on the onclick
method of your link that is now opening in the new window
Upvotes: 0
Reputation: 983
It sounds like you'll need to use ajax to pull this off.
I would personally suggest starting with reading up on the jQuery javascript library if you are not familiar with it already. It provides a very good set of ajax tools to work with.
Upvotes: 0
Reputation: 1148
You'll need to have a DIV at the bottom of the page, which will be completed by using an Ajax call and some javascript or jquery.
Without going into too much detail, heres what needs to happen:
Regards
Upvotes: 1