Jump to content

hyperlink


Mediv

Recommended Posts

There is a project that is running on the server, users refer to it from the outside, the task of pressing a button on the report form and open a user's browser. The problem is that you can not use ShellApi unit, because when I call the hyperlink, the report will open on the server not the client, which is logical, Prompt startup options for the hyperlink. Thank you.

 

Есть проект который крутиться на серваке, к нему обращаются пользователи снаружи, задача по нажатию на кнопку формировать отчет и открывать у пользователя в браузере, если есть плагин откроет страницу, нет - скачает и сохранит. Проблема в том что нельзя использовать ShellApi unit, потому что когда я вызываю гиперсылку, то отчет открывается на серваке а не на клиенте, что логично, Подскажите варианты запуска гиперссылки по кнопке. Спасибо.

Link to comment
Share on other sites

  • Administrators

There is a project that is running on the server, users refer to it from the outside, the task of pressing a button on the report form and open a user's browser. The problem is that you can not use ShellApi unit, because when I call the hyperlink, the report will open on the server not the client, which is logical, Prompt startup options for the hyperlink. Thank you.

 

On web side your app already runs inside a browser window. Do you want to open a new browser window or ?

Link to comment
Share on other sites

Есть проект который крутиться на серваке, к нему обращаются пользователи снаружи, задача по нажатию на кнопку формировать отчет и открывать у пользователя в браузере, если есть плагин откроет страницу, нет - скачает и сохранит. Проблема в том что нельзя использовать ShellApi unit, потому что когда я вызываю гиперсылку, то отчет открывается на серваке а не на клиенте, что логично, Подскажите варианты запуска гиперссылки по кнопке. Спасибо.

Используй CSS чтобы превратить ссылку в кнопку. Примеров полно, например http://webdesignerwall.com/tutorials/css3-gradient-buttons. Добавь параметр target=_blank в тег <a>, чтобы ссылка открывалась в новой вкладке/окне.

Это самый простой вариант.

Link to comment
Share on other sites

Можешь кинуть пример исп-ия css?? Я так понимаю нужно использовать UniServerModule.CustomFiles, там нужно указать пусть до сценария?? или сам код написать? Спасибо.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...