I have a table with four columns. I'm adding rows to the table dynamically with jquery and in the fourth column is a "Delete" link. I need to remove the link from the row when a new row is added. This is all happening and working as I want it too. The problem comes when I want to delete the row. I need to put the delete link back on...
Here is my WebService
[WebService(Namespace = "http://www.rpsoft.com.vn/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[ToolboxItem(false)]
[ScriptService]
public partial class DataFeeder : System.Web.Services.WebService
{
[WebMethod(EnableSession = true)]
[ScriptMethod(ResponseFormat = ResponseFormat.Json)]
...
I wrote this script, but it doesn't work in way I wanted:
$(document).ready(function(){
if ($('#map_container').find('#point').length == 0 ) {
$("#map_container").click(function (e) {
var relativeXPosition = (e.pageX - this.offsetLeft);
var relativeYPosition = (e.pageY - this.offsetTop);
...
I want to use a grid as subgrid in jqGrid because I read that "simple subgrid" doesn't allow cell edit.
I'm filling main Grid with dataType function successfully and I'm trying to do the same for subgrid, but subgrid shows without data, and I don't know why because I debugged and I catch data correctly from web service, but when I go th...
Hi,
I wanted to create simple plugin using jquery.
Also suggest me standard practice while writing jquery plugin.
Please folks suggest me some better pointers.
Thanks,
-Pravin
...
When using: -
$.getJSON("admin.php?format=json", { module: "data", action: "allBusinessUnitsByClientName", clientname : $('#client').val() }, function(json) {
$.each(json.items, function(i,item){
alert(i);
});
});
I get the following error in the Firebug console:-
a is undefined
a))();else c.error("Invalid JSON: "+a)...
I want to call an ajax function to do some stuff...
function RemoveTest(subfolder)
{
var datastring="name="+subfolder;
alert(datastring);
$.ajax({
type: "POST",
url: "mystuff.php",
data: datastring,
success: function(msg){
alert( "Data Saved: " + msg );
// some suff there
...
I placed many textboxes on my page and all have the same class .myClass.
I want to check if all are filled out or not. How I can find out via jQuery?
...
Hello. I have the next function. My PHP script returns an array with element error with value 'ERR':
var updatePaymentType = function(plan_pt_id, pt_id){
var error = null;
var data = new Object()
data["function"] = "update";
data["payment_type_id"] = pt_id;
data["plan_payment_type_id"] = plan_pt_id;
...
Hi there,
I have a list like that:
<div class="cloned"><a rel="test" href="" title=""></a></div>
<div><a rel="test" href="" title=""></a></div>
<div><a rel="test" href="" title=""></a></div>
<div><a rel="test" href="" title=""></a></div>
<div class="cloned"><a rel="test" href="" title=""></a></div>
I would like to use jQuery to sele...
I want to disable all controls in a page using jquery except controls contained in a particular div.
$('input,select,textarea,div:not("#viewNotice")').attr('disabled', 'disabled');
I have tried using above selector, but its not working good. Here I am disabling all input, select and textarea controls leaving viewNotive div.
Note: In...
hi I am using a list view for showing selection marks.
<asp:listview id="lvanswerlist" runat="server">
<layouttemplate>
</layouttemplate>
<itemtemplate>
<asp:Panel ID="Idanswercontent" CssClass="answer" runat="server">
<div class="bestAnswerControl">
<div id="divBestAnswer" class="bestAnswer" runat=...
I'm printing a content from a block via printArea plugin. I'm able to customize doc styles etc., but still I can't get a workaround on my problem.
How to hide/disable the common running titles (which contain a path to doc file, date and page in a page n of m format) from header/bottom of the document?
I'm using a native Print to file p...
Hi,
How would I make an ajax call if a page detects a cookie is present? The code below fires the alert but not the ajax call. Any help greatly appreciated.
EDIT: Updated and fully working code below. Simply had to change $(this) to $('.more') when the cookie is found. Many thanks for help/advice.
$(document).ready(function(){ ...
i have one website which is working on templates.
in the template there is one main image & i want to replace that main image on some pages only not on full website. what i am looking for is to change the main image to new image on page where i need with ajax.
when i see the css of that template i found following code to show image
...
Hi,
I have a problem with Internet Explorer browser while reading the contents of the DIV element using jQuery('DIVID').html() method. I insert a simple XML string to the DIV element. But when I try to read the content back using jQuery, some of the data is missing. It works fine in Firefox.
My code looks as shown below.
<!DOCTYPE ht...
<div class="bestAnswerControl">
<div id="ct100_contentplaceholder_lvanswer_control_divbestanswer"
class="IsBestAnswer"></div>
</div>
I want to add:
.bestanswer
{
// some attribute
}
I want to replace class="IsBestAnswer" of div to class="bestanswer" by jquery.
How do I do this?
I am using this approach:
$('.Is...
Hi,
I added the calender to my asp.net mvc 2 application from here .
I want to pick the selected date where I am going to enter the event. How can I get selected date? Also I want to save this date and corresponding event to the database. how to do this also ?
I am new in jequery. please help!
...
I have created a simple animation using jQuery and the mouseenter / mouseleave. It works fine in IE7, FF, Opera, Chrome and safari.
however, something is wrong in IE7 - nothing happens at all - I can't even get alert boxes to pop up.
Could somebody please take a look at my code and tell me what I am doing wrong before I pull my hair o...
Hi all,
I am querying a php script using js with following func call:
$.post("http://localhost/abc/create.php",{
name:data
} ,function(data){
alert(data);
});
Now this name parameter can be in any language, eg: english, hindi etc.. my code is working fine for english. But it is not working for hindi. When i am...