jquery

jQGrid: Is it possible to start the grid with the search toolbar on?

Hi there, Is it possible to get the jQGrid toolbar to show up on page load? ...

Changing stylesheet href with jQuery doesn't quite work

I'm creating a web app that user will be accessing in the field, so they'd like to be able to manually toggle the styles from light to dark depending on the ambient lighting. I'm using jQuery. I added an id attribute to my stylesheet, then created a button using the toggle() event, in which I change the href attribute to the CSS file I ...

Pass function value to Jquery function call back

I'm writing a script that loads different content based on the previously clicked links. (For an Android app). I'm having problems getting data to pass to my call back function. function load_current_div(id, refer){ $('#current-div').hide(function(){ $('#current-div').html(''); $('#current-div').load('content/'+id+'....

JQuery html function on a td

Hello all, I am trying to place some html within a td that has an id but this doesn't seem to work. Can JQuery not put html in a td by using its id as a selector?? I do this: $('#total_match').html("<b>Test</b>"); Here is the td: <td id="total_match"></td> No errors occur and nothing appears in the TD - I view the source to confi...

jQuery .hasClass method to omit effect

I've created a simple background effect for some tabs on a page but don't want that effect to fire if the tab has the class 'current'. I presume there is a way to do this using .hasClass Here's what I'm using for the effect: $('ul.htabs a').mouseover(function(){ $(this).stop().animate( {backgroundPosition:"(0 -810px)"}, {durati...

Re-Databind on RadCombobox with ajax??

So I've been moving a lot of stuff into a webservice because it makes the whole thing make more sense to me personally. Also makes AJAX easier for me. Right now the user will say they want to save a new contact somewhere then, through the webservice, they are added to a database and that call returns the new primary key so that I can c...

JQuery Validation Plugin not working when used on page that includes another page via AJAX

We have a long page that contains a bunch of different form elements. One part of the form is called remotely via AJAX and is populated in an empty div. This is the part which JQuery Validation plugin is not working correctly on. We have class="required" on the elements on this page, but they do not show up as required. I'm guessing it...

jQuery .each() with Array

Basically, I am trying to gather the IDs of every element with a specific class and place those IDs into an array. I'm using jQuery 1.4.1 and have tried using .each(), but don't really understand it or how to pass the array out of the function. $('a#submitarray').click(function(){ var datearray = new Array(); $('.selected').e...

jQuery ajax works on local but not on server

Hi All! I m actually put of my min with this code .... $.ajax({ 'url' : site_root + '/ajax.php', 'type' : 'POST', 'data' : 'function=check_user_login_name&user_login=' + user_login, beforeSend : function() { ...

Looping and pausing after loading ajax content in Javascript JQuery

I have what I though was a simple problem to solve (never is!) I'm trying to loop through a list of URL's in a javascript array I have made, load the first one, wait X seconds, then load the second, and continue until I start again. I got the array and looping working, trouble is, however I try and implement a "wait" using setInterval or...

jQuery $(document).ready and svg-web window.onsvgload

jQuery of course requires everything to be inside $(document).ready = function() {}; similarly, svg-web requires: window.onsvgload = function() {}; Is there a correct, elegant way to combine these that doesn't introduce any problems? ...

jquery-ui accordion: adding rows without destroying and recreating?

I have a jquery accordion which I want to add rows to. I can accomplish this by calling .accordion("destroy"), adding the needed <h3></h3><div>... bit and then calling .accordion() again, but this destroys the state and closes any dividers which are open. Is it possible to add rows to the accordion without destroy and recreating it? ...

Ajax effect on console.log output

Let's look at the output of console.log. A click on the button changes the name if we use the function changeName(). But if we use the function changeNameAjax() (where response.name = 'Ford Prefect'), one click on the button doesn't change the name, only a second click does. Why? <!DOCTYPE html> <head> <script type='text/javascript'...

IE AJAX/Jquery issue - redirecting to new page instead of loading it into a div

I have a page like this: <form class="ajax" method="post" action="add_item.php"> [text input] [submit button] </form> [list any items the user has in a div here called #items] When the user clicks the submit button, a function like this is called: $("form.ajax").live('submit', function(event) { params = $(this).serialize(); $.post...

trying to make an accordion menu from a list - jquery indexhibit

Hello - Im teaching my self javascript & jquery so this might be a bit of a low brow question or entirely too much code for anyone to wade through, but Im hoping for some feedback. I have looked around and haven't found a thread that looks like it will deals neatly with my question. Im using the cms indexhibit (cant create a new tag!) ...

Remove the hash after Ajax loading (I'm ajaxing wordpress 8-) )

Hi everybody, I followed this great tutorial to"ajax" my blog:http://www.deluxeblogtips.com/2010/05/how-to-ajaxify-wordpress-theme.html But it creates some problems and I think the problem is in the hash that ajax creates. So, after the content is loaded, how can I remove the hash from the url? I copy my code here: jQuery(document)...

After all $(document).ready() have run, is there and event for that?

Hi, I have a first.js file included in the page index.php that have something like this: $(function(){ $("#my_slider").slider("value", 10); }); And them in index.php I have some dynamicly created slidders: <?php function slidders($config, $addon) { $return = ' <script type="text/javascript"> $(function() { ...

How to get image to pulse with opacity with JQuery

I am trying to get an image to change opacity smoothly over a duration of time. Here's the code I have for it. <script type="text/javascript"> pulsem(elementid){ var element = document.getElementById(elementid) jquery(element).pulse({opacity: [0,1]}, { duration: 100, // duration of EACH individual animation times: 3...

jQuery balancing exclusive and inclusive form options?

Has anyone found a good method to balance option lists, such that both can modify the other? I have a list of trims, and model_numbers, and either one of these can result a one to one match.. If however, there is no one to one match, I'd like trim to narrow down model_numbers and vise-versa. I don't ever want incompatable options... I c...

view-port resize vs document resize in IE

window.resize event in IE doesnt do what i thought it does. I thought it only triggered when the physical window/view-port changed size (ie user hits maximize on the browser window for example), but it is also triggered if i change the document size, introducing scroll bars. is there any way to tell those two things apart: view port r...