473,406 Members | 2,217 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Determining the referring URL

I have a page with frames. The left frame is a list of urls. The main frame
is loaded based on the url that was clicked in the left frame.

Is there a way for the main frame to tell which url was clicked in the left
frame? I'd like to avoid having to use a name/value pair in the links in the
left frame, which I'm currently doing. I'd prefer to use something similar
to $_server('REFERER') but I can't find anything that would list the
referring url rather than the referring page.

Thanks.
Jul 17 '05 #1
3 9846
Jenkins wrote:
I have a page with frames. The left frame is a list of urls. The main
frame is loaded based on the url that was clicked in the left frame.

Is there a way for the main frame to tell which url was clicked in the
left frame?
Isn't that the page it just loaded?
So if you click on your left frame on intro1.html-link, the page in the
mainframe is intro1.html...
Or am I missing something completely here?
I'd like to avoid having to use a name/value pair in the links
in the left frame, which I'm currently doing. I'd prefer to use something
similar to $_server('REFERER') but I can't find anything that would list
the referring url rather than the referring page.

Thanks.


Regards,
Erwin Moller
Jul 17 '05 #2
The left frame loads a php file that selects and displays links from a mysql
db. All the links in the left frame call the same page, showapps.php.
Showapps.php has to determine which link was clicked and then selects info
associated with that link.

I'm currently hardcoding a name/value pair, i.e., ?cat=1, ?cat=2, etc, onto
each link in the left frame. The showapps.php, which loads into the main
frame, selects from a mysql db based on the value in the name/value pair.
I'd like to just read the refering url the same way I can read the referring
page and then determine which category to select.

"Jenkins" <ne**@djenkins.nu> wrote in message
news:AzSkb.837250$uu5.147934@sccrnsc04...
I have a page with frames. The left frame is a list of urls. The main frame is loaded based on the url that was clicked in the left frame.

Is there a way for the main frame to tell which url was clicked in the left frame? I'd like to avoid having to use a name/value pair in the links in the left frame, which I'm currently doing. I'd prefer to use something similar
to $_server('REFERER') but I can't find anything that would list the
referring url rather than the referring page.

Thanks.

Jul 17 '05 #3
Jenkins wrote:
The left frame loads a php file that selects and displays links from a
mysql db. All the links in the left frame call the same page,
showapps.php. Showapps.php has to determine which link was clicked and
then selects info associated with that link.

I'm currently hardcoding a name/value pair, i.e., ?cat=1, ?cat=2, etc,
onto each link in the left frame. The showapps.php, which loads into the
main frame, selects from a mysql db based on the value in the name/value
pair. I'd like to just read the refering url the same way I can read the
referring page and then determine which category to select.

"Jenkins" <ne**@djenkins.nu> wrote in message
news:AzSkb.837250$uu5.147934@sccrnsc04...


Hi Jenkins,

I still don't see what you mean now. Sorry. :-(

I think that your approach with the getstatement is just fine to achieve
what you want to achive.
It is the most natural way to pass information to a dynamic page (along with
the POST of course)

Just use a loop in php in your leftframe over all categories and generate
the links the links.

And in your showapps you just use $requestedCat = $_GET["cat"] to get the
value for your category.

I don't know what you expect more out of your frames/php.

And you can always use this to get all environment-variables PHP is aware
of:

<?php
phpinfo();
?>

Good luck,

Regards,
Erwin Moller
Jul 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Cliff Wells | last post by:
Hi, I'm writing an application that needs to know if an Internet connection is available. Basically, I want to have something similar to what a lot of email clients have, where the app can work...
66
by: Darren Dale | last post by:
Hello, def test(data): i = ? This is the line I have trouble with if i==1: return data else: return data a,b,c,d = test()
2
by: Luca | last post by:
I have the following problem: I'm developing a system where there are some processes that communicate each other via message queues; the message one process can send to another process is as...
3
by: Fred Nelson | last post by:
I'm devloping a Web Application in VB.NET. In my web.config file I have specified that untrapped errors are to be sent to the page "errorpage.aspx". This is working fine - if an untrapped error...
3
by: Dan Sikorsky | last post by:
How can I get the Querystring passed to the Referring Page from its referrer? I don't want the querystring coming to my current page. I want the querystring that came to the referring page, so...
1
by: George | last post by:
I have very limited experience with Javascript. Can someone refer me to info on how to determine the referring URL and the search term used by a visitor just prior to his landing on my web page? ...
4
by: David C. Barber | last post by:
my.computer.printers.defaultprinter doesn't exist in 2005, despite the plethora of examples still out on the web detailing its use. So how can I determine a person's default printer using ASP 2?...
14
by: prashant | last post by:
hello, I am looking to determine the number of image files in a folder so that I could create a dynamic table accordingly. For this i need a method to identify the number of files in a folder. Is...
5
by: KalEl | last post by:
I have done some searching on Google, and from what I understand, big O is referring to the magnitude of the trip count. In essence, it's an approximation of the trip count, not an exact value like...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.