Survey-library: Is it possible to use this without jquery (vanilla js)

Created on 21 Apr 2020  路  10Comments  路  Source: surveyjs/survey-library

Are you requesting a feature, reporting a bug or asking a question?

question

I would like to use this library in a traditional django app. I do not use webpack yet. I use

All 10 comments

The survey-core library contains model only and doesn't have rendering code.

Every our example has the "Edit in Plunker" button.

Here is the mentioned above example in plunker - https://plnkr.co/edit/U6aGlsqkS02Dzc9q

You can copy/paste it content on your web page.

You can also read this document - https://surveyjs.io/Documentation/Library?id=Add-Survey-into-your-Web-Page

yes your example uses jquery. Can I use surveyjs without jquery?

@morenoh149 We have framework independed code, SurveyJS Model, then code that uses any of these three frameworks: knockout, react or vue. jQuery and Angular, in fact, using knockout version.
SurveyJS Model could not render the survey and these three frameworks can.
We do not have vanila version, because our survey is not a survey with couple question types. It is a platform for building complex surveys and forms.

Thank you,
Andrew

would you accept a PR to bridge the core to vanilla js? it could be as easy as replacing the jQuery calls with the equivalent dom/js apis.

@morenoh149 Why do you want to do it? I believe you want to wrap the knockout version. Why do not use knockout version directly?

Thank you,
Andrew

I guess I could use the knockout version. But you can see how that is not the obvious package to use for someone new to this library right?

You could clone the knockout version call it vanilla and you would not see these questions come up again :)

@morenoh149 Let us discuss it in the team tomorrow.

Thank you,
Andrew

To clarify this sounds like a usability issue. It is not clear as someone building a vanillajs project that they should use the selfcontained knockout version. The solution could be to clarify this usecase in the quick start.

As someone unfamiliar with your project I see knockout and I think "I dont want to use any framework. Where is the survey.min.js?"

+1 for that clarification. I am using the jQuery version thinking that _was_ the "minimal" version. My ignorance, I know, but a clarification in the Getting Started might help if it is not there already. I started using surveyJS a few years ago and have not checked the Getting Started since! ;-)
Love the product, by the way. :-)

@morenoh149 @flowt-au We have decided to update our docs for now.
Add Survey into your page and Library Overview.

Thank you,
Andrew

Was this page helpful?
0 / 5 - 0 ratings

Related issues

enricribas picture enricribas  路  3Comments

dmitrykurmanov picture dmitrykurmanov  路  3Comments

aslanbeily picture aslanbeily  路  4Comments

madceb picture madceb  路  4Comments

madceb picture madceb  路  3Comments