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 7683035
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T18:42:17+00:00 2026-05-31T18:42:17+00:00

I am using localtime.js sucessfully on my app but now that ive started to

  • 0

I am using localtime.js sucessfully on my app but now that ive started to use ajax
the elements created with ajax does not have the formatting that the plugin localtime does for me on my normal non ajax elements.
here’s the local time plugin in im using
http://code.google.com/p/jquery-localtime/downloads/detail?name=jquery.localtime-0.5.js&can=2&q=
how can i re trigger it for the new elements that ajax created?

  • 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-05-31T18:42:18+00:00Added an answer on May 31, 2026 at 6:42 pm

    I’m guessing your localtime plugin is listening for DOM readiness event like $(document).ready() to apply its formatting to the appropriate elements during the initial page load. Unless there is a similar link from your ajax success callback, in which new DOM content is inject, to those formatting functions, those functions will not be triggered and the desired formatting will not occur. In order to select and format elements added after the initial page load, you’ll probably need to call your localtime formatting functions after you inject elements from your ajax call. This may involve enclosing your formatting process in a named function, which you would call once during initial page load, and again each time relevant content is injected.

    If you were to show us your code, you could probably expect a more detailed and direct response.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I can get the system time using struct tm and time(),localtime(),asctime().but i need help
I try to calculate a List with times. But using LocalTime from Joda Time
How do I tweak this to get yesterday's date using localtime? use strict; sub
I'm familiar with using NSLocalizedString() to localize strings, but the problem I have today
When I localize an asp.net page that is using bound controls (DetailsView, etc) that
Using PyObjC , you can use Python to write Cocoa applications for OS X.
Using ASP.NET MVC there are situations (such as form submission) that may require a
I'm writing python program to build mac-address cache using pcap. But pcap module for
Hey. I only recently started using Python, and my friend suggested using Twisted as
I'm using dojo.query , which internally uses CSS3 selectors to identify which elements you

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.