Giter VIP home page Giter VIP logo

Comments (4)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 25, 2024
This code is used to reset form fields once the user press cancel button (so 
blank form can be shown next time he opens add dialog). I have tried it in 
several browsers and it worked fine. Without this line if you populate fields, 
press cancel, and add button again you will see all fields you entered in the 
previous dialog.

Issue you have reported is strange because reset() is a standard function for 
reseting forms. Could you see in the firebug is the $(oAddNewRowForm)[0] 
standard form element? In all my examples it is a frm and therefore it works 
fine.

Could you try to take the latest version of plugin I have slightly changed this 
code (reseting form is moved before dialog close maybe this is problem in your 
browser).


Regards,
Jovan

Original comment by [email protected] on 11 Jun 2011 at 8:57

  • Changed title: Add form reset() method breaks on cancel in IE and FireFx

from jquery-datatables-editable.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 25, 2024
Hi,

I'm sorry, I made a error using a 'div' instead of a 'form' as sAddNewRowFormId 
dom element. I think this is the cause of the problem. 

Perhaps a control could be done to avoid this kind of misuse ? 

Thanks for your answer.





Original comment by [email protected] on 11 Jun 2011 at 2:16

from jquery-datatables-editable.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 25, 2024
I'm not sure about this check because I'm trying to put minimal number of 
constraints related to the HTML structure.
In the future maybe form will be required tag but maybe it will not be required 
at all I have still not choosen the road map for this.
Currenly I'm assuming that stucture is created according to the examples/wiki 
pages.

Regards,
Jovan

Original comment by [email protected] on 11 Jun 2011 at 7:20

  • Added labels: Type-Other
  • Removed labels: Type-Defect

from jquery-datatables-editable.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 25, 2024

Original comment by [email protected] on 17 Jun 2011 at 7:35

  • Changed state: Done

from jquery-datatables-editable.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.