Solved

Javascript to delphi

Posted on 2008-10-23
2
442 Views
Last Modified: 2012-05-05
Hi Experts,

I have a function in javascript and I have to do the same function in delphi 7

Someone could help me please ?

The function is:

function gaiacb_onLoginSubmit() {
  var CONTINUE = 'continue';
  var f = GetForm();
  if (f) {
    var continueUrl = f[CONTINUE].value;
    if (continueUrl != null &&  continueUrl != '') {
      var lts = new Date().getTime();
      continueUrl = StripParam(continueUrl, 'ts=[0-9]*:[0-9]*:[0-9]*');
      var tsParam = startTime + ':' + focusTime + ':' + lts;
      continueUrl = AddUrlParam(continueUrl, 'ts', tsParam);
      f[CONTINUE].value = continueUrl;
    }
  }
  return true;
}

This function is in Orkut.com, in the login screen.

This funcion return somethink like this: http://www.orkut.com.br/RedirLogin.aspx?msg=0&ts=1224796766738:1224796766756:1224796796622

I have to generate the ts parameter at least because the rest does not change.

Thx for some help
0
Comment
Question by:alpires
2 Comments
 
LVL 37

Assisted Solution

by:Geert Gruwez
Geert Gruwez earned 100 total points
ID: 22793546
do you need this as a Delphi Form login for a delphi win32 application
or how ?
0
 

Accepted Solution

by:
alpires earned 0 total points
ID: 22891766
thanks, but I will not use this function more
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now