Upon Loading of page, Setting the Top and Left properties of a TextField

Hello again,
I would just like to ask for suggestions on how to successfully set the top and left properties of a Textfield as soon as the page is loaded.
Thru Giri's help, I was able to do this with the push of a button. What I would need to do right now is to set it as soon as the page is loaded.
Thanks!

Hi Jim,
It is not clear what you are trying to do here. If you want to set the top and left properties of a component when the page is loaded all you have to do is set it at design time itself. If the properties need to be set the second time the page loads then the code can be used in the event handler which submits the page.
It would help if you could explain the use case for setting the properties of a component when the page is loaded.
Cheers
Giri

Similar Messages

  • Setting the Top and Left properties during runtime, depending on...

    hi guys,
    it's me again with the same question, but same scenario...
    but probably with a bit clearer detail now...
    actually, what i wanna do is that although i have set the top and left properties at design time, as soon as the page opens i wanna be able to do the following:
    if ( userlevel == 1 ) {
    textfield1.setStyle("top: 100...");
    } else if ( userlevel == 2 ) {
    textfield1.setStyle("top: 500...");
    thanks for your time =)

    The style properties CAN be set in the prerender call. Unfortunately, the requirement is that the component (text field in your case) has to have an unset property in the Design->properties window. (Or in the actual jsp code, which should be identical).
    My main issue with this is SJC2's handling of this in the visual window. If i want to have a lot of components that are designed before run-time but placed during run-time, they all are a mess on the screen. I wish there was another property (in the properties window) that would be a checkbox, like "Use static layout". I, probably like others, am using a layout panel (grid) that has several other components in there. I want to be able to move this set of components at run-time, but to do so, I need to unset the layout panel's style. This causes my inside components to shift to the top left of my page, making a mess in the design window.
    If any SJC developers are out there, please help! It would be great to somehow mitigate the static/dynamic properties/display issue. (Like, i want to have buttons with dynamic names (for localization), but basically, i have to have a bunch of blank buttons/text on the screen for all my pages because of the static requirement. At least, MyEclipse and others will put the id value if the text/label value is blank.
    Chris

  • Cut off the top and left sides of iFrame?

    I have a page I'd like to place as an iFrame in another page.
    Is it possible to move the framed page up and to the left so
    that the
    frame cuts off the top and left sides of the framed page?

    Jim,
    Thanks a TON!  That worked well.  It took me a bit longer to key it because the keyer didn't key out all of the color to black as well with the compound clip but I was able to make it happen.  Video is up and I appreciate the help!

  • I want to change my new incomming emails from the bottom of the page to the top and split the screen right to left insted of top to bottom

    when the email page opens the emails are across the screen and most recent at the bottom. I want the most recent at the top of the page and when I open a email want it to display at the right side and not the bottom of the screen

    Click on any column header to sort on that column. Click that same header a second time to reverse the sort order.
    From the menu bar select View-Layout and select one of the three provided layout arrangements.
    No menu bar showing. Press the alt key to make it appear.

  • Gap in the top and left edges

    Ive noticed that unpositioned DIV'S do not press up against the far left and top of the browser window, they have a margin of about 5px
    however divs inside other divs do not have this margin in regards to their pearent div
    does anyone know what causes this (does the body element have a hidden padding or something?

    Browsers add their own margins and padding to the body of the page.
    body {margin:0; padding:0;}
    Or you can do what I do to zero out browser defaults on everything with the universal selector (*).
    * {margin:0; padding:0; line-height: 100%; font-size: 100%}
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb

  • Flash page: need to 'pin' top and left perhaps too...see

    Dear Experts,
    Thank for reading this.
    http://maharishihoney.safire.com/
    in the above page it is behaving just like wanted, EXCEPT want the top and left side (perhaps) to be 'pinned', meaning when resizing the browser window, the top does not disappear. I like that it resizes, and scales, yet, keeps the whole viewport filled. Don't like that it can disappear at the top if the browser window isnt just right.
    What do you think?
    Any ideas? Appreciate so much your thots.
    Warmly with thanks,
    Hope

    Ok, thanks again for reading...
    additional note: Am using cs3 and so far using as2
    To achieve as seen in above link: in dreamweaver set the w and h to 100% , plus setting the margin to 0 for height, width, top, bottom, plus set ' scale' to 'noscale.
    Then have also tried (not in link above) setting the publish settings to 100% for w and h, the flash does not disappear at the top, but then there is alot of white all the way around at top and bottom even with above mentioned DW settings.
    when not setting publish settings to 100% then we get what you see above in the link: it scales very nicely with no white and fills the screen the whole time, BUT it does disappear at the top.
    Thanks again for all your attention....
    Warmly, Hope
    p.s.
    2 samples of resizing in flash:
    http://www.fidmdigitalarts.com/#/home
    http://www.isurfbecause.com

  • Gap in DW CS3 page (top and left)

    i am still fairly new to dreamweaver but have learned a great
    amount, but when i build a layout in layout mode it wont let my put
    any tables, pictures, or generally anything else directly into the
    top left corner. So when i preview the page with F12 there is a 5px
    gap on the top and left of the page
    Heres an image
    http://i247.photobucket.com/albums/gg126/bigmack83/problem_1.jpg
    any idea how to fix this?

    Use CSS to control all of your page element margins and
    padding. In this
    case, what you are describing is the default margin on the
    <body> tags. Try
    this CSS -
    body { margin:0; padding:0; }
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "bigmack83" <[email protected]> wrote in
    message
    news:fqj003$22m$[email protected]..
    >i am still fairly new to dreamweaver but have learned a
    great amount, but
    >when
    > i build a layout in layout mode it wont let my put any
    tables, pictures,
    > or
    > generally anything else directly into the top left
    corner. So when i
    > preview
    > the page with F12 there is a 5px gap on the top and left
    of the page
    >
    > Heres an image
    >
    http://i247.photobucket.com/albums/gg126/bigmack83/problem_1.jpg
    >
    > any idea how to fix this?
    >

  • Dreamweaver page with flash - look at this - want top and left static

    Dear Experts,
    Thank for reading this.
    http://maharishihoney.safire.com/
    in the above page it is behaving just like wanted, EXCEPT want the top and left side to be 'pinned', meaning when resizing the browser window, the top does not disappear. I like that it resizes, and scales yet, keeps the whole viewport filled. Don't like that it can disappear at the top if the browser window isnt just right.
    What do you think?
    Any idea? Appreciate so much your thots.
    Warmly with thanks,
    Hope

    have any other ideas how to accomplish above without flash?
    Certainly - jQuery is a good alternative.  To see an example, look here -
    http://www.americanwatercolorsociety.org
    ok, this is very good...
    found this jquery plugin, for anyone reading this:
    http://jquery.malsup.com/cycle/lite/
    that does fade in and out something, even on click...
    The rotation is jQuery.
    But just because you use Flash for a cosmetic element (even an image rotation) doesn't mean that's the only thing that can be on the page, you know?
    Yes, that is a good point..(-:
    Thanks again for all your kind input.....
    Warmly, Hope

  • How do you unfreeze a frozen top and left command in the printing position command?

    The top and left option of the printing position command is frozen at 0.  The error message states that a value between 0.000 and 0.000 is required.  How do I change this?  This happens will unedited and edited pictures.  I have just installed a xerox printer perhaps there is a link between this problem and the printer.

    I didn't even suggest that because I would have thought that would be the first thing anyone would have checked for!   If you flip the on/off switch on the bottom of the mouse do you have a blinking green light?  Whether you do or don't, if you are unsure of the batteries then replace them.

  • JScrollPane, I need scrol bars on top and left

    Hi,
    Is there an easy way to move the scrollbars in a scroll pane so that
    they are on the top and left. Every thing I can find shows them on the right and bottom and nothing explans how to get them left and top.
    I tried the setComponentOrientation but that does not seem to do
    anything.
    Thanks in advance,
    Pat

    The JScrollPane was designed to have scroll bar on right and bottom.
    You could add JScrollbar components on top and left of JScrollPane.
    But you cannot add other no scroll bar component to right and bottom!
    There are many ways to have scroll bar on top and left.
    One way is, not use JScrollPane, write your own JPanel, and
    has BorderLayout then put scroll bar on left and top.
    The other way is create your own JScrollPane, change the default
    layout manager use by JScrollPane, the ScrollPaneLayout.
    Create your own Layout manager to have the behaviour you like.
    Anyway, there are not esay way to just swap the scroll bar.

  • TS1368 when i try to access the itunes store to buy music, it loads at the top and says connecting to itunes store..then it loads all the way and goes to a blank page. it loads and seems like it is will work, but then goes to a blank page. Why is it doing

    when i try to access the itunes store to buy music, it loads at the top and says connecting to itunes store..then it loads all the way and goes to a blank page. it loads and seems like it is will work, but then goes to a blank page. Why is it doing this?

    Hello katyhale,
    I found a couple of articles that might help with the issue you are experiencing with the iTunes Store.
    If you are getting a white screen when accessing the iTunes Store and using a Windows computer, I recommend reviewing this article:
    Apple software on Windows: May see performance issues and blank iTunes Store
    http://support.apple.com/kb/TS4123
    If you are still not able to access the store, I recommend the following article:
    iTunes: Advanced iTunes Store troubleshooting
    http://support.apple.com/kb/TS3297
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • I upgraded my 3rd generation ipad to ios 6.0.1 and now am experiencing various issues.  Neither Pages or Numbers will open.  I just see a gray screen that says Pages or Numbers at the top and all of my documents are gone.

    I upgraded my "new ipad" (the 3rd generation I think) to ios 6.0.1 and now am experiencing various issues. 
    1- Neither Pages or Numbers will open.  I just see a gray screen that says Pages or Numbers at the top and all of my documents are gone. The icon that allows me to create a new document also does not appear.  I went to icloud.com to see whether my documents still existed, which brings me to the 2nd problem.
    2- It appears that all of my Pages documents are still on icloud, but all of my Numbers documents are gone.  There were only about 10, but I access 2 of them nearly every day, so this is a big issue for me.
    I went into Settings and all of the icloud information is correct and it "Documents & Data" is on.  When I look at the storage, I see the Pages documents but not the Numbers ones.  The next thing I did was turn my ipad off and back on, but this didn't fix anything.  Since my Pages documents are still on icloud, I then tried to delete the Pages app from the ipad so that I could reinstall it, which resulted in the 3rd problem.
    3- I cannot delete any apps.  I can get all of the icons to shake and the small x IS available, but everything freezes when I click it.  I can't do anything at that point except reset the ipad or wait until it eventually restarts itself.  I've tried this with Pages as well as multiple other apps, all with the same result.  I've also tried downloading a new app (which worked fine) and then deleting that one, but I got the same result.
    3a- A small related issue to this that I am far less concerned about is that when the ipad restarts itself, it comes back on and the screen is really dark and I can barely make out what appears on the screen.  If I enter my password right away, it stays that way until I go into Settings - Brightness & Wallpaper and touch the brightness setting (although I'm not actually changing the setting because it already shows that the brightness is turned up a little over halfway).  If I don't enter my password right away and let it go completely dark, then click the home button, the brightness is fine.
    So now I'm stuck.  My guess is that I will need to restore it, but wanted to check before I take that step.  Unfortunately, my laptop is on its deathbed so I haven't been synching my ipad to it and I fear my Numbers documents are gone forever.  I'd like to try everything I can to fix these issues before doing the restore in hopes that I can get the Numbers documents back.
    Any suggestions for any or all of these problems?

    Purplehiddledog wrote:
    I do backup with iCloud.  I can't wait until the new iMac is available so that I can once again have my files in more than 1 location without needing to rely solely on the cloud. 
    I also rely on iTunes and my MacBook and Time Machine as well as backing up to iCloud. I know many users know have gone totally PC free, but I chose to use iCloud merely as my third backup.
    I assume that the restore would result in my ability to open Pages and Numbers and fix the problem with deleting apps, but this would also mean that if my Numbers documents still exist solely within the app and are just not on iCloud for some reason that they would be gone forever.  Is that right?
    In a word, yes. In a little more detail.... When you restore from an iCloud backup, you must erase the device and start all over again. There is no other way to access the backup in iCloud without erasing the device. Consequently, you are starting all over again. Therefore, it would also be my assumption that Pages and Numbers will work again and that the deleting apps issues would be fixed as well.
    If the documents are not in the backup, and you do not have a backup elsewhere, the documents could be gone forever.

  • When I print a Word document to a shared printer, print preview looks fine but the printed page has too much blank space at the top and doesn't print the bottom few lines.

    When I print a Word for Mac document to a shared printer (that is connected to my iMac) from my Macbook Pro, print preview looks fine but the printed page has too much blank space at the top and doesn't print the bottom few lines.  I have tried to adjust the margins and the page setup settings but to no avail.  It used to print fine until recently.  Is there a way to fix it so that the printer prints what print preview shows?

    I should add that when I e-mail this document to myself and print it directky from the iMac, it prints fine.

  • TS3899 I am unable to access my mail account. I press the mail icon, the page refreshes to the mail format page - blue bar top and bottom, white text space in the middle.... and that is as far as it goes. It does not list my email accounts or offer any.

    I am unable to access my mail account on my iphone, which I have been able to do previously. I press the mail icon, the page refreshes to the mail format page - blue bar top and bottom, white text space in the middle.... and that is as far as it goes. It does not list my email accounts or offer any.

    Close the mail app, double tap the home button and completely close out of the app.
    then do a reset, no data loss.  Hold down the home/sleep button together until you see the apple logo and then release, then wait for the phone to boot back up.

  • Firefox has stopped working. It won't load any page, saying "The connection has timed out." I uninstalled it and reinstalled it, and still nothing. Any suggestions?

    Firefox has stopped working. It won't load any page, saying "The connection has timed out." I uninstalled it and reinstalled it, and still nothing. Any suggestions?

    Please see here: [[Error loading web sites#w_interrupted-or-reset-connection|Error loading web sites#w_interrupted-or-reset-connection]]

Maybe you are looking for

  • Sudo doesn't work anymore, not permitting me to enter password

    Since two days, sudo doesn't work for me anymore. When I do sudo any_command I get: Sorry, try again. Sorry, try again. Sorry, try again. sudo: 3 incorrect password attempts I updated my server two days ago, but I cannot say whether it's related to m

  • My Disk Utility Is Gone After a Restore On My Mac.

    My Disk Utility Is Gone After a Restore On My Mac. How can i get it back?

  • "Material is configurable" indicator in material master record

    Hallo, SAP gurus! I have a problem: in my SAP system there is a material whose indicator "material is configurable" is set. Due to this I cannot hold calculations of this material on. How can I clear this indicator(it's grayed and I can't modify it)?

  • BADI to change the PDS priority in ECC

    Need to change the priority of the PDS during CIF. Please suggest the BADI which can be used in ECC side.I guess BAdis /SAPAPO/CURTO_SNP and /SAPAPO/CURTO_CREATE.can be used in APO. I need to change PDS value in ECC side while doing CIF or CURTO_CREA

  • Missing Back Up files

    I had to perform a hard reset to remedy an issue with my phone, as per instructions from Nokia support. I followed all instructions to back up my phone and got a message with a big green tick saying back up was successful. Now when I go to restore I