w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML Categories
Quest Spotlight oci.dll
According to Spotlight requirements: Note: Spotlight will run on 64-bit versions of the client operating system with the use of a 32-bit Oracle client. If you have 64-bit server and 32-bit client installed on the same computer it's possible that Spotlight looks for oci.dll at wrong Oracle Home. Examine order of Oracle home directories from Universal Installer and place 32-bit home first: Run Oracle Universal Installer Click "Installed Products" button Switch to "Environment" tab Reorder Oracle Homes with arrows on right side and click "Apply"

Categories : Oracle

Quest editor in java for big game
reasoning over lots of facts and triggering actions when a set of facts matches specific conditions is a good match for drools. you could represent every action/decision that the player has made as a fact, which you could insert into a drools knowledge session. in that session you could store all of your "triggers" as drools rules, which will fire when a collection of facts in memory match the condition. drools supports dynamic addition/removal/editing of rules and is explicitely targeted at allowing non-developers to write logic using a simpler rule language. the specific part of drools to start with is the core - drools expert

Categories : Java

Logical quest - get TableCell from one dimensional index
Row: (index - 1) div nrOfColumns + 1 Column: (index - 1) mod nrOfColumns + 1 Your examples : (5-1) div 3 + 1 = 2, (5-1) mod 3 + 1 = 2 --> (2, 2) (8-1) div 3 + 1 = 3, (8-1) mod 3 + 1 = 2 --> (3, 2)

Categories : Java

Determing the namespace in a mediawiki page (api quest.)
Forgot about this question from a long time ago, but it turns out MediaWiki has a buit in function for this $myNamespace = $article->getTitle()->getNamespace(); Since the article object is by default passed to an extension hooked to an on_save process, this will get the namespace as a numeric value.

Categories : PHP

The quest for the Excel custom function tooltip
How about Capture inputting text on key press event of cell. like this Check if the text matches with custom functions. If matches, then show something like label or shape to pretend be a tooltip. like this Is this acceptable? It is a little ugly but easier.

Categories : C#

Logging output of user disable and group removal - Powershell no Quest
A simple on-screen answer using Write-Host $userGroups | %{Write-Host "Removing user from group $_"; get-adgroup $_ | Remove-ADGroupMember -confirm:$false -member $SAMAccountName}

Categories : Powershell

Adding data from c#form (visual studio) to mysql database and need to retrieve new record ID back on to form
You can grab the command.LastInsertedId e.g. MySqlCommand cmdDataBase = new MySqlCommand(Query, conDataBase); cmdDataBase.ExecuteNonQuery(); var lastId = cmdDataBase.LastInsertedId; // Assign to label label5.Text = lastId.ToString();

Categories : C#

adding loader form after main form
In your project properties you can set splash screen - select form that you created for that. Edit: image to help navigate to it: img

Categories : C#

Adding to a list box on another form
First of all, did you make the listbox public? I believe you can do this by selecting the listbox, going to the properties window, finding the Modifiers item, and setting it to Public. Second, make sure the form that contains the list of employees, is static, and that you're not creating the same form each time you want to add an employee. Do this by: namespace WindowsFormsApplication1 { public static class Program { public static EmployeeCumalitveList MyEmployeeList; /// <summary> /// The main entry point for the application. /// </summary> [STAThread] static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); MyEmployeeList =

Categories : C#

Adding form on page in ASP .Net
By default ASP.NET pages already have a <form> tag that wraps the entire page. So if you add a further <form> tag you end up with nested forms which isn't allowed. You can usually get away with dropping your inner <form> tag.

Categories : Asp Net

