开发者

Integrate HTML menu from Third-party into my application

开发者 https://www.devze.com 2023-02-04 12:20 出处:网络
Some of our customers gave me a link that opens HTML menu (HTML + JS). I need to use this menu into my application.

Some of our customers gave me a link that opens HTML menu (HTML + JS). I need to use this menu into my application.

The menu locat开发者_C百科ion is something like: http://www.customer_web_site.com/?pagename=HTMLMenu

When I click the above link, I can open the menu and It looks okey, but the problem is when I put it inside an iframe in my page, it looks very ugly in terms of when the user click any link on this menu, only the iframe content get changed and I need the whole page get changed.

How can I accomplish that???


This has to do with the links in the menu, they need to have the attribute target="_parent" that way the links will normally. I'm guessing you cannot edit the menu code, can you copy and paste it inside your website, that way you don't have to load it as an iframe?


Actually I am deploying my application in Java Servlet Container, so I used some JSP tag that do the trick, it open connection to the remote url, copy the source code and put it in my page. it is c:import

0

精彩评论

暂无评论...
验证码 换一张
取 消