Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

CSS Problem working with Frames

Participant ,
Nov 05, 2006 Nov 05, 2006
Hi guys! I'm repairing a client's website that includes a shopping cart. When the site is first visited, I have the view cart button hidden:
============= Frame One ================
html code:
<a id="viewcart" href=#>View Cart</a>

CSS code:
a#viewcart { visiblity: hidden;}


============= Frame Two ================
<FORM><INPUT TYPE="HIDDEN" NAME="product[]" VALUE="Here Today Gone Tomorrow">
<INPUT TYPE="HIDDEN" NAME="price" VALUE="14.95">
<INPUT TYPE="SUBMIT" value="Add to Cart" name="B1">
</FORM>

I would like to turn the button on whenever an add to cart button has been pressed.
If I were working within the same page, I think I could get away with something like:

CSS Code:
form submit:active, a#viewcart { visiblity: visible;}

Am I thinking in the right direction or am I screwing up.

HELP!!!
TOPICS
Server side applications
313
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Nov 05, 2006 Nov 05, 2006
To affect Frame one by a button in frame two you are going to have to reload
the whole frameset, which could cause you problems. If the top frameset is
only to hold this link then there is little point in using it over having
all the code on the same page and controlling it via CSS as you have.

--
Paul Whitham
Certified Dreamweaver MX2004 Professional
Adobe Community Expert - Dreamweaver

Valleybiz Internet Design
www.valleybiz.net

"WebXperience" <webforumsuser@macromedia.com> wrote in message
news:eildvv$l57$1@forums.macromedia.com...
> Hi guys! I'm repairing a client's website that includes a shopping cart.
> When
> the site is first visited, I have the view cart button hidden:
> ============= Frame One ================
> html code:
> <a id="viewcart" href=#>View Cart</a>
>
> CSS code:
> a#viewcart { visiblity: hidden;}
>
>
> ============= Frame Two ================
> <FORM><INPUT TYPE="HIDDEN" NAME="product[]" VALUE="Here Today Gone
> Tomorrow">
> <INPUT TYPE="HIDDEN" NAME="price" VALUE="14.95">
> <INPUT TYPE="SUBMIT" value="Add to Cart" name="B1">
> </FORM>
>
> I would like to turn the button on whenever an add to cart button has been
> pressed.
> If I were working within the same page, I think I could get away with
> something like:
>
> CSS Code:
> form submit:active, a#viewcart { visiblity: visible;}
>
> Am I thinking in the right direction or am I screwing up.
>
> HELP!!!
>
>


Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Nov 06, 2006 Nov 06, 2006
LATEST
The client's wholesite is based on this frame setup and their not interested in changing their whole site but would like to give their customers access to a view-your-cart button. I guess I could put a link or button on the page that loads in Frame Two which is where the cart will appear. But it would be good to have that button appear in Frame One.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines