Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Why to click twice on web aplication?

Status
Not open for further replies.

DerStephan

Programmer
Aug 19, 2003
54
0
0
DE
Hi all

I have a FORM for the WEB.

There is a Button "Publish"
here is what this button does.

Code:
FIELD agentCall := @UserName;
@If(Categories="" | Subject = "";
		@Do(@SetTargetFrame("main");
			@Command([OpenPage] ; "error" ));
		@Do(@Command([FileSave]);
			@Command([ToolsRunMacro];"SetPublish");
			@SetTargetFrame("main");
			@Command([OpenPage] ; "submit" )))

So all works fine but I have one problem:

Wen i click on this button, the page refreshes and apears as it looks befor i pushed the button, when i click this button again it works and displays the right page....

So the only question i have is: Why?
Maybee it'scaused by the call of the agent!?
when I short this to:

Code:
FIELD agentCall := @UserName;
@Command([FileSave]);
@Command([ToolsRunMacro];"SetPublish");
@SetTargetFrame("main");
@Command([OpenPage] ; "submit" )))

It works fine, too

but why?

Thanks in advance...


Stephan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top