Link to home
Start Free TrialLog in
Avatar of Bruce Gust
Bruce GustFlag for United States of America

asked on

Why does my button disappear?

Head out to http://brucegust.com/kitchen_master/door_shop.php?door_id=555&product_id=826

Click on the "view cart" button. You'll get a pop up that shows you what's in the Cart. now click on "Continue Shopping" on that pop up.

At that point, the screen background disappears, the popup goes away and...

...the "view cart" button should re-appear and it doesn't.

Here's my Javascript (starting on line 170):

$("#menu_toggle_option").click(function(e){
		e.preventDefault();
		//alert("ajax_2.php");
		$('#sidebar_content').load('ajax.php?session_id=<?php echo $session_id;?>');
		$("#wrapper").toggleClass("menuDisplayed");
		$('#show_cart_button').show();
		$("#select_option").show();
		$(".button").show();
		$(".modal-content").hide();
		$('#screen').hide();
		return false;
		 //alert("The paragraph was clicked.");
	});

Open in new window


I'm going nuts! What am I missing? I need that button to be visible after the popup is closed.

Thanks!
SOLUTION
Avatar of Tom Beck
Tom Beck
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Bruce Gust

ASKER

I was able to get this to "behave," by going out and eliminating some of the "show" and "hide" that I didn't need. Bottom line: Why things were not working, I'm still not sure. But by getting rid of some of what I didn't need, I got the performance I was looking for.

Thanks!