Hello,
I am building a firefox extension and using JqueryUI in it. In my extension I have certain elements which needs to be dragged and dropped, but I guess Jquery's UI document model is not working for the FF extension. I have been able to reference $ to firefox document with various events like this:
var ff = window._content.docume...
I have been given a requirement to take an existing stand-alone web-form (i.e. uses postbacks) and throw it into a lightbox.
The standalone web-form already has save and cancel buttons that have predefined behaviors. For example, the Save button attempts to save the form, and either displays validation errors, or if the operation was ...
Does anyone know if you can remove head elements on a button click and how to do it with jQuery?
I am trying to get rid of certain script tags from the html head when a button is clicked.
For instance. I have 1 screen view with a slideshow controlled by an external javascript file. When I click on a button "Click to get rid of this ele...
I make a $.get call to my db and it returns some HTML (data):
$.get(url, null, function(data) {
The HTML it returns is something like this:
<div id="1234" class="myclass">..more html..</div>
In my callback function, I try to add a class to it (based on some conditionals that I have tested are successfully being reached) like so:
i...
I want to get the ID values of multiple selection list. The multiple selection list
is generated dynamically. How to get that values? If i can able to get the values means,
can I convert it to JSON object or, it ll be obtained as JSON object!!!!
Here is my code to generate it dynamically.
function displayMultipleList() {
EmployeeM...
So I am trying to use FullCalendar and jQuery UI dialog box.
And i'm not sure to sure how to go about placing the 2 together very well.
When I select or click on an empty day event, I want the jQuery Modal Dialog Box to pop up. ALTHOUGH I would like to have it load an internal file (php include). But the downfall with this is that I can...
A common pattern within jQuery is a method that takes a callback which is passed an element of an array and its index within that array. However, it seems completely random which argument comes first. For example, from the jQuery docs at http://api.jquery.com:
jQuery.each( collection, callback(indexInArray, valueOfElement) )
.each( f...
I have a result set that when I use json_encode() in php, returns the following
[
{"id":"1","name:","value"},
{"id":"2","name:","value"},
{"id":"3","name:","value"},
{"id":"4","name:","value"}
]
I'm then using jQuery to try and loop through this:
$.each(data, function(index, itemData){
alert(itemData.id);
}
The problem is it's on...
Hi everyone,
I am using code-igniter, and some of my views require jquery. Because they must be used in multiple places they must call jquery in their file, however since they are referencing an external file, calls to $(document.ready) are evaluated before loading jquery and therefore fail. Is it possible to put jquery in the body and ...
Hi all :)
I've just created a simple, continuous bounce effect in jQuery but I feel the code isn't all that optimized and am looking to improve it.
var $square = $("#square");
bounce();
function bounce() {
$square.animate({
top: "+=10"
}, 300, function() {
$square.animate({
top: "-=10"
}, 300...
The HTML looks like this.
<div id="leftcontainer">
<div id="anothercontainer">
<ul id="items">
<li>Text</li>
<li>Text</li>
<li>Text</li>
<li>Text</li>
<li>...</li>
</ul>
<...
I have 100 values in an array but I need to select 5 value randomly on every click one button and I have one value e.g a=10 this a value shouldn't come in the 5 selected value.
I tried in different way but I am not able to do it in jquery. please any help me.
...
I want to show all elements with some class name (string). Something like:
var somevar = "apple"
$( .... select all elements with class == somevar ).show();
How can it be done?
...
Is it possible to stop a jQuery function with a checkbox (on/off)? Any examples out there?
...
Hopefully someone can help, I've been playing with ASP.NET MVC 2 for a learning project. Recently I wanted to introduce some more advanced effects, one of which being sortable tables. Given that I have a number of other jquery controls, using a jquery control seemed a good idea!
I selected tablesorter v2 and set about adding it to my ...
I want the mobile version of my site to be as snappy as possible, however i still want some basic analytics.
I want to ping a php file (hit counter) after the mobile page has loaded to count the amount of hits from javascript enabled browsers.
Jquery's a bit overkill for 1 ajax function so i'm keen to learn how to do the following in p...
I have a setup like so on a webpage:
Clicking on Add Filter adds a new entry and Remove will remove the line next to it.
The code for a single line is as follows:
<tr>
<td><select id="Column1">
<option value="0"></option>
<option value="1">Value a</option>
<option value="2">Value b</option>
</select></td>
<td><sel...
I have dropdown menu item ("pin this site") that i need to hide it or hide menu item
itself ("My Network").
When I saw viewsource on page, I got below code.
<a class="zz1_TopNavigationMenu_1 ms-topnav zz1_TopNavigationMenu_3
ms-topnavselected zz1_TopNavigationMenu_9" href="http://mynetworkqa.spe.org"
style="border-style:none;font-...
Sorry for my bad english, but I have a simple db with some values lets say: one, two , three and four...
Now I have a list like this with an id "test-id" :
<ol id="**test-id**" >
<li>**test1**</li>
<li>**test2**</li>
<li>**test3**</li>
<li>**test4**</li>
</ol>
In the php part I can get every value from my db but then ...
Hello. I am working on a slideshow using jquery cycle. One thing I notice is during slide, the user can click and skip to the next slide before it finishes animating. Does anyone know the best method of disabling "next" and "previous" buttons while the animation is occuring?
...