How to add image upload tag in Struts2 jquery grid plugin - json

I am using struts2 jquery Grid plugin for the admin panel functionality for website.
In this plugin when i click add button it populate form using jquery dialog ui
So here i want to show my form that accepts file uploading & also i have written validation xml file for this form so i want this dialog should show validation errrors if user forgets to enter some information.
Thanks in advance.

You can try to use edittype:'file'. For the validation you can use editrules with custom: true and define your custom validation in custom_func.

Related

HTML to PDF Converter in PDF.co Zapier plugin

I'm trying to set PDF.co Zapier plugin to fill HTML Template with json datas in order to create PDF.
I selected "2. HTML to PDF Converter in PDF.co" action.
In "Set up action" section, I filled HTML Template Id field with the template ID I created on app.pdf.cp/template/html.
I filled HTML Template Data field with a basic json ({"test":"hello"}).
Here is the screenshot of "Set up action" section :
But, when I submit "Test and review", I have this error message :
Here is the HTML template I use in PDF.co application :
Otherwise, PDF creation from this template works perfectly well from PDF.co application. The issue seems to be on Zapier side.
What do I do wrong ?
Thanks for your help
Problem fixed. PDF.co support answered me that it was an actual bug on their side. Plugin works well now.

Grails Project - Open dialog box

In my application, when I hit Run button which is scripted in gsp page as:
<input type="button" value="Run" onClick="submitJob()"></input>
submitJob() function is defined in a ExtJs JavaScript file which does some operations and calls the controller code which renders a different gsp output page as:
render(template: "/plugin/jobPlot_out", model:[jobName:jobName], contextPath:pluginContextPath)
In my application in web browser it displays the output in the same web page. How to display the same output in a dialog box and not in the same page?
I am new to JavaScript so I posted this question. What I did:
I had to search for the div id of the Run button and had to search for the URL where the div id gets loaded. Upon finding this, I had to write a jQUERY code to open a dialog box and the resulting output was rendered there.
I'm not pretty sure I got you right but have you tried to use a redirect instruction?
http://grails.github.io/grails-doc/3.0.x/ref/Controllers/redirect.html

What is best practice for web input control to gather multiple strings?

I am looking to add to a web form the ability for users to enter mutiple strings. It should work like the tags input to new questions on stackoverflow.
Is there a smaple on teh web of such a UI control for asp.net?
Or is there another solution for accepting multiple tags (of text/ strings) in a nice neet ui control?
(I didnt find anything usefull in the HTML5 set of controls.)
NOTE: for use with a asp.net web form (post backs) application
I think TextExt plugin is best for you. very handly and useful.
TextExt Plugin for jQuery
TextExt is a plugin for jQuery which is designed to provide
functionality such as tag input and autocomplete.
The core design principle behind TextExt is modularity and
extensibility. Each piece of functionality is separated from the main
core and can act individually or together with other plugins.
Features:
Tags
Autocomplete
AJAX loading
Placeholder text
Arrow
… and much more!
How To Use:
The steps to using TextExt are as follows:
Specify which plugins you need via the plugins option
Configure each plugin individually if necessary
Enjoy!
<script type="text/javascript">
$('#textarea').textext({
plugins : 'tags prompt focus autocomplete ajax arrow',
tagsItems : [ 'Basic', 'JavaScript', 'PHP', 'Scala' ],
prompt : 'Add one...',
ajax : {
url : '/manual/examples/data.json',
dataType : 'json',
cacheResults : true
}
});
</script>

How to save datas from custom form in joomla article

Hi I have created custom form in joomla article with html.When i click the submit button i need to validate the form and also to call the controller of the com_content.From the controller i need to save the form field datas to mysql database through model.How to do this.Please guide me.
<form id="slideshow-form" class="form-validate" method="post" name="adminForm">
Name
Your mobile number
Your email address
What is your city of residence?
for custom form it's better to use one of joomla form builder extensions like Chronoform

Can we pass data from textbox to node js without form action submit?

Hi everyone I want to pass some data from text field as soon as html page loads to node js without any form action submit. Is it possible in node js. I am using only ejs writimg html codes no react and angular