I have some HTML stuff like this
<div id='divItemHolder'onMouseout='HideEditDiv()' onMouseover='ShowEditDiv()><div id='itemName'></div><div id='divEdit'></div></div>
and in my script
function ShowEditDiv() {
$("#itemName").removeClass().html("<a href=\"javascript:Edit()">Edit</a>").addClass("divEdit");
}
function HideEditDiv()...
I am working on the following page.
http://www.ranger.ryerson.ca/library/test/steveDev/testcarousel/test.html
it works in firefox, chrome, and opera, but in IE6,IE7, and Safari (the god forsaken browsers) they all give me "parsererror"
My page uses the jquery XML parser, and the bad browsers dont like it. The troubled code is the foll...
I've got several elements on a HTML page which have the same class - but they're different element types. I want to find out the tag name of the element as I loop over them - but .attr doesn't take "tag" or "tagname".
Here's what I mean. Consider these elements on a page:
<h1 class="rnd">First</h1>
<h2 id="foo" class="rnd">Second</h2...
Im using the following:
$(function() {
$(".StaffSubjectClassNav ul").hide();
$('.StaffSubjectClassNav h3').click(function(){
$(this).toggleClass('clicked');
$(this).next('ul').slideToggle('100');
});
});
On the following HTML:
<h3><a href="link">Link</a></h3>
<ul>
<li>Link1</li>
<li>Link2</li>
<li>Link3</li>
</...
I'm running this script in Google Chrome while using the Chrome Task Manager to monitor memory usage:
<html>
<head>
<title>Test Page</title>
<script type="text/javascript" src="jquery-1.3.2.js"></script>
<script type="text/javascript">
var count = 0;
function incrementContent() {
$("#content").t...
I'm trying to add borders to the middle column in a three column row. This:
var subcount = $j('#sub > div').size();
Gives me 6, and I'm trying to figure out how to apply a style to the divs in the middle? (in this case, div 2 and div 5)
<div id="sub">
<div>div 1</div> <div>div 2</div> <div>div3</div>
<div>div 4</div> <div>div 5</div...
hey all,
i have 2 simple links on my page. how do i use jQuery to get the id's or values of those links?
thanks,
rodchar
...
I am having trouble resolving an issue using traditional JavaScript and was wondering if there is an easy solution using jQuery. I've searched the web and haven't been able to find anything that does exactly what i want to do.
So.. this is what i want to achieve:
I have 2 div's with content, first one is displayed, second is hidden.
Be...
Hi
I am having problem getting my partial view to render in ASP.Net MVC 1.0 when I load it with JQuery.
I have a controller like:
public ActionResult Index()
{
return View(_invoiceService.FindAllInvoices());
}
public ActionResult InvoiceSearchResults()
{
return PartialVie...
In a Django app, where should I put my javascript/jquery scripts?
...
I got a web site using jQuery, jQuery Tools and some handcrafted JS running performing graphical enhancements. While it's running smooth on FF, Safari and Chrome, IE blocks the script execution :
There is nothing particularly more dangerous on this code than, let's say, on Netvibes.
Why is even talking about activeX ? I'm using JS.
...
I'm attempting to improve the usability of a client's SharePoint deployment via JQuery; and am hitting a brick wall when trying to find any sort of documentation of what's happening in core.js (aside from painfully digging through and trying to parse any sort of meaning out of it --all 250kb of it!!!!--) Anyone have any pointers, or doc...
hi there,
has any one using Spring MVC with Jquery!
i have got a strange problem when handling Spring MVC tags with Jquery.
i used tags of spring MVC to get radiobuttons binded.
<form:form name="Form1" method="post" action="Form1.do" commandName="Page1Command">
<form:radiobutton path="group" value="TTSE" id="DevGroup_TTSE" />
<for...
Hi there,
I have four Div placed using absolute positioning, each of them is a border of a rectangle they form once grouped together, in order to look like if a Dom element on the page is selected (this mimic the css border behavior using Div as overlays).
The left one has a border left set to "4px solid red", a width of 0px and a hei...
So i have a unordered list, each item in the list has a button that is suppose to toggle the post comment textarea. Unfortunately with my first attempt when u click on one Post Comment button all textareas open, then i tried to use this to make sure only one element is selected. Here is the code:
<ul class="todosDisplay">
<li><span>Con...
Hi is ther a recommended way to clear a jquery flot graph? I couldn't find anything the in the api...
...
I'm having trouble understanding how to use jQuery and its Form plug-in to access the data returned by an HTTP post operation.
For example, I would like to POST data in a form from a browser, process the data on the server, return a server response (in JSON) to the browser, and display information about that response to the user in an a...
I am trying to focus on the username input in my login screen to allow for easier access to logging in and currently my jquery looks like this
$(document).ready(function() {
$('#Username').focus();
});
but that doesn't work... any ideas?
...
In a very recent questions I was having problems with this. My code was:
$("#SearchResults").load("/Invoice/InvoiceSearchResults/");
And I was advised to use this instead:
$.ajax({
url: "/Invoice/InvoiceSearchResults/",
type: 'GET',
dataType: 'html', // <-- to expect an html response
success: doSubmit...
Hi!
I have a jquery selector that looks like:
var val = "John's cars";
$('#subject input[value="'+val+'"]')
This works just fine in Firefox, Chrome, Internet Explorer 8, but not in IE 6 or IE7.
The problem is the ' in the text search for.
Someone has any idea how to work around this problem except to loop through all inputs in questi...