Gossamer Forum
Home : Products : Links 2.0 : Customization :

Review.cgi and Jump.cgi with frameset.

Quote Reply
Review.cgi and Jump.cgi with frameset.
I have set up my site so that any links open in a frameset.

I then have a frame which has button links to review.cgi. When these are clicked a pop-up opens with a template.

This works fine however for some reason the frame from where the link was called opens up my cgi-bin/links/ directory for some reason.

You can see at

http://www.freeontheweb.com/cgi-bin/links/jump.cgi?ID=331&display=1

for the important frame

Thanks for any info this problem is really getting to me :-)

------------------
http://www.freeontheweb.com/
Reviewed and rated resources for webmasters
-------------------------
Quote Reply
Re: Review.cgi and Jump.cgi with frameset. In reply to
I got this http://www.freeontheweb.com/cgi-bin/links/?ID=331&display=1 when i rated so you probably only said the path to something under the form action but didn't say jump.cgi
Quote Reply
Re: Review.cgi and Jump.cgi with frameset. In reply to
Sorry i am confused.

When you rate the link why would i want to call jump.cgi? I want the frame to remain the same with the rating bit still there.

Perhaps if you have a look at
http://www.freeontheweb.com/cgi-bin/links/?ID=331

you will see what i mean. I just want the pop-up to open then be closed and nothing else to happen. Rate.cgi should not be caled again i do not think ???
Quote Reply
Re: Review.cgi and Jump.cgi with frameset. In reply to
I've already seen that
Quote:
This works fine however for some reason the frame from where the link was called opens up my cgi-bin/links/ directory for some reason.
you never said your problem was the popup.
Have you looked around Javascript sites?
Quote Reply
Re: Review.cgi and Jump.cgi with frameset. In reply to
Ok.. i am sorry i am not being very clear i do not think....

1) When rate.cgi is called it opens a frameest with 3 small frames in it
2) One of these frames contains the numbers 1 2 3 4 5 6 7 8 9 10. Each of these contain a link to review.cgi with the required rating code
3) These links call review.cgi however they do so by calling a pop-up window
4) The pop-up window opens perfectly correctly (i have tried 2 different javascript versions of calling a pop-up window)
5) The problem is that the frame from where the pop-up window is called then goes somewhere else (cgi-bin/links)
6) There is no reference to this directory in the javascript i believe it must be something in the code of review.cgi but not sure.

I hope that explains it better sorry for my slightly unclear previous explanations and thanks for any help :-)

------------------
http://www.freeontheweb.com/
Reviewed and rated resources for webmasters
-------------------------
Quote Reply
Re: Review.cgi and Jump.cgi with frameset. In reply to
hmm...

i though i responded to this.. i guess i forgot to press "submit"

first..

it's a javascript.. obviously which you copied off someone elses site Wink

find:

Code:
function launchpopup(windowURL,baseURL) {

delete the bolded

then..

delete:

Code:
self.location.href=baseURL;

jerry
Quote Reply
Re: Review.cgi and Jump.cgi with frameset. In reply to
Guess it was a javascript thing..

thanks jerry (again :-) )

------------------
http://www.freeontheweb.com/
Reviewed and rated resources for webmasters
-------------------------
Quote Reply
Re: Review.cgi and Jump.cgi with frameset. In reply to
Now you have to work on the location for the other links, like Report Dead Link.

Regards,

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us
Quote Reply
Re: Review.cgi and Jump.cgi with frameset. In reply to
hehe... you beautifully anticipated my next question..

i did ask at the end of the frameset topic but i think everyone was bored of the thread by then :-)

At the moment.. i call

$build_jump_url?ID=$id&display=1

for one of the frames that i open. Ok basically what i need to be able to do is have

$build_jump_url?ID=$id&display=2

Now i tried to work out what i would have to do.. i hoped just copy a new subroutine and change the number 1 to 2 or something...

as this is in site_html_templates

sub site_html_jump_display {
my (%rec) = @_;
&html_print_headers;
print &load_template ('jump_display.html', {
%rec,
%globals
});
}

