This topic is locked

auto pressing button

5/19/2010 1:44:04 PM
PHPRunner General questions
D
danaci author

hi,
I have a table and contains one field,
table1

name varchar(10)
is poosible this event?

on add new record or edit record if length(name)==10

{

then pressed submit button or other button programatically..

}
regards.

A
ann 5/20/2010

Hi,
to press button programatically use Add/Edit JavaScript OnLoad events on the Eventstab.

Here is a sample code:

var ctrl = Runner.getControl(pageid, 'FieldName');

ctrl.on('change', function(e){

if (ctrl.getValue().length>10) {editform1.submit()}

});
D
danaci author 5/20/2010

Dear Ann,

this code not working,

phpr 5.2 4905
my table is
name varchar(10)
function OnPageLoadAdd(pageid)

{

var ctrl = Runner.getControl(pageid, 'name');

ctrl.on('change', function(e){

if (ctrl.getValue().length>10) {editform1.submit()}

});
what is pageid?
regards and thnx.

A
ann 5/20/2010

Hi,
pageid - is page's unique numeric identifier.

Please download and install latest build 5482: http://xlinesoft.com/download. If it doesn't help publish your project on Demo Account and open a ticket at http://support.xlinesoft.com sending a URL to your pages along with instructions on reproducing this error.

D
danaci author 5/20/2010



Hi,
pageid - is page's unique numeric identifier.

Please download and install latest build 5482: http://xlinesoft.com/download. If it doesn't help publish your project on Demo Account and open a ticket at http://support.xlinesoft.com sending a URL to your pages along with instructions on reproducing this error.


dear Ann,

very much thnx for response,
PAGEID Do I have to give?
regards.

A
ann 5/20/2010

Hi,
pageid - is an internal parameter of the OnPageLoadAdd function. PHPRunner generates it.