Hello
i have this HTML CODE
<ul id='container'>
<li>a</li>
<li>b</li>
<li>c</li>
<li>d</li>
<li>e</li>
<li>f</li>
</ul>
i want to add
<li class='separator'></li>
between each li's, at the beginning and at last. so my example will look like this:
<ul id='container'>
<li class='separator'></li>
<li>a</li>
<li class='separator'></li...
I have an application which schedules jobs to engineers. The application uses the Google Maps JavaScript API to display markers showing job locations and the number of jobs at that location – see figure 1. What I’d like to be able to do is draw a box around a collection of markers and display the sum of all jobs.
How would I draw a bo...
I have a page with two inputs: users_list and users_ids. jquery.autocomplete is used to autocomplete the users_list. users_ids is hidden field. When the user is selected and added to the users_list his id is added to the users_ids. Everything works fine. But the question is how to remove the value from user_ids if the user is removed fro...
I need to update website login form with ajax. When visitor fails to login, message should appear without refreshing the page and when visitor can login he needs to be redirected to default.asp.
I tried doing this with the following code but no success. I did not receive any errors.
Also, I am not sure if this is secure.
Thank you
...
I've got a problem. I made a tag cloud thingy to my website, but it doesn't work :(
({ tags:[{tag:'asdasd',freq:'4'}]}){tag:'asdasdsadasd',freq:'4'}]}){tag:'xcvxcvcx',freq:'2'}]}){tag:'cvbvcbcbvbcv',freq:'11'}]})
this is the response of the PHP file, and i'd like to get it with my html-
<script type="text/javascript" src="../script...
I am trying to pull the status updates from a Facebook Page. I have the url for the feed:
http://www.facebook.com/feeds/page.php?format=rss20&id=141941024749
Putting that into the browser returns the feed, however when I try to pull the same thing via ajax I get null. Here is the jQuery code I am using.
$.ajax({
url: "http:/...
I think my problem lies more in my approach and applies more to jquery, but something weird is happening here.
I'm using jQuery & jqTouch. My html is:
<div id="home" class="current">
<div class="toolbar">
<h1>Header</h1>
</div>
<ul class="rounded">
<li class="arrow"><a href="#currentloc">Current Location</a>...
I need to be able to control the order of items being processed in the $(document).ready event.
These are multiple controls, loaded from multiple files, all asking to be called in the ready event. They all start an async call to the server (AJAX). Only after they are all done, I need to do some extra work.
What would be the elegant s...
Hi,
I'm having trouble wrapping my head around what should be a simple solution. I want to replace text within a label tag, without affecting the other 'siblings', if they exist.
Sample markup:
<fieldset class="myFieldsetClass">
<legend>Sample Fieldset</legend>
<ol>
<li>
<label>
<span class=...
Hello,
I have a product page wherein if the user clicks on edit, an overlay form window is populated to make it editable.
After the edit is completed and the user clicks submit I want to update the text() of each field of the product which was changed.
So instead of getting value of each input field and updating is there a way I can u...
the ButtonImage is the property you specify for the icon but I want to use a sprite as the toggler - I can use buttonText and style the <button> element with a bg image but it probably wouldn't render properly in IE.. is there a way I can specify the exact HTML used for the button without having a button element rendered?
...
Hi All,
I have one html structure , somethinh like
<div>
<div id="mydiv">
<h3>
This is a Test Page
</h3>
<div>I am inside a div</div>
<a href="http://www.google.com">Click me</a>
<div>Second div</div>
</div>
</div>
and one script:
$(function () {
var elm = d...
Is there a way to show an animation when showing the JQuery modal window? When a user clicks on a button, I would like the modal window to do slowly emerge out of the button.
...
Hello,
I am using setInterval and the jQuery load function to periodically update an image tag.
var refresh_days = setInterval(function() {
$('#box_name').load("dynamic.php");}, 1000 );
This works, but there is a slight delay before the new image is fully loaded, during which nothing is shown.
Is there a way I can wait until th...
HTML:
<div id="twitter" style="float:left;">
<span></span>
</div>
jQuery:
var obj = JSON.parse(data);
$.each(obj.items, function (i, item) {
$("span", this).html("('<p>" + item.title + "</p>')").appendTo("#twitter");
if (i == 5) return false;
});
I'm obviously doing something wro...
Is there is a smooth way to only let the inner element of a listitem
do something?
I read something here that using live complicates things.
Summation:
I have list elements that can contain a elements with a certain class.
The inner a elements are bound to a live click event handler.
The list items themselves have also a click event h...
I'm using the jquery datepicker plugin to set a date field that is stored as an epoch timestamp in the db (the field, publish_time, maps directly to the table schema).
It seems that Datepicker only supports epoch in milliseconds, and not seconds. Its aggravating that it supports milli & nano seconds, but not seconds.
Are there any quic...
HTML
<select multiple="multiple" id="myID" name="myName">
<option value="blue">blue</option>
<option value="red">red</option>
<option value="green">green</option>
</select>
jQuery:
$('select')
.change(function(){
alert("Change Event Triggered On:" + $(this).attr("value"));
})
That, as is,...
Both methods appear to produce the same results, but I've been hard-pressed to actually convince people that the second method works, since it's apparently not commonly known.
// Create some data
var foo = { 'vals':[ {'id':'foo'}, {'id':'bar'} ] };
// Common Method
$.each(foo.vals, function(i,o){
alert(this.id)...
I'm using a jquery ui dialog to let the user know that his request is in progress while the client is processing some data. However, as you all know, it takes a hell of a lot longer for ie to process than firefox. What's the best pattern for making sure that the progress dialog is displayed for at least some minimum amount of time, so ...