Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7928645
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T19:47:51+00:00 2026-06-03T19:47:51+00:00

I have a page which builded with jquery mobile and play framework. It’s refreshing

  • 0

I have a page which builded with jquery mobile and play framework.

It’s refreshing some part of itself for retrive data. But my button styles are losing when it refreshed. What can i do?

<div id="thread" class="container_12">
 <div class="grid_6">
#{list items:servs, as:'serving'}   

        <div class="grid_2">
        <a href="@{Kitchen.served(serving.id)}" data-role="button">${serving.item.title}</a>
        </div>

        <div class="grid_2"><h2> ${serving.amount} </h2></div>

        <div class="grid_2"><h2> Masa - ${serving.dtableID} </h2></div>

 #{/list}

 </div>
<div class="grid_6">
#{list events}
    #{if _.type == '1'}
        <div class="message ${_.tableID == tableID ? 'you' : ''}">
            <h2>${_.tableID} Numaralı Masa</h2>
            <p>
                Garson çağırdı! 
            </p>
        </div>
    #{/if}
     #{if _.type == '2'}
        <div class="message ${_.tableID == tableID ? 'you' : ''}">
            <h2>${_.tableID} Numaralı Masa</h2>
            <p>
                Hesap istedi! 
            </p>
        </div>
    #{/if}
    #{if _.type == 'join'}
        <div class="message notice">
            <h2></h2>
            <p>
                ${_.tableID} numaralı masa girdi!
            </p>
        </div>
    #{/if}
    #{if _.type == 'leave'}
        <div class="message notice">
            <h2></h2>
            <p>
                ${_.tableID} numaralı masa Çıktı!
            </p>
        </div>
    #{/if}
#{/list}
</div>
</div>
<div class="clear"></div>

 #{get 'moreScripts' /}
 <script type="text/javascript" charset="${_response_encoding}">


// Reload the whole messages panel
var refresh = function() {
    $('#thread').load('@{room()} #thread', function() {

    })
}

// Call refresh every 5 seconds
setInterval(refresh, 5000)


</script>

In above it includes the javascript refresh codes.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T19:47:53+00:00Added an answer on June 3, 2026 at 7:47 pm

    I resolved my problem with adding

    $('#thread').trigger('create');
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a page which contains a jQuery-UI horizontal slider, created using a little
i have a page on which i have some rating function like people who
I have a page which loads children pages by using jQuery's .load function... My
I have page which is redirected from htaccess. now I can pass the German
I have a page which should show a form with checkboxes, post back if
I have web page which is passing a querystring parameter to page 2: <a
I have a page which contains a html.RenderPartial, that renders an ASP.NET MVC partial
I have a page which has an Html.DropDownList which takes in a viewdata parameter.
I have a page which has an Iframe. In that Iframe, there are six
I have a page which basically allows an admin user to create manager user

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.