Adobe Forums

Add Me
Adobe Forums » Software Discussions » GoLive » Macintosh » Backward and forward in GL and in Web site

Tags:



Reply
LinkBack Thread Tools Display Modes
Backward and forward in GL and in Web site
  #1 (permalink)  
Old 11-21-2008, 07:16 AM
larry_red_miller@adobeforums.com
Guest
 
Posts: n/a
Default Backward and forward in GL and in Web site

Two parts to this:

PART 1, INSIDE GO LIVE

Let's say I am viewing one page, page A. On that page I click a link that takes me to page B while closing page A. After viewing page B I want to return to page A.

If this were a browser, I'd simply click the back button or Command-[ and go back to page A.

But within GoLive 7, there is, as near as I can find, no way to click anything to go back to page A. I simply have to go back to the site window and reopen that page. Even Key Shortcuts lists nothing.

Is there a way?

PART 2, WITHIN A WEB SITE

Let's say I am viewing a page, page Th with thumbnails of some of my work. I click one of the thumbnails which takes me to a page with a larger image, call it page L.

Having looked at page L I now want to return to page Th. How do I do that?

Here is an example of how someone else did it, I think, using a numbering system.

<http://www.alcorngallery.com/John_Alcorn/JohnAlcorn_image.php?number=035>

If you click on one of the triangles left or right you move forward or backward one image.

I'd like to do something similar. Perhaps using the triangles in Zapf Dingbats, create a component. In the component, make the left arrow go back to the previously viewed page, whatever it happened to be. And make the right arrow go to the next page in sequence. (Not sure how to determine that as I have no numbering sequence and do not want one at this point. But a step at a time.)


Reply With Quote


  #2 (permalink)  
Old 11-21-2008, 07:16 AM
Jim_Jordan@adobeforums.com
Guest
 
Posts: n/a
Default Re: Backward and forward in GL and in Web site

Since I am not a fan of encouraging continued use of elements specific to discontinued software, here is how you would do it in any editor...

PART 1 sample javascript code...



<a href="javascript: history.go(-1)">Back</a>



PART 2 sample PHP code...


<?php
//NAME EACH ASSOCIATED IMAGE FILE 1.jpg, 2.jpg, 3.jpg...
//CHANGE THE '21' BELOW TO WHATEVER IS THE HIGHEST NUMBER OF YOUR IMAGE ARRAY
$maxpage=21;
$currentpage=$_GET[number];
$previouspage=$currentpage-1;
$nextpage=$currentpage+1;
//DISPLAYS IMAGE
echo '<img src="images/' . $currentpage . '.jpg"><br>';
if ($previouspage>0) {
echo '<a href="JohnAlcorn_image.php?number=$previouspage">B ACK</a> - ';
**
if ($currentpage<$maxpage) {
echo '<a href="JohnAlcorn_image.php?number=$nextpage">NEXT</a>';
**
?>


Reply With Quote


  #3 (permalink)  
Old 11-21-2008, 07:16 AM
Jim_Jordan@adobeforums.com
Guest
 
Posts: n/a
Default Re: Backward and forward in GL and in Web site



On that page I click a link that takes me to page B while closing page
A. After viewing page B I want to return to page A.




Just don't make links to new windows. Keep all references to the parent window and you won't have to keep spawning and then closing new windows.
Reply With Quote


  #4 (permalink)  
Old 11-21-2008, 07:16 AM
Kath_Howard3@adobeforums.com
Guest
 
Posts: n/a
Default Re: Backward and forward in GL and in Web site

I suspect this is about clicking in preview mode. I seem to remember the behaviour for that changing between versions. Don't know though, I never use Preview, don't see the point.
Reply With Quote


  #5 (permalink)  
Old 11-22-2008, 06:57 AM
larry_red_miller@adobeforums.com
Guest
 
Posts: n/a
Default Re: Backward and forward in GL and in Web site

Thanks Jim. I have since simplified it. I now have only a "back to prior page" link. To create it I make a text block, name it whatever I want to type in, and link it back one page to where the current page originated (or as you put it, from which it was spawned).

As to a prior query of mine, how to "Go back" or Return to a prior page (such as one does in a browser by clicking command-[), I have found that command-option-2 does that. Command-option-1 opens the site window.
Reply With Quote


  #6 (permalink)  
Old 11-22-2008, 06:57 AM
Kath_Howard3@adobeforums.com
Guest
 
Posts: n/a
Default Re: Backward and forward in GL and in Web site

No jagged blades were used in the solution to this problem.
Reply With Quote


Reply



Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Hairstyles | UFO Videos | Bollywood Wallpapers | Poems  | WWE


All times are GMT. The time now is 08:18 AM.
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.