SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Member
    Join Date
    Mar 2010
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Need help on text display in another page

    Hi,

    I have 2 pages of html, one is test01.html and another is testing2.html files.

    My question is: In test01.html page I have some text fields,

    onclick on the button in the testing2.html page some text should show in the text field in the test01.html page. Is it possible to do it using javascript?

    Please helpme

  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,331
    Mentioned
    463 Post(s)
    Tagged
    8 Thread(s)
    That's something you can do with Ajax, but it's a bit heavy duty unless you know how that works.

  3. #3
    SitePoint Member
    Join Date
    Mar 2010
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by ralph.m View Post
    That's something you can do with Ajax, but it's a bit heavy duty unless you know how that works.
    thanks ralph,

    or can we do like this, I want to hide a button in the test01.html on clicking on the button in the other page

  4. #4
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,331
    Mentioned
    463 Post(s)
    Tagged
    8 Thread(s)
    I don't understand; and on reading your first post again, I'm not sure even Ajax could do that. It will pull content from another page into the current page, but not the reverse.

  5. #5
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,729
    Mentioned
    104 Post(s)
    Tagged
    4 Thread(s)
    Quote Originally Posted by srinath.tr View Post
    or can we do like this, I want to hide a button in the test01.html on clicking on the button in the other page
    If page 1 uses scripting to open page 2, and they're both on the same domain, then the second page should be able to communicate with the first by using parent.

    See this Cross-window scripting page for details.
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript


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
  •