because the way jquery dialogs woks, when using a "confirm" dialog, you have to return false immediately, and if the user selects "Ok", then trigger the form submit.
so, I'm using this code:
function validoForm()
{
//some code here...
if (datosTdcIncompletos==true)
{
var $dialogTDC= $('<div></div>'...
I have a div element that is 980px wide and I'd like to be able to trigger an event if the mouse is in the last 100 pixels or so of the div (I want to slide it). I already know how to slide it, but I haven't been able to make something that tells me when the mouse is either in the first 100pixels so it scrolls left or after the 880 so it...
Once again having problems being a new to javascript. I want to get the reply from my PHP script using JQuery's get. Here's my function
function getNext(){
var returnData = null;
$.get("get.php", {task:'next'}, function(responseText){
returnData = responseText; }, "text");
return returnData;
}
Now obviously...
I just updated my code to jqueryui 1.8 and it gave me this error:
this._mouseInit is not a function. How would I go about fixing this? I have a widget that does mouse start drag and stop. here is my code:
$.widget("ui.boxTool", $.extend({}, $.ui.mouse, {
_create: function() {
this.element.addClass("ui-box...
Hello all,
My developer friend told me of this site, and I'm hoping that perhaps someone might be able to help me solve a problem that I'm running into on any and all browsers while building the portfolio section of this website for my friend at her website which is (sorry for only being able to link one thing.... www - jennaschweitzer ...
Hi everyone, thanks in advance for your help. I'm working on this site and have an odd problem with jquery-twit and IE 6/7/8.
If you take a look at any other page than the homepage in an IE browser of any stripe the twitter feed button and contact form button appear at the top of the page, I'm at a loss to explain it - it works on the h...
UPDATE3 and FINAL: SOLVED thanks to Evan and meder!
UPDATE2: I should clarify, I need function updateFilters (a,b) to be called, not created. The function exists elsewhere. Sorry for confusion.
The code below does not work as expected - udpateFilters(a,b) is being called before for loop ends. Changing async to false solves the problem,...
hello,
I would like to create a toolbar in jqGrid with only the buttons that usually are on the pager.
At the moment I have the following definition
$("#foroGrid").jqGrid('navGrid', '#pager',
{ add: true, addtitle: 'Add Foro',
edit: true, edittitle: 'Edit Foro',
del: true, deltitle: 'Delete Foro',
refresh: ...
I have loaded a page in Fancybox using a iframe. But when I try to perform jQuery functions within that iframe it won't work. How do I access the iframe page or content so that I can perform jQuery on that page?
I tried this below but doesnt work.
jQuery(document).ready(function(){
parent.jQuery("#showcasef", jQuery.browser.msie ? paren...
Hello there, I am using the toggle function from jQuery and for some reason is not working, this is what I have:
$(document).ready(function(){
var flip = 1;
$("#tg1").click(function () {
$("#tg1-contenido").toggle( flip++ % 2 == 0 );
});
}
I don't know what I am doing wrong, any he...
When I click on a div, I would like to change the text inside it to New Text.
How can I do that with jquery
$('#mydiv').????
...
I am trying to find a slider or a toggle for my application that allows the user to select yes or no and its harder then i thought to track one down...
I found this slider but its 1 or 2 numeric and not yes or no text...any suggestions
...
Hi there, I have an xml feed, which i'm attempting to extract two values from. I'll paste the basic xml feed below.
<aws:weather>
<aws:current-condition icon="http://deskwx.weatherbug.com/images/Forecast/icons/cond034.gif">Mostly Cloudy</aws:current-condition>
</aws:weather>
To parse this feed, I have the following in Javascr...
function jsFunc() {
alert('i am js!');
}
$('#node').slideDown().call(jsFunc());
Of course, the function isn't called 'call'. Any help?
...
I have an unordered list with several divs contained inside. Each list item is created with jquery and put into a variable.
I need a way to select the :nth-child(even) of each div within the jquery object.
ele = myList.append("<li> \
<div class='name'>"+this.name+"</div> \
<div class='test'>test</div> \
</li>");
How would I use the v...
I have the following object that gets created in my javascript application.
poll_data[active_question] = {
'question': $('div.question_wrap textarea').attr('value'),
'answers': [
$('div.answer_wrap input#0').attr('value'),
$('div.answer_wrap input#1').attr('value'),
$('div.answer_...
Googling is driving me mad; all jQuery textarea counters I can find either count words, newlines or characters.
I would like to count a specific character as it gets entered in the textarea.
More specifically I would like to 'live count' the amount of @ signs that get inserted before the backend processes it. Live is nicer (with the cou...
I have the following function defined:
function _getUserMatches(url, mDist, ui) {
var dataString = 'dist=' + mDist;
var optionsHTML = 'Current Option: ' + mDist + '<br />';
optionsHTML += 'Other Options:';
optionsHTML += ' 2 <input type="radio" name="dist" id="dist" value="2" /> |';
optionsHTML += ' 5 <input type=...
Hi, I have a script that looks like this :
<script type='text/javascript'>
$(document).ready(function(){
setInterval(function() {
$.ajax({
url: "../Ps/th.php",
ifModified:true,
success: function(data, textStatus){
if(textStatus!="notmodified") {
$("#display").append(data);
alert...
I am using this jquery's lazy loader plugin to lazy load bunch of thumbnails.
What will happen if I apply lazy loader to smaller thumbnail images first,
and then dynamically change those smaller thumbnail images to something larger by changing src attribute of img.
I want to implement this zoom in/zoom out feature to thumbnail images,
...