Skip to Content
author's profile photo Former Member
Former Member

Iframes in Jsp

Hi,

I am new to Portal develpment.So please bear with me if i ask you a stupid question :).

I have a created a DynpageJsp component and the Jsp has 2 Iframe tags.

First iframe has a src tag pointing external URL ,Second iframe is for the results from the first Iframe.

My problem is that the first iframe displays good and i can inzoom and uitzoom and finally when i select a building(It is a Graphics map of a city) i get a result in the form of xml in the explorer under the Iview.How can i get this result to present in good way.

<jsp:useBean id="myBean" scope="application" class="com.sap.test.bean.JSPBeanName" />

<hbj:content id="myContext" >

<hbj:page title="PageTitle">

<hbj:form id="myFormId" >

<iframe id="Nedbrowser" name="Nedbrowser" width="100%" height="100%"

frameborder="no" marginheight="0" marginwidth="0" scrolling="no"

style="position:relative; top:0; left:0; width:800; height:400; z-index:100; visibility:visible"

src="http://www.mygraphics.com/nbgint/NBG_INT_main.asp?action=CHART∏uct=INTERNET&size_x=300&size_y=300&result_frame=Results&default_centre_x=256000&default_centre_y=471000&default_width=21">

</iframe>

<iframe id="Results" name="Results" width="100%" height="100%"

frameborder="no" marginheight="0" marginwidth="0" scrolling="no"

style="position:relative; top:400; left:0; width:800; height:200; z-index:100; visibility:visible"

src="about:blank">

</iframe>

</hbj:form>

</hbj:page>

</hbj:content>

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Oct 07, 2005 at 02:12 PM

    Hi,

    if you want to display the documents behind the links of the first frame in the second frame, you have to add a target to the links:

    <a href=... taregt="Results"

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Martin,

      Thanks for your code but i think you misunderstood my requirement.

      my src tag is pointing to a http address of asp page.So in portal iview runtime, when i click a object in the asp component ,it sends me a result that suppose to be displayed in the Result Iframe.

      So it is not that i want the action behind the link.

      The result is coming but not inside the Iview where first Iframe is displayed.Also i am intrested to know how would i capture the result xml data and display in another Iview or in the same Iview where First Iframe displayed .

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.