Solved

Javascript to delphi

Posted on 2008-10-23
2
435 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 36

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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

Article by: DanRollins
This article describes a JavaScript program that creates a maze made of hexagonal cells.  In Part 2 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7850-Hex-Maze-Part-2.html), we'll extend the program by adding a depth-…
This article discusses the difference between strict equality operator and equality operator in JavaScript. The Need: Because JavaScript performs an implicit type conversion when performing comparisons, we have to take this into account when wri…
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…

705 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

17 Experts available now in Live!

Get 1:1 Help Now