I am trying to reload the grid with new data which is just been changed , so that user can see the new data with modification .
my approach:
jQuery("#relCasePick").click( function(){
var ids=jQuery("#list10").jqGrid('getGridParam','selarrrow');
$.ajax({
type: "POST",
url: "/cpsb/unprocessedOrders.do?method=releaseTo...
This is my aspx file code:
var DTO = { "'productCategoryId'": "'10'" };
$.ajax({
type: "GET",
url: "/WebService/DsmWebServices.asmx/GetProductSubCategory",
data: DTO,
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (msg) {
window.alert("success");
},
error: function (msg) {
}
});
This is...
Here is the chat submit form:
#chat_form
- remote_form_for :chat, :url=>{:controller => "chats", :action=> "new", :id=>@request.id }, :html => { :autocomplete => 'off' } do |f|
= f.text_area "message_content", :rows=>5, :cols=>55, :autocomplete => "off"
= f.submit(value = "Sayit!", :class => "submit small")
chat#new....
The comments section of this article: http://ayende.com/Blog/archive/2010/09/18/resolving-cross-site-scripting-issues.aspx has a very interesting comment.
In it, Mark mentions that I need to jain the calls to append to prevent "$(childDiv) lookup multiple times".
What is the impact of the vulnerability of "$(childDiv) lookup multiple...
I was wondering if there is a good reference to how best to format .js files?
Do you treat them like you would class files or do you separate out the functionality based off the page it handles? Do you create .js functions that could be used across several pages or do you write a custom .js file for each page?
I'm just curious if th...
I can't get the radio options to check on my page. They won't check Yes or No.
for (var i = 0; i < r.length; i++) {
jQuery('#condition-'+i+'-price').val(r[i].price);
jQuery('#condition-'+i+'-bid').val(r[i].bid);
console.log('[value='+r[i].on_ama...
Hey all, I've been beating my head against the search engine walls for a couple hours now and figure I might as well just ask...
I need to build a div that is one size on blur, say 300x30, that expands to 300x300 on hover and pushes all content below it down and will revert to the 300x30 size when blurred ("no longer hovered" or whateve...
When I have no rows returned, our jqGrid pager says Page 1 of NaN.
The JSON returned is:
{"page":"1","records":"0","total":"1"}
Why is NaN listed?
Update: We only seem to have this issue when we use loadonce:true.
Here's the source code:
$("#list").jqGrid({
url:'NoData.json',
datatype: 'json',
mtype: 'GET',
c...
jQuery's :visible selector seems not to work on TR elements in Internet Explorer 8 in the sense that includes TRs that have been hidden with hide(). Here is a test case:
<html>
<head>
<script language="JavaScript" src="jquery-1.3.2.min.js"></script>
<script language="JavaScript">
$(document).ready(function () {
...
Hi, I have a html page which requires two passwords, if these do not match a div appears to say so. Within the div a checkbox is also shown when the user checks this it should change the password type to text and vice versa. I seem to be having problems detecting if the checkbox is detected or not.
$("#password_error").html('Passwords d...
I am using twill and python to write a web crawler. showforms() returns
Form name=customRatesForm (#1)
## ## __Name__________________ __Type___ __ID________ __Value__________________
10 originState hidden originState TN
11 destState hidden destState IL
12 originZip text ...
The website to see the error (click the home, models, etc links) : http://bit.ly/9AE2RI
I am trying to get the #content-container of other pages to load into the current pages #content-container. I can do this but what the .load in JQuery seems to do is make it like so:
<div id=content-container style="display:block">
<div id=con...
problem with setTimeout "function is not define" !
What is the problem in this code ?
$(document).ready(function(){
function ISS_NextImage() { //ImageSlideShow NextImage
$('.ImageSlideShow').each(function() {
alert($(".correntImage", this).text());
});
}
var t=setTimeout("ISS_NextImage();",1000);
});
...
I'm on a .NET MVC2 project and have a reference to SomeClass.Home.js and jquery in the masterpage. My SomeClass.Home.js looks like this:
SomeClass.Home = {};
$(document).ready(function () {
SomeClass.Home.SomeMethod();
});
SomeClass.Home.SomeMethod= function () {
alert("hello");
};
The call to SomeClass.Home.SomeMethod ...
Hello,
I need to implement a facebook style multiple image uploader in my PHP application. It should be possible to select multiple files using Ctrl+click.
Is there any jquery plugin that i can use or any sample code i can refer to ?
Please help
Thank You
...
I have 3 menus that use this .toggle and when I switch between menus it requires a second click for the menu to click on again.
How do I make the second function stop if another menu is shown?
$(".dd").toggle(function() {
$("ul a", this).click(function(e) {
e.stopPropagation();
});
$(".contextMenu").hide();
...
I have a site where if someone clicks on a particular item (image or swf) everything else on the page would either disappear or blur out. So the only thing left on the page that is visible is the thing that I just clicked. Is this possible to say everything change except this one div?
...
Here's the code - this runs as soon as the document is loaded (inside $(document).ready(function(){ ) Is there a way to code this so that the next ajax query will run after the current one is finished? I want to create more ajax calls on the page, but they will not execute until all the queued calls are completed. If each call would ru...
I have a function where I need to return a url that I am getting via an ajax call.
var heatmap = new google.maps.ImageMapType({
getTileUrl: function(coord, zoom) {
var tileURL;
$.get('getimage.php', { zoom: zoom, x: coord.x, y: coord.y }, function(data) {
if(data.status) { tileURL=data.image; }
},...
This is the PHP code im using in conjunction with jQuery .ajax to create a new Tweets:
/* Create a TwitterOauth object with consumer/user tokens. */
$connection = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET, $access_token['oauth_token'], $access_token['oauth_token_secret']);
$qtweet = $_POST['tweet'];
$connection->post('stat...