Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strophe.x.js Data-Forms - No way to track the form? #107

Open
gshergill opened this issue Jan 8, 2014 · 0 comments
Open

Strophe.x.js Data-Forms - No way to track the form? #107

gshergill opened this issue Jan 8, 2014 · 0 comments

Comments

@gshergill
Copy link

Hi,

I'm using the fromXML and toHTML to convert an XML form to HTML and add it to my webpage.

However, I noticed that the form has no way of being tracked, and as no button is automatically added I have no way to submit it that I know of.

My form is created as follows:

form data-type="result"
….

Ideally it would be created as:

form data-type="result" id="some-id" onsumbit="some function();"
...

Is there something I am missing in strophe.x.js which would add the ID? Or is this not part of the plugin?

Thank you.

Kind Regards,

Gary Shergill

edit: for reference, I am using the below commands to create the form:

var iqForm = Form.fromXML(iq);
var iqHtml = iqForm.toHTML();
$("#form-here-div").append(iqHtml);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant