I'm trying my hand at jQuery Address http://www.asual.com/jquery/address/
On a click event I set $.address.value(mypath);
This fires off the $.address.change() event.
When I click a link I want the behavior to be slightly different than when this event is fired by clicking the back/forward button or with a bookmark or link.
Is there ...
Ok so I'm lost here, frustrated and pulling my hair and out. Plus probably about to be fired or take a pay cut.
I moved Files from a development server to my local machine. The files are consistent (used diff tool), all the dependencies are there. It works for the most part. The problem is that the some of the javascript (not all) is ju...
I'm new to JSON and moving around in it in jQuery. I'm fine until I hit a '[', as in:
"gd$when": [{
"startTime": "2006-11-15",
"endTime": "2006-11-17",
"gd$reminder": [{"minutes": "10"}]
}],
I tried to do a
eventTime = event["gd$when"]["startTime"];
to get to the 'startTime' (Yes, event is the variable for ajax stu...
So, throughout my entire document, I would like for every single time the user hovers over an element with a specific class name, I would like a class to be added.
My CSS looks like this:
.hotspot:hover, .hotspothover
{
border: 4px solid #fff;
box-shadow: 0px 0px 20px #000;
-webkit-box-shadow: 0px 0px 20px #000;
-mo...
I'm working on a Google Chrome Extension and would like to get an HTML from within my popup HTML to call functions within my loaded javascript file. My manifest follows:
{
"name": "Extension",
"version": "1.0",
"description": "Extension",
"browser_action": {
"default_icon": "icon.png",
"default_title": "E...
hello,
I need to show the Please wait message while doing something on the page...
while showing this mesage I need to hide entire page backgroud that is i should not give any permision to the user to do anthing on the page..
using jquery for asp.net mvc application.
thanks
...
I have a very basic AJAX function in JQuery:
$.ajax({
url: "http://www.google.com",
dataType: "html",
success: function(data) {
alert(data);
}
});
But the data is always an empty string, no matter what url I go to... Why is that? I am running this locally at http://localhost:3000, and am using JQuery 1.4.2.
...
I'm sure this is simple, but I can't seem to figure it out. I need to be able to pass a function an element id, and know what element tag it is.
For example:
<a id="first"></a>
<input id="last" />
If I know the id is "first", how can I get that the tag is "a"?
...
This code isn't for anything in particular. I'm just trying to successfully get the tagName or nodeName of an element. However, when I run the following code, I always get an alert saying "undefined". I'm wondering if it's because this function executes when the document is ready? Is there a different place I should be doing this? Or is ...
Hi all!
I am trying to create a jQuery hover function that will highlight a different section of the page depending on what number EQ (index position number) the div is.
What I want to do is say "when you hover over the #photoContent div, check what it's EQ number is. If it's the Xth div, then highlight the Yth p in the sidebar"
...
I have a div inside an li as part of a top navigation for a website.
I'm having trouble with IE 7 having "holes" in the box such that the drop down disappears when the user is still on the drop down.
I started with a pure CSS solution (li:hover) and that works awesome in all browsers except IE 7. So I've now added a jQuery/javascript...
I have the following div
<div id="acc">
<a href="#">Link 1</a>
<div>
Some Content
</div>
<a href="#">Link 2</a>
<div>
Some Content
</div>
</div>
All the div's are collapsed to start with. How can I select the first div child ...
I would like to select the start and end selector for the prevUntil() or nextUntil() jQuery selector methods. If i implement these methods now, it grabs everything between the two selectors given.
i.e. $('p').prevUntil('h1') will not include the p and h1 element, only those between them. How could I also select the p and h1 elements as ...
I used this jquery each function and iterated my json data with it....
$.each(data.Results, function() {
divs += '<div class="resultsdiv"><br />
<span style="display: inline-block;width:150px;" class="resultName">'
+ this.Mat_Name + '</span><span class="resultfields" style="padding-left:10px;">
Measurement :</span> <sp...
I have the following jQuery event that gets fired every time an anchor is clicked. How can I pass a asp.net control (lets say a panel called "pnl_info") as one of the parameters, in addition to the "target" parameter i'm already passing?
<script type="text/javascript">
$(document).ready(function() {
$("a").click(function(ev...
I am using jquery with asp.net mvc.... Is my data option valid or am i missing some thing...
$.ajax({
type:"POST",
url: "Materials/GetRecords",
data: "{'currentPage':1,'pageSize':5}",
Any suggestion....
EDIT:
I am calling a function from a view page,
<asp:Content ID="Content2" ContentPlaceHolderI...
A friend gave me a solution that uses this jquery code:
.css({ backgroundColor: '#ddd' })
Instead, i'd like to use a background image. How do I change the jquery code to do that?
I'm wanting to do something like
.css({ backgroundImg: 'images/newsletter-dropdown.jpg' })
Thanks!
...
i have put in my source code to show live twitter search result on my webpage.
Although it shows the search result but when i open the source code of my webpage it don't shows the tweets text in my source code.iT DYNAMICALLY LOADS IT I GUESS.
iS there a way out to fetch the content of div and write it with some functions like document...
Hi guys,
My newbieness is shining through here...I managed to piece together a form mailer that works great, but now I need to add two more fields, and I'm at a loss as to how to do it. Over the months, I have commented out some things I didn't need, but now I'm stuck.
I borrowed from this tutorial to make the original form:
http://tr...
How to I write this
Slide All Div up except the div with id 'div1'
$(acc).children('div:not('div1')').slideUp();
Any help?
...