jquery

jQuery not loading

I'm using php. When I use the jquery-1.3.2-min.js on google's server, it loads and everything runs fine. But when I try to use the one I downloaded to my server, Firebug gives me this: 1<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> 2<html><head> 3<title>403 Forbidden</title> 4</head><body> 5<h1>Forbidden</h1> 6<p>You don't have p...

How to deal with Ajax Auth errors in CakePHP

I'm using the Auth component on my pages and I would like to show a login overlay when an Ajax action is called for which the user doesn't have permission. Example: User wants to edit a jeditable field, then when the users wants to change the value, he will first get a login/register overlay. My current way is to check in the action f...

whats the easiest way to exchange row HTML in table via jquery (not drag and drop)

what's the easiest way in jquery to take the entire html for a (including the tr itself, not tr innerhtml) and swap it with another one? i'm kinda messing around with replaceWith, but that's swapping the innerHtml and i want to swap the whole TR html. seems like it should be an easy task for jquery. i'm thinking there's gotta be a wa...

Jquery - Dynamically generate string within HTML code?

Hello, I have searched various sites and haven't found anything I can extrapolate a successful answer from. Either that or my spectacle wearing is justified and I have forum fatigue. Here is my issue: I need a dynamic string within a line of HTML: <a href="#" onClick="$.scrollTo('#xxxjump', 800, {easing:'elasout'}); javascript:animate...

Show Hide div in Chrome Extension popup using jQuery

I've been trying to make an option show and hide(possibly toggle) in my browser action popup without success. The code below is the body of my popup <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="popup.js"></script> <div class="show"> <a href="#" class="showcontent">Show</a> <a href...

jQuery won't read JSON response (using $.post)

Hi All, In a nutshell, I have a form, which upon submissions, sends data to a serverside script to process a function, return data in JSON format for me to parse and spit back out onto the page. jQuery sends data to "createUser.php" via the $.post method $("#create_submit").click(function(){ $.post("/createUser.php", { c...

uploadify + jQuery 1.4 response is empty after uploadComplete

I'm using uploadify with jquery 1.4 to upload images. In the php script that uploads the files we print this: $json_response['status'] = "true"; $json_response['file'] = $_FILES; echo Zend_Json_Encoder::encode($json_response); In javascript we do (in short): $('#images_upload_file').uploadify({ onComplete: function(event, queueI...

Uncaught TypeError: Property '$' of object [object global] is not a function ??

Uncaught TypeError: Property '$' of object [object global] is not a function in line 2: $(document).ready(function() { $('#tabs > ul').tabs({ fx: { opacity: 'toggle' } }); $('#featuredvid > ul').tabs(); }); problem appears local at 127.0.0.1 only, while same code OK online! - dazzeld... any idea? ...

Error callbacks in specialized jQuery AJAX functions

I am a long-time, generally very happy user of Prototype. I recently switched to jQuery because of the massive community support, basically amounting to a unanimous choice and de facto industry standard. Since then I have not been so happy. Yes, I have read the comparison threads, and I can live without the handful of ported Ruby/Rail...

image preview doesnt work on ajax embedded links

im using a jquery image preview plugin for showing preview of my link images when having the mouse over them. http://james.padolsey.com/javascript/new-jquery-plugin-imgpreview/ it works on links with images like: <a href="http://website/1.jpg"&gt;&lt;img src="http://website/1_thumbnail.jpg"&gt;&lt;/a&gt; however, it doesnt work ...

Reset INPUT without FORM

I have INPUT element and I want to reset the previous value (not necessary original value). There are 2 ways: Save the value in another variable and pull it out again Press ESC key. But I don't want users to press ESC but click a button. So for #2, how can I create a ESC keystroke using jquery? ...

jQuery - only fires on second click when changing iframe src

I'm trying to change the src of an iframe upon submitting a form. The iframe src won't change unless I hit the submit button twice. However, if I just change the input 'type' for my submit button to 'text', it works on the first click - but obviously doesn't submit the form. <script> $(document).ready(function() { $("#form1").su...

jquery "NOW" event?

i've got a jquery image preview plugin that i use. i use it like this: $('a.preview').live('mouseover', function() { $(this).imgPreview({ preloadImages: 'true', }); }); i want the imgPreview function to be executed after an jquery ajaxcall that will insert an image in the DOM. so i wanna execute it to preload the i...

Ajax request not receiving xml from Django

I have a Django server which handles requests to a URL which will return some HTML for use in an image gallery. I can navigate to the URL and the browser will display the HTML that is returned, but I can't get that same HTML by doing an AJAX call (using jQuery) to the same URL. This is the view that generates the response: def gallery_...

Positioning jQuery dialog

I want to position my jQuery dialog x-pixels away from the right border of the browser. Is this anyhow possible? http://jqueryui.com/demos/dialog/ The position option doesn't seem to have that kind of setup, but is there any other way to do it? ...

swap or move DOM elements with jQuery through different containers

Hi, guys, I have the next HTML: <div id="Dummy" class="video"> <div class="videoDummy">Video Dummy</div> </div> <div class="bd"> <ul class="items"> <li class="video"> <a href="#" class="launch-video vid_{{VAR:vid_contentId}}"> {{module:video_imagethumbnail/contentId={VAR:contentId}}·clippingWidth=68}} </a...

How can I get jQuery to call an event handler when an image actually appears on-screen?

How can I use jQuery to trigger a callback of a JavaScript function when I scroll down and see a picture? I wish to delay loading certain images until they actually appear on-screen... Ideally, I'd be able to do something like: $('#img#').look_on() { ... So no images are loaded apart from those I have seen. ...

How do I get the height of a <DIV> not including the horizontal scrollbar using JQuery?

Hi, I am writing a jQuery plugin which makes use of two nested <DIV> elements. The outer div has a fixed width with overflow:scroll and the inner div (which is much wider) contains the content which I want to scroll around. This all works fine apart from the fact that I want to use some JavaScript (with jQuery) to set the height of th...

jquery slider and nav clashing. Help!

I am building a site that uses two jquery plugins: A Jquery Menu (that I modified a bit) and the JFlow slider. I have uploaded the page that Im having the problem here. For some reason, the file menu.js (that is the engine behind the nav bar) causes the slider to stop working. When I remove the line of code:` <script type="text/javascr...

How Can I Add a "Selected" Class Based on URL with jQuery?

I have a sidebar list of links in my wikispace theme that currently uses jQuery to apply a class to each of the sidebar links based on the URL after the .com/. You can see this being applied in the code below... <div class="WikiCustomNav WikiElement wiki"><a href="/" class="">Home</a> <a href="/Calendar" class="calendar">Calendar</a> <...