trouble opening web pages in the system browser

5 ビュー (過去 30 日間)
Gianluigi
Gianluigi 2021 年 1 月 31 日
コメント済み: Mario Malic 2021 年 1 月 31 日
Hi,
I have attached an example html file that has links inside. Suppose the file located in c:\temp, then if I open it with the matlab browser this link:
web('file:///C:\temp/_instruction_set.html#instr_NO_operation_option')
it works correctely and the "_instruction_set.html#instr_NO_operation_option" inside "_instruction_set.html" is linked.
Now if I try to open it in the system browser:
web('file:///C:\temp/_instruction_set.html#instr_NO_operation_option','-browser')
what it is linked is: "_instruction_set.html", namely the top of the page. I am not able to solve the problem: is it a browser protection (I tried both Chrome and edge with the same negative results)? What to do to workaround?
thank you, gianluigi
  2 件のコメント
Mario Malic
Mario Malic 2021 年 1 月 31 日
The 'file:///' might be an issue, try without it.
Gianluigi
Gianluigi 2021 年 1 月 31 日
I already tried. No difference.
Thank you for your prompt answer.

サインインしてコメントする。

回答 (1 件)

Mario Malic
Mario Malic 2021 年 1 月 31 日
Hi,
This should work
web("C:\temp/_instruction_set.html#instr_NO_operation_option")
  2 件のコメント
Gianluigi
Gianluigi 2021 年 1 月 31 日
Yes, that works, opened in the matlab web browser. The problems rises when I try to open it in the system browser, using the opt '-browser':
web("C:\temp/_instruction_set.html#instr_NO_operation_option",'-browser')
Mario Malic
Mario Malic 2021 年 1 月 31 日
I noticed now what you mean. Yes, that's an issue, and it's going to be hard to find why does it not move to chosen instruction. Especially since, if you copy and paste link directly into browser, it works.
I am not sure how would you deal with this problem other than to use MATLAB's browser or contact customer service to hear what they think about it. Maybe someone else may take a look at this question.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeHelp and Support についてさらに検索

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by