bluedogranch
03-03-2007, 05:03 AM
1) Script Title: Bookmark site script
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex9/addbook.htm
3) Describe problem: Not exactly a problem; more like a desired capability.
What I'd like to be able to use is this bookmark script, but modified so that it grabs the page title and url automatically from each page it is on.
I use php to generate the html pages in my website, reading from one php include file; what would be great is if this bookmark script could grab the page url and title from the page it is on when it is clicked. That way, the script can be included without hardcoding of the title and url for each page.
Can javascript read page title and url's? Is this possible?
I figured out how to include the url in the javascript function with php, but it is complicated to get a file with php and parse the title info.
Any ideas will be good - I'm just learning coding...
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex9/addbook.htm
3) Describe problem: Not exactly a problem; more like a desired capability.
What I'd like to be able to use is this bookmark script, but modified so that it grabs the page title and url automatically from each page it is on.
I use php to generate the html pages in my website, reading from one php include file; what would be great is if this bookmark script could grab the page url and title from the page it is on when it is clicked. That way, the script can be included without hardcoding of the title and url for each page.
Can javascript read page title and url's? Is this possible?
I figured out how to include the url in the javascript function with php, but it is complicated to get a file with php and parse the title info.
Any ideas will be good - I'm just learning coding...