0
CSS Problem working with Frames
Participant
,
/t5/dreamweaver-discussions/css-problem-working-with-frames/td-p/320513
Nov 05, 2006
Nov 05, 2006
Copy link to clipboard
Copied
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!!!
============= 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
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
LEGEND
,
/t5/dreamweaver-discussions/css-problem-working-with-frames/m-p/320514#M147261
Nov 05, 2006
Nov 05, 2006
Copy link to clipboard
Copied
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!!!
>
>
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!!!
>
>
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
WebXperience
AUTHOR
Participant
,
LATEST
/t5/dreamweaver-discussions/css-problem-working-with-frames/m-p/320515#M147262
Nov 06, 2006
Nov 06, 2006
Copy link to clipboard
Copied
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.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

