jquery

jQuery timers messing up after couple cycles

Hey, I have a jQuery timer going and it seems to mess up after 2 cycles: treethink.treethink.net/backup Right now, on different timers it will retract the news ticker and change which div is showing then pop it out again. After a couple cycles, which you can see in the link above, some stay longer and then overlap and it becomes a mess...

Using javascript to reset the meta tag to prevent it from refreshing the page

We have an legacy application (mixture of classic ASP and ASP.net) that has a few Ajax content rich pages.The expectation is that the users of the site performs a set of tasks on the page that can span a fair amount of time say, 15-30 minutes. One of the requirements is that users logging in to the site be automatically logged out after...

How do I pass a javascript function I've already defined into a jquery call?

For example, if I have: function example() { alert("example"); } Then why doesn't this work? $("h2").click( example() ); Does it have to be defined inline? ...

Jquery, Autocomplete using json, id's vs display values

I have kind of a complicated autocomplete issue. This is for a messaging system for a website I'm working on. I want it to work where you type in a user's name, it comes back with a thumb of their image and their name and their id. Then, when you select it, I want it to show the users name, but when it posts back I want it to send bac...

CSRF attack detected when submitting data using ajax

Hi, I'm trying to submit a form using jquery in symfony 1.4, but CSRF attack detected error pops up each time. This is the code i use to submit the form data: $.ajax({ type: 'post', cache: false, url: $('#assign-form form').attr('action'), data: ( 'activity[id]=' + $('#activity_id').val() + '&act...

struts2/ajax/jQuery dialog behavior

I'm trying to use a jQuery dialog to submit a form via ajax to my struts2 action. On success, I'm redirecting to a different page. This is working great. The issue I'm having is handling non-success result types from my action. What I'd like to happen is for my action/field errors to somehow get populated into my dialog so that the u...

finding clicked id deep in document using jquery

I'm going to use the text from the jquery example, For example, consider the HTML: <lots of divs to get to here> <div id="#targetid_0"> Click here </div> <div id="#targetid_1"> Trigger the handler </div> I have a series of questions that are plaguing me... Assuming that I click on 'Click Here' or 'Trigger the Handler': If I'm ...

One problem to fix - jquery filter pagination

Hello everyone. I have 1 main problem I am trying to fix for my pagination script: Here is the current project I am working on so you can see the problem first hand. Also use the edit button at the top right corner to see all the code involved, or just view the source. Click Here PROBLEM 1: When filtering, it does not filter all pages...

how to make a checkbox enable/disable based on selection in multiple box

I have a multi selection combo box and a checkbox in a form. I'd like the checkbox to be enabled only when user selects a particular value from the multi selection combo box. Is this possible to do ...either by javascript or jQuery. I am already using jquery elsewhere. Example: http://jsbin.com/ipomu to begin with checkbox will be...

[jquery] editableText plugin enabling problem

Hi, I've been experimenting with this plugin http://valums.com/edit-in-place/, so far so good... But i ran into this problem. I want to update my page when update or new request to save data is sent but if i update this function(edit-in-place) it will add second set of buttons, third, fourth and so on. How could i tell it that it would u...

Simple Replace \ with *

I have a paragraph that currently has C:\ How can I use jQuery to change it to be C:* ...

How to access the content of an iframe with no name and id through JQuery?

The iframe is something like this: <iframe frameborder="0" src="http://www.another-domain.com/whatever.php"&gt; <html> <head>....</head> <body> .... .... <div div="mydiv">.....</div> </body> </html> </iframe> I want to access #mydiv from the parent window. The iframe contents are from another domain. ...

Need to translate a jQuery animation to Dojo?

I would like to use a jQuery plugin called Superfish as the menu on my website. I'm currently using Dojo as my JavaScript framework. But, Dojo 1.4 supports some of jQuery's API (everything except animation, I think?). So I am able to run the whole plugin, except the "animation" part. My question is: How do I translate the jQuery $ul....

What is the simplest and best way to determine if the browser is IE or not?

(Don't care about the version. IE or not IE.) ...

jQuery, multiple inputs and onBlur

So I have 2 inputs. Both are for an "autocomplete". I also have 2 functions that do pretty much the same thing... Each input calls a different function onBlur. The problem is that the second upon selecting a "suggestion" for the second input, it populates the first. What can I do to make the second one populate the second? There's proba...

How to use TinyMCE custom button, with custom dialog, to add content?

TinyMCE editor lets you assign a custom button to it's editor toolbar. I did that and hooked it up to a Flickr account, so a custom dialog box appears with a selection of images. I want the user to be able to then click any image and have the URL of that image added to the original input, from where the custom TinyMCE button was clicke...

jQuery get selector in qiucker and precise way and get code simple

Hi... This is my first post... and.. I'm just lov to use jQuery. I need to get this code as simple and fast as jQuery those.. So.. Thanks in advance. // plug in... ahhh... i'm so shamed jQuery.fn.fadeSliderToggle = function(settings) { settings = jQuery.extend({ speed:500, easing : "swin...

Pagination updating numbers

Hello, I am wondering if there is a possibility. I have a pagination script that grabs the content from a mysql database with php and using jquery to handle it all. I want to add a filter to the pagination which will get rid of some content based on the users selection. When the filter is set I would like the pagination numbers to upd...

how to use regex on in a find function in jquery

I have the following statement: if ($(this).find("option[text='My Cool Option1']").is(":selected")) //do something basically I have a combobox with many options. I want to do something for options that start with My Cool Option<any number> above code works for only one option My Cool Option1...but how do I make it work for say My C...

jQuery Load an external script rich PHP file into local page

Hi guys, I've searched the entire web for a clear answer but haven't found one yet. I have this site: www.helixagent.com/todo/ and I want to load that entire site into a portlet in my main index page. I tried an iFrame approach but it fails to load the site correctly. The styles and javascript files don't get loaded (i think) Is th...