Start by removing your comments from w/i the tags (if they are there in
the real code)
| Thanks, Thomas
| You guys in the US are about 8-9 hours ahead of us in OZ so great to get
a
| quick reply.
|
| I was not aware that any server-side processing was occurring. Do you
mean
| the parameter passing ? (Thinking about this question, I am sure the
answer
| is yes)
|
| I am creating frames with simple HTML code
| <frameset rows="78,*">
| <frame src="heading.html" <!-- top frame -->
| name="heading"
| scrolling="no"
| noresize="noresize">
|
| <frameset cols="178,*">
| <frame src="sidebar.html" <!-- side frame -->
| scrolling="yes"
| noresize="noresize">
| <frame src="index_main.html?fetched=true" <!-- main body frame -->
| name="index_main">
| </frameset>
| </frameset>
|
| I will look at the reference to see what it suggests.
|
| Yes, when you use
|
http://tandcl.homemail.com.au/index_main.html?fetched=true, there is no
link
| to index.html because the point of the exercise was to use this way of
| loading index_main.html from index.html and only from there. If a person
| were to use the link on Google
|
http://tandcl.homemail.com.au/index_main.html, then it would execute
this
| code to link to index.html
| <div id="wait">
| <script type="text/javascript">
| if ( qsobj(0) == null)
| { document.write
| ("<p class='pcenter'><a href='index.html' >Please press here to
| load</a></p>");
| ...... }
| else document.write("Loading... Please Wait.")
| </script>
| </div>
|
| qsobj(0) resolves the first parameter passed, i.e. the one after "?". It
is
| null when index_main.html is called directly. When called from
index.html it
| is true. When loading is complete, div "wait" is hidden
|
| I assume then, that if I want to edit index.html in FP, I should remove
| ?fetched=true and then replace it before uploading. Luckily, there is
little
| code in index.html that would need updating, so I can either do this or
use
| UltraEdit ?
|
| A thought I just had was to generate the value of src in Javascript,
i.e.
| have a dummy statement
| <frame src=" " name="index_main">
| and then have JS like this
| document.images["index_main"].src = "index_main.html?fetched=true"
| but I can't use document.images. Would document.frames work ?
|
| I can try it, of course, but any advice is appreciated
|
| Any ideas on how to get FP to accept
| onload="top.frames['heading'].getHeading('xxxxxxxxxx'); without error?
| Or will I get some ideas from the web reference you gave?
| (Maybe my idea of coding the name of src in JS is also covered here )
|
| --
| Cheers,
| Trevor L.
| Website:
http://tandcl.homemail.com.au
|
| Thomas A. Rowe wrote:
| > Trevor,
| >
| > FP can not process any server-side coding. If you are going to use
| > Frames, then you should use JavaScript to dynamically create the
| > frameset with the page that was requested. See:
| >
http://www.echoecho.com/jsframes.htm
| > Also when I access:
| >
http://tandcl.homemail.com.au/index_main.html?fetched=true
| > I see no link to index.html
| >
| > | >> Hi all you experts out there,
| >>
| >> I find that there are references in Google to a frame page
| >> (index_main.html) on my site. In order to avoid this, I put this code
in
| >> index.html
| >> <frame src="index_main.html?fetched=true">
| >>
| >> In index_main.html, I test for this parameter and if it doesn't
| >> exist (because the page was called directly) I present a message
| >> with a hyperlink to index.html My problem is that index.html will not
| >> load in FP. I get a message
| >> cannot find ...../index_main.html?fetched=true.
| >>
| >> On a related topic, I also have this code on my frame pages
| >> onload="top.frames['heading'].getHeading('xxxxxxxxxx');
| >>
| >> This is to change the heading on the top frame when a new frame
| >> loads in the main part of the page. It works, but FP returns an
| >> error. Is there a way to avoid these problems?
| >> Of course, the answer may also be: DON'T USE FRAMES (shouting
| >> deliberate) --
| >> Cheers,
| >> Trevor L.
| >> Website:
http://tandcl.homemail.com.au
| >>
| >>
| >> I choose Polesoft Lockspam to fight spam, and you?
| >>
http://www.polesoft.com/refer.html
|
|