The code is simple. Works in every browser but IE.
J.get('/upload/uploadresponse/' + uploaded_lessonfile_id , function ( data ){
J('#upload-files').prepend( data );
});
alert() on data shows the required data.
Html is <div id="upload-files"></div> - no magic there.
Would prefer not to upgrade to jQuery 1.4.
Would prefer to wipe ...
I am trying to change the image src attribute using jQuery
jQuery("#imageID").attr('src','http://localhost:8080/images/1/myImage.png' );
using the above code i can change the src attribute, but when i try this:-
jQuery("#imageID").attr('src',jQuery("#imageBlock").css('background-image') );
i am unable to change the src.
provided...
After I clone a DIV and can change it's CSS properties, but can't find how to change it's child DIV's CSS.
In the following example I want to change the background of #details-child from yellow to blue.
CSS:
#wrapper {
width:200px;
background:gray;
}
#details {
width:200px;
height:100px;
background:green;
}
#details-...
Hi, a very simple question I am sure just the brain isn't working this morning.
I have the folowing code I am using with JQuery and the Google Maps v3 API. I basically am trying to refresh a map with new search results once it has been dragged to a new location.
google.maps.event.addListener(
map, 'dragend', function() {
var ...
I have a little Problem using jQuery.animate with firefox: when i animate the height of a container with some background image, the background starts to flicker on firefox only - all other browsers (even ie) show a smooth animation. a reduced code snippet that shows what i do:
<div style="background-image:url(image.jpg);background-posit...
We need to build the javascript-based visual editor (on jQuery) which should edit some graph-represented model. Entities should be represented as nodes and will have properties. Nodes (or/and their properties) should be linked to other nodes. Nodes should be draggable.
Are there any tutorials and jQuery plugins which can ease the develo...
Is there is any Way to add height width using jquery ?
Following are my code
var img = new Image();
// Create image
$(img).load(function(){
imgdiv.append(this);
}).error(function () {
$('#adsloder').remove();
}).attr({
id: val.ADV_ID,
src: val.ADV_SRC,
title: val.ADV_TITLE,
alt: val.ADV_...
Im trying to run a javascript window resize script on a page with a jquery cycle slideshow but im hitting some bugs I cant seem to work out. It resizes the first image fine on page load but then forgets the new height/width attributes for subsequent slides. I can set these again on before and after using jquery but the images always flas...
Hi guys, I'm trying to implement the flash component used on retailmenot.com and I'm facing some problems with it.
After several days of searching and such I succeed on doing the zeroclipboard flash element to go over my multiple coupon codes and when I click on one to open a new url with that link.
What I can't do it now, and which I ...
I want to activate jQuery auto-complete in a text-box when user enters any particular character like @. means when user enters his email address like [email protected] in text-box after typing "john" when user enters "@" in text then auto-complete should be activated, and should display the list of mail extension ("Gmail.com," "Hotmail.com...
Hi,
I need jquery grid with pagination,search and inline edit option.
I used tablesorter but after page 2, inline (jquery plugin) edit problem occurs.
I have tried flexigrid.
thanks
v.srinath
...
My specific example is highly complex, so I will use the example shown by Ryan from Railscasts to discuss this:
http://railscasts.com/episodes/197-nested-model-form-part-2
Background
I have a form, let's say "Survey", which contains an arbitrary number of "Questions".
Senario
Give i am on the "Edit Survey" page.
I would like to add...
This is the code i'm using. It's to make a list appear on mousenter the list's title.
The thing is that it appears and disappears very abruptly. What can i do to make this smoother?
Many thanks for your time!
<script type="text/javascript">
var timeout = 0;
var closetimer = 0;
var ddmenuitem = 0;
function jsddm_open()
{ jsddm_c...
After clicking on a button I want to fire an Ajax call and then redirect to other pages without waiting the ajax result. Is it possible? My code as follow:
$('button').click(function(){
$.get('mailer.php', function(){
window.location.replace("result.php");
});
});
The code above will wait for the ajax result before red...
hi all
how i could validate zend framework forms with jquery?
any idea ?
...
I loaded a second.php file in first.php using jquery ajax load function
$(".divclass").click(function(){
$("#divid").load('second.php', { id : $(this).attr('id') });
// alert("view Clicked");
});
the second.php loaded second php content in first.php file success.
but second.php contains some jquery function...
in second.php
...
Hi All,
I was working with $(window).load() ...and found one issue.
Actually as per this function first window should load and then any implementation under this function should start working.
This works fine for IE but not for FF.
in FF its working like $(document).ready()
can somebody suggest any alternate approach, or the reason why ...
How can I validate dynamically created text inputs?
I have an "add more" link that creates new ones, and a link to remove them. Each one has a uniqe ID.
Also, at least two text boxes must be filled.
...
here is my code below.
i have a lists of thumbnail images. when the user click a small thumbnail image, it swaps it to show the full image.
i have been trying to get the anchor tag name so that, i can explode the value "i". but i get no luck, any ideas?
many thanks!
my javascript
function swap(image) {
document.getElemen...
I have some elements inside an UpdatePanel which may or may be displayed, depending on various conditions.
<asp:UpdatePanel ID="MyUpdatePanel" runat="server">
<ContentTemplate>
<asp:Panel ID="MyPanel" runat="server">
<img id="clickableImage" src="/path/to/image.png" alt="Clickable Image" />
<span id="...