Welcome Guest Search | Active Topics | Sign In | Register

Change message "Please enter a valid Internet URL." Options
Guillaume S
Posted: Friday, November 13, 2015 6:22:57 AM
Rank: Newbie
Groups: Member

Joined: 11/13/2015
Posts: 1
Hello.

First thanks for EO.Web. I am using EO.Web 2013. It is a good product I am using for professional purposes.

I am implementing an HTML Editor and I want to translate it all into French. I translated most of it but I can't find how to change the JavaScript alert message "Please enter a valid Internet URL." when I post a InsertOrEditImage dialog with an empty input eo_editor_insertimage_url.

Does anyone know how to achieve that?
Is it a behavior we can change such as find_nomatch in the ClientSideOnMessage JavaScript function? (see help > EO.Web > EO.Web HTML Editor > Localization)

Thanks in advance!
eo_support
Posted: Saturday, November 14, 2015 11:40:55 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,229
Hi,

You will need to use this property:

http://www.essentialobjects.com/doc/eo.web.control.clientsideonerror.aspx

This property points to the name of the JavaScript function that takes this prototype:

http://www.essentialobjects.com/doc/jsdoc.public.web.handlers.clientside_error_handler.aspx

In your function, you can check the value of the "error" parameter and if it is "invalid_url", you can display your own version of the error message.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.