w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Hidden image with javascript in textbox when is selected
Does this work for you> <style type="text/css"> input.image-placeholder{ background-image:url("image path"); background-repeat:no-repeat; background-position: center left; } </style> <div id="ricerca"> <form > <input type="text" class="ricerca" value="Search" onblur="if (this.value == '') this.className= this.className + ' image-placeholder';" onclick="if (this.value == 'Search') this.className='ricerca';" > <input type="submit" id="lente" class="lente" value="show" style="border:none;"> </form> </div>

Categories : Javascript

getting data from hidden textbox in a View using MVC
Why don't you put the fields into the ViewModel? You can then use: @Html.HiddenFor(m => m.Awayid) @Html.HiddenFor(m => m.Homeid) When you post it, the values will be on model.Awayid and model.Homeid. The way you did it, I think it's not working because the "id" is different on the html and action. HTML: hiddenAwayid Action: hiddenAway

Categories : Asp Net Mvc

Better approach than hidden field to store data in html
If you don't need those in a form, then just make them variables in your JavaScript. To output them, encode them via the JavaScriptSerializer class: <% // Presumably somewhere in your C# code... JavaScriptSerializer serializer = new JavaScriptSerializer(); %> <script> var hid1 = <%= serializer.Serialize(valueForHid1) %>; var hid2 = <%= serializer.Serialize(valueForHid2) %>; </script> (See note below about globals.) Using them later: $.ajax({ data:{ var1 : hid1, var2 : hid2 } ); Globals: As shown there, hid1 and hid2 end up as globals (on most browsers, they do when you use hidden fields as well). I recommend not using globals, but instead wrapping everything in scoping functions: (function() { var hid1 = <%= serializer.Seri

Categories : Javascript

How to update store with a Ember.TextBox data changed programmatically?
Here an example on how to change the value of a textfield programmatically: http://jsbin.com/ilewas/2/edit Now a little bit of explanation, ember will not be aware if you use plain javascript like document.getElementById('myname').value = 'other'; to change values, everything in ember is based on Ember.Object so you have to use eighter the data binding mechanism or set the value directly in an action call like in the example using the built-in setter methods. This very good blog post by Dan Gebhardt explains in depth how ember's object model works. Hope it helps.

Categories : Javascript

Displaying Raw Data From Image File Using TextBox or RichTextBox?
The simplest solution is to use this: textbox.Text = data.Replace("", @""); This will force the textbox to actually show a backslash followed by a zero where the nulls would be. Alternatively, you could replace the nulls with some other character or string.

Categories : C#

dynamic textbox are not store in the textbox
createTextbox is not explicitly available. You'll have to get it by using document.getElementById. Like this... var createTextbox = document.getElementById("createTextbox"); createTextbox.innerHTML = createTextbox.innerHTML +"<br><input type='text' name='mytext' >";

Categories : PHP

C# Winapp: TextBox is hidden by PictureBox
As I said in my comment, you can use textboxName.BringToFront(); to bring a control to the front, if you want a messagebox to appear in the middle, MessageBox.Show(this, "message"); should work as I believe messageboxes appear centered on parent by default Edit Just looked it up (MessageBox centering) but it seems you can centre one by hooking but that seems a little overkill

Categories : C#

create hidden textbox, change it value in javascript and get new value. c#
So when accessing it from JavaScript you need to use this syntax: $('#field_hidden').val("some text"); further, with the edit, I just noticed that you're not giving it a name as karaxuna stated. And finally, you'd need to make sure it's inside the form tag for it to be part of the Request.Form. One other way of accessing its value though, even if it's built dynamically inside the Load, is to grab its value with the Value property. However, make sure you do that after the Load, in something like PreRender, because ASP.NET needs to have a chance to bind its value with ViewState.

Categories : C#

Subclass UIImageView to store extra data on image
I think a subclass is a good way to go. Something like this should do the job: @interface ImageViewWithStartPosition : UIImageView @property (nonatomic) CGPoint startPosition; - (void)returnToStartPosition; @end You could also create a category and add a property to it using the runtime, but I'd recommend against it if subclassing is an option.

