Default file linking from an a tag

Do not post support requests, bug reports or feature requests. Discuss CEF here. Non-CEF related discussion goes in General Discussion!

Default file linking from an a tag

Postby nychacker » Thu Sep 20, 2012 11:00 am

Hi,

I'm trying to port a project to CEF from xcode.

One of the behaviors I noticed is that in xcode's webview, opening a local file link actually opens the file itself if you set target to _blank.

In CEF, the project tries to open it inside the project itself, which is definitely not what I want.

Anyway to disable this behavior or get around it?

Thanks!
nychacker
Newbie
 
Posts: 1
Joined: Thu Sep 20, 2012 10:54 am

Re: Default file linking from an a tag

Postby magreenblatt » Fri Sep 21, 2012 8:07 am

You can use OnBeforeBrowse or OnBeforeResourceLoad to intercept/cancel the request and handle it in your application.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm


Return to CEF Discussion

Who is online

Users browsing this forum: No registered users and 141 guests

cron