Sample html markup below
<div class="container answer_comments">
<p class="comment_text">Hey that's not cool.</p>
<p class="comment_attribs">By Anonymous User on 01 Dec</p>
<p class="comment_text">Is that really why?</p>
<p class="comment_attribs">By person on 27 Nov</p>
<p class="close_comments" onclick="close_comments()">Close</p>
</d...
I'm trying to have both mouseover events and drag-and-drop using JQuery and JQuery UI.
I currently have a working prototype here: http://dan.taeyounglee.com/othersites/m-p/ch18.php.
As you can see, if you move your mouse over the images, through a hover event that's bound to the artworks on the left, a separate corresponding div is hi...
I am using the following function to do a image upload/display
The Target is the div where I am updating the content that is returned from the form function. I wanted ajax so I don't have to reload the whole page just to upload and see previews of the image.
I upload a image, display it into the preview, I crop it, and do another funct...
The JS
SWFlocation = "open-flash-chart.swf";
getMyData = function()
{
$.post(
myJsURL,
{
passedval: 1234
},
function (returned_json) {
return returned_json;
},
"json"
);
}
swfobject.embedSWF(SWFlocation, "myChartDiv", "650", "200", "9.0.0", "", {"get-data":"getMyData"} );
Using fir...
How can I implement the comet / server push design pattern using PHP and Javascript?
Essentially what I would like is something like this:
User clicks a 'submit' button
Javascript shows a message like 'Processing 0 / 100 items'
Whenever a new item is processed, the php / server pushes out an update, and the javascript changes the mess...
using a twitter display widget and need to add links to the hash tags. so i need a pattern replacement, replacing each string that starts with a hash/pound sign and ends in a space with the twitter search link. i am pretty clumsy w/jquery--can someone point me in the right direction -- thanks, anyone!
something taking me:
// FROM:
<ul ...
Hi all i want to be able to close fancyBox when it is open from within.
I have tried the following but to no avail:
function closeFancyBox(html){
var re = /.*Element insert complete!.*/gi;
if( html.search( re ) == 0 ){
$.fancybox.close();
//alert("foo");
}
}
foo will open in dialog but will not close down. any hints?
...
I am doing this with jquery
$().ready( function() {
$(document).empty();
$(document).append("<div>hallo</div>");
});
I would have expect it to empty the body and afterwards add an div with hallo into the body. But it doesen't. In firebug it does not show any errors. Why does it not work and how do I make it work?
...
I've been searching all over the net for hours now but I still can't figure this out.
<table>
<tr>
<th class="name">Name</th>
<th class="age">Age</th>
<th class="nick">Nick</th>
</tr>
<tr>
<td>John</td>
<td>30</td>
<td>Johnny</td>
</tr>
<tr>
<td>Robert</td>
<td>35</td>
<td>Bob</t...
I would like to get the same affect as jQuery.serialize() but I would like to return only the child elments of a given div.
sample result:
single=Single2&multiple=Multiple&radio=radio1
...
I am working on a navigation for a site and need some guidance on dynamically adding a class to the active link. In addition, once that link is established and I need to reference back to the parent and have it "show".
This is what I am working with. The navigation is accordion style but does not use the Accordion UI.
<ul id="menu3">
...
I've got a web page that looks like this
<html>
<head>
<title>File Upload Click Test</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
</head>
<body>
<div onclick="$('input[type=file]').click()" >CLICK SIMULATOR</div>
<input typ...
I have this page and the jquery function doesn't seem to execute.
It should work like the example in this page.
Any idea of what go wrong?
...
I have a DOM in the form of
<input class="parent"></div>
<input class="child"></div>
<input class="child"></div>
<input class="parent"></div>
<input class="child"></div>
...
which I know is not Right and the right way to do this would be to reform the HTML, but lets say that is not possible.
How can I get jquery to select all childr...
I'm trying to develop a JQuery plug-in that will access an outside XML feed and display the results. Here is what I have so far:
HTML Header Include
<script language="javascript" src="jquery.rss.js" type="text/javascript"></script>
JQuery Ready
<script type="text/javascript">
$(document).ready(function() {
$("#rss").rss({cou...
I am wanting to create a mashup where large amounts of data need to be sent cross domain. I am thinking about using IFRAMES. My question is...
Will this work??
Does Google use it ??
Does anyone have a concept or some type of psuedo that describes how google does it?
I pretty much need to know how to go about doing it. I am using jque...
hi
i have an asp button ,when i click this button ,first i want to run code behing progress such as data delete , update.. after this progress i want to jquery function run related this button?
how can i do?
...
I'm trying to convert HTML to plain text. Is it efficient? Am I missing something?
txt = $("body").find("script,noscript,style,:hidden").remove().end().text();
Thanks!
...
I've got a simple setup to allow a "help"-style window to be loaded and scrolled to a particular point on the page. More or less the code looks like this:
var target = /* code */;
target.offsetParent().scrollTop(target.offset().top - fudgeValue);
The target of the scroll and the fudge value are determined by a couple of hints dropped ...
How to Expire a Cookie in 30 min ? I am using a jquery cookie.
I am able to do something like this.
$.cookie("example", "foo", { expires: 1 });
This is for 1 day. But how can we set expiry time to 30 min. Please help. Thank you.
...