Project

General

Profile

Triggering a new WAnchor - server side

Added by Gianluca Sorrentino about 14 years ago

Hi folks,

i've created a button connected to a slot that creates a PDF and adds a WAnchor to the user GUI in order to open the new resource in a new window ( with setTarget(newTargetWindow) ).

Since i'd like to make the slot opening the document directly, is there a way to trigger the new WAnchor server side?

Thanks in advance!

Regards


Replies (1)

RE: Triggering a new WAnchor - server side - Added by Koen Deforche about 14 years ago

Hey Gianluca,

You can redirect to the resource, using WApplication::redirect(resource->url()). This will open in the current window though. There is no reliable way to open a new window since this is usually blocked by popup-blockers.

Regards,

koen

    (1-1/1)