spacer
cornerspacercorner
Reply
Occasional Contributor
RMiranda
Posts: 3
Registered: 11-08-2011
0 Kudos

Clicking a Hidden Button without losing focus

Hi, I have started working with ver7, and would like to know if is it possible to click on a hidden button(Visibility depends on: "Don't Show") without using onfocus().
The problem is when the button is dynamically clicked, the field with the current focus loses it, and the cursor goes to the top of the page, this as you can imagine  increases the number of human errors. Any suggestions?

Valued Contributor
Paul
Posts: 146
Registered: 05-19-2010
0 Kudos

Re: Clicking a Hidden Button without losing focus

In v7 you can click a hidden button from client-side jscript using ButtonClick(buttonName)

 

Hope this helps.

Occasional Contributor
RMiranda
Posts: 3
Registered: 11-08-2011
0 Kudos

Re: Clicking a Hidden Button without losing focus

Same with buttonclick.

 

But I have find out through some debug that the cursor jumps in the onlcick function, in the following:

 

    function ClickButton(buttonname)
    {
        eworkData.FieldByName(buttonname).HTMLfield.onfocus();
        eworkData.FieldByName(buttonname).HTMLfield.onclick();
        clearInterval(IntervalID);
        win=null;
    }

 

No my dilemma is, the button must be clicked because it affects a costume variable with a SQL Server returned value, needed in the rest of the interface, but would need the cursor not to jump when the button is clicked, is this possible in anyway?

line spacer line
spacerFollow Metastorm on:
spacer Twitter YouTube Blog iTunes LinkedIn Metastorm Community Central, MC2
spacer Copyright © 2011 OpenText Corporation. All Rights Reserved.spacer About Metastormspacer Privacyspacer Legalspacer Site Mapspacer RSSspacer Contact Us
Microsoft Gold Certified Partner
Powered by Windows Azure
line spacer line