Announcement

Collapse
No announcement yet.

frames do not load from search engine redirects

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    frames do not load from search engine redirects

    Hi,

    I'm using frames in my brochure and catalog (www.photo-scotland.co.uk).

    The search engines seem to want to go to a specific page, ie http://www.photo-scotland.co.uk/acat...s_gallery.html , which has not been generated by Actinic, but by myself (I'm no expert at html). However when the link from the search engine is pressed the page is displayed without the surrounding frameset.

    I've tried to copy some code from the templates...
    <!-- BrochureFrameLoad HTML begin -->
    <SCRIPT LANGUAGE="JavaScript"> var _version = 1.0; </SCRIPT>
    <SCRIPT LANGUAGE="JavaScript1.1"> _version = 1.1; </SCRIPT>
    <SCRIPT LANGUAGE="JavaScript1.2"> _version = 1.2; </SCRIPT>
    <SCRIPT LANGUAGE="Javascript">
    var actinic_ignored = true;
    </SCRIPT>
    <Actinic:IGNORE>
    <SCRIPT LANGUAGE="Javascript">
    actinic_ignored = false;
    </SCRIPT>
    </Actinic:IGNORE>
    <SCRIPT LANGUAGE="JavaScript">
    <!--
    function onLoad()
    {

    if (window.name!='BrochureBody' && actinic_ignored != true && !((self.innerHeight == 0) && (self.innerWidth == 0)))

    parent.location.replace('../index.html?' + escape(document.location.href) + '&BrochureBody');

    }
    // -->
    </SCRIPT>
    <!-- FrameLoad HTML end -->

    but this doesn't seem to do the trick.

    Does anybody have any idea where I'm going wrong?

    Thanks in anticipation

    Garry
    Thanks

    Garry

    For ALL of your digital photography needs.
    www.photo-scotland.co.uk

    #2
    Hi Garry

    Attach to this thread is a zip file which contains two frameset.

    The first frameset is the brochure frameset and the other frameset is the catalog frameset.

    If you view the source of these frameset, you should see a javascript, please make sure the javascript is the same as yours.

    If you do not have it, then just copy and paste it in your templates.

    Kind Regards
    Attached Files
    Nadeem Rasool
    SellerDeck Development

    Comment


      #3
      Hi Nadeem,

      Thanks for the quick response, unfortunately I've just cut and pasted the code into my pages and it doesn't seem to work.

      I maybe didn't explain myself very well, but the problem only seems to happen on the pages that I've created myself.

      thanks anyway

      Garry
      Thanks

      Garry

      For ALL of your digital photography needs.
      www.photo-scotland.co.uk

      Comment


        #4
        Check you have the following command in the <body> tag of your custom pages...

        OnLoad="onLoad()"

        It is the page that calls the function that makes the frames appear.

        Comment


          #5
          Thanks Chris... I've put the onload in and now the frames load, but the main frame is the home page and not the page that ran the onload....

          I'm sure I must be doing something else stupid, but I don't know what??

          Thanks

          Garry
          Thanks

          Garry

          For ALL of your digital photography needs.
          www.photo-scotland.co.uk

          Comment


            #6
            You used a frame load script from a brochure page. Try replacing it with this code from a page in the 'acatalog' folder...

            Code:
            <!-- FrameLoad HTML begin -->
            <SCRIPT LANGUAGE="JavaScript"> var _version = 1.0; </SCRIPT>
            <SCRIPT LANGUAGE="JavaScript1.1"> _version = 1.1; </SCRIPT>
            <SCRIPT LANGUAGE="JavaScript1.2"> _version = 1.2; </SCRIPT>
            <SCRIPT LANGUAGE="Javascript">
            	var actinic_ignored = true;
            </SCRIPT>
            <Actinic:IGNORE>
            <SCRIPT LANGUAGE="Javascript">
            	actinic_ignored = false;
            </SCRIPT>
            </Actinic:IGNORE>
            <SCRIPT LANGUAGE="JavaScript">
            <!--
            function onLoad()
            	{
            
            	if (window.name!='CatalogBody' && actinic_ignored != true && !((self.innerHeight == 0) && (self.innerWidth == 0)))
            
            		parent.location.replace('index.html?' + escape(document.location.href) + '&CatalogBody');
            
            	}
            // -->
            </SCRIPT>
            <!-- FrameLoad HTML end -->

            Comment


              #7
              Thanks Chris,

              That is now the correct functionallity, but the page is now contained in the catalog frame. I want it to apper in the brochure frame....

              What do I do next...?

              Garry
              Thanks

              Garry

              For ALL of your digital photography needs.
              www.photo-scotland.co.uk

              Comment


                #8
                Oops - didn't realise you wanted that to happen.

                OK - try this instead:

                Code:
                <!-- BrochureFrameLoad HTML begin -->
                <SCRIPT LANGUAGE="JavaScript"> var _version = 1.0; </SCRIPT>
                <SCRIPT LANGUAGE="JavaScript1.1"> _version = 1.1; </SCRIPT>
                <SCRIPT LANGUAGE="JavaScript1.2"> _version = 1.2; </SCRIPT>
                <SCRIPT LANGUAGE="Javascript">
                	var actinic_ignored = true;
                </SCRIPT>
                <Actinic:IGNORE>
                <SCRIPT LANGUAGE="Javascript">
                	actinic_ignored = false;
                </SCRIPT>
                </Actinic:IGNORE>
                <SCRIPT LANGUAGE="JavaScript">
                <!--
                function onLoad()
                	{
                
                	if (window.name!='BrochureBody' && actinic_ignored != true && !((self.innerHeight == 0) && (self.innerWidth == 0)))
                
                		parent.location.replace('../index.html?' + escape(document.location.href) + '&BrochureBody');
                
                	}
                // -->
                </SCRIPT>
                <!-- FrameLoad HTML end -->

                Comment


                  #9
                  Hi Chris,

                  Sorry for the delay in trying this, but I've been away for a few days.

                  This now loads the Brochure frameset, but with the home pgae and not the page specified....

                  Any more suggestions?

                  Thanks

                  Garry
                  Thanks

                  Garry

                  For ALL of your digital photography needs.
                  www.photo-scotland.co.uk

                  Comment


                    #10
                    Do you have the command

                    onLoad='onLoad();'

                    within the main <FRAMESET> tag in Act_BrochureFrameSet.html? This should load the selected page into the main frame of the brochure frameset.

                    Comment


                      #11
                      Hi Chris,

                      Again sorry for the delay.

                      Thanks for all the help and it now seems to be working correctly.
                      Does this mean that the current frames templates need to be changed in order for this to work 'straight from the box'. Will you be passing this on to support as a bug?

                      Thanks again

                      Garry
                      Thanks

                      Garry

                      For ALL of your digital photography needs.
                      www.photo-scotland.co.uk

                      Comment


                        #12
                        Does this mean that the current frames templates need to be changed in order for this to work 'straight from the box'. Will you be passing this on to support as a bug?
                        It does work straight from the box - so the required code must have somehow been lost with a customisation that was made to the site.

                        Comment

                        Working...
                        X