Hi folks,
First of all I did not write this code. I found it on somebody else's website and I want to learn from it by trying it out myself. However I can't make it work. I've googled for the code in case it's a jQuery plugin that's freely available or anything, but I can't find it anywhere on the web.
I have my sidebar (with id #sideb...
How to capture div element and upload it automatically to server as a picture with jQuery?
...
Hi,
Trying to send postdata thru ajax
The code tried so far,
var $inputs = $('#myform :input');
var values = {};
$inputs.each(function(i,field) {
if($(this).is(':text'))
{
//alert("id : " + field.id + " value : "+ field.value);
va...
What I want: To, on focus, change one input box into another by hide() and show().
What I get: In Internet Explorer (7/8), the input box moves a few pixels to the right when focusing.
Works well in other browsers (obviously).
Here's a link to where I have re-created the problem:
< link removed due to no longer beeing relevant >
...
Hello friends,
I want to drag over an image, but when i drag over an image ( with out implementing any scripts) a circle is coming over the image. so I am not able to drag over the image. I would like to use a jquery script to make the image draggable, which means whenever I drag over the image the black circle wont show up
I am not in...
I have html structured like so.
<div id='container'>
<div class='item'> ... </div>
<div class='item'> ... </div>
<div class='item'> ... </div>
...
<div id='item_final'><input type="button" id='addOne'>...</div>
</div>
and what I am trying to do it add another item to the container class before the item_final div. The items a...
Hi,
I am using jquery accordion ui with sortable facility now that problem i am facing is
when i drag the header of accordion and place it to the specified position then if the header
is collapsed then it expands and if it is already expanded then it collapsed.
so i just want to keep the header closed whenever user drag it and then d...
I use
onClosed:function(){ window.location.reload(); }
option to reload the page after the colorbox is closed but I don't want to always perform the reload but only when a user clicks one HTML button inside the colorbox. Colorbox is closed if one clicks outside the window somewhere or the close button... I don't want to close colorbo...
Hello,
I have a slideshow which basically changes the src attribute of an image and fading it in and out.
function startSlideshow() {
if (i >= images.length) { i = 0 }
var path = images[i].path;
var name = images[i].name;
i++;
image.attr('src', path)
image.animate({opacity:1}, 1000)
.delay(5000)
...
Hi all,
All of this is code is here:
http://jsfiddle.net/yrgK8/
I have a "news" section which is composed of the following:
<ul id="news">
<li><p>asfdsadfdsafdsafdsafdsafdsafdsafdsa</p></li>
<li><p><a href="http://google.com">google.com link</a</p></li>
</ul>
...
I am looking for some design pointers. I am about to provide some walkthrough tutorials on a website that will demonstrate how to use a new web-base application we are rolling out. I plan on having a step-by-step tutorial, with an annotated screen shot and some explanatory text - "Click on the "New User" registration button as shown" t...
Hello All,
COuld you please advise on the following issue because I got confused and need help with the easiest way which I can follow.
I am retrieving some records from the DB in my jsp
<table>
<tr>
<td>A</td>
<td>B</td>
<td>C</td>
</tr>
<%
while(resultSet.next())
{
%>
...
Hello,
I am looking for best way to do Onsubmit URL Redirection.
Currently I have form like this...
<form action="dologin.php?" method="post" id="frmlogin">
<input type="hidden" value="something" />
<input type="submit" value="go" />
Currently this dologin.php is directing me to clientarea.php
I cant make any changes in dol...
So I am using this jquery plugin to create a nice pie chart on my website. The problem is that the plugin is rounding the values very oddly.
This is the table I give to it:
<table id="pieChart">
<caption>Priebežné výsledky ankety</caption>
<thead>
<tr>
<th></th>
...
Hey,
I have a page where each logged in user is shown as a <div> at a custom position, is it possible to show where the user's <div> is for other people.
I was hoping I could do this in (near) real time.
Just a nod in the right direction again would be fine.
Cheers
edit: is there a way to do this without MySQL?
...
How do I submit a javascript object via jQuery to django?
$.ajax({
type: 'POST',
url: '/fetch-items/',
data: {'foo': 'bar', 'foobar': {'spam': 'eggs'} },
success: function(){
alert('yey');
}
});
django part:
def fetch_items(request):
if request.is_ajax():
print request.POST
#output
>>> <QueryDict: {u'foo': [u'b...
Hi,
I am trying to create a form that lets users add 3 schools. They first select select a state then college list will be populated based on the state. States are loaded in prepare method. I'm using struts 2.1.8 and struts-jquery 2.3.1.
<label for="state1">State: </label>
<s:select
id="state1"
...
how to read contents from $(this) selector and its children separately?
<div class="para">
<h1 class="hd">heading 1</h1>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc tincidunt pharetra est, quis facilisis purus elementum ut. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per ...
This is my ajax function:
function ajax_call(call_method,data_to_send) {
logger("function ajax_call. var data_to_send: ");
logger(data_to_send);
$('.clickable save_button').hide()
$.ajax({
type: 'POST',
url: call_method,
data: data_to_send,
success: function(data){
logger("data returne...
Hi,
I'm very new to Jquery but have finally worked out how to change the background-image (a sprite) of my #contentContainer when hovering over a separate 'trigger' image. However, for the life of me I cannot work out how to apply a fade effect to the transition. Basically, instead of the current abrupt background image transition I wou...