I have a simple question:
Would you rather use a plugin that is actively developed by the author(s) or use a plugin that is good in your perspective, but you know that it was last updated years ago and has no active support?
...
Hi,
I have a set of div pairs (a 'header' and a 'body'). When the user clicks on the header, the next body section should show/hide (and update the +/- icon). All the divs are written to be "shown" on page load but I'd like to "close" some of them and the user can open them if they wish. Just can't get it to work! Code is below if anyone...
Hi,
Is there some documentation regarding the order of returned HTML elements by a jquery selector. So for example if I do
$('div.experience_entries_list input.experience_order_array').each(function()
{
alert(this.value);
});
, can I assume that the returned elements will come in the order that they are positioned in the html? I...
I have a function that dynamically creates links for a photo gallery. The function also produces a larger image as a background image of a div when and thumbnail is clicked on. What I want to do is have a third event, where if the user clicks the enlarged image in the div, the jQuery Fancybox loads an even bigger version of the image bei...
I would like to have a facebook-like dynamic latest nodes loader in Drupal sidebar working in JQuery. Each time new node is created, the users would be able to see it in a list (similar to facebook) without refreshing the page. Any advice, tutorial links, etc. will be appreciated.
...
I have made an application, in which want to use one of the javascript library.
Have any one idea which one I should use and why?
Thanks in advance
...
Hi, im making an application that creates a text input where ever you click. I was having a problem where whenever you would click inside the field another text field would appear but i managed to fix that. I have one last major issue that I just can't solve. I know ou can't use blur() and focus() as arguments (though it would be nice) b...
Hi there
I am having problems with Jcrop API. I don't think I need to go into detail as why I need this check, but I need to check if the Jcrop API is present so I can destroy it or not create another one if it is already created. Is there a way to check if api is present? Maybe this is Jquery or javascript check, I am quite a beginner....
Hi,
In my aspx file, I have:
<asp:UpdatePanel ID="UpdatePanel3" UpdateMode="Always" runat="server">
<ContentTemplate>
<asp:Button ID="Button1" runat="server" Text="Button" />
</ContentTemplate>
</asp:UpdatePanel>
In javascript file I have:
$('#ctl00_ContentPlaceHolder1_Button1').click(function (e) {
alert('hel...
A few days ago, I was wondering why when I set the images' width and length attributes on my site to percentages, it wasn't scaling the image down the way I thought it should.
The problem was that I wanted it to scale the image down, but it was actually scaling down the images' container.
Anyway, I was actually fond of Pat's suggestion...
I have a problem in which I need to upload multiple files using multipart POST request,
I need a single browse button to choose the uploaded files.
I've seen JQuery Plugin for multi file upload, but there is a problem that only one file is uploaded several times. the post request file parameters are sent with the same name.
My question i...
In the callback of a HttpRequest I have, I run this jQuery code:
$("input[value='"+data.notetype+"']").click();
So the radio button with the value of data.notetype is selected. This works fine. But I need to perform an action based on what button is now selected.
If I use the change() method like this
$("input[name='note_type']").ch...
1)
I am using the jqgrid plugin to show results from different selections a user can make on sliders and such. The jqgrid loads via a php command:
$grid->SelectCommand = 'MySQL SELECT statement here';
But I want to change this, and reload the data at runtime (via jquery) when the user makes a change.
(Also if possible I would like t...
I'm using Rails 2.3.8 and have a jQuery AJAX form using posted using:
jQuery.fn.submitWithAjax = function() {
this.submit(function() {
jQuery.post(this.action, $j(this).serialize(), null, "script");
return false;
});
return this;
};
If I try to post a text that has quotes in it such as
1
"2"
3
Only what is inside the ...
I have the following jquery and it is getting long.
Is there any way to shorten this?
Thanks in advance.
$('input[value|=Kjøp],input[value|=Buy],input[value|=Fortsett å handle],input[value|=Skriv deg inn her],input[value|=Logg inn],input[value|=Lagre],input[value|=Logg deg på],input[value|=Continue shopping],input[value|=Register as a...
Hi,
I want to toggle the next sibling of a link in a list like this,
<ul>
<li><a href="#">1</a></li>
<li><a href="#">2</a>
<ul class="selected">
<li><a href="#">2.1</a></li>
<li><a href="#">2.2</a></li>
<li><a href="#">2.3</a></li>
</ul>
</li>
<li><a href="#">3</a></li...
I'm trying to validate a form using an AJAX call to check available inventory. If the inventory check has an error it returns a msg, if not the form should submit.
I have the following code:
$("form[id*='distributor_']").submit(function(){
return checkAvailableInventory($(this));
});
function checkAvailableInventory(form) {
$...
In the application that we have, we're doing some AJAX response. Once in a while we get back a response that isn't fully contained Test 3 in the code below. While it's possible to beat people into submission, I would like to just build in some belt and suspenders in the code to handle the case.
The key is the findself() function which...
The full story is I want to disable the submit button on a form's submission to prevent multiple submissions. One of the problems is the form is an ASP.Net MVC Ajax form - <% using (Ajax.BeginForm ... %> - so its javascript onSubmit event is already set and I therefore cannot do this during that event. Unless there's a way to add to the ...
Hi guys,
I have the following structure :
<ul id='myTopicsList'>
<li>
<a><span> First Element </span></a>
</li>
.....
</ul>
The first time the page is loaded the first li will be selected by highliting it to background color blue.
The next time the user clicks another element in the list it should change to blue and the rest sho...