Hello,
Is there a way to remove from img scr extension using jQuery?
meaning from this:
<img src="images/6208606.jpg" width="120" height="120" />
to this:
<img src="images/6208606" width="120" height="120" />
Thanks for help
...
Hello,
I will just come right to it.
I need to know how I can return false or true to a submitbutton.
I read some other post here, that says it cannot be done from within a ajax success function
because it wil return to the ajax context and not the submit event.
Maybe someone has a workaround for this??
also in the context that I am...
I'm trying to write a very simple plugin that on anchor mouseover increases the respective anchor text size and on mouseout removes the anchor. The problem is that I can't get the right "this". so i have:
(function($){
$.fn.extend({
//function name
textOverlay : function(){
//return
return this.each(function(){
var cucu ...
Hi
I have a DIV background which I want to change randomly on page load from a selection of 3 PNGs.
I searched around and found this code:
$(document).ready(function() {
var randomImages = ['img-restaurante-1','img-restaurante-2','img-restaurante-3'];
var rndNum = Math.floor(Math.random() * randomImages.length);
$("div.lacarta")...
Hi, I managed to do preloding of 1 image like this:
var img = new Image();
$(img).load(function () {
//do something after
}).attr('src', response.image1);
How can I make the same for multiple pictures. Let's assume that my response is a json object which has several image sources.
Thanks!
...
I want to do an AJAX call via jQuery load() and only once it returns, then fadeOut the old content and fadeIn the new content. I want to old content to remain showing until the new content is retrieved, at which point the fade Out/In is triggered.
Using:
$('#data').fadeOut('slow').load('/url/').fadeIn('slow');
the content fades in an...
I have a div element with a specific ID
<div id='someid'>
<input type='submit' class='edit' value='Edit'>
</div>
When the button is pressed, I want to select the parent element (in this case the div element) and load content into it. I've tried:
$(document).ready(function(){
$(".edit").click(function(){
var id = $(this).par...
Hi,
Here's something I want to learn and do. I have a JSON file that contains my product and details (size, color, description). In the website I can't use PHP and MySQL, I can only use Javascript and HTML. Now what I want to happen is using JQuery I can read and write a JSON file (JSON file will serve as my database). I am not sure if ...
Like links "next/back" and a loop, for this script - http://thejavascriptblog.com/the-quotator-the-json-driven-html-rotator/
Or searcing some other jQuery script for rotating text with fade effect and external controls.
...
Let's say I use jQuery to load new content into a specific DIV element. If I now want to catch events from inside that DIV element, I assume the DOM has to be updated somehow? What is the best way to deal with this?
Edit: Here is an example of what I mean:
<html>
<head>
<script type="text/javascript" src="jquery-1.3.2.min.js"></s...
i see there is a new version of the jquery datepicker
http://www.kelvinluck.com/assets/jquery/datePicker/v2/demo/
i dont see anywhere, that you can pass in a list of dates to have then highlighted (i am building a calendar tracking tool).
so i might want to show holidays in blue or a certain list of dates in green.
I am trying to use...
Well, take a look at www.creade.biz
Now click o A4 ITEM and JQuery to see slideToggle in action.
It works fine in IE but crash in Firefox. If you try to close the opene A4 ITEM It will reopen.
How I can fix It?
Thanx for your help!
...
Alright, so I'm building a web app that provides music information (i.e. info on artists, albums, songs, etc.) and for the info source I'm using the MusicBrainz API.
Now, I'm trying to load the data from an API call and process it, with jQuery. This is the code I'm using:
Code:
queryString="http://musicbrainz.org/ws/1/artist/?type=xm...
hi im trying to add a h2 with the title of an image after each image in my page... this is what ive got so far...
not really sure where im goin wrong
$("img[title]").each(function(){
this.after("<h2>" . this.attr(title) "</h2>");
});
...
I can't get this update script to work in IE. Works fine in every other browser. IE tells me that the update was performed. However, it wasn't. I've no more hair left to pull out..grr. BTW I've tried $.ajax and $.get too..still no luck. I'm thinking it may have something to do with the live click handler. Don't know...I've tried eve...
I was introduced to the Star Rating widget for jQuery UI: http://orkans-tmp.22web.net/star_rating/
I was originally using this one: http://www.fyneworks.com/jquery/star-rating/
Is there any difference between using the two?
Well trying to use the jquery UI one, I can't get the input buttons to show up as stars. I have these js and css ...
How can I make a dropdown menu similar to NFL.com's using jQuery? I really like the way it stays hidden, while still providing all the convince of a regular menu.
...
i want to display image after it upload
i write following code but it did't work
onFileSuccess: function(file, response) {
var json = new Hash(JSON.decode(response, true) || {});
if (json.get('status') == '1') {
file.element.addClass('file-success');
} else {
file.element.addClass('file-failed');
}
})
and li is
...
Using this plugin: http://www.fyneworks.com/jquery/star-rating/#tab-Testing
I have a simple callback function that picks up the id from the radio buttons:
<input type="radio" class="auto-submit-star {split:2}" id="myid" value="1" />
$('.auto-submit-star').rating({
callback: function(value, link){
alert($(this).attr('id'));
} ...
I want to send a value to the server.I send it using:
$.post("http://127.0.0.1:8000/search/",{'long':"30"});
and my views.py is:
def search(request):
lon = request.POST.get('long','')
place = Places.objects.filter(longtitude__icontains=lon)
if place is not None:
return render_to_response('sr.html', {'place...