Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
refresh current screen w/ new data
Old 06-30-2010, 11:08 PM refresh current screen w/ new data
Extreme Talker

Posts: 173
Trades: 0
Creating a site to display project related details. From the home page, a person can select to go to several project specific pages. Once a person is in a project specific page, from the top menu, I want the user to be able to view the same details for any project. The following line is what I have been using but it always take the person back to project specific home page rather then maintaining the current page and just displaying the new details

PHP Code:
echo '<a href="display_project_details.php?project_id='.$row['project_id'].'">'.$row['project'].'</a>'
What I some how need to do is

PHP Code:
echo '<a href="REFRESH CURRENT PAGE"?project_id='.$row['project_id'].'">'.$row['project'].'</a>'
dgkindy is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-01-2010, 07:41 AM Re: refresh current screen w/ new data
Extreme Talker

Posts: 173
Trades: 0
I did find this but it does not work when I add the variable to the statement

PHP Code:
  echo '<a href="javascript:location.reload()?project_id='.$row['project_id'].'" target="_self">'.$row['project'].'</a>'
It will not accept the new data point.
dgkindy is offline
Reply With Quote
View Public Profile
 
Old 07-01-2010, 09:10 AM Re: refresh current screen w/ new data
Extreme Talker

Posts: 173
Trades: 0
Update on progress.

I did not find a nice easy command line like previously shown, what I have done was to create a table in the db which I then query for the page file name by using session variable that get updated as you move around the site. I essentually track the movement of user around the site.
dgkindy is offline
Reply With Quote
View Public Profile
 
Old 07-01-2010, 09:31 AM Re: refresh current screen w/ new data
Phunk Rabbit's Avatar
Ultra Talker

Posts: 255
Name: John Nerush
Location: Milton Keynes, UK
Trades: 0
Have a look at using JQuery (or similar) to call an AJAX request to update the data for you.
__________________

Please login or register to view this content. Registration is FREE

Learn professional skills from professional people, from $6.50 a month.
Phunk Rabbit is offline
Reply With Quote
View Public Profile Visit Phunk Rabbit's homepage!
 
Old 07-01-2010, 10:06 AM Re: refresh current screen w/ new data
lynxus's Avatar
Awesomeo-Maximo

Posts: 1,618
Location: UK
Trades: 1
Something i wrote a while back, May help you:
http://www.hauntednipple.co.uk/?p=16
__________________

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE


lynxus is offline
Reply With Quote
View Public Profile Visit lynxus's homepage!
 
Old 08-02-2010, 06:12 AM Re: refresh current screen w/ new data
Novice Talker

Posts: 13
Trades: 0
Have you actually created a table in the display? I think you can use the session variable that will get updated while browsing the site.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
darylnelson is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to refresh current screen w/ new data
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.29195 seconds with 12 queries