I admit its not very clear title. But I did not know how else to name what I am trying to do.
I have index.htm. this page pulls data from index.asp?Process=ViewRequests with the following code.
$(function Requests() {
$.ajax({
type: 'GET',
url: 'content/requests/index.cs.asp?Process=ViewRequests',
success: function(data) {
...
I have a page that displays a table in two different modes. In each mode I have a different set of columns. I'm using jqGrid to display the table. When I try to load the table for the second time (with same or different columns for that matter) the table will not refresh the data.
Is there a different API to reload data? Or should I use...
I'm using the current jQuery to hide fade out a notification div, and then remove it, however when it completes there's an odd gap around the height of a - meaning that subsequent forms and page elements don't display where they were before the notice appeared.
To recap: the fade out and remove is working perfectly but I'd like t...
-- Running within ASP.NET MVC alongside jQuery --
I'm using jQuery to render a <LI> block as a list of dropdown menu items. There are 3 items in that list if the user is _not logged in - 4 items if he _has logged in. That 4th item needs to run a couple conditionals before it can decide exactly what payload it carries so I have that cod...
I'm making a drag and drop shopping cart using jQuery and FoxyCart, the drag and drop work but I don't know how to automatically open a link (inside the drag element) when an item is droppen in the cart.
Basically I have a list <ul> with <li class="drag"> and inside I have <a href="..."><img src=".." alt="thumbnail"/></a> and <a href="...
Possible Duplicate:
Why dont self-closing script tags work?
I had this bit of javascript code inside a <head> element.
<script src="jquery-1.3.2.js" type="text/javascript" />
<script type="text/javascript">
$(document).ready(function() {
$("#welcome").addClass("centered");
$("#created").addClass("centered")...
I'm trying to get Selenium to wait for all of the AJAX requests on a page to complete before proceeding to the next command. I'm using wait_for_condition and the following JavaScript:
function(){
var wait = function() { return jQuery.active == 0; }
return wait.call(selenium.browserbot.getCurrentWindow());
}();
This works fine in F...
I have the following:
$('#notice').countDown({
startNumber: 10,
callBack: function(me) {
$(me).text('Logging out now...').css('color','#090');
}
});
Instead of using on the page that the script is on I'd like to use that lives in a different frame, specifically a frame named "header"
Any help or direction would ...
Consider an ASP.NET webforms app where the requirement is to raise a confirm dialog when an asp:LinkButton is clicked. The results of the confirm dialog should allow or block the postback for the linkButton_click method.
The plugin/library currently being used is the jquery.alerts.js (found on ABeautifulSite).
<script src="http://labs....
I have some code on the client that calls an ashx handler using $.ajax() and expects json data from the server. Everything works fine on FF, IE 6,7,8 when I run the application on a local webserver. However, when I deploy the application to a remote test server, IEs stopped working ($.ajax returns a parsererror), while FF continues to wo...
The answer is probably no, but in IE6, jQuery is slow to apply the jQueryUI accordion control, meaning the unstyled links behind the accordion are visible for probably a quarter to a half of a second before the accordion styling applies.
This is highly distracting, so I went ahead and hid the div and had jQuery unhide it when it loads. ...
I've got a submit button inside my modal, and when it's pressed nothing happens! How do I make my form submit when the push my submit button? I don't want to use $('form').submit(); because then php doesn't detect that my button was clicked.
<script type="text/javascript" language="javascript">
$(document).ready(function () {
...
i want to detect if the checkbox is set to true and then put some data into a textarea. any examples of this?
...
I'm using jQuery to query a database and update a table of bid and ask prices for a currency trading ticker. I'm using $.ajax to send a currency symbol to a php script that queries the database and returns a xml document that javascript parses to make updates to the table. Everything is working in FireFox on both pc/mac and on Safari, bu...
User's data posted once user click either of buttons with same name="respond" different values "Confirm" and "Ignore". My problem here, button's values are not posted when I use jquery as in the following codes. Is there a way to fix this?
$("[name='respond']").live('click', function() {
$.ajax({
type: "...
I'm trying to replace something multi line in Javascript, IE is giving me trouble.
pastebin here:http://jsbin.com/olahi/edit
Explanation of what I'm trying to do:
Here's my HTML:
<textarea id="editthis">
Hello from JS Bin
Whats up from JS Bin
Whats
up from JS Bin
</textarea >
And my JS:
jQuery.fn.runReplacement= function(expr) {
...
I have code similar to the following:
<div class="class1">
<a class="link1" src="...">...</a>
</div>
<div class="class2">
<a class="link2" src="...">...</a>
</div>
Assuming I am currently in the click event for class link2, how do do I get the src value of the link1 hyperlink? These are dynamically generated so there may be m...
Say i have the following:
<a class="class1"><img src=".." /></a>
If I am currently in the click event of a.class1, how to I pull the 'src' value of the 'img'?
Update: for some reason neither of the suggestions below worked. My code looks like this:
$("a.class1").click( function() {
alert($(this).children('img').attr('src'));
...
I need to get the body element height and width, when i resize the browser windows
Please help me to solve this problem using JQuery
...
How to close a tab or window by clicking on a button in JQuery? I tried window.close() thinking that it would close that window,but it doesn't seem to work. Someone help me.
<?php echo $javascript->link('jquery');?>
<script type="java/javascript">
$(document).ready(function(){
$(".close").click(function(){
window.close();
}...