"position:relative" in jsp

I have a html file in which I have a scrolling table with a fixed header. I achieve this by CSS and adding the attribute "position:relative" for the table header. I open it in IE6 and I have my functionality with the table body scrolling and the header fixed.
Now I have the same html code in my jsp and the whole table including the table header scrolls. it takes the value "overflow:auto" which allows scrolling, but it somehow doesnt take the value "position:relative" , which, results in my header to scroll.
Why is my jsp not respecting the "position:relative" attribute?
Raghav

I have done this in my JSP. To freeze header you have to use the following code in your THEAD (css),
top: expression(document.getElementById("mytable").scrollTop-1);
z-index: 10;

Similar Messages

  • Tooltip position relative to browser window

    Hi -
    I have a repeating region of left-floated divs that works
    like a horizontal looper for my data set - items repeat
    left-to-right, then start a new row. I have a tooltip on the div to
    pop up a large-scale image of the underlying repeating data.
    The problem is that on the rightmost column, the tooltip
    image runs off the right edge of the browser window (causing the
    horizontal scrollbar to appear). The bottom row does the same with
    the bottom edge of the window - you have to scroll town to see the
    entire tooltip, rather than the tooltip adjusting for the bottom of
    the window. Does the tooltip widget have a setting that will change
    its position relative to the mouse if you are up against the edges
    of the browser window?
    Thanks,
    Rod

    I have this same question. Can the tooltip flip horizontally
    when it touches the browser edge?

  • Why Position:Relative from CSS doesn't work at Safari 5.03?

    If you watch my web page: http://clubdeleonesst.tk
    I designed a ComboBox and have some problems with position relative. I used jQuery to create it, you could watch the original example here:
    http://www.marghoobsuleman.com/jquery-image-dropdown
    And I have been watching that the transparency from Flash doesn't work too. I hope you can solve these bugs.
    Message was edited by: FANMixco
    Message was edited by: FANMixco

    The "disappearing" affect you describe is not normal. You may need to reinstall Safari.
    First, try removing the Apple cookies from your Safari Preferences>Security>Cookies panel. Also, go to your Safari Menu and Empty cache. Then try to log-on to Apple Discussions.
    Also, regarding the "disappearing" effect, try Safari from another User Account.
    Here is guidance from Apple on how to set up the account. You can ignore step 7 in the article.
    Also, on the system preference>Accounts panel, click on "log-in" options. There, select "fast user switching". This allows you to go back and forth between user accounts via an icon in your Menu Bar at the top of the computer screen.
    Log-on to the new account and start Safari. If Safari is stable in the new account, then your problem is specific to your regular user account. Otherwise, similar response means a system-wide problem.
    Post back with results.

  • How to save your position in a JSP page on submit

    I am building a web application based on JSP pages and servlets. One of the JSP pages is larger than the screen, so i have to scroll down. On the lower part of the page, i have a control that submits a form to a servlet that performs some logic and then returns to the same JSP page. When the JSP page is redisplayed, it is positioned at its top position again. I would like to save my positioning on the page and return to the exact same scroll position. How is this easiest done?

    Just use an onclick or onsubmit event to get the current scroll position using JS and send it along the request to the server side and let it set the value in an onload event of the page which comes with the response.
    I am not going to give you JS+DOM codes here. Just learn it and if necessary ask help at the appropriate forum. There are JS and DOM tutorials at w3schools.com and there are clientside development forums at webdeveloper.com and dynamicdrive.com.

  • Confuse..where are the java files(bean) related to JSP in Portal??

    Hi..
    Can anybody plz help me..
    I already deploy the new JPDK Jan 2003.
    It's works fine in the Portal.
    Just, i don't understand, where they put the java files(bean) related?
    For example..the Lottery (lotto.jsp)
    it called this bean..
    "<jsp:usebean id = "picker" class = "oracle.portal.sample.devguide.lottery.LottoPicker" scope = "page" />"
    but, when i searched in the Server, i cannot find this LottoPicker.java.....
    Pls help me, it is urgent..

    Hi,
    All the bean files are in samplev2.jar at %OC4J_HOME%/j2ee/home/applications/jpdk/jpdk/WEB-INF/lib. If you extract the zip you will see all the class files for samples in JPDK.
    btw, as per J2EE container specification, the default location for any java class file (i.e. '.class' files) is WEB-INF/lib (packaged as a jar) or inside WEB-INF/classes as individial class files (with their complete package structure)
    Regards,
    Abhinav

  • Cut & Paste - different position relative to ruler - why ?

    CS5 is not honouring the relative position when cutting from one document then pasting to another.   In CS4 I would drag the ruler to a common element of both documents, then cut from one and paste in front in the other document.   This is no longer the case with CS5, it appears to be Art Board bound some how, and I dont want that becuase I can never be 100% assured the custom art boards are of the same size .... what happened Adobe , life used to be simple ?  Is there a software switch somewhere to have cut & paste adhere to relative ruler position ?

    Yeah I posted about this issue yesterday, glad to see others have been complaining about it. It's a huge issue, a dealbreaker as far as using CS5 or not. From the posts about labels and shrink wrap kinda sounds like there's some other folks in the thread doing flexographic work. I don't know if there's something about flexography that makes us desperately need to retain this feature, but so it is (I suppose since flexography uses so many different slightly different document sizes on a regular basis, compared to commercial which may only  use 4 or 5 radically different document sizes on a regular basis, it might affect us more).
    I put a call into Adobe about it yesterday. First level phone support said that on their end paste was working the way I wanted it. (He screen shared with my computer, I showed him the issue and he was mystified by it saying his CS5 was merrily pasting according to the ruler origin.) This makes it seem like, in contrary to Mr. Zimmerman, that this can be changed in a setting somehow. Note that support also called over their supervisor and they were both surprised to see me unable to paste in place (front/back) relative to the ruler, only relative to the document. He escalated the issue to second level support and said I should get a call back sometime late this week, we shall see. Obviously I can only trust 1st level support so much. I didn't screen share to him (only him to me) so for all I know (despite his assurances) he was accidentally working in CS4 or CS3.
    The weird thing to me about the whole issue is the change doesn't actually give anyone anything they didn't have before. Mr. Zimmerman seems to be saying that everyone and their brother was asking to be able to always paste according to the corner of the document, but in old versions that functionality was already present. If you wanted to paste according to the corner of the document you just double clicked in the top left corner (between your x and y rulers) to reset the rulers to the corner. Okay maybe people didn't want to reset their rulers after they paste, but it's a whole lot easier to reset a ruler than it is to be forced to paste things around a document without a ruler's help. I also understand that by adding in artboards (not a useful feature for me, but definitely a useful feature for most designers....old Freehand users will undoubtedly be leaping for joy) paste according to rulers becomes more problematic and they probably wanted to streamline things by default...but I still have a hard time imagining that Adobe would so screw over their customer base by totalling removing this functionality that has been so basic to Illustrator for so long by removing it entirely.
    I definitely second (sixth, seventh) the requests to add a paste according to ruler option  if my 1st level support guy was incorrect in his assessment that the functionality could still be turned on in CS5. I will post hopefully later this week with an update on my experience with 2nd level support.

  • Overlap 2 Images and Make Their Positions Relative?

    I need to essentially make a hotspot on an image that is another image.
    I know how to make hotspots. I know how to overlap images. But I need the overlapping image's position to be relative to the image beneath it.
    How can I do this?
    I have tried searching for Overlapping Images (answer: CSS)
    I have also tried searching for Mapping Images to Images (no luck, just brings up info on mapping images, period)
    I'm not sure what to search for to get this answer. That is why I am posting.
    I am using Dreamweaver CS3. I am a total n00b but if you point me in the right direction I can figure out the rest with research.
    Thank you in advance for your time.
    PS- Please don't say, "Why not just merge the 2 images with an Imaging Program?" I need to do this with hundreds of images, AND I need the images available separately on my site. This would create hundreds of additional images that I need to upload.

    Ignore this. I lost over half my post somehow. I'll try again. -.-
    <!Session data><input id="jsProxy" type="hidden"/></p><div id="refHTML"> </div><p></p><p><input id="gwProxy" type="hidden"/><!--Session data==></!--Session><input id="jsProxy" onclick="jsCall();" type="hidden"/></p>
    <div id="refHTML"></div>
    <p>This gives me a hotspot on an image. The hotspot's location is relative to the image behind it due to the image map.</p>
    <p> </p>
    <p>And here:</p>
    <p> </p>
    <div ispre=true?? __default_attr="plain" __jive_macro_name="code">
    <p>&lt;style type="text/css"&gt;<br/>&lt;!==<br/>.overlap {<br/> position: absolute;<br/> top: 100px;<br/> left: 50px;<br/>}<br/>==&gt;<br/>&lt;/style&gt;<br/>&lt;/head&gt;<br/><br/>&lt;body&gt;<br/>&lt ;div align="center"&gt;&lt;img src="background.png" width="770" height="600" /&gt;&lt;img src="image.png" width="100" height="100" class="overlap" /&gt;<br/>&lt;/div&gt;</p>
    </div>
    <p> </p>
    <p>This allows me to overlap images.</p>
    <p>I need a little of both of these concepts.</p>
    <p> </p>
    <p>I need image.png's position to be relative to background.png's position. That way image.png overlaps background.png in exactly the same place regardless of my user's resolution or browser window size. My page is centered. If my page was left-aligned this would not be an issue.</p>
    <p> </p>
    <p>I have been digging through CSS tutorials, and I'm certain the answer is there, but I am not getting it.</p>
    </body>
    ></p><p><input id="gwProxy" type="hidden"/><!Session data-->

  • How do you position relative divs

    Hey thanks for the help so far, I have another question. With
    absolute divs i'm able to place them wherever I want on the screen,
    am i able to place relative divs that are centered wherever i want
    as well. Can i do this in CSS or do i have to code everything.
    Thanks for help
    Mike

    > wherever I want on the screen
    By dragging in the Design view, yes.
    > am i able to place relative
    > divs that are centered wherever i want as well.
    If they are centered, why would you want to move them? But
    yes, you can
    place them wherever you want by editing the
    top|right|bottom|left position
    information in the styles. Be aware that relatively
    positioned elements
    will leave a "hole" in the page if you move them away from
    the 0,0
    coordinates where they would have been placed. You cannot
    DRAG relatively
    positioned divs in Design view....
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "mikesilverman22" <[email protected]> wrote
    in message
    news:e67op2$r1q$[email protected]..
    > Hey thanks for the help so far, I have another question.
    With absolute
    > divs i'm
    > able to place them wherever I want on the screen, am i
    able to place
    > relative
    > divs that are centered wherever i want as well. Can i do
    this in CSS or
    > do i
    > have to code everything. Thanks for help
    >
    > Mike
    >

  • Positioning relative to image

    I have produced a home page which contains a large image
    which is set to increase its size to fill the width of the users'
    browswer window.
    Ideally, I would like to have a caption positioned a little
    way below the image, which maintains postition relative to the
    bottom edge of that image. However, because the image maintains
    aspect ratio, (ie can get taller even though window stays the same
    height) I am having difficulty coming up with a way of achieving
    this using any of the positioning aids I have some across.
    Is anyone able to tell me how, or even whether, I can do this
    ?

    I would think that a VBox would allow you to do this. If the
    horizontalAlign="center" and the caption is the second child, it
    should stay centered right below the image, separated from it by
    the value of the verticalGap style property.

  • Go to a position RELATIVE to the current

    Hallo,
    For the Homepage of my School I have to make a Page-Overview.
    I use many
    (this time 20) different, but same sized, images. These
    should stay 10 sec.
    and then should come the next one. If you click (on.Press) at
    the image,
    the page should be opend. How you can see at
    http://www.dreieichschule.de/
    I was able to do so. But know I have a problem: I have to put
    the arrow to
    skip through the images on every layer. So I have to write
    many codes and I
    have to put the in the correct position. And here is my
    question: Is it
    possible to make one layer on which you can find the arrows
    with *one* code
    to skip (for each arrow) through the timeline. I would like
    to go to the
    next ore the previous keyframe. But at the moment, every
    Image is in an own
    layer. Do I have to change this? I hope you can help me and I
    hope you
    understood what I tried to say. If not, write a message to me
    Kai
    .-. .-. --..::==

    thank you for the AS but it doesn't work. You can see the
    finished file at:
    http://kaithater.ka.funpic.de/flashtest.html
    You can only go one image backwards and then to the first
    image. If you
    want to look at the whole project, visit
    http://cid-7fcb77842e92dd88.skydrive.live.com/self.aspx/%c3%96ffentlich/Kopie%20von%2030.1 2.2008.zip
    (I think you need a windows liveID to see the files. But I
    don't know for
    sure).
    Kai Thater
    .-. .-. --..::==

  • Weird Hyperlinks Issue - Position-related?

    I have a PDF I'm trying to create which has 1 email and 1 web URL per page. I select the option in Acrobat to make urls from text. It reports 58 links created; this is correct...2 per page, 29 pages = 59 instances.
    However, not all of the links work, because on some pages, the text for either URL or mailto is not in the same position as on most of the other pages.
    I assume that when Acro reports 58 links made, it found 58 text strings which appeared to be URLs, and made them actually BE URLs..
    but...I assumeth wrongeth.
    Can anyone help me with the fix for this?
    some of the urls are in a different position due to the needs of the layout in InDesign...I have some graphics which "violate" the top bar where my text info is, and on those pages, I moved one or more links so that it can still be seen, even after part of the graphic intrudes into the space.
    thank you for any thoughts on this!
    kat

    the email address link is mailto:[email protected]
    the web URL is http://www.domain.com
    is that correct?
    Also, I HAD done the interactivity in InDesign, but wasn't wholly successful in the final PDF

  • JTree customize lines position relative to node

    Hi,I have a problem.I have a JTree with nodes that are composed of an Icon and a JTextArea.The horizontal line corresponding to the node positions itself at the middle of the node(that is in the middle of the text) and I want it to be positioned at the beginning of the node(that is to point to the Icon).Any suggestions?Any code?

    Hello again,
    I finally solved the problem.
    For other users here´s one possible solution:
    http://www.q-trax.net/blog/as/getbywithoutroot.htm
    thanks anyway!
    Best rgds!

  • Related to jsp, jco,sap

    can u help me
    just having a resume form in jsp and "i want to save input value in the sap table using jco tool" ???

    Why don't you just use xMII to do this via the BLS JCo actions?

  • Grade and position Relation in oracle HR

    Hi,
    How to know which grade is for which position.
    I have a requirement to update the position titles for the new grades
    effective 07/01/2011.
    I have the mapping of the old grades to the new grades and also the position titles
    Can you tell me how to proceed..
    Thanks

    What about creating an temporary mapping table that maps the old grade id and new grade id and then calling the hr_position_api to change the grade on each position.
    I haven't properly tested this but it should get you started:
    CREATE TABLE
      xxcus_grade_change_mapping
      (old_grade_id number
      ,new_grade_id number);
    INSERT INTO xxcus_grade_change_mapping VALUES (123, 345);
    INSERT INTO xxcus_grade_change_mapping VALUES (456, 789);
    <etc>
    DECLARE
      l_effective_start_date         date;
      l_effective_end_date           date;
      l_valid_grades_changed_warning boolean;
      l_position_definition_id       number;
      l_name                         hr_all_positions_f.name%TYPE;
      l_object_version_number        number;
      CURSOR csr_grade_changes IS
      SELECT gc.old_grade_id
            ,gc.new_grade_id
      FROM   xxcus_grade_change_mapping gc;
      CURSOR csr_positions
        (p_old_grade_id IN number) IS
      SELECT p.position_id
            ,p.effective_start_date
            ,p.position_definition_id
            ,p.object_version_number
            ,p.name
      FROM   hr_all_positions_f p
      WHERE  p.entry_grade_id = p_old_grade_id;
    BEGIN
      FOR grd_rec IN csr_grade_changes LOOP
        dbms_output.put_line('Processing Grade: '||to_char(grd_rec.old_grade_id));
        FOR pos_rec IN csr_positions(grd_rec.old_grade_id) LOOP
          l_effective_start_date         := null;
          l_effective_end_date           := null;
          l_valid_grades_changed_warning := false;
          l_position_definition_id       := pos_rec.position_definition_id;
          l_name                         := pos_rec.name;
          l_object_version_number        := pos_rec.object_version_number;
          hr_position_api.update_position
            (p_validate                     => false
            ,p_effective_date               => pos_rec.effective_start_date
            ,p_datetrack_mode               => 'CORRECTION'
            ,p_position_id                  => pos_rec.position_id
            ,p_object_version_number        => l_object_version_number
            ,p_effective_start_date         => l_effective_start_date
            ,p_effective_end_date           => l_effective_end_date
            ,p_position_definition_id       => l_position_definition_id
            ,p_valid_grades_changed_warning => l_valid_grades_changed_warning
            ,p_name                         => l_name
            ,p_entry_grade_id               => grd_rec.new_grade_id);
          dbms_output.put_line('Updated Position Id: '||to_char(pos_rec.position_id));
        END LOOP;
      END LOOP;
    END;
    /

  • How to capture motor position periodically? Time interval not position related

    I am working on a project which needs to capture positon of 3 motors every 20--100 microseconds. Is there any way to do that? What is the highest rate? I am considering using a while loop to locate motor. But it seems that the highest rate is 1 milliseconde.
    I am using PCI7344 cotroller, software -- labview.
    Thanks

    On the 7344 the fastest rate at which you can do this is 100 hz. The method you should use is the high speed capture. Basically a hardware trigger that, when activated, stores the position where it happened into a registry which you can later retrieve. Our high end 7350 series controllers can do this into a buffer at a rate of up to 3Khz. You can find an example of using high speed capture here:
    http://sine.ni.com/apps/we/niepd_web_display.DISPLAY_EPD4?p_guid=C04F7F32E01F0274E034080020E74861&p_node=DZ52480&p_submitted=N&p_rank=&p_answer=&p_source=External

Maybe you are looking for

  • Show events in label colors when printing

    I've been doing my carpool schedule using iCal - each person has their own calendar so they always appear in the same color and can subscribe to just their calendar. I used to print out a copy to put on the fridge, and each event would be printed in

  • RANK function, special case

    Hello all... I've a column of data, on which I have successfully performed the RANK function to assign each value a rank, displayed in the adjacent column. The issue is, if there are two or more cells in the data column with the same value, they are

  • Jump / Skipping Problem

    I wonder if anyone could help me. I have a 4GB Nano which I purchased about 18 months ago. Everything has been fine until recently. Sometimes when I listen to a track, the iPod starts skipping/jumping. It doesn't skip tracks and it doesn't jump to th

  • HT201272 How do i re download past audibook purchases?

    Hi, I recently mistakenly deleted more than $400 dollars worth of audiobooks, which I haven't even read/ heard yet, from my ipad and when I tried to redownload them it's telling me I have to buy it again. If there is any way I could redownload those

  • How to read a file whose extension in .csv / .xls

    Hello everyone, I figured that " read from spreadsheet file" can be used if you want to read from a .txt file which may be saved in a spreadsheet format. But if you want to read from a .csv or .xls file, this function returns garbage. Is there a way