Hi,
I've been working on a web application that requires the user to input certain request data. Once this data has been captured it will be displayed in the form of a grid with only the main content of the data displayed while the rest of the content will only be displayed once the user clicks on the main content. At the moment i'm dis...
Hi,
I need to generate a table from a list of objects. Each row will contain only the basic information for each object. However when the user hovers over a specific cell I want a popup, that contains all the information for that particular object, to appear. Maybe the popup should be in the form of a table with all the details of some ...
I have number of rows like
<'tr>
<'TD class="Lo">90%</TD>
<'TD class="Poor">80%</TD>
<'TD class="Lo">89%</TD>
<'TD class="Mid">85%</TD>
<'TD class="Poor">85%</TD>
<'TD class="Mid">85%</TD>
<'TD class="Hi">85%</TD>
<'tr>
Now I want to access any element...
I am developing JavaScript chat. I have done the prototype, and it seems to work pretty well. But our client says that it doesn't work. We both use IE7 on PC, and try to run the same JavaScript code. I have no idea about the reason.
On my client's machine there is "object is expected" error. I have thought about security restrictions, an...
I get this problem in IE7 when running a piece of code that uses jquery and 2 jquery plugins. The code works in FF3 and Chrome.
The full error is:
Line: 33
Char: 6
Error: bg is null or not an object
Code: 0
URL: http://localhost/index2.html
However line 33 is a blank line.
I am using 2 plugins: draggable and zoom. No matter what...
I'm trying to implement a simple rollover tooltip for images on a page where when you roll over an image, you get a little tooltip window and have the contents loaded from a database via AJAX.
I can hack this together quickly but I wanted an elegant way of doing this without using any inline JS.
So my question is: If I capture the rol...
My page has an outside script that contains some jQuery. Most of it runs fine except this bit:
$(document).ready(function(){
alert('x');
});
That bit of code works fine when i run it inside the HTML page but not in the .js file.
I have no other library in the HTML, i do have a window.onload inside the HTML but if i remov...
I'm using jQuery and jqGrid.
I'm trying to populate a select list dynamically, one for each row and I need to add a click event to it. When the select list is being populated I grab the index of the item I want selected, and then after all items are add I'm trying to set the selected item.
I've tried
$("#taskList")[0].selectedIndex ...
As the title states, I have a session variable that is set during a login script with asp.net and vb.net code-behind. Can I call a javascript function when a link is clicked that will destroy that session variable?
If it is possible, can I use jQuery to make that process easier?
...
I am building a page that may receive LARGE amounts of html from an ajax call, which it than insert into the page.
Sometimes, instead of the html i am expecting, i will get an http 401 error.
Ideally i want to have the error handler fire first, so i can set an error flag, display a message, and NOT insert the html that comes in.
The p...
i am using jquery plugin validation for form validation i have simple question which i could't figure out.
$().ready(function() {
$("#contactForm").validate({
rules: {
contactName: "Please Enter Full Name",
contactBody: "Please Enter full message here",
contactEmail: {
required: true,
email: true
}
}
});
});
this v...
Let's say I've got a DOM element - how can I tell if it matches a jquery selector, such as "p" or ".myclass"? It's easy to use the selector to match children of the element but I want a true/false, does this particular element match?
The element may not have an ID (and I can't assign it a random one for reasons beyond this), so I can't ...
I have a 'link' that, when clicked, will show a div full of content. Once clicked, the 'Open' button changes to a 'Close' button with close functionality.
Here's the jQuery:
$(document).ready(function(){
$('.open_user_urls').click(function() {
$('#user_urls').slideDown('slow');
$('.open_user_urls').addClass('...
Does anyone know how to select an item in the DOM by ID with jQuery, when that ID has a space?
For example, the id of my item would be
<div id="content Module">Stuff</div>
How would I select this with jQuery?
If I just do
$("#content Module").whatever()
jQuery will try to find an item with both the id of content and the id of...
I have two radio buttons and want to post the value of the selected one, how can I get the value with jQuery?
I can get all of them like this:
$("form :radio")
But how do I know which one is selected?
...
What is the correct way to get a control that was rendered by ASP.NET with jQuery?
Example: I have a checkbox that was generated like this:
<input id="ctl00_Content_chkOk" type="checkbox" name="ctl00$Content$chkOk" />
If I want to select it to get if it's checked, I tried this:
$('form input[name=chkOk]').attr("checked")
and
$('c...
I would like to have a div go from collapsed to expanded (and vice versa), but do so from right to left. Most everything I see out there is always left to right.
...
asp.net 2.0 / jQuery / AJAX
<script type="text/javascript">
//updated to show proper method signature
var prm = Sys.WebForms.PageRequestManager.getInstance();
prm.add_endRequest(hideMessage);
function hideMessage(sender, args)
{
var ctl = args.get_postBackElement();
//check if ctl is the disired control
//hide user notifi...
I have a simple list of records in an HTML table with a delete link for each row. The delete link shoots off an AJAX post request to a fixed url that looks like: "/delete/record/5"
The AJAX request is created using jquery's .ajax() call with a POST message when running on a server that uses https. This call fails in Firefox 3 on OSX/W...
Hello,
I have a model posts where users can edit and delete their own posts. My index page is a table with a few columns for each post. One of them holds a form for the delete button. Is there any examples on how you jquery submit a post/delete form with rails? I need to pass the status back to the user. Eg. posts deleted, access denied...