Andrius Gasto

Greenhorn
+ Follow
since Mar 06, 2014
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Andrius Gasto

Hello,

my aim is to get an access to the data using the OAuth. For initial authentication I use servlet which redirects me to the login page and after successful signing in, I am redirected to the callback URL which contains the verifier code. Thus, I'd like to ask for a guidance on getting this URL for further processing?
7 years ago
I know how to extract data from the html table row by row but I am having problems extracting data from the specific (selected) column. How it should be done?
I have a javascript function, which extracts table ID when table is clicked. And the plan is to click on the specific column and get all column values.
Well, I figured it myself. In case someone needs it:

<td bgcolor="#f4f4f4">
<script type="text/javascript">
date_conversion(<%#Eval("MDate")%>);
</script>
</td>

Javascript converts epoch to readable data and stores it in a table

<script type="text/javascript">
function date_conversion(date)
{
var myDate = new Date(date * 1000);
date = myDate.toGMTString();
var trimmed_date = date.substring(0, date.length-4) // Atmetamas GMT ir vienas tarpas
document.write(trimmed_date);
}
</script>
This part of the code is written in ASP.
Could you please suggest a way of getting an array of strings from <%#Eval("MDate")%> ?
Thank you for a reply.

Well, I am taking data from the web site using API.

I tried doing something like this and it worked, however I had to use the java script:

date = <%#Eval("MDate")%>

var myDate = new Date(date * 1000);
date = myDate.toGMTString();

So I was interested if there is a way to do a straight conversion in this part <%#Eval("MDate")%>?
What I get in a <%#Eval("MDate")%> is a string like 1331554332 and I need to convert it to normal date.

Hello,

Could you please explain, how to convert timestamp string to normal date in HTML table?

An entry in the table looks like this:

<td bgcolor="#f4f4f4">
<%#Eval("MDate")%>
<td bgcolor="#f4f4f4">