Categories : Iphone

Access: Display hidden combobox column in textbox
If you're looking to show both column 2 and column 3 Column Count = 2 Column Width = 0;1;0;0 If you're looking to show column 3 instead of column 2 Column Width = 0;0;1;0

Categories : Ms Access

How to pass a jquery value in a div or form and assign it in a hidden textbox?
You can use .val() to assign a value to an input element and use attribute selector to select the input field using the name attribute $('input[name="cat_id"]').val($(this).attr('data-value')) Ex: $(".comment").click(function(){ var id = $(this).attr('data-value'); //This is the value of the button, problem is how to pass it in my comment form? $('input[name="cat_id"]').val(id) $("#comment_add") .show(); //alert(id); });

Categories : Javascript

Upload image and video in form and store data in mysql
Be sure that the error code is in fact zero (it's the first reason the file isn't there). If it is not zero then you can find information on the error codes PHP - Error Messages Explained You should check the return value of move_uploaded_file: $tmp_name = $_FILES["vid1"]["tmp_name"]; $name = "../videos/" . mysql_insert_id() . "b.avi"; if(!move_uploaded_file($tmp_name, $name)){ print "Could not move file $tmp_name to $name<br>"; } else { print "Successfully copied files<br>"; } Chances are there was an error in the move_uploaded_file call and subsequent warnings were suppressed by PHP You can print all errors/warnings/messages by calling error_reporting(E_ALL); at the beginning of your script. More info on error reporting here - PHP - error_reporting

Categories : PHP

How to input multiple checkbox values into a hidden textbox via javascript
If you can use jQuery, you won't need much code: You could update the results whenever somebody clicks on a checkbox ($('input').on('click', function() {). I personally would use <label> elements, but that's just me. You could grab the values by $('input:checked').each(function() { values.push($(this).parent().text()); }); Here is a working example: http://jsfiddle.net/HarryPehkonen/zNfju/1/

Categories : Javascript

How to control when image data is loaded into memory in Windows Store Apps?
For Windows Store Apps I suggest looking into the AccessCache APIs - http://msdn.microsoft.com/en-us/library/windows/apps/windows.storage.accesscache.aspx Specifically the StorageApplicationPermissions class. With it you can add various storage items to be accessed. Take a look at the FilePickerSample (or FileAccessSample) app for more information on how it can be used.

Categories : Image

Transfer the Winform Textbox data to Html Textbox
Just paste the all the code I just add function SendTextToActiveElementWithSubmitOptionSet(bool btnSubmit) I solve my issue below my code private void SendTextToActiveElementWithSubmitOptionSet(bool btnSubmit) { mshtml.IHTMLDocument2 document = null; document = TargetIE.Document as mshtml.IHTMLDocument2; if (!document.activeElement.isTextEdit) { MessageBox.Show("Active element is not a text-input system"); } else { HTMLInputElement HTMLI; HTMLI = document.activeElement as HTMLInputElement; var tag = HTMLI.document as mshtml.HTMLDocumentClass; mshtml.IHTMLElementCollection hTMLElementCollection = tag.getElementsByT

Categories : C#

Windows Store App Multiline Textbox New Line
TextBox wrapping means that when the line is too long it will wrap it. If you want to enable users to write multiple lines into textbox you should use RichEditBox <RichEditBox HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top"/>

Categories : Windows

textbox and dropdown values inserted should store in database using c# asp.net
get all values in back end and pass to this function public bool InsertRecord(string strTableName, string strColumn_Name, string strValues) { SqlConnection OBJCONNECTION; StringBuilder strbQuery; SqlCommand cmd; try { OBJCONNECTION= new SqlConnection(); OBJCONNECTION.ConnectionString = ConfigurationManager.ConnectionStrings["Basic_ADO"].ConnectionString;//get connection string from web.config file OBJCONNECTION= strbQuery = new StringBuilder(); strbQuery.Append("INSERT INTO "); strbQuery.Append(strTableName); strbQuery.Append("(" + strColumn_Name + ")"); //strbQuery.Append(" VALUES"); strbQuery.Append("(" + strValues + ")")

Categories : C#

jQuery : how to store textbox values in array for each row (tr wise)
textbox values in array for each row (tr wise) Working Demo http://jsfiddle.net/cse_tushar/zQNUW/10/ $("#update").click(function () { x = []; $('table tr:gt(0)').each(function () { y = ''; $(this).find('td input[type="text"]').each(function () { y += $(this).val() + ' '; }); if (y != '') { x.push($.trim(y)) } }); alert(x); console.log(x); }); Working Demo http://jsfiddle.net/cse_tushar/zQNUW/7/ $("#update").click(function () { x = []; $('table tr td input[type="text"]').each(function () { x.push($(this).val()); }); alert(x); console.log(x); });

Categories : Javascript

How to extract SQL Server image column data into readable format and store into another column?
You can do it converting the field first to varbinary and than to varchar. declare @t table (i image) insert into @t values('some text') select i, CAST(cast(i as varbinary(max)) as varchar(max)) from @t

Categories : Sql Server

How should I display thumb of image? where image is store in db and thumb is store in folder
You are not passing $thumbs in image_view() There are a lot of ways your code can be improved, and better practices followed - but in the interest of answering your question, replacing image_view() with the following will clear your error: function image_view() { $data['thumbs']=$this->get_thumbs(); $data['images']=$this->get_images(); $this->load->view('image_view',$data); }

Categories : PHP

How to store data with abstract type? Is it sane to store data as sql_variant data type?
It's hard to determine right answer from your question. What data types you are expecting to be and what are you going to do with that types? Because,if you are going to create to many tables for each type you will end up in complexity and more size on disk than using sql_variant type. Keep in mind that when using sql_variant to represent boolean, will only represent 1 byte of overhead(for storing data type kind) + variable length bytes(wich you probably already have in table). But if you are using that type fore some complex mission critical logic and if yours data access framework doesn't support sql_variant you should not use sql_variant.

Categories : SQL

how to store html code EMail template in a string variable or textbox c#
save it to file and load that file to string , or in the application setting ( project -> properties -> setting ) string htmlCode = System.IO.File.ReadAllText("File Path"); with application setting : string htmlCode = properties.Default.HtmlCode; after that you can do what ever you want that.

Categories : C#

Is there any way to configure disk store for terracotta BigMemory to remove all data store on service/cache manager start up?
As I understand your question, you want to remove the Index data from BigMemory Go on restart. Whether you can do this or not depends on your persistence strategy. If it is local restartable, BigMemory Go will try to either reuse the index data if the application was shutdown cleanly, or it will recover the indexes if it was shutdown abruptly. So, for a persistence strategy of local restartable, there is no way to avoid rebuilding the data. If your persistence strategy is "localTempswap", then you will not rebuild any data on restart and will lose the application's state. Please see here for more information: http://ehcache.org/documentation/configuration/fast-restart

Categories : Java

How to get Ember Data's "store" from anywhere in the application so that I can do store.find()?
The TRANSITION doc says that you can do this to inject the store into components : App.inject('component', 'store', 'store:main'); You might be able to change 'component' to 'view' or to 'model', but I'm not sure about that.

Categories : Ember Js

How to retrieve image files from Sharepoint Image Library (List) through REST API using C# in Windows Store App
The following example demonstrates how to retrieve a specific file content from library: url: http://site url/_api/web/lists/getbytitle('<list title>')/items(<item id>)/File/$value method: GET headers: Authorization: "Bearer " + accessToken Example HttpClient client = new HttpClient(); client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", accessToken); var response = client.GetAsync("https://tenant.sharepoint.com/_api/web/lists/getbytitle('Documents')/items(1)/File/$value", HttpCompletionOption.ResponseHeadersRead).Result; var fileContent = response.Content.ReadAsByteArrayAsync().Result; References Working with folders and files with REST

Categories : Rest

Image gets displayed when inside hidden div
You have the wrong HTML. It should be: <div id="loading" class="hide"> In your CSS, you have rules for #loading and .hide. Your HTML, <div id="loading hide">, has an ID that's invalid because of the space. You probably meant to have the HTML I suggest above. plinkr example

Categories : CSS

Fancybox image hidden after click
I hope I understood, what your problem is. I cleaned it up a little and I hope i fixed your problem :) <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" /> <title>FancyBox Gallery Test</title> <link rel="stylesheet" href="inc/css/style.css" /> <link rel="stylesheet" href="inc/js/fancybox/jquery.fancybox.css" /> <link rel="stylesheet" href="inc/js/fancybox/helpers/jquery.fancybox-buttons.css" /> <link rel="stylesheet" href="inc/js/fancybox/helpers/jquery.fancybox-thumbs.css" /> </head> <body> <div class="gallery" style="text-align:center;"> <ul> <li><a class="fancybox" rel="gallery1" href="inc/imj/uye/Mu

Categories : Jquery

Safely store textarea text in a hidden field using jQuery, then use the text later in PHP
What is the best way to safely escape all the text from the textarea, for storage in an HTML attribute? New line characters must be preserved. Using .val() is the best option, it won't allow the textarea contents to break out of the hidden's value attribute. Using the native Javascript .value will also work and is safe, .val() is just a wrapper for that. If the user opens the modal again, how do I grab the text stored in the hidden field and put it back into the textarea as it was, complete with new line characters? When the modal opens: // #mytextarea = the textarea on the modal // #myhidden = the hidden on the main page $('#mytextarea').val($('#myhidden').val()); // set the modal textarea to the value of the hidden When the modal closes or "saves": $('#myhidden').val($('#m

Categories : PHP

Use jquery to set a hidden input value using attr of an image
Try jQuery(function($){ var hinput = $('input[name="First Name"]'); $('.selectImage').click(function(){ hinput.val($(this).attr('value')) }) }) Demo: Fiddle

Categories : Jquery

Image is hidden by css :before pseudo-element unless opacity is different than 1
You need to position the image as well: img { position: relative; height: 100px; width: 100px; } Updated fiddle Setting opacity to be less than 1 causes the image to create its own stacking context. This causes the image to stack itself on top of the :before pseudo-element which you have positioned. If you leave opacity as the default value of 1, this doesn't happen which causes the :before pseudo-element to stack on top of the image instead. See the CSS Color level 3 module for information on opacity and section 9.9 of CSS2.1 for details on stacking contexts.

Categories : HTML

Will the image load for visibility value set as hidden when the page loads?
When page load, image will be loaded and will be hidden. In your button click its style property become show means visible. If you set style to display:none; it will be hidden;

Categories : Javascript

link area is either too small or obscures image in hidden div
I'm sorry to say this, but this CSS and HTML is really messy and non-consistent. From what I understood your only problem is that IRC image is not shown, the only reason for that is that ".socialLink" class has "opacity: 0". Regarding anchors not wrapping around its content in this case image, you should put in display: block;

Categories : CSS

Resizeing an oversized image using overflow:hidden and keep the aspect ratio
you could use vertical-align and negative margin to virtually reduce height of image. http://codepen.io/gcyrillus/pen/Grbxg .grid_3 { width:260px; margin:0 20px; float:left; text-align:center; overflow:hidden;background:rgba(255,255,255,0.02);} .grid_3 a { display:block; height:171px; border:solid 2px #FFFFFF; line-height:168px; overflow:hidden; margin-bottom:10px; } .max-img-border { width:100%; margin:-100% 0;vertical-align:middle; }

Categories : CSS

Image inside a textbox with a value in it
To place the background the way you want it, you need to set the background-position property, like so: background-position:right center; Regarding the other styling issues you mentioned in your question: Setting the background color is done the same way you'd set the background color of any element. background-color:#fff; Getting the placeholder value to be "Search" can be done two ways. You can set the html5 placeholder attribute on your element, like so: <input type="text" placeholder="Search"/> This is great, as the placeholder value will automatically disappear as soon as the user starts typing in your field. The problem is that the placeholder attribute isn't supported in IE7, 8 or 9. The more cross-browser/backward-compatible way to do this is to set the value o

Categories : HTML

How do I make an image hide onclick and play the video hidden beneath it?
Just add a $("video").click(); Like this: $(document).ready(function() { $('.custom-th').click(function() { $('.custom-th').fadeOut('fast', function() { $("#thevideo").css("display","block"); $("video").click(); }); }); }); Add an id to the video if you have multiple videos on the page and use it's id instead of "video" in the selector.

Categories : Javascript

how to store data in NS-Mutable-data in did-receive-data and than write to file
It's better to use asynchronous requests for the task like this. You can use the same ASIHTTPRequest class, but with block approach. Try to write the code similar to this: -(void) verifyReceipt { NSURL *theURL = [NSURL URLWithString:@"http://testing.io/dev.php/video/verifyReceipt"]; NSMutableURLRequest *theRequest = [NSMutableURLRequest requestWithURL:theURL cachePolicy:NSURLRequestReloadIgnoringCacheData timeoutInterval:10.0f]; [theRequest setHTTPMethod:@"POST"]; NSString *param1 = [self getParam1]; // getParam1 - some method to get useful data for request's body NSNumber *param2 = [self getParam2]; NSString *postString = [NSString stringWithFormat:@"param1=%@&param2=%@", param1, param2]; [theRequest setHTTPBody:[postString dataUsingEncoding:NSUTF8StringEnco

Categories : Iphone

Uploading image filename into textbox?
Well what you can do in the situaltion you mentioned in comment is. Check for file input type value. if it posted black then store the hidden name from the form. Example HTML <input type="hidden" name="old_image" value="MySQL Query Old Result" /> <input type="file" name="image_url" /> PHP CHECKING <?php if(empty($_POST['image_url'])) { $save_image_to_db = $_POST['old_image']; } else { $save_image_to_db = $_POST['image_url']['name']; } //update query with $save_image_to_db ?>

Categories : PHP

VBA Excel: How can I store a real number but display a rounded number in a textbox?
You could use the TextBox's Tag property to store the value. Here's a simple example: Private Sub UserForm_Activate() Me.TextBox1.Tag = 2.38232 Me.TextBox1.Value = Format(Me.TextBox1.Tag, "0.00") Me.TextBox2.Tag = 4.99999 Me.TextBox2.Value = Format(Me.TextBox2.Tag, "0.00") End Sub Private Sub CommandButton1_Click() MsgBox Me.TextBox1.Tag * Me.TextBox2.Tag End Sub What you ideally do in this situation is create an instance of a userform and pass the values into it as Properties, and then when the user clicks "OK" you get the computed value back out as another Form Property. Here's a post from my site, and one from Daily Dose of Excel, that give you the general idea. You could use these concepts and modify to work with textboxes.

Categories : Excel

how to copy data from a textbox in a for loop to another textbox within the for loop
Change the JS to: function copy(val) { for(var i=0; i<val; i++) { var a = document.getElementById("textA"+i).value; document.getElementById("textB"+i).value = a; } }

Categories : Javascript

Not binding data from one window's Textbox to another window's Textbox
When running your app, do you see any Binding Errors in your debug output window? I am not seeing where you are setting your DataContext for your CheckAddressWindow. I think you cut off the top of your XAML for that file. Another problem may be that the "Person" object you are binding to in your CheckAddressWindow is not the same "Person" object being used by the MainWindow. I would recommend that you have a Model that contains a Person object that both the MainWindow and the CheckAddressWindow bind to. This way, both windows are referring to the same person. For info and tutorials on MVVM architecture for WPF, see the following link: MVVM: Tutorial from start to finish?

Categories : Wpf



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