How to refresh just one side of the page

  • (2 Pages)
  • +
  • 1
  • 2

16 Replies - 965 Views - Last Post: 01 January 2013 - 08:19 AM Rate Topic: -----

#16 makamo66  Icon User is offline

  • New D.I.C Head

Reputation: -5
  • View blog
  • Posts: 43
  • Joined: 04-February 09

Re: How to refresh just one side of the page

Posted 01 January 2013 - 06:58 AM

I gave the draggable divs a new class called rightSide when they're dragged to the right side. You can see that the class has changed because the background color turns to pink. Now that it's a new class I can ask it to show instead of toggle like this:

		$("#clickMe3").click(function() {
		$(".rightSide").show();
		$("#showMe3").toggle();
    });


But instead of showing the right side divs, it toggles back to hide just like the left side divs do. At http://myownmealplan...m/mealplans/add you can click on the 300, 400, 800 tiles to try it out.
Was This Post Helpful? 0
  • +
  • -

#17 makamo66  Icon User is offline

  • New D.I.C Head

Reputation: -5
  • View blog
  • Posts: 43
  • Joined: 04-February 09

Re: How to refresh just one side of the page

Posted 01 January 2013 - 08:19 AM

xelawho at http://www.webdevelo...743#post1242743 suggested I use $(ui.draggable).appendTo($(this)); to keep the divs on the right side and now they don't hide when I toggle. It's pretty much working as desired now.
Was This Post Helpful? 0
  • +
  • -

  • (2 Pages)
  • +
  • 1
  • 2