Hello to everybody.
Is it possible to load a page in a targeted frame using navigation->goto_page( url )?.
As far as I know this sentence loads the new page in the same frame it is.
What I want to do is to load "url" in another determine frame.
I can get this by placing <BASE TARGET="REPORTE"> in the layout but I also want that when and event is tiggered, for example a "nodeClick" tiggered by a tree, the page brings upt to date in the same frame it was initially. With that sentence any new page will load in the frame REPORTE.
Does anyone know how can I do that?.
Thanks in advanced 😊
No. You cannot use the navigation object to target another frame. This is the server object. Server "does not know anything" about frames and HTTP protocol which server uses does not operate with frames.
The "frame" is the entity of the HTML and can only be controlled from HTML (for example: by javascript or 'target' attributes).
If you want to post something to another frame you have to create your own script.
In your case there are in principle two ways:
1. - Set your own script for the onclientclick attribute of the each node. This script must post something into other frame.
2. - Generate the script in the 'tree page' after some node is clicked. This script also accesses another frame and posts something there.
In first case - there will be no tree page refreshing after node click. Only the target page is refreshed.
In second case - first the 'tree' refreshed - then the target frame. Seems to be more complicated, but you can add some server-side logic here.
Add a comment