Having a difficulty adding a new form in each new
You're repeatedly creating divs with the same ID. (a) that's not legal and (b) if you do it anyway, your $(#newDiv) selector will always apply to the first one. Also, you're appending to #newDiv outside the if (canContinue) check. Try: if(canContinue){ var categorySections = prompt("Enter the number of sections needed for this category:"); var newDiv = $("<div>").appendTo($(document.body)); var header = $('<p>').text(newCategory).appendTo(newDiv); for(var i = 0; i < categorySections; i++){ newDiv.append("<form> Thing to do: <input type = "text"></form><br>"); } }

Categories : Javascript

Yii: Adding CGridview to form
JavaScript (jQuery v1.9+): $(function() { // when row is clicked $('#day-grid tbody:first').on('click', 'tr', function() { // get the ID var id = $(this).find('td:first').text(); // select the same option in dropdown list with same value $('#EmpSched_fk_id_sched') .find("option[value="+ id +"]") .prop("selected", "selected"); }); });

Categories : Javascript

C# form adding to lists
You appear to be trying to modify the same collection that you are iterating over, which is not allowed. While it's not clear what you are actually trying to do, you might want to check with something like: var clientName = nameBox.Text.Trim(); // after validating that it's not null or empty if (!records.Any(c => string.Equals(c.Name, clientName, StringComparison.InvariantCultureIgnoreCase))) { records.Add(new Client { Name = clientName } ); } else { MessageBox.Show("Member already exists"); }

Categories : C#

CRM 2011 Form Adding Tooltip
Try using the entity code described at HTML Codes - Characters and symbols. For ' the symbol is &#39; Also see IMPLEMENTING TOOLTIPS FOR MICROSOFT DYNAMICS CRM 2011, which verifies this approach

Categories : Javascript

Validate the form before adding the loop div
Check this. $('.test').on('click', function () { if(!$("#signupForm").valid()){ alert("Please enter mandatory fields."); return; } if (c<5) $('#loops').append( HTMLloop(++c) ); }); Here in the above condition you can check if any fields is blank then you don't allow to add another set. Hope this will help you.

Categories : Jquery

adding horizontal splitter to my form
To prevent the groupbox from disappearing just set its Constraints.MinHeight to the same value as the splitter MinSize. The splitter will snap the fixed control (groupbox) into its MinHeight value when the Height is below the MinSize.

Categories : Delphi

Adding news as a new .txt file from form
Maybe something like this? Haven't tested. $file_name = "path/to/save/file/[" . date( 'd.m.y' ) . "] " . $_POST['title']; $handle = fopen( $file_name, 'w' ) or die( 'Unable to open file' ); //create new file fclose( $handle ); //close file $file = file_get_contents( $file_name ); //open the file $file .= $_POST['content']; //apppend $_POST['content] to file file_put_contents( $file_name, $file ); //write the contents back to file

Categories : PHP

Adding a html/php form to drupal
You might be surprised how easy it is to re-create a form in the Drupal Webform module. Considering how much it gives you (user logins, XSS protection, e-mails on form submission, CSV downloads, etc.), I think it's really worth it. I had a set of forms that used CakePHP and were a nightmare to maintain. This year we moved them to Drupal, and everyone is very happy with the new system. There are even non-techie admins who can create their own forms! Some of the forms took only about 30 minutes to re-create in Drupal, including validation. The only alternative I can think of is using iframes or putting your forms into node templates (one overridden template for each form), but you are still managing users, duplicate submissions, XSS attacks, data sanitization, changes to forms, and so on.

Categories : Forms

adding Panel to form on different thread
You have to invoke that operation: Thread form = new Thread(()=> { Form displayForm = new Form(); displayForm.Show(); display.Invoke((MethodInvoker)delegate { displayForm.Controls.Add(display); }); }); and to be honest I do not see any reason why you would want to do that. It is very simple and fast operation and you should do it on UI thread instead of creating new one.

Categories : C#

Adding a preview pane to my form?
You should read View Data Your Way With Our Managed Preview Handler Framework to get an idea of how to display a preview of a file.

Categories : C#

Error when adding class to a form
I think you need to include the options hash (even if it is empty) before the html hash: <%= form_for([@post, @post.comments.build]), {}, {class: 'form-horizontal'} do |f| %>

Categories : Ruby On Rails

Adding a class to a backbone form
How about using the $el and adding it there ? form.$el.attr("class", "testing"); live example http://jsfiddle.net/c5QHr/228/

Categories : Misc

javascript: adding form on click
You are trying to append an input to a input! An input does not have child elements. You need to append it to the parent element that holds the form elements. By the name of your variable it would be some sort of div element. You can either do it by the name of the div, or use parentNode.

Categories : Javascript

Adding two levels of one-to-many to an admin form
Unfortunately, nested-inlines are not yet supported out-of-the-box in the django admin. There is a 5+ year old open ticket on the issue: https://code.djangoproject.com/ticket/9025 I haven't used it, but there is a 3rd party app, django-nested-inlines, that supposedly does the trick. You can find it here: https://github.com/Soaa-/django-nested-inlines Or, you can do what I did. Roll up your sleeves and hammer out your own Edit/create views. Afterall, the admin interface wasn't intended for the end user.

Categories : Django

Adding checkbox in signup form
For that you can add a new migration to add a new column as boolean field to your users table. http://guides.rubyonrails.org/migrations.html rails g migration AddTermsAcceptedToUsers It will create a migration file in your db/migrate folder. Now you need to add the code to it. class AddTermsAcceptedToUsers < ActiveRecord::Migration def change add_column :users, :terms_accepted, :boolean, :default => false end end Then do rake db:migrate. Now your users table is having a column as terms_accepted. Then add it as attr_accesible. attr_accessible :terms_accepted. Now use this field and show it as checkbox in the registration page. <%= f.check_box :terms_accepted%>

Categories : Ruby On Rails

Adding non-entity fields to a form
You can add it as any other widget to the form's widgetSchema. Of course you have to remember to also add a validator or the validation will fail with an unexpected field error. Symfony is smart enough to ignore the field when persisting the object to the database.

Categories : Forms

Adding fields to Access table from a form
Make a new table that will hold your extra items. Foreign key it back to the table that the form is bound to, and include two fields, Name and Value. Something like: tblItemExtraInfo ---------------- ItemExtraInfoID (pk) OrigItemID (fk) Name (e.g. item1) Value In this way, your additional data items effectively become name-value pairs, and you don't have to deal with messy DDL in the middle of your form. Worse, IIRC, the database needs to be opened exclusively in order for DDL to be executed, which means nobody would be able to be in the db at the same time.

Categories : Ms Access

Adding two lists and getting XML output in nested form
You should create an object which contains an application and a list of environments, like ApplicationWithEnvironments. List<ApplicationWithEnvironments > AppWithEnvlist = new ArrayList<ApplicationWithEnvironments >(); for(ApplicationDTO d: allApplication) { ApplicationWithEnvironments appWithEnv = new ApplicationWithEnvironments(); Application a = new Application(); a.set... appWithEnv.setApplication(a); for(EnvironmentDTO en: d.getEnvironment()) { Environment e = new Environment(); e.set... appWithEnv.addEnvironment(e); } AppWithEnvList.add(appWithEnv); } ArrayList<MyModel> obj= new ArrayList<MyModel>(); MyModel mm = new MyModel(

Categories : Java

Adding custom field to a backend form
Yes, you need to edit generator.yml, but in the form line: # apps/backend/modules/whatever/config/generator.yml config: ... form: display: Whatever... Here you have some examples. Taken from the official documentation: http://symfony.com/legacy/doc/jobeet/1_4/en/12?orm=Doctrine#chapter_12_form_views_configuration This way, the form that the generator uses will be the one you specify. And maybe you don't need to modify something else.

Categories : PHP

Copy form object and adding new fields
I don't think you can, but try to make the UserName field mapping optional so it doesn't get in your way when you don't need it: mapping( UserName -> optional(nonEmptyText.verifying(Messages(UserNameAlreadyTaken), userName => { UserService.find(IdentityId(userName, providerId)).isEmpty })), ... ) Since the case class corresponding field already is optional, there won't be any harm. Still, the Password mapping isn't the same for the two forms. So you should keep them all, refactoring the similar parts.

Categories : Scala

Response of a submit form is adding < pre > to json
I finally found the solution: For Ext 4.0, you need to set the contentType of the response like "html/text", and then, sorround the json string with tags. Take a look on this for further information. http://www.sencha.com/forum/showthread.php?269683-Response-of-a-submit-form-is-adding-lt-pre-gt-to-json&p=987969#post987969

Categories : Extjs

Adding a string in front of a parameter for a form
You should do this in your model by adding your substring before the value que form will send you. This seems business logic, it shouldn't be in the view. def post_tickets(params) client.username = "Hello From, " + client.username client.post_tickets(params) end

Categories : Ruby On Rails

Adding checkboxes to PHP POST email form
An array of checkboxes would be most appropriate. By using [] in the checkbox names, PHP will automatically parse them into a native array. <input type="checkbox" name="projects[]" value="Web"> <label for="type1">Web</label> <input type="checkbox" name="projects[]" value="Digital"> <label for="type2">Digital</label> <input type="checkbox" name="projects[]" value="Consultancy"> <label for="type3">Consultancy</label> On the PHP side: $selectedProjects = 'None'; if(isset($_POST['projects']) && is_array($_POST['projects']) && count($_POST['projects']) > 0){ $selectedProjects = implode(', ', $_POST['projects']); } $body .= 'Selected Projects: ' . $selectedProjects; Outputs (if all checked)

Categories : PHP

Adding a unique name to cloned form elements
Try this:- var clone = row.cloneNode(true); // copy children too var theName= row.getAttribute('name'); clone.setAttribute('name', theName + counter++);// change id or other attributes/contents

Categories : Javascript

django adding fields to model form
Use two separate forms - UserForm, created out of models.User & AddStaffForm but exclude the 'user' field in the AddStaffForm. Use only ONE submit button for both. So your template will look like: <form method="post" action="/path/to/wherever"> {{ user_form }} {{ add_staff_form }} <button>Submit</button> </form> Then, when the user submits the form, process each form independently in the following order: Process the user form first and save the user instance created by the form to the db. if user_form.is_valid() is True, you can do this by simply doing user = user_form.save() Next, process the AddStaffForm but pass commit=False (i.e. staff = add_staff_form.save(commit=False) since it does not contain the value for the user field just yet. Prov

Categories : Django

Adding control dynamically on Form is different from FlowLayoutPanel
Change the FlowDirection() of your FlowLayoutPanel to TopDown. Edit: Also, get rid of the for loop...what is that supposed to be doing? Maybe something like? using (SqlConnection myDatabaseConnection = new SqlConnection(myConnectionString.ConnectionString)) { myDatabaseConnection.Open(); using (SqlCommand SqlCommand = new SqlCommand("Select LastName from Student", myDatabaseConnection)) using (SqlDataAdapter da = new SqlDataAdapter(SqlCommand)) { int i = 0; SqlDataReader DR1 = SqlCommand.ExecuteReader(); while (DR1.Read()) { i++; UserControl2 userconrol = new UserControl2(); userconrol.Tag = i; userconrol.LastName = (string)DR1["LastNa

Categories : C#

form submission after adding dynamic textbox
After cleaning of your code it works, so I do not know exactly where the problem is, also some parts of the code is missing. Here is a better formatted html and php, with JavaScript that is described in detail. Analyze the changes. <form action="" method="post"> <INPUT size='70%' TYPE='hidden' VALUE='AIzaSyxxxxxxxxxx' NAME='apiKey'/> <INPUT size='70%' TYPE='hidden' VALUE='xx' NAME='registrationIDs'/> <table id="medics" class="table"> <?php for ( $i=0; $i<$counter; $i++ ) { echo "<tr name='input-holder'> <td><input type='text' value='$medicsarray[$i] - $qtyarray[$i]' name='medic[]'/></td> <td><input type='text' name='add[]'/></td> </t

Categories : PHP

Adding form data to mysql database PHP and AJAX
there is mistake in code, you have coded var name = $("#firstname").val(); var username = $("#lastname").val(); var dataString = 'firstname='+ firstname + 'lastname=' + lastname you have to used the variables name and username in dataString but you have written the id(s) of fields for first and last name. change either the variable name or variables used in dataString corrected line is : var dataString = 'firstname='+ name + 'lastname=' + username And $lastname=$_POST['username']; => $lastname=$_POST['lastname'];

Categories : Ajax

jQuery - Adding / Removing Input Fields in Form
The problem was the selector $('#input2' + num2) when the script is executed first, there is only one element with id input2, but your selector is looking for an element with id input21 which does not exits. I fixed it by cloning the last element with class clonedInput2 instead of finding the element with id jQuery(function($) { $('#btnAdd2').click(function () { var num2 = $('.clonedInput2').length; // how many "duplicatable" input fields we currently have var newNum = num2 + 1; // the numeric ID of the new input field being added // create the new element via clone(), and manipulate it's ID using newNum value var newElem2 = $('.clonedInput2:last').clone().attr('id', 'input2' + newNum); // manipulate the name/id values of the input inside

Categories : Jquery

How to customize a django form (adding multiple columns)
You can customize the form HTML using its fields, as shown in the documentation. You are doing this in an unusual way; normally you would have the template in a file instead of returning it from a function, but you can still do this: from django.template import Context def getdjtemplate(): dj_template = """ <table> {% for field in form %} <tr>{{ field }}</tr> {% endfor %} </table> """ return dj_template form = old_form() djtemplate = getdjtemplate() newtmpl = Template(djtemplate) c = Context({'form': form}) newtmpl.render(c)

Categories : Python



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.