value

Problem with CURL posting data

I'll keep this nice and short. I'm trying to post a value to a remote form. This code is working perfectly: $url = "http://eirestudio.net/blog/"; // URL to POST FORM. $post_fields = "s=test"; $ch = curl_init(); // Initialize a CURL session. curl_setopt($ch, CURLOPT_URL, $url); // Pass URL as parameter. curl_setopt($ch, CURLOPT_POST...

Jquery- Modify Element Value after ajax call

enter scenario: I want to do an ajax call to update the image shown. Example: click to activate, click again to deactivate. Now, image can change correctly when click for first time. After that, if I click the img again, changes won't reflect anymore. Reason, the onclick status still= yes How do I access the hyperlink element to rew...

Defining many-to-many relationships in DDD

Are many-to-many table structures defined as Value Objects in DDD? What if my many-to-many structure has a unique id? Also, what about 1-to-many relationships? For instance, if i have 2 structures Post & Comment with 1-to-many (respectively) wouldn't Comment be a Value Object since it technically cannot exist without a corresponding Pos...

WPF Combobox validation

Hi. I have a ComboBox with Sex(male, female..):And I demand from user to select a value (the ComboBox has no value by default.) <ComboBox ItemsSource="{x:Static Member=data:Sex.AllTypes}" SelectedItem="{Binding Path=Sex.Value, ValidatesOnDataErrors=True, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=True}" VerticalAlignm...

Nullable variable types - .value member

Hello, I was wondering - when would I want to use the .Value member on a nullable type instead of just calling the variable itself? e.g.. bool? b = true; why would i use b.Value to get the value instead of just using b? What advantage or function does the .Value call add? ...

Mysql How to check and change the value of MaxNoOfOrderedIndexes variable of NDB Cluster

Hi All, when i am trying to create a table using NDB storage engine i am getting error "Got error 904 'Out of fragment records (increase MaxNoOfOrderedIndexes)' from NDB" how to change the size of this variable..i am not able to find where this variable is stored. thanks in advance. ...

c# How to sort a sorted list by its value column

Hi, i have a generic sorted list "results" with key = some filename and value = boolean. I would like to sort the list by the boolean entry or value column. does anyone know how i can do this? Thanks! ...

Which certifications do clients value?

There have been certification-related discussions on SO before, pertaining primarily to one's own career. My question is a bit different - I'd like to know your opinion on whether or not certifications of your employees have any way of influencing whether your company gets a contract or not. Specifically, I'd like to know the following: ...

Multiple form names to get values using Coldfusion -- form to pdf -- cant use JS

My apologies if I worded the title wrong. I've got a large table with multiple input boxes and need to get the values of the internal cells. I am able to get the dates, gas amounts/totals, and the totals, but not the rest. I need still to be able to get every other input box's value. I am not too sure where to go with this one, but...

Attribute localization using jQuery

Hi, I have a javascript page which I am looking at localising. I have the translation handled, however one thing I am having difficulty with is the best way to handle which text to set. Obviously, for a button I should set the title / value. For a span probably the innerHTML / innerTEXT and for an image the alt. I was wondering if ...

How to call Value from web form?

I creat one WEB project, this project contain tow WEB FORM, In the first Web Form Design i have tow TextBox for Entring the date(All dataTable between this tow dates) and one Button, I want that when i press to to this Button it will load the second WEB FORM and show all the Data Table in DataGrid In this WEB FORM, So i need To call this...

Use private or use properties? C#

Note that the following code is in a class a single class private string _fee; private string _receipt; public string Fee { get { return _fee; } private set { _fee = value; } } public string Receipt { get { return _receipt; } private set { _receipt = value;} } public MyValue(string fee, string receipt) : this() { ...

Is it possible to export a value of an variable from one javascript to an other?

Hi All I have made a Web page using jquery and php where all files are used in a modular style. Now I have two JavaScript files which must communicate with each other. One Script generates a variable (*id_menu_bar*) which contains a number. I want that this variable gets transported to the second JavaScript and is used there. How do I ...

change field value when select radio buttons

I want to change the value of hidden input field when radio buttons selected : <input type="radio" name="r1" value="10" />10 <br/> <input type="radio" name="r1" value="45" />45 <br/> <input type="hidden" name="sum" value="" /> for example when user click on one the buttons the value of hidden field change to that v...

Weird PHP behavior: won't assign the integer 8 to a variable

I think I just encountered the strangest 'bug' I've ever encountered in my short developer life. It seems like I just can't assign the value eight to any variable. For exemple: <?php $seven = 07; $eight = 08; //what's wrong here? $sevenB = 7; $eightB = 8; echo $seven; echo $eight; echo $sevenB; echo $eightB; ?> The output is: 7078 ...

How do i set the selected item in a drop down box (PHP MySQL Databound)

Hi Is there any way to set the selected item in a drop down box using the following 'type' code? <select selected="<?php print($row[month]); ?>"><option value="Janurary">January</option><option value="February">February</option><option value="March">March</option><option value="April">April</option></select> The database holds a month...

reference problem when reaching ResourceMap's String?

I have been developing desktop application in Java. Here, it shows how i reach string of Properties file. Key-value of String is HDI.Device.1.ID org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(HDIManagementApp.class).getContext().getResourceMap(HDIManagementView.class);String ID=resour...

Struts JSP : set textfield value from session information

Hi, I have a DLPUser object in my session, this DLPUser is basically a container for Strings, ints and some useful info for me. (this is a fragment of code inside my action class in java) Map <String, Object> session = ActionContext.getContext().getSession(); session.put("logged-in","true"); session.put("user", user); //user is DLPUse...

STL: Stores references or values?

Hi, I've always been a bit confused about how STL containers (vector, list, map...) store values. Do they store references to the values I pass in, or do they copy/copy construct +store the values themselves? For example, int i; vector<int> vec; vec.push_back(i); // does &(vec[0]) == &i; and class abc; abc inst; vector<abc> vec; ve...

load data get value using jquery and need to get div value on a variable

<script type="text/javascript"> var auto_refresh = setInterval( function () { $('#load_tweets').load('record_count.php').fadeIn("slow"); }, 10000); // refresh every 10000 milliseconds <body> <div id="load_tweets"> </div> I Want to get the value of load_Tweets ./these all code in js file i want to get the value of load_tweet in a va...