JQuery :: How To Insert A Preloader When Fetching Some Data From Webservice
Oct 7, 2010Lets say i'm retreiving some data or string to the server using a webservice. How can i insert a preloader?
View 3 RepliesLets say i'm retreiving some data or string to the server using a webservice. How can i insert a preloader?
View 3 Replieshow to call the same page for fetching data using jquery
In the below mentioned ajax function, I would like the url to be the same page.
When the ajax call succeeds i want the image to be displayed in an img tag.
i want to get data from my database and dispaly it in my web page using json with webservicei'm going to post my code i create a webservice and add method which return string to get all data so my code like this
[Code]....
and in my page
[Code]....
I am developing a web page using vb.net as my code behind.
i want to send some data in list format to my webservice, through script. So i am using Jquery and Json.
The code is as follows
function update() {
var list = new Array();
$("ul").each(function(index, id) {
var result = $('#' + id.id).sortable('toArray');
[Code]....
When I am outtin "{}" in data and remove the parameters from the webmethod. then it goes to the function. But when I pass any data it does not goes to the webmethod.
This code works fine when written in C#. But does not work with vb.net as cb.
Is there any problem in passing the data. or is there any other way to pass data in vb.net.
i am using combination of jquery and JSON based webservice in most of projets. Lately i am facing this problem. if the data returned from webservice is huge ajax call from jquery fails. yup i know i can implement paging etc etc but is there a way i can increase the limit to get more data from webservice with jquery ajax call?
View 2 RepliesI have the following code where the function codeaddress geocodes the text feild value and returns geocoded value , geocoded value is stored in variable example ,how will i return the variable v2 to the function call and post to asmx webservice.
[code]....
I have datatable consist of 20 records and i want to bulk insert into sqlserver through the asmx webservice. Can anybody guide to me or provide Sample BusinessLogic and webservice code.
View 1 Repliesi want to know why to use preloader and how to use it/
View 1 RepliesI am new to ASP.NET. So now I am working on Adding data into the sqlserver database by using jquery. The form are pop up by click on the button Add of the page. I also use the LIST VIEW to display those data from the database.
View 1 RepliesI want to use gridview and bind the data and after i want insert the data in database using jquery,
below the link i got for delete
[URL]
but i want the sample example for insert row from gridivew and add the database.
I used this article Insert (Update) Data to Database with jQuery AJAX and WebMethod in ASP.Net. I want create class for this code:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script type="text/javascript" src="http://cdn.jsdelivr.net/json2/0.1/json2.js"></script>
<script type="text/javascript">
$(function () {
$("[id*=btnSave]").bind("click", function () {
var user = {};
[Code] ...
And call class from button click.
i have three dropdownlists ....First contains Countries, second contains States within that specific country, and thrid contains Cities within that specific state...now, i have filled first dropdownlist through database... after selection of country i filled the list of state within that selected country through database... then after selection of state i filled the third dropdownlist with cities through database.....for that i have used update pannel... but because of servertrip to get the specific state list of city's list from database ..... that dropdownlist get blink...and for that i want preloader for that state and city dropdownlist....means when i select country instead of that dropdownlist get blink i want to show any symbol ofprocess or "Loading...." text into that dropdownlist of state... and for city also.
View 2 RepliesI'm referring in this question [URL] ....
and now what I want is without using the submit button and save to database
i want to make page preloader ,but dun knoe how to do make it.
View 10 Repliesam building a asp.net website. Here I want ot use a preloader where diffrent-diffrent will load and work as preloader. These images will load untill full website is not loaded.
View 1 RepliesI want a preloader/progrssbar in submit button click in my .aspx page.how to do this?
View 1 Repliesif I have this URL:
[URL]
How can I fetch the first two information from it into my aspx page? for example I want to read the first two timings.. Should I use xmlReader or what?
1)usign execute scalar i will get 1st col and 1st row value.
2)using dataset i will get whole table.. if my stored proc has 2 queries then i will get 2 tables within same dataset.. i can reference therese using ds.tables(0).rows(value).
3)suppose i use a datareader then i will get multiple-rows. i want to know how to get these each separate rows coloumn values into variables. below is the reader aspx.vb
reader = cmd.ExecuteReader();
while (reader.Read()) {
4)what is it mean by data reader is forward only method of getting data.
5)why do we do readeritem.tostring()
6) can you tell me the basic how is this reader,ds,scalar works.i mean i know to use but donot know basics esspecially the dataadpapter.why do we fill it when using dataset.
I want to fetch data from separate tables in sqlserver and display them together in GridView, Is that possible?
View 3 Replieswhat's the best and most likely way to fetch data from database...
View 5 Repliesi want to add (Edit(update/cancel) and Delete like Gridview) button in html table and perform edit and Delete operation using jquery and Webservices ?
View 1 RepliesI am new to programming especially jQuery and webservices. I want to pass the values to the to database via the webservice. Below is the code for the .aspx page:
<html xmlns="[URL]xhtml">
<head id="Head1" runat="server">
<title></title>
<link href="[URL]"
rel="stylesheet" type="text/css" />
<script src="[URL]" type="text/javascript"></script>
<script src="[URL]"
type="text/javascript"></script>
<script src="[URL]"
type="text/javascript"></script>
<script type="text/javascript">
$(function () {
$("#sortable").sortable();
$("#sortable").disableSelection();
$("#sortable input[type=text]").width($("#sortable img").width() - 10);
$("#sortable label").mouseover(function () {
$(this).parent().children("input[type=text]").show().val($(this).html());
$(this).hide();
});
$("#sortable input[type=text]").mouseout(function () {
$(this).parent().children("label").show().html($(this).val());
$(this).hide();
});
$(".ContainerDiv").hover(
function () {
$(this).find(".deleteClass").show();
},
function () {
$(this).find(".deleteClass").hide();
});
$(".deleteClass").click(function () {
$(this).closest("li").remove();
});
$("#orderPhoto").click(function () {
var photos = $.map($("li.ui-state-default"), function (item, index) {
var imgDetail = new Object();
imgDetail.Id = $(item).find("img").attr("id");
imgDetail.Caption = $(item).find("label").html();
imgDetail.Order = index + 1;
return imgDetail;
});
//photos contains all the photo and order and the chhanged caption.
//pass to server
$.ajax({
type: "POST",
url: "WebService.asmx/updateOrder",
data: JSON.stringify(photos),
contentType: "application/json; charset=utf-8",
success: function (data) {
if (data.d === "saved") {
$("<p>").text("New order saved!")
.addClass("success").appendTo("#left");
} else {
$("<p>").text("Save failed")
.addClass("failure").appendTo("#left");
}
}
});
});
});
</script>
<style type="text/css">
#sortable
{
list-style-type: none;
margin: 0;
padding: 0;
}
#sortable li
{
position: relative;
margin: 3px 3px 3px 0;
padding: 1px;
float: left;
text-align: left;
}
.deleteClass
{
/* PhotoListItem is relative so relative to it */
position: absolute;
top: 1px;
right: 3px;
background: black;
color: Red;
font-weight: bold;
font-size: 12px;
padding: 5px;
opacity: 0.60;
filter: alpha(opacity="60");
margin-top: 3px;
display: none;
cursor: pointer;
}
.deleteClass:hover
{
opacity: 0.90;
filter: alpha(opacity="90");
}
.image_resize {
width: 250px;
height: 250px;
border: 0;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<asp:ListView ID="ListView1" runat="server" GroupItemCount="15">
<LayoutTemplate>
<ul id="sortable">
<li id="groupPlaceholder" runat="server">1</li>
</ul>
</LayoutTemplate>
<GroupTemplate>
<tr id="itemPlaceholderContainer" runat="server">
<td id="itemPlaceholder" runat="server">
</td>
</tr>
</GroupTemplate>
<ItemTemplate>
<li class="ui-state-default">
<div class="ContainerDiv">
<div class="deleteClass">X</div>
<img id='<%#Eval("photo_id")%>' src='<%# "uploads/"+Eval("photo_file_name")%>' alt="" class="image_resize" />
<div style="height: 25px; margin-top: 3px">
<label>
<%# Eval("photo_title")%></label>
<input type="text" style="display: none" />
</div>
</div>
</li>
</ItemTemplate>
</asp:ListView>
<input type="button" id="orderPhoto" value="Save change" />
</form>
</body>
</html>
I used the debugging tool and can confirm that the photos contains the correct values. Its just calling the webservice part that I am unsure about.
I have two project both on same machin under same solution.One is my webservice and another inculde my webproject that access that webservice using jquery .I am using flexigrid control to populate my data.it is working fine when i am trying to use the webservice on my machin under same solution but when i try to use webservice reside on another machin it not working for me. This is my aspx page
[Code]....
when i chage the [URL] from to this [URL] it is not giving the same result as that of previous url.why it is not working i am not gettting it. I m not getting why it is happing so.
how to insert records using jquery and fatch records usng jquery?
View 1 RepliesData can be fetched into an application through web service can it be possible to update data in web service from our application ..
View 2 Replies