Applet in the "add" modal window

Applet in the "add" modal window

renoreno Posts: 10Questions: 0Answers: 0
edited March 2014 in General
Hi all,

I get a little problem here.

I want to use a applet in the "Add" form of my datatables. This applet goal is to get information from ID card, with my js function i can take information from the card and paste them into the correct fields of my form.

This applet/jsfunction works great on a page dedicated for that, but when i try to integrate it to my datatables, to be precise in the Add form of my datatables, it goes wrong, i explain myself:

When i click on my button "get data from idcard" who launch the js function, the modal window just close. (seems to occur when my function arrive at this line ==> [quote] retval = document.BEIDApplet.InitLib(null); [/quote]

Can someone help me with that?

Good afternoon everybody !

PS: If u need more information, just ask !

Replies

  • renoreno Posts: 10Questions: 0Answers: 0
    edited March 2014
    ok, i've made some new discoveries.

    I've included the app into the code of the add modal window.

    Now i can get my values, see them ino correct field but just after clicking ok on my last alert() [Who marks the end of function], the modal just close without doing anything.

    Anyone can help me with that?
  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Hi,

    When you say the modal window, do you mean the Editor lightbox? Can you link us to the page so we can take a look please?

    Allan
  • renoreno Posts: 10Questions: 0Answers: 0
    Hi,

    I meaned the modal who open when you click on the "add" button in top-left of the Datatables.

    But i solved my problem myself, my function was on a and this one submitted my form when i clicked him. And submit the form close the window !

    Anyway thanks for your time !
This discussion has been closed.