SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    if ($zee == "Guru") { $zee--;}
    Join Date
    Nov 2005
    Location
    Karachi - Pakistan
    Posts
    1,134
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Help wiht Text Field Focus

    Hi Masters

    I have setup a page for my members. In that page they can edit personal data, they can upload there photo and they can also put their password.

    Now, i have a members home page, where they will land just after the login.

    On that page i have 3 Icons. 1 for Profile, 2nd For Password and 3rd for Photo.

    Since password and photo + profile all are on one page, so with the links on Landing page i want that the Specific field get focus.

    Now suppose, that page is profile.php,
    profile.php has 3 sections (1) Profile (2) Password and (3) Photo
    on the landing page once the user clicks on Password, it will link to profile.php and what i want is that the Password field get focus(mean that the cursor should be on password filed )

    Please help to achieve this task.

    Thanks
    Zeeshan

  2. #2
    rajug.replace('Raju Gautam'); bronze trophy Raju Gautam's Avatar
    Join Date
    Oct 2006
    Location
    Kathmandu, Nepal
    Posts
    4,013
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I am not sure about any standard way to do that but i would do by passing the different values to profile.php (or any other pages) through the URL like &tab=passwd/prifile/photo then you can use that value in the javascript area to focus on the form element.
    Mistakes are proof that you are trying.....
    ------------------------------------------------------------------------
    PSD to HTML - SlicingArt.com | Personal Blog | ZCE - PHP 5

  3. #3
    if ($zee == "Guru") { $zee--;}
    Join Date
    Nov 2005
    Location
    Karachi - Pakistan
    Posts
    1,134
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    exactly that what i was thinking of, means i was thinking right.
    Isnt that any other way to doing this ?


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •