jquery

jquery ui events

Hi there, I have some trouble with jquery ui-events: In my application, there are some sliders. I have to adjust the "min"-option from time to time, but I have the problem, that the change()-event is not triggered after that. I would expect that on every value-change, programmatically or manually, the change-event is called. How to trea...

jquery submit multiple forms

Hi, I have 4 forms on a page. Form 1 must be submitted with either form 2,3 or 4 depending on user selection. jQuery's .submit() can only do one form. ajax posting the forms is not an option i can only think of adding the content of Form 1 to the other form as before submitting the latter form. is there any other way to do it? ...

Is there any current solution for jQuery Eclipse integration other than Aptana?

jQueryWTP is very out of date (jQuery 1.2.6 and Eclipse 3.3), and I don't want to use Aptana just to get code completion (I'm very happy with PDT otherwise). Is there any current solution for this? ...

Javascript document.domain clarification

I have a domain foo.com on server bar. I have a subdomain api.foo.com which has a CNAME entry pointing to ghs.google.com (as the subdomain is being used by Google Apps). I am trying to make jQuery.get() calls from search.foo.com to api.foo.com. The calls all seem to go through properly, and the callback function is executed each time, b...

uploadify: no reaction on fileUploadStart()

I have no reaction or error when i want to upload images with uploadify. It's possible to select the images, but no upload. Very strangly i have this only on this hosting ! In the testversion of that website on my hosting, everyting was working. When i load it onto the hosting of my client; it failed. You can see it here: http://www.loc...

jQuery inserting code under cursor by clicking on image

I want to insert smiley code in text area under cursor position by clicking on images. There are three images in div #smiles: And array var smiles = { 'happy': ':)', 'sad': ':(', 'normal': ':|' }; Textarea is #text I don't know is it ok to use images' urls for connection with code, or there is better way (for example, by pos...

JQuery nested ul-li tree, searching and applying

I have a tree of ul's that I want to search with jQuery and apply styles to those matching so this: Regional |-InternetAccessGroup |-Wasters |-Packaging |-Users |-Students |-Hello Fred |-Package Student |-Teachers |-Package Teacher ...

AJAX call that returns flash video

Hi I have an AJAX web service call that returns a chunk of HTML that I then apply to a DIV element on my page. This works fine for any html element except a flash video which comes up with 'Movie not loaded'. I've double-checked the html that is being returned and it's all fine, and it works if I don't use AJAX, but when I use AJAX an...

Jquery loading prespective

Hi, My web page is divied into different section in that in one section having images gallary. to load the other section i am performing ajax calls. in following method. $(document).ready(function(){ // Perform other task here } My issue is if image takes time to load other stub is waiting to load images. I want to make image...

JQuery conditional submit after ajax call

Hi in the code below : 1) The form submit action is changed by the document ready fn to make an ajax call 2) If the data from the ajax is not 'No probs' then it puts the error message in a div and changes the value of the submit, so that a second click takes you to the standard action. This bit works. 3) If there is not an error I wan...

Javascript or CSS static bar which remains constant in terms of position

Hi there, I've seen so many times that some websites use a kind of button or a kind of bar which always float to a specific position like left edge of screen or at the bottom of the screen and whenever we scroll down a page it remains constant in terms of position.. How to apply this either by CSS or javascript or jquery. Thanks in ad...

jQuery .NoConflict Script Load

Hi Guys, I am trying to use jQuery in a highly conflict environment. .noConflict() doesn't work and I am trying to do something like <script type="text/javascript"> document.write( document.write(unescape("%3Cscript src='http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js' type='text/javascript'%3E%3C/script%3E")); jQuer...

jquery, ajax 405 Method Not Allowed

Hi all, I have a small "contact form" with jquery validation, php and ajax. My website running on IIS. The problem is, I am trying to post the form contents using ajax+jquery, but I am getting the response like "405 Method Not Allowed" (From firebug console). But its running properly in local server. Pls help me to fix 405 error. Tha...

Jquery, animate background colour?

Hi, is it possible to animate the background colour of an element in jquery without using any plugins? Maybe something other than animate would be better? The effect I'm going for is for the background colour of an element to animate to another colour, and then back to the original colour. How would I achieve this? Thanks ...

jQuery dynamically create table/tr/td or etc and append attributes

Hello, In an example I am having this structure (small example): <table id=example> <tr class="blah test example"><td>Test1</td><td><a href="url">LINK</a>Test11</td></tr> <tr class="blah test example"><td>Test2</td><td><a href="url">LINK</a>Test22</td></tr> <tr class="blah test example"><td>Test3</td><td><a href="url">LINK</a>Test33</td...

Clientside validation not working with sub-properties in ASP.NET MVC 2?

I have an object named User, with a property Name, with a Required attribute. public class User { public int Id { get; set; } [Required] public string Name { get; set; } } I have created a textbox, like so: <%= Html.TextBoxFor(model => model.Name) %> When enabling clientside validation, Name is perfectly validated c...

Getting jQuery's functions to run when page is loaded in a div

I have a site where users can log in and check on outstanding support issues they have raised with us, on this site is a page to manage per company contacts. Whilst updating the site i have started using jQuery to load sub pages so that the user doesn't get a page refresh everytime. I've started to run into problems loading my JavaScript...

Toggle Checkbox

Hello all, I have 4 checkboxes and I wish to toggle them (checked or unchecked) and they should all be the same what ever state they are in. I have this so far: var toggle_click = false; function check_them(element){ if(toggle_click){ $('#'+element+'_1').attr('checked', true); $('#'+element+'_2').attr('checked', t...

How to "enable" HTML5 elements in IE that were inserted by AJAX call?

IE does not work good with unknown elements (ie. HTML5 elements), one cannot style them , or access most of their props. Their are numerous work arounds for this for example: http://remysharp.com/2009/01/07/html5-enabling-script/ The problem is that this works great for static HTML that was available on page load, but when one creates H...

Check if Table tr has class then remove and add new class on Hover event

Hi, I'm trying to highlight table rows on mouse hover. The each row (tr) has a class either "even" or "odd" already. So, to highlight the row on mouse hover, I need to remove the CSS class "even" or"odd" from the row first. Please take a lot at my script: $('tr').hover(function() { if ($('this').hasClass('even')) { $(this).remov...