value

Can you set a form field value with PHP?

I use the $_GET function to pull a value with php from the url (http:..../index.html?variable=value), basic stuff. However, I need to use that value in my form. Typically, I would set <?php echo 'value="'.$variable.'"' ; ?> or something to that effect. However, I can't use php inside my form using the editor I'm working with. Can I ...

When do I need to use automatic poperties and when properties with propertychanged event ?

Hello, I am using wpf and its C sharp! I have this in my Animal.cs clas private string _animalName; public string AnimalName { get { return _animalName; } set { if(_animalName!= value) { _animalName= value; this.NotifyPropertyChanged("AnimalName")...

cascading dropdown value doesn't seem to get posted to my php page?

i am using cascading dropdownlist for showing states of a country... I get the country dropdown value but not the state dropdown value.... I am populating state values via ajax... echo $country = $this->input->post('country'); echo $state = $this->input->post('state'); When inspected through firebug it shows all the option values of...

Creating an IF statement for datagrid value

This is something I thought would be easier than it's turning out to be. For whatever reason, I can't seem to figure out a way to make what I'm trying to do here work with an If statement: List<int> miscTimes = new List<int>(); for (int i = 0; i < MISCdataGridView1.RowCount; i++) { if (MISCdat...

Bind the value of a parameter in an ObjectDataProvider in WPF

I would like to be able to be doing this : <ObjectDataProvider x:Key="dataProvider" ObjectInstance="uiRoot:App.Current.Controller" MethodName="GetMyViewModel"> <ObjectDataProvider.MethodParameters> <system:Int32>{Binding Id}</system:Int32> </ObjectDataProvi...

Set hidden form field values with JavaScript but request still empty

HI volks, I try to set some hidden form field values with an onclick event. Ok, after I did something like this: document.getElementById('hidden_field').value = 123; I can output the value with the firebug console by entering this: alert(document.getElementById('hidden_field').value); So the values are definitely set. But now when...

How to get value of href in Jquery

I am trying to grab the value of my href in jquery how is it done'? This is what I have done: $('#playbackbutton').click( function() { $("#playbackdiv").load("$('a:href').val();", [], function(){ $("#playbackdiv").dialog("open"); } ); return false; } I need to get the ...

Set value of hidden field in a form using jQuery's ".val()" doesn't work !

I've been trying to set the value of a hidden field in a form using jQuery, but without success. Here is a sample code that explains the problem. If I keep the input type to "text", it works without any trouble. But, changing the input type to "hidden", doesn't work ! <html> <head> <script type="text/javascript" src="jquery.js"></scri...

What is the value of NULL in SQL Server ?

Hi, I know NULL is not zero... nor it is empty string. But then what is the value of NULL... which the system keeps, to identify it? ...

Get default value of class member ( C# )

Let's assume I have a class ClassWithMember class ClassWithMember { int myIntMember = 10; } How do I get the default value 10 of the myIntMember member by System.Type? I'm currently struggling around with reflections by all I retreive is the default value of int (0) not the classes default member (10).. ...

How does one avoid "Value restriction" errors with F#'s Seq.cast?

I see that Seq has a cast function from IEnumerable to Seq, but how do I get it to work? open System.Text.RegularExpressions;; let v = Regex.Match("abcd", "(ab)");; Seq.cast (v.Captures);; This produces, error FS0030: Value restriction. The value 'it' has been inferred to have generic type val it : seq<'_a> Either define 'it' as ...

jQuery, wont change value but will change any othere attribute...

function send_mail( token, loader ) { $(".send_mail").bind( "click", function() { try{ var to = $(this).attr('ref'); var mail_form = $("#mail_form"); mail_form.find("li:eq(0) input").val("sdsds"); //mail_form.find("li:eq(0) input").attr("ref", "sdsds"); //mail_form.find("li:eq(0) input").attr("value", "sdsds"); $.fan...

ASP.NET/HTML: Use ASP.NET's label text/value in HTML's input value

I have the following html codes (to be used in POST method): // from Default.aspx <input type="hidden" name="lblName" value="John" /> <input type="hidden" name="price" value="100.00" /> Is it possible to change the 'value' part by using the value/text ASP.NET label given below: //from Default.aspx.cs <asp:Label ID="lblName" runat="se...

C# out parameter value passing..

I am using contactsreader.dll to import my gmail contacts... One of my method has out parameter... I am doing this, Gmail gm = new Gmail(); DataTable dt = new DataTable(); string strerr; gm.GetContacts("[email protected]", "******", true, dt,strerr); // It gives invalid arguments error.. and my gmail class has, public void Ge...

How can I set an int value in some code to be equal to a value in a text entry box?

I'm trying to get a value from an object in my mac application. The title says it all. ...

PHP Session problem, copying object rather than just value

Hello, I'm having some trouble using sessions with php.. I think I have figured out why, it seems that when I set the session variable it is copying the entire SimpleXMLElement object rather than just the value stored in said object. How can I make sure to just store the value in my session variable?? Here are some code snippets: $re...

jQuery find by value

There is a link with title and some value: <a href="http://site.com/someid/" title="Use ctrl + >">next</a> How to find this link and throw its href attribute to some variable? ...

Android - Passing Value from ListView to a new Activity?

I have a ListView that shows a list of names. When you select a name, I want to pass the selected person' ID to the next view (Profile) and retreieve their data based on their ID. I am able to load the Profile View, but do not know how to pass the ID from the ListView to the Profile. Here is how I am loading the Profile: lv.setOnIt...

jQuery - google chrome won't get updated textarea value

Hi, I have a textarea with default text 'write comment...'. when a user updates the textarea and clicks 'add comment' Google chrome does not get the new text. heres my code; function add_comment( token, loader ){ $('textarea.n-c-i').focus(function(){ if( $(this).html() == 'write a comment...' ) { $(this).html(''); } }...

HTML Option Tag with Value set as an Anchor

Hello, I am updating some super legacy code and I am unsure how to make this HTML5 compatible. <option value='<a href='http://localhost:8080/dm?id=&amp;#037;&amp;#037;SUBSCRIBER_ID_TAG&amp;#037;&amp;#037;'&gt;View in a browser window</a>'>Display Message(HTML Version)</option> I personally have never run across something like that so...