hi,
$('tr td:first-child').click(function() {
var foobar = $(this).text();
$("#showgrid").load('/Product/List/Item?id=' + foobar);
});
when I am seding foobar value like this in the Actionresult method I am getting string id value perfectly but I am not able to display the grid?
but intresting thing is when I am seding like this
$("#showgrid").load('/Product/List/Item?id=' + "12345");
then I am able to display the grid.. foobar result is same 12345..
what is the differnt between these two types?
can any body help me out..
thanks
I would like to use gtalk or any other messenger in my application but i don't know how to do this.can u please give me idea about how to solve this one.if u can provide me some web link to know more about this.
I have a page which contains following components:
1 Button
1 drop down list using jQuery
1 button whose on click event changes a text box value using jQuery
2 another buttons shown on hover
If I change the dropdown value, or press a button, then the page is re-rendered by ajax. After that, jQuery does not work anymore. If I refresh the page, then jQuery works fine.
How is this caused and how can I solve it?
hi,
$('tr td:first-child').click(function() {
var foobar = $(this).text();
$("#showgrid").load('/Product/List/Item?id=' + foobar);
});
when I am seding foobar value like this in the Actionresult method I am getting string id value perfectly but I am not able to display the grid?
but intresting thing is when I am seding like this
$("#showgrid").load('/Product/List/Item?id=' + "12345");
then I am able to display the grid.. foobar result is same 12345..
what is the differnt between these two types?
can any body help me out..
thanks
hi,
Hi I need to append the dropdownlist box with certain valus to the jquery grid column,
that is default dropdownlist for perticular column....
I am using this type of Jquery grid
http://www.trirand.net/demoaspnetmvc.aspx
can anyone help me out..
Thanks
hi,
I have a funtion like this
<script type="text/javascript">
funtion result()
{
return "string";
}
</script>
I need to get this string value in to var
var gotresult= ???? how to get here that result value
$("#Grid").click(
$("#showgrid").load('SomeURL'));
$.each($('#Grid td:nth-child(4n)'), function() {
var forthColumn = $(this);
forthColumn.append("<select><option value='1'>Division 1</option><option value='2'>Division 2</option><option value='3'>Division 3</option></select>");
});
};
I am trying to append the dropdown list box? this way but I am not seeing the dropdownbox at 4th colum?
is this right?
thanks for all..
I am using this code to check the checkbox is chekced or not..
$('#nextpage').click(function() {
var result = $('#Details input[type=checkbox]').attr('checked');
if (result == true) {
$("#tabs").tabs('enable', 3).tabs('select', 3);
}
else {
$().ShowDialog('please select atleast one');
}
});
using this I can check only for one checkbox
if I need to check for multipe checkboxes in teh Details page how do I need to loop throw?
thanks
Hi
I have a WCF Service.
Is it possible to define a WCF service to have mulitple bindings
like
Method1 - WSHttpbinding
Method2 - BasicHttpbinding
Method3 - NETTcpBinding
Thanks.
I have run though a code formatting tool to my c++ files. It is supposed to make only formatting changes. Now when I built my code, I see that size of object file for some source files have changed. Since my files are very big and tool has changed almost every line, I dont know whether it has done something disastrous. Now i am worried to check in this code to repo as it might lead to runtime error due to formatting tool. My question is , will the size of object file be changed , if code formatting is changed.?
I am doing an university project. I need some sample programs on peer to peer programs in java socket programming. Every where people are telling to add a server socket in the client program.
I am in a confusion. Can a single program having server socket and client socket will do or i have to create two programs of one initiating a system and another peer program running thrice to solve the problem.
or
i need to create three programs for three peer systems. I am not clear on the architecture of building peer to peer programs using java sockets. Can some one help me giving a simple program on how to create a peer to peer connection between three systems.
I know how to do a socket program for client server model and clear on the concept. But creating a peer to peer architecture sounds complex for me to understand.
I also referred this thread.
developing peer to peer in java
The person commented second says" To make peer2peer app each client opens server socket too. When client A wishes to connect to client B it just connects to its socket. "
Need some more sample and an explanation on how peer to peer java socket program works
I dont want any external api like jxta to do this task. I need a clear picture on how it works alone with an example.
I want to replace innertext of a XML node my XML file named test.xml is
<?xml version="1.0" encoding="utf-8"?>
<ads>
<loop>no</loop>
<item>
<description>Description 1</description>
</item>
<item>
<description>Text in item2</description>
</item>
<item>
<description>Let play with this XML</description>
</item>
</ads>
I want to change the value of loop and description tag both,
and it should be saved in test.xml like:
<?xml version="1.0" encoding="utf-8"?>
<ads>
<loop>yes</loop>
<item>
<description>Description Changing Here</description>
</item>
<item>
<description>Changing text in item2</description>
</item>
<item>
<description>We will play later</description>
</item>
</ads>
I tried code in PHP:
<?
$file = "test.xml";
$fp = fopen($file, "rb") or die("cannot open file");
$str = fread($fp, filesize($file));
$dom=new DOMDocument();
$dom->formatOutput = true;
$dom->preserveWhiteSpace = false;
$dom->loadXML($str) or die("Error");
//$dom->load("items.xml");
$root=$dom->documentElement; // This can differ (I am not sure, it can be only documentElement or documentElement->firstChild or only firstChild)
$loop=$root->getElementsByTagName('loop')->item(0);//->textContent;
//echo $loop;
if(trim($loop->textContent)=='no')
{
echo 'ok';
$root->getElementsByTagName('loop')->item(0)->nodeValue ='yes';
}
echo "<xmp>NEW:\n". $dom->saveXML() ."</xmp>";
?>
I tried only for loop tag.I don't know how to replace nodevalue in description tag.
When I run this page it shows output like:
ok
NEW:
<?xml version="1.0" encoding="utf-8"?>
<ads>
<loop>yes</loop>
<item>
<description>Description 1</description>
</item>
<item>
<description>Changing text in item2</description>
</item>
<item>
<description>Let play with this XML</description>
</item>
</ads>
It gives the value yes in browser but don't save it in test.xml any reason?
I would like to get updates Java and related technogies news on every day so that I will new features of java, even I want to improve java skills by learning existing or new things which is related to logic, therory, programs,
How do I get all above details & give me links , so that I will subscribe to it
How can I scale a set of values to fit a new range if they include negative numbers?
For example, I have a set of numbers (-10, -9, 1, 4, 10) which have to scaled to a range [0 1], such that -10 maps to 0, and 10 maps to 1.
The regular method for an arbitrary number 'x' would be:
(x - from_min) * (to_max - to_min) / (from_max - from_min) + to_min
but this does not work for negative numbers. Any help is appreciated. Thanks!!
Hello friends,
can anyone tell me main steps to consider while migrating 1.1 to 3.5 windows based applicatoin?
what are the steps need to consider at initially while planing for migration?
as per i know this applicatin i need to migrate like wsf and wpf and soo on.
thanks
I have implemented a Half-edge data structure for loading 3d objects. I find that the part of assigning twin/pair edges takes the longest computation time (especially for objects which have hundreds of thousands half edges). The reason is that I use nested loops to accomplish this. Is there a simpler and efficient way of doing this?
Below is the code which I've written. HE is the half-edge data structure. hearr is a vector containing all the half edges. vert is the starting vertex and end is the ending vertex. Thanks!!
HE *e1,*e2;
for(size_t i=0;i<hearr.size();i++){
e1=hearr[i];
for(size_t j=1;j<hearr.size();j++){
e2=hearr[j];
if((e1->vert==e2->end)&&(e2->vert==e1->end)){
e1->twin=e2;
e2->twin=e1;
}
}
}
I was making multiple remote calls and they are done sequentially and when I am getting a result event back it's triggering calls to all the methods with ResultEvent as an argument . I am supposed to receive the result event only in the method given inthe event listener but it's triggering calls to all the methods with ResultEvent as an argument .
Has anyone come across this kind of problem? Is there any workaround for it?
$('tr').click(function() {
$("#showgrid").load('/Products/List/Items/');
});
Using this I am handling click event on the row of the table.
How can I handle only on the first column? that is, giving click action to only first column not on entire row?
thanks