Solved

Javascript to delphi

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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
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…

776 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