Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: IW: Back and Forward browser's buttons



Permlink Replies: 1 - Last Post: Mar 12, 2018 11:26 AM Last Post By: Eitan Arbel Threads: [ Previous | Next ]
Pirat Features

Posts: 4
Registered: 3/2/14
IW: Back and Forward browser's buttons
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 12, 2018 4:39 AM
Hello, I'm using IW 14.2.7 Ultimate version and for each IWForm I added a hundler:

 THandlers.Add('/<unique text>', TContentForm.Create(<class of iwform>));


1. How I can create the form on runtime with THandler?
2. How I can handle "back" or "forward" buttons of browser? How can I call
 Self.Release; or Self.Hide; 
when the user click "back" ?
3. When I click "back" to the main form -> all ajax registered callbacks don't working until first click on the any button. Why?
Eitan Arbel

Posts: 508
Registered: 2/24/13
Re: IW: Back and Forward browser's buttons
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 12, 2018 11:26 AM   in response to: Pirat Features in response to: Pirat Features
Hi

1. may i ask, why do you want to deal with Handlers and not create the forms in runtime, like in normal vcl app?

2. you can block\disable the Back button, and let your user navigate only from your controls. that way you will have more control over the user's "movement" and lower chances of back-and-forward bugs (even tho there is a DoubleSubmission prevention option by iw)

3. i'm not sure i understand. ajax is for Async. have you tried click on something, in both Sync and Async?
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02