jquery

Blending messages in and out with control or jquery

What would you suggest, if I wanted to blend text messages in and out (fade in and out) from codebehind ? My problem is the following: I have a couple of modalpopups in which I have UpdatePanels running and when the user submits data, I want to show messages (not javascript's alert) like "Saved." as pure text, that is faded in and out, t...

Create JS execution blocking dialogs using jQuery

I have an existing web application which uses window.showmodaldialog() to show certain forms and based on the return value it executes some other JavaScripts For example: var retVal = window.showmodaldialog('...'); if (retVal==XXX) callXXX(); else callYYY(); When showModalDialog() is executed it blocks the JS execution on the ma...

Making an HTTP POST call with multipart/form-data using jQuery?

I'm trying to make a HTTP POST call with multipart/form-data , using jQuery: $.ajax({ url: 'http://localhost:8080/dcs/rest', type: 'POST', contentType:'multipart/form-data', data: 'dcs.source=boss-web&query=data&dcs.algorithm=lingo&dcs.output.format=JSON&dcs.clusters.only=true', //dataType: "jsonP", success: function(jsonDa...

Safari extension settings

Hi, I'm building a safari extension... I need to get some settings, but, messages are asynchronous, so, if I query the global page for some settings, it isn't there right away... How can I solve this?? Global page (the message is received by the injected JS script) <!DOCTYPE HTML> <html> <script language="javascript"> func...

jQuery: getting/parsing content from different sites

Hi all, I'd like to do the following: grab news from several sites, parse their content using jQuery selectors and show them on one page. How could this be done with jQuery? Thanks. ...

jQuery text() does not work before a setTimeout?

Hello all, After an Ajax request, I perform the following. $('#change_ts').text('Defaults Changed!'); //blinking part var t = setTimeout($('#change_ts').fadeIn('slow'), 500); clearTimeout(t); var t = setTimeout($('#change_ts').fadeOut('slow'), 500); clearTimeout(t); var t = setTimeout($('#change_ts').fadeIn('slow'), 500); clearTime...

What are the side effects (if any) of multiple $(document).ready() in an HTML page ?

I am using a web application framework (Symfony 1.3.6), which follows the MVC pattern. The view layer is comprised of a template decorator. The template file may also include other templates - this is what gives rise to my question. Assuming that there is a page (lets call it the 'homepage'), which is comprised of several templates - (...

How to get a position of the div? jquery

How would you get the position of a div? Here is what i got so far <script> $(document).ready(function() { $("#draggable").draggable({ grid: [50, 20] }); }); </script> <div id="drag_border"> <div id="draggable" style="width:500; height:800">Drag me</div> </div> Thank you ...

Trigger resize event on print

I have a div in which I create a chart using protovis. The div has width: 100% and height: 100% and the code to create the chart uses $('#chart').width() and $('#chart').height() to get the size of the div at render time and fill the page with the chart. I capture the resize event on the window and adjust the div and the chart so that ...

How to add more divs in jQuery

I am trying to add a new div to the page when you click on NEW DIV? How could I do this? Can someone point me in the right direction? ...

Make New Div Draggable in Jquery

I am trying to make jquery add new div and then make it draggable but i have been trying and looking on google and i can't find anything here is my code below $(document).ready(function() { $("#draggable").draggable({ containment: 'parent', handle: 'drag_border', drag: function(e, ui) { var top = ui.position.top; ...

what is the default action happening when we drag over an image ?

Hello What is the default action happening when we drag over an image ? When I drag over an image the cursor changes to a black circle with a line inside (in Firefox) I could block it by the code e.preventDefault() using jquery, but I didn't understand what is the default action happening when I drag over an image. Thanks ...

JQuery base64 function implementation

I can't figure out why is not working a jquery plugin (base64 encode decode) inside an event function. This way works: $(document).ready(function(){ data = $.base64Encode('something'); alert(data); }); But when trying to add in an event function, I get the $.base64Encode is not a function error $(document)....

converting simple pagination in javascript into jquery code

hey guys i have a simple pagination pagination code that had been writen with raw javascript codes function ChangeForumPage(e){ if(busy == 0) { switch(e) { case "Next": page = p+1; p++; break; case "Prev": if(p>1) ...

Wordpress & Fancybox - Loop issue? - fancybox keeps reloading page

Problem page: www.kendraschaefer.com/mandapop (problem with images in thin middle column) Hi, I'm working on a new Wordpress template, and I've run into an issue with Fancybox. I'm trying to get the pictures in the thin middle column of the page above to, when clicked on, pop up in fancybox with attached post data. It's mostly workin...

ASP.NET MVC - The controller for path '/non' was not found or does not implement IController.

I use the jQuery Tools Overlay plugin and I have this code here <script type="text/javascript"> var overlayElem; $(document).ready(function () { $("a[rel]").live('click', function (e) { e.preventDefault(); overlayElem = $(this); $(this).overlay({ ...

IE7 making Galleria Fullscreen do funny things with dots navigation

Hi all, My Galleria gallery seems to be working everywhere except in IE7. I have hacked at the code to make it fit the designer's vision, however, I've ended up with a strange space and some dots along the top of the gallery in IE7. I have tried everything to make it disappear while allowing the navigation to function. Wondering if an...

jQuery.css() doestn't return border-color which is set to red

Hi all! CSS: .divIm { border:1px solid red; } , and code-line var borderColor = $(this).css("border-color") returns "". What is wrong? Or would it be correct trying to get computed style if I use jQuery? Update: Below is a code which doesn't want to work as it expected. $("div.divIm").mouseover(function() { var borderColor = $(this...

ZFdebug Jquery interference

I use Zend Framework with ZfDebug (http://code.google.com/p/zfdebug/) and a plugin Base64 Encode/Decode. (http://plugins.jquery.com/project/base64) the problem is when i try to make: $(document).ready(function(){ $('#submit').click(function(e){ e.preventDefault(); data = $.base64Encode("something"); alert(data); }); }); a...

Rendering a different Javascript file in respond_to

Hi everyone, I am stuck in an (apparently) simple problem. In my event_controller I have the i_like_it action: def i_like_it @event = Event.find(params[:id]) ... # logic respond_to do |format| format.js end end In my case "i_like_it" is called with :method => PUT (it is an Ajax call, "i_like_it.js.erb" will...