Jump to content

iFrame help please


Guest

Recommended Posts

Hi all,

I have just installed CubeCart, a great script thanks.

I have modified the Killer template to fit nicely into an iFrame on my existing site.

There is just one action that breaks out of the iFrame and that is changing the currency, language would probably I guess do the same but I have removed that.

Can anyone please advise how I could prevent a currency change from doing this.

Many thanks,

Michael

Link to comment
Share on other sites

Guest Earth Bizz

What???

What do you mean by "There is just one action that breaks out of the iFrame" .. What "action"???

Please explain in more clearer language.. My head hurts trying to work out the meaning of your sentences.

;)

Link to comment
Share on other sites

Thanks for the reply, sorry about your head :-)

What I mean is that all my pages work very nicely inside the iFrame.

But, if I change the currency using the selection box I get the new updated page on it's own out of the iFrame.

Hope that's clearer.

You can see what I mean if you go here & then change the currency:-

http://www.gozonews.com/index.php?section=20

Thanks again,

Michael

Link to comment
Share on other sites

Did you think, that putting index.php onto IFRAME URL is sufficient? In some cases (like currency, lang) , header of the WHOLE page is changing ;)

You have to handle some CubeCarts GET parameters outside of IFRAME and putting them onto IFRAME target URL ;)

Look at switch.php.

OR

change currency <option> value for direct using of index.php with apriopriate GET values in skins/Killer/styleTemplates/boxes/currency.tpl

Link to comment
Share on other sites

Thanks for the info,

I am now looking at the two files you mention.

I am a Php newbie so I would appreciate it if you could tell me exactly what I need to change please.

Thanks again,

Michael

Link to comment
Share on other sites

Guest cyberdesigner

One other suggestion is to remove the currency box by commenting out the code on index.php - your other scripts are not using it so default it to whatever and let them use your converter software.

That would be real easy for you to do.

Rob.

Link to comment
Share on other sites

Thanks for your reply Rob,

Yes I could easily do that, but I would if possible like to do it within the iFrame.

I want to avoid making visitors jump around the site if I can.

Thanks again,

Michael

Link to comment
Share on other sites

Guest Earth Bizz

Something to do with changing "target=blank" to "target=self" .. somewhere .. in some file .. not sure .. it's just ringing a bell .. anyone know????

;)

Link to comment
Share on other sites

It would have been nice if it was that simple....... :D

Unfortunately it's not.

Convict advised changing a variable in currency.tpl but unfortunately I don't know enough about Php yet.....

Anyone have any idea what I need to change?

Thanks,

Michael

Link to comment
Share on other sites

Guest cyberdesigner

Something to do with changing  "target=blank" to "target=self" .. somewhere .. in some file .. not sure .. it's just ringing a bell .. anyone know????

:)

That would be

<base target = "ID of IFRAME">

which incedently would go inside the head tags of the page inserted into the iframe!

Link to comment
Share on other sites

  • 5 months later...

Actually, the best solution to this issue is to edit the following equivalent line in the language.tpl and currency.tpl files located in the styleTemplates/boxes directory for the skin you are using.

I changed:

<select name="lang" class="dropDown" onchange="jumpMenu('parent',this,0)">

to

<select name="lang" class="dropDown" onchange="jumpMenu('self',this,0)">

This works a treat!

Dave

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...