forms

How can I get taskbar buttons for forms that aren't the main form?

时光总嘲笑我的痴心妄想 提交于 2020-03-10 13:32:11
问题 How do you make a form appear on the taskbar in Delphi? In Firefox, for example, when you open a page in a new window, it creates another window on the taskbar without creating a new process. At the moment my Delphi application opens a new form when a button is clicked, but there is still only one thing on the task bar, so you can't alt-tab between the main form and the form that is created when the button is clicked. How do I change it so that the new form appears with a new taskbar button?

How to encrypt password before post from login form?

一世执手 提交于 2020-03-05 09:34:26
问题 I have a Login form in yii which required username and password . My problem is that password is plain text so it may cause security issue. For this i have md5 password before submitting form via ajax <div class="form"> <?php $form=$this->beginWidget('CActiveForm', array( 'id'=>'login-form', 'enableAjaxValidation'=>true, )); ?> <p class="note">Fields with <span class="required">*</span> are required.</p> <div class="row"> <?php echo $form->labelEx($model,'username'); ?> <?php echo $form-

How to remove auto complete duplicates?

五迷三道 提交于 2020-03-05 07:06:14
问题 How do I remove the duplicates? I have 4 rows in my database table with all the same name, for example a brand, Apple, which is used 4 times, how do i remove the other duplicates with the same name? this is to avoid redundancy when inputing brands. <script> $(document).ready(function(){ $("#prod_brand").autocomplete("prod_brand_auto_complete.php", { selectFirst: true }); }); </script> Here is the prod_brand_autocomplete.php <?php $q=$_GET['q']; $my_data=mysql_real_escape_string($q); $mysqli

How to remove auto complete duplicates?

好久不见. 提交于 2020-03-05 07:05:34
问题 How do I remove the duplicates? I have 4 rows in my database table with all the same name, for example a brand, Apple, which is used 4 times, how do i remove the other duplicates with the same name? this is to avoid redundancy when inputing brands. <script> $(document).ready(function(){ $("#prod_brand").autocomplete("prod_brand_auto_complete.php", { selectFirst: true }); }); </script> Here is the prod_brand_autocomplete.php <?php $q=$_GET['q']; $my_data=mysql_real_escape_string($q); $mysqli

How to use parse_qs in redirecting from view to another?

本小妞迷上赌 提交于 2020-03-05 04:27:06
问题 I have a home in which I have a form that I get some info from students to suggest them some programs to apply to. The home view is as below: def home(request): template_name = 'home.html' home_context = {} if request.POST: my_form = MyModelForm(request.POST) if my_form.is_valid(): # do some stuff return programs(request) else: my_form = MyModelForm() home_context.update({'my_form': my_form, }) return render(request, template_name, home_context) In the second view, I have the same form and I

Form Submission does not work in Internet Explorer - Joomla

梦想的初衷 提交于 2020-03-05 03:35:50
问题 I have seen some similar questions to mine , but most of them have some code related issue that prevents them from work... In my vase the form submit works well in safari, chrome , firefox But in the internet explorer version i click the submit button and it doesn't do anything. Initially i thought it might be a networking problem , or maybe an html problem ? But it doesn't make sense to detect a click and not do the action. What could possible be the problem ? since the difference between

Mongoose use user input to find results in DB with express.js?

我与影子孤独终老i 提交于 2020-03-05 00:38:21
问题 I'm new to mongoose/mongo and express so I'm not quiet sure how to go about this. So basically I'm trying to use checkboxes to sort of "filter" results in my database. Here's an example of something in my db: { "location" : "PHARMACY", "region" : "SOCAL", "system" : "WITS", "contact" : "SMITH", "membership" : "TIER1" } So far I've only figured out how to hard code it like this, where I do Environment.find({region: "SOCAL"}) and it spits out all the db entries that contain SOCAL as a region:

Mongoose use user input to find results in DB with express.js?

寵の児 提交于 2020-03-05 00:36:40
问题 I'm new to mongoose/mongo and express so I'm not quiet sure how to go about this. So basically I'm trying to use checkboxes to sort of "filter" results in my database. Here's an example of something in my db: { "location" : "PHARMACY", "region" : "SOCAL", "system" : "WITS", "contact" : "SMITH", "membership" : "TIER1" } So far I've only figured out how to hard code it like this, where I do Environment.find({region: "SOCAL"}) and it spits out all the db entries that contain SOCAL as a region:

how to serialize list of form object to JSON in django

ε祈祈猫儿з 提交于 2020-03-05 00:28:17
问题 I'm trying to serialize the form objects and return to the AJAX call so that I can display them in the template, but I'm not able to serialize them unlike serializing the model objects don't we have an option for form objects if request.method == 'POST': temp_data_form = TemplateDataForm(request.POST) if request.POST.get('temp_id'): # getting id of the current template existing_template = Template.objects.filter(id=request.POST.get('temp_id'))[0] if request.POST.get('item'): item_query =

Ajax form action not triggered in Sails.js

依然范特西╮ 提交于 2020-03-04 19:38:09
问题 I created an action in Sails.js to create an entry in a database (add a customer). Then I created a form in EJS. (My code is based on the signup route / form) I have my Customer.js models I have my view-create-customer.js I have my create-customer.page.js I have my controller "action" create-customer.js cloud.setup.js has "createCustomer":{"verb":"POST","url":"/api/v1/entrance/create-customer","args":["customerName","status"]} In routes.js I have : 'POST /api/v1/entrance/create-customer': {