HighDots Forums  

Framecheck does only work with static pages, not with perlscript-output

Javascript (German) Programmiersprache JavaScript. (de.comp.lang.javascript)


Discuss Framecheck does only work with static pages, not with perlscript-output in the Javascript (German) forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Carsten Brauer
 
Posts: n/a

Default Framecheck does only work with static pages, not with perlscript-output - 11-25-2004 , 05:27 AM






Everybody knows the problem when you work with frames, it may happen
that a page is shown which should have been loaded as a part of a
complete frameset. To avoid this you can use java, for example
<SCRIPT LANGUAGE="JavaScript">
<!--
var Dateien = "FRAMESET.htm?DATEI.htm";

if (top.frameset_geladen + "" != "okay"){
if(document.images)
top.location.replace(Dateien);
else
top.location.href = Dateien ;
}
//-->
</SCRIPT>

<SCRIPT LANGUAGE="JavaScript">
<!--
var frameset_geladen = "okay";


function SeiteLaden() {
if(self.location.search.length > 0) {
var Search_Laenge = self.location.search.length;
var info_url =
self.location.search.substring(1,Search_Laenge);
self.INFO.location.href = info_url; }
}
//-->
</SCRIPT>

<FRAMESET ... onLoad="SeiteLaden(); return true;">

(from http://support.serv.ch/lang/html/js/...ramecheck.html
)

But this does not work if the url of the loaded single page that
should be shown in a frameset is no static url but generated from a
script like this one:
"http://www.kunststoffprodukte.de/cgi-local/baumarkt-cgi/his-webshop.pl?f=NR&c=4020&t=temartic"
I'd like to reach that everytime someone comes about a searchengine to
one productpage (like this one above) the frameset
(../../../baumarkt/index.html)is loaded including the referring
productpage (http://www.kunststoffprodukte.de/cgi...020&t=temartic)
in the Frame which is named "Hauptframe". With the script mentioned
above I can only name one single file that shall be loaded in the
"Hauptframe". Problem: I do not have one page per product, I have a
database and the perlscript that generates the .htm-pages using the
templates, in this case the "temartic.htm". You find the shop at
www.baumarkt-direct.de
I hope anyone can understand what I want.

Reply With Quote
  #2  
Old   
Dietmar Meier
 
Posts: n/a

Default Re: Framecheck does only work with static pages, not with perlscript-output - 11-25-2004 , 06:10 AM






Carsten Brauer <brauer (AT) kupro (DOT) de> typed:

Quote:
I hope anyone can understand what I want.
Kaum, Dein Babelfish-Denglish ist kaum zu ertragen.

Was gefällt Dir denn an der Lösung aus der FAQ nicht?

ciao, dhgm



Reply With Quote
  #3  
Old   
Carsten Brauer
 
Posts: n/a

Default Re: Framecheck does only work with static pages, not with perlscript-output - 11-26-2004 , 04:23 AM



Moin. Reines Schulenglisch, ich schwör. Das Problem ist mittlerweile
behoben, der Fehler lag teilweise in nicht existierenden
Artikelnummern. Deswegen hat mein kleiner Umbau:

var Dateien = "../../../baumarkt/index.html?../cgi-local/baumarkt-cgi/his-webshop.pl?f=NR&c=[REPEAT_ARTIKEL][NR][REPEAT_ARTIKEL_END]&t=temartic";

(gemeint ist hier [REPEAT_ARTIKEL][NR][REPEAT_ARTIKEL_END], nur
teilweise funktioniert, nämlich dann, wenn der Aufruf der Seite mit
dem link

http://www.kunststoffprodukte.de/cgi...800&t=temartic

mit einer existierenden Artikelnummer geschieht (Hier: 4800)

Die temartic(.htm) ist das Template, was die ausgegebene Seite
erzeugt. Und das ursprüngliche Problem war, daß die Nummer (hier:
4800) mitübergeben werden muß, damit der richtige Artikel angezeigt
wird. Und das Problem habe ich mit
[REPEAT_ARTIKEL][NR][REPEAT_ARTIKEL_END] gelöst, jetzt klappt alles.

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.