This is a discussion on "Displaying the actual URL on page" within the Web Page Design section. This forum, and the thread "Displaying the actual URL on page are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Displaying the actual URL on page
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
This can't be too hard to do, but I'm frustrated trying to search for the answer. My queries are too general, apparently, and I just can't find what I'm looking for.
All I want to do is put a bit of code in an HTML page so that when the page is loaded in a browser, the URL of the page is shown as text. I need to do this client side or possibly in dreamweaver specific code. Any help is greatly appreciated. Dennis www.leadholder.com |
|
|
|
#2
|
|||
|
|||
|
Re: Displaying the actual URL on page
Hm i dont quite understand what you mean..
|
|
#3
|
|||
|
|||
|
Re: Displaying the actual URL on page
Quote:
I'd like the pages that show in the main frame to have their URLs visible as text at the top of each page so visitors can easily copy the URL to send or bookmark. The only url that ever shows in the browser's bar is index.html. The pages are not dynamically served, so I could certainly just add the URL to each page, but I'd rather do it in my Dreamweaver template only once. |
|
#4
|
|||
|
|||
|
Re: Displaying the actual URL on page
Are you using a windows or linux server?
|
|
#5
|
|||
|
|||
|
Re: Displaying the actual URL on page
Quote:
|
|
#6
|
|||
|
|||
|
Re: Displaying the actual URL on page
OK then this is what you need to do.
Put each of the frame content into its own .html file. Example if you have a frame for navigation. Put all your navigation code in a file named navigation.html this should contain only the code required for the navigation. Do the same for the rest of the content you want in seperate files. Then open a blank page and save it as index.php remember the .php extension. Now include your files as follows:
Now upload all ur files and view the index.php file with your browser. |
|
#7
|
|||
|
|||
|
Re: Displaying the actual URL on page
Quote:
Now, if I understand you correctly, you are suggesting I use an include to add the navigation to each page rather than use frames? (If I don't understand correctly, please ignore the rest of my post and instead try to explain more.) This would be a good solution if my site had a typical navigation menu, but the frames are used because the thumbnail gallery navigation on my site (www.leadholder.com) is extensive and using frames allows the visitor to browse the pages without loosing track of where they are in the long column of thumbnail images. The overhead of the browser having to assemble the thumbnail navigation (even cached) is undesirable in this case I think. I suppose I could use an I frame or something, but nested scrollbars are very messy and take control away from the user's ability to size windows appropriately for their own display settings. Using an old-fashined implementation of frames allows me to serve both those people with smaller displays lets those with large ones use them to full effect. I'm aware of some of the many reasons to avoid frames, but I really have yet to see a technique that would be preferable in my case. Is there a way to do what I originally asked? Show an HTML page's URL on the page itself in some (pseudo) dynamic way? |
|
#8
|
|||
|
|||
|
Re: Displaying the actual URL on page
For the gallery of pens what you need to do is use a <div with the overflow set to scroll.
|
|
#9
|
|||
|
|||
|
Re: Displaying the actual URL on page
Quote:
I'm not sure if it will solve all my problems, but it's certainly worth a look. Thanks. |
|
#10
|
|||
|
|||
|
Re: Displaying the actual URL on page
No problem. That was one of the biggest problems with frames the ability not to be able to Bookmark pages.
|
![]() |
| Tags |
| displaying, actual, url, page |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Why is my page not displaying (something to do with errors?) | Abby | PHP Forum | 5 | Feb 3rd, 2008 17:02 |
| [SOLVED] Displaying search results on a different page | longstand | PHP Forum | 4 | Nov 19th, 2007 23:26 |
| Page not displaying right in IE fine in FF | MotorManiac | Web Page Design | 1 | Jul 16th, 2007 12:57 |
| Displaying MySQL database tables on a page | vandiermen | PHP Forum | 3 | Jun 30th, 2007 22:58 |
| Displaying diff info on the same page | waheeddin | Web Page Design | 1 | Feb 23rd, 2007 20:56 |