Is it posible with ajax to send one json-array (array with json objects) and also include a separate parameter to receive in MVC action method?
var n = {
number: 1
};
$.ajax({
type: "POST",
url: url,
contentType: "application/json; charset=utf-8",
dataType: "html",
data: JSON.stringify({jsonObjects:json, number:n}),
success: function (response) {
$('#body').html(response)
}
}
});
public ActionResult Create(List jsonObjects, int? number)
JsonObjects is comming in like it supposed to but number is null.
How can i show the input text from UITextFiled into UITableView
and the UITable Updated automatically once the UITextFiled get field by another user?
like, one the user get online he should be shown in the UITableView so the other users be able to see who's online
i did that already for the room list but!!!
I wanted to make it so that when I select a specific TextField in a Form, I get a specific list of Commands, for example TextField: OK, CancelTextField2: OK, Back, Help
And I succeeded by using addCommand() on each of TextFields but I can't tell it what to happen when when I activate one of these commands since there is no setCommandListener method for them. It throws a NullPointerException when I click it.I also tried to get the commands from their Form but it is receiving only the commands that it contains, not the commands that TextFields have
Any help how to get arround this? Thanks in advance
Hi,
I have a list of binaries written in java, ada,C, python and I want to execute them.
How to do that ?
Is there any JVM binding to those languages ?
Thanks for your answers
The thing is that there are number of items in the HTML select list. I want to click on any of the items, then query the database on the id of that item, retrieve the value and then display that in the textbox. How would I query the database?
I would really appreciate that if someone provides a code sample for querying the database.
In VB.NET type this on a new line:
DateAdd(
Shouldn't a dropdown picklist of enum values appear?
It used to! I miss it!
Of course, this is just one example where an enum pick list does not appear where it did before.
Can anyone defend this or is it a bug?
Hi
What are the possible ways of representing data in memory in .Net (or in general)?
It would be great if data could be sorted and looked up by key (or multiple keys).
We are thinking to use collections, arrays, list of collections/arrays. One object would be in several collections (one sorted asc, other desc, etc.).
Maybe this is not a good idea, and we would like to hear some other possible solutions.
Thank you
Hi,
I actually had a multiautocompletetextview, where i call host after 3 characters to have a dynamic search list.
But if the user put others characters, my code call host for each of them. So it must be very long.
Could I wait a moment (about 500 ms) before launching the action , in order to look if user do an action or not ? that's possible ?
I have a html list that looks like this:
animals (45)
houses (36)
computers (96)
I want to get all the values inside those () and make like $sum = 45+36+96;
How can I do that?
Thanks
How can you connect to an itunes library in your iphone program. What api or classes are used in this. I need to make an app similar to the REMOTE app that exists. to be able to connect to a itunes library on someones computer and see their list of songs etc.
I have a list of unix timestamps in a database, and I wanting to select the ones that are from today.
i.e If today is Tueday, I want to get all the timestamps that were made today? Is it possible? Is there such a things as strtotime("Today")?
Any help would be great
I want get the details of the wave such as its frames into a array of integers.
Using fname.getframes we can ge the properties of the frame and save in list or anything for writing into another wav or anything,but fname.getframes gives information not in integers some thing like a "/xt/x4/0w' etc..
But i want them in integer so that would be helpful for manupation and smoothening join of 2 wav files
Cant get this to work can any one help.
List the part number, part description, and on_hand value of each part whose number of units on hand is more than the average number of units onhand for all parts use a subquery?
SELECT PART_NUM, DESCRIPTION, SUM(ON_HAND * PRICE) ON_HAND_VALUE
FROM PART;
WHERE MAX(ON_HAND);
(AVG(ON_HAND) > ON_HAND);
I have created a project using the following maven webapp project in eclipse:
When adding a package to the project (right click project - new - package), the package gets added as a folder (I added a package named core). It does not have the usual package icon:
If I try to create a new class and select a package, there are no entries in the list box. I have tried creating packages in a normal eclipse dynamic web project and these work correctly.
How do I get packages in Maven enabled webapp projects?
Instead of executable code all it does is create files that don't do anything, even if the files are made executable.
TARGETS = load list show add delete btree
all: $(TARGETS)
%: %.cpp
g++ $< -g -o $@ -MM -MF [email protected]
sed "s/$@\.o:/$@:/" [email protected] > [email protected]
-@rm [email protected]
DEPS=$(TARGETS:%=%.d)
-include $(DEPS)
I'm tring to get my product's types to a list with Linq.
var types = (from t in NHibernateSession.Linq<Product>()
select t.Type).Distinct().ToList<Type>();
return types;
But its giving an Unable to cast object of type error
'...Domain.Product' to type '...Domain.Type'.
Please tell where am I going wrong.
I am trying to use the Directory.GetFiles() method to retrieve a list of files of multiple types, such as mp3's and jpg's. I have tried both of the following with no luck:
Directory.GetFiles("C:\\path", "*.mp3|*.jpg", SearchOption.AllDirectories);
Directory.GetFiles("C:\\path", "*.mp3;*.jpg", SearchOption.AllDirectories);
Is there a way to do this in one call?
I have an ArrayList containing Objects that have a date value.
Now I want to manage to create a new ArrayList for each year that contains all the Objects from the main ArrayList that have the same year in their date Value.
So all Objects from 2010 go in one List, all from 1999 in another.
I'm wondering if it is possible to rerender just one element in a listview? I assume by calling notifyDatasetChanged() is gonna rerender the whole list?
Thanks,
Is there any way to retrieve all friends in a particular network? For example, How can I view the list of my Facebook friends joined the network of my organization.
Hello,
Googling nor binging "VC++ What's new C++0x" gives me nothing that tells me what is new.Is there an official page at msdn or something similiar that contains the information for VC++ 10? I've seen such for C#,there must be one for what I'd enjoy to read.
If not, please list the new features available in Visual Studio 2010 for VC++.
I created a high memory utilization dump and using !dumpheap -stat and !dumpheap -mt I got the address of two large string generic list of 30 MB each.
I want to know more about these lists. What they contain or which piece of code is using them.
Is there a way to find them out?
0:000 !do 2b370038
Name: System.Object[]
MethodTable: 71e240bc
EEClass: 71c0da54
Size: 33554448(0x2000010) bytes
Array: Rank 1, Number of elements 8388608, Type CLASS
Element Type: System.Collections.Generic.List`1[[System.String, mscorlib]]
Fields:
None