is there any way to get the a post's date and time on which it was posted in Blogger using JAVA Script or jQuery?
The solution is just simple, do the following:
Go to your Blog's Settings>>Language and formatting
Look at the Timestamp Format, maybe that is set to only the time and does not include days and month.
Click the drop-down and change it accordingly (just copy mine above)
Solved! It's just that easy.
Go to this blog post for details...
Related
There are some vintage answers but they seem to be based on the client date.
I simply need a DIV to display if the posted (published) date of the article is on or after 2/25/2017. Platform=Google Blogger so no PHP.
Thanks
In the picture in the following link the black box labeled #timestamp lists a date and time (sorry you need a 10 reputation to post an image)
https://www.elastic.co/assets/bltde09cbafb09b7f08/Screen-Shot-2014-09-30-at-4.07.15-PM.png
I have a kibana 4 dashboard embedded in a webpage and I would like to get access to these timestamps. An ideal behavior would be when a node is clicked the time stamp is printed in the console.
I have already suppressed the same-origin policy.
Has anyone performed something similar? I would appreciate any solution or insight.
Try to grab it using jQuery's .contains selector:
$(':contains(#timestamp)').click(function(){
var info = $(this).parent().find(':contains(,)').html();
console.log(info);
});
I'm having a terrible hard time at trying to get the Mottie Tablesorter plugin to work properly on my HTML page.
I'm designing the front end of a website for someone, and I need the advanced filters provided with this plugin:
http://mottie.github.io/tablesorter/docs/example-widget-filter-formatter-1.html#demo
I have downloaded the files in .zip format, extracted them and placed them in my project, and made sure all the links work properly and that the page can read them.
I have copy/pasted the stuff from the demo with the multiple types of filters across all the columns (in the code quotes) into my HTML page.
However, the second table header row inside the table header doesn't appear.
I can't figure out what it is that I'm doing wrong.
Here's a screenshot of what gets rendered on the page + the offending code inside the web inspector of Safari: http://puu.sh/dqzNX.png
As you can see, the second table header looks like it is trying to display, but it's empty?
And it seems like it generates a search for searching by text, but is set to hidden (I don't know why)
And it also generates the correct amount of TH's, but all of them (apart from the first one) are empty!!
I've been banging my head against a wall over this for 4 days now and have no clue!
Can anyone else get this demo to work properly?
Many thanks for taking the time to read all of this!
Looks like I must not have been pulling jQuery UI into my project properly, as when I started from scratch it all looks like it's working now! -- My bad, thanks for the help though, great table filtering!
In my haste I also seemed to have put a css CDN into a script src tag, causing some style errors where the date picker was below the table before it had been selected and had a transparent background. That had me stumped for a good 20 minutes until I realised my mistake!
I'm struggling with this problem for almost a week now, so I decided to post it here, if maybe can help me with a different approach.
Yii Framework 1.1.14
I have two controllers PropertiesController and RatesController. The actionUpdate on the PropertiesController renders "properties/view" which has a renderPartial('_rates'). "_rates.php" contains a small form which, through ajax, gets all the fields' information and send it to "rates/create" and it has another renderPartial('_ratesProperty') which has a CGridView with all the rates' information for one property.
The problem is when I create a new rate for the property and the CGridView gets updated, the pagers links changes from "?r=properties/update&id=36&Rates_page=2" to "?r=rates/create&Rates_page=2" my guess is because it retrieves the updated CGridView from the RatesController.actionCreate, so my question is: Is there a chance to modify the links not using Javascript?
Thanks in advance!
Finally I had to solve this problem on the frontend, each time I add a new rate, modify the pager's href, in order to work on the current controller/action.
I am almost ashamed of asking this question since it must be super simple but I have looked everywhere on the web and I can't find it. The fact that Google recently changed the URL of its spreadsheets does not help.
Essentially, I am trying to read one value in a Google Spreadsheet and display it on my website. For instance, if I take this spreadsheet: https://docs.google.com/spreadsheets/d/1pzu6_-1rctgr_Zzr73Q1ZhJJrE0Ar8OH-uCaK50_V4w/edit#gid=0. How do I show in my html page some like < p > Current Temperature is < script .... > ... < /script >< /p > ?
I already know how to use google.visualization and I am showing historical trends on my website, but I simply want to include the current temperature on a separate page. I figure we can do this in two ways, first by directly querying with a specific URL or by using an API. But I have no idea how to do this.
Any help would be greatly appreciated.
Thank you!
I'm sorry to see that this post gets little attention. I ended up using google.visualization to read the last value of the spreadsheet. I think it's a little overkill, but it works.
I think your best bet would be to use Google Apps Script. You embed this script within the spreadsheet and it runs automatically, even if you don't have it open. (Documentation: https://developers.google.com/apps-script/reference/spreadsheet/spreadsheet). From what you've said above, I guess you want to do something like this:
When the Date Changes (You can set triggers in apps script)
Find the date in column A and grab the row number
Find the cell on that row in column B (Temp)
Get the value of that cell and pass it to your website.
Unfortunately I'm not sure how to solve your exact problem. Perhaps this will be a starting block or somebody else can take it from here. There is lots of documentation for apps script and there are plenty of Stack Overflow posts!