Hello guys,
I have an requirement of deleting the parent element of an anchor tag. I am adding div and anchor inside it dynamically. below is my code, Please help me out
$("<div>"+offer+"<a href='javascript:deleteOrder(this.parent)'>X</a></div>").appendTo($('#resultTable #resultRow td')[selectedOrder-1]);
function deleteOrder(obj)
...
I'm trying to create this slider
http://jqueryui.com/demos/slider/#rangemax
Is it possible to parametrize the max value?
For ex:
$("#slider-range-max").slider({
range: "max",
min: 1,
max: maxValue,
value: 2,
slide: function(event, ui) {
$("#amount").val(ui...
I have a simple CSS problem
In this site http://web.cinaird.se/pdf/test.htm (<--removed) I have a draggable images in the top content, I want a span that float on top of the image and for this I need a span containing the image and a span floating on top. So long no problem but now when i drag the image it hides outside the top conte...
I found a very nice jquery plugin: http://spaceforaname.com/gallery-light.html
I want to change the border color of the strip wrapper (default is white)
position: absolute; z-index: 1000; cursor: pointer; top: 304px; left: 74px; height: 98px; width: 98px; border: 2px solid white;
The problem is that the border color seems to be gener...
I'm using Jquery UI sortable in my current project to make boxes drag and drop-able into new columns. It works in all modern browsers apart from ie7, in which you can drag and drop, but when you drop, it completely ruins the content of the box you're dropping.
Any ideas?
...
I'm making a typing tutor program using javascript. Everything is going well except that if activates browser hotkeys which disrupts the functionality of the program. When I press the single quote in Firefox it triggers "Quick find (links only)" short cut and in all browsers when I press space the page scrolls down a page. Everything is ...
What does jQuery do differently when you specify the datatype as html as opposed to text. I haven't seen a difference but there must be some subtleties I'm missing. If I wish to return a portion of an html page as a string does it matter which I use?
...
Hi,
I'm a jQuery total n00b.
In my rails app this what happen:
I'm on the homepage, I click this link:
<a href='/betas/new' rel='facebox'>Sign up</a>
A beautiful facebox popup shows up and render this views and the containing form:
# /app/views/invites/new
<% form_tag({ :controller => 'registration_code', :action => 'create' }, :id...
I have an accordion side menu in my latest project that works in all modern browsers properly, apart from ie8.
In Ie8, using the menu and clicking results in random padding and margins to be added and sometimes disappear for no apparent reason. I can't find any bit of jquery code that would potentially cause this to happen which is a p...
I'm new to Javascript and jQuery, but I'm learning. Here is what I'd like to accomplish:
I have a row of navigation "pull-down" tabs that I'd like to animate. Some sliders will have text links to sub-pages and some will not. The bottom portion of the tab should be clickable to go to the main page. Then the sub-page, text links should al...
The ajax call works fine in FF.
the data returned is in JSON here is an example from FF firebug -
{"noProfiles": "No profiles have been created, lets start now !"}
When I try to print the error in IE8 (& in compatibility modes as well), it says "parsererror".
But the output seems to be valid JSON.
Here is the ajax function call...
Once the form submitted, response from another page is printed to #GameStorySys. But values entered to the form still stays there. Is it possible for the form values to disappear (but the form should still stay) once the form submitted?
$("[name='GameStoryForm']").click(function() {
$.ajax({
type: "POST",
...
I'm trying to make a page scroll down 150px from the current position when an element is clicked. So lets say you're roughly halfway scrolled down a page. You click this link, and it will slide you down an additional 150 pixels.
Is this possible with jQuery?
I've been looking at scrollTop and the scrollTo plugin, but I can't seem to ...
I want to change hidden input value on div click, so i do following:
$('#gallery').click(function(){
if ($('input[name=isgallery]').attr('value') == '0') {
$('input[name=isgallery]').attr('value', '1')
}
else {
$('input[name=isgallery]').attr('value', '0')
}
$('#filterform...
Can I use Jquery to call an action and then change the image when it success, just like stackoverflow's post voting function?
In my view, I'm using the following code, but I don't want to refresh the browser. Can anyone provide some code about this for me?
Many thanks.
<%if (!item.IsPrinted)
{ %>
<%=Html.ImageLink("~/Content/imag...
Hello,
I would like to pass to a jQuery function a regular function, instead of the usual anonymous function, but I'm not sure how such a thing could be done.
Instead of this:
function setVersion(feature) {
$.post("some.php", { abc:"abc" },
function(data){
// do something here
}, "json");
}
I would like to...
I am creating a web app which uses jQuery to authenticate:
$.ajax({
url: "/session/create?format=json",
type: "GET",
dataType: "json",
cache: false,
username: $("#signin-email").val(),
password: $("#signin-password").val(),
success: function(data) {
if(data.success) {
success = true;
}
...
Hi everybody who use jqGrid!
I am a new on stackoverflow.com and it seems to me that a lot of peoples who use stackoverflow.com are not only the persons who have a problem which must be quickly solved. A lot of people read stackoverflow.com to look at well-known things from the other side. Sometime perhaps the reason is a self-training ...
I see there is full ajax mode but I wanted to see if there is a hybrid mode where some tabs are ajax driven and some static.
...
When I bind a function to a checkbox element like:
$("#myCheckbox").click( function() {
alert($(this).is(":checked"));
});
The checkbox changes it checked attribute before the event is triggered, it's it normal behavior, thus giving and inverse result.
However, when I do:
$("#myCheckbox").click();
The checkbox changes it check...