www.webdeveloper.com
Recent Articles
  • Finding Slow Running Queries in ASE 15
  • A More Advanced Pie Chart for Analysis Services Data
  • Adobe AIR Programming Unleashed: Working with Windows
  • Performance Testing SQL Server 2008's Change Data Capture Functionality
  • The ABC's of PHP: Introduction to PHP
  • How to Migrate from BasicFiles to SecureFiles Storage
  • Why the Twitter Haters Are Wrong
  • User Personalization with PHP: Beginning the Application
  • Whats in an Oracle Schema?
  • Lighting Enhancement in Photoshop
  •  

    Go Back   WebDeveloper.com > Client-Side Development > JavaScript

    JavaScript JavaScript (not Java) Discussion and technical support, including AJAX and frameworks (JQuery, MooTools, Prototype...)

    Reply
     
    Thread Tools Search this Thread Rate Thread Display Modes
      #1  
    Old 03-05-2006, 11:52 AM
    rbeynon rbeynon is offline
    Registered User
     
    Join Date: Mar 2006
    Posts: 2
    bizarre parent form refresh behaviour

    I've just migrated a useful javascript tool from an older, legacy site to a new site, and this has worked well, with one frustrating exception..

    Old site:
    http://www.bi.umist.ac.uk/users/mjfr...rs/Makebuf.asp
    when the 'recipe' button is clicked, the popuo window is fine, but the underlying form on the parent window does not refresh

    New site:
    http://www.liv.ac.uk/buffers/buffercalc.html
    the moment the child window pops up, the parent form refrehses to default values, which I don't want.

    Any insight would be greatly appreciated
    p.s. I know it's amateur code, but it has worked for nearly 10years!

    Thanks in advance

    Rob
    Reply With Quote
      #2  
    Old 03-05-2006, 01:12 PM
    Fang's Avatar
    Fang Fang is online now
    Resistance is futile
     
    Join Date: Apr 2003
    Location: Netherlands
    Posts: 18,433
    Add this to the onclick handler:
    Code:
    onclick="calcBuffer(this.form); return false;"
    __________________
    At least 98% of internet users' DNA is identical to that of chimpanzees
    Reply With Quote
      #3  
    Old 03-05-2006, 01:17 PM
    rbeynon rbeynon is offline
    Registered User
     
    Join Date: Mar 2006
    Posts: 2
    Thanks Fang, that just works a treat. I think I understand why,it's saying don't return control to the parent, yes?

    You've made my day!
    Rob
    Reply With Quote
    Reply

    Bookmarks


    Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
     
    Thread Tools Search this Thread
    Search this Thread:

    Advanced Search
    Display Modes Rate This Thread
    Rate This Thread:

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is Off
    HTML code is Off
    Forum Jump


    All times are GMT -5. The time now is 01:39 PM.



    Acceptable Use Policy


    The Network for Technology Professionals

    Search:

    About Internet.com

    Legal Notices, Licensing, Permissions, Privacy Policy.
    Advertise | Newsletters | E-mail Offers

    Powered by vBulletin® Version 3.7.3
    Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.