i guess i need

sub site_html_jump_display2

and that is where i would put the url to the other frame however i do not know what i need to change in jump.cgi

Any help as always appreciated.. thanks everyone.




------------------
http://www.freeontheweb.com/
Reviewed and rated resources for webmasters
-------------------------
Quote Reply
Re: Review.cgi and Jump.cgi with frameset. In reply to
padder,

Hi there. Honestly, the best advice I have is to take out the top frame where you have links, like Report Dead Link, and make the whole top frame into a table. It will be much easier to configure and also maintain. I don't know why you have four frames for your jump.cgi frameset. I would recommend only have two.

Check out my example:

http://www.anthrotech.com/.../wwwvl/jump.cgi?ID=1

See, I have the whole top frame in a table with similar info that you have in your frame(s).

Hope this helps.

Regards,

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us
Quote Reply
Re: Review.cgi and Jump.cgi with frameset. In reply to
no.. if you wanted to do it your way padders with display=2.,. you don't add a new subroutine..

rather.. edit this line:

Code:
print &load_template ('jump_display.html', {

to:

Code:
print &load_template ($template, {

and add this in front of it..

Code:
if ($in{'display'} eq "2") { $template = "jump_display2.html"; }
else { $template = "jump_display2.html"; }

jerry
Quote Reply
Re: Review.cgi and Jump.cgi with frameset. In reply to
problem fixed (through icq)..

he had my %in = &parse_form;

which made the hash in only usuable in junmp.cgi so it never got to site_html_jump_display..

i told him to change it to

local %in = &parse_form;

and it worked

jerry
Quote Reply
Re: Review.cgi and Jump.cgi with frameset. In reply to
ok jerry found the problem for this..

change

my %in = &parse_form();

to

local %in = &parse_form();


and it works with the original eq.

Thanks to everyone for helping me to get this work.. it works a treat now :-)

------------------
http://www.freeontheweb.com/
Reviewed and rated resources for webmasters
-------------------------
Quote Reply
Re: Review.cgi and Jump.cgi with frameset. In reply to
Thanks jerry.. i understand that now...


Eliott..

the reason i want to do this is because i want to have a button frame that will rotate every 30 seconds or so. The only way to do this without having to reload the whole table is by having a seperate frame. I hoped i could only have 3 frames however and use a table for the top line and then have two links on the right (above the buttons) that did not need ID values so did not need to be &display=? however i could never get the frames to line up in netscape and with different text sizes it became impossible to do.

If I want the meta refresh button frame this is the only way I can do it.

Thanks for all the help everyone

------------------
http://www.freeontheweb.com/
Reviewed and rated resources for webmasters
-------------------------
Quote Reply
Re: Review.cgi and Jump.cgi with frameset. In reply to
Ok a problem :

sub site_html_jump_display {
my (%rec) = @_;
&html_print_headers;
if ($in{'display'} eq "2") { $template = "jump_display2.html"; }
else { $template = "jump_display.html"; }
print &load_template ($template, {
%rec,
%globals
});
}

That is my code...

however the if else statment does not seem to be working. Both frames open with the same template (always the else tempate as in jump_display in this case.

What have i done wrong?
Quote Reply
Re: Review.cgi and Jump.cgi with frameset. In reply to
wouldn't the eq be ==? for a numeric value or is eq alphanumeric? Anyway, try == where eq is.
Quote Reply
Re: Review.cgi and Jump.cgi with frameset. In reply to
herm... yea.. put '==' but i always thought eq worked on both..

you could change it and say

display=rating

or something and it will probably be easier to tell the difference..

jerry
Quote Reply
Re: Review.cgi and Jump.cgi with frameset. In reply to
Thank you but no luck. Does not seem to make a differnce.

I also tried it without quotes and that did not help..

I also tried it using > sign (not even sure it is valid in this case) but the same thing happened however the template reversed ie got the first one not the second one.

Just wondering if that illuminated anything. Any more ideas?


------------------
http://www.freeontheweb.com/
Reviewed and rated resources for webmasters
-------------------------