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...
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...
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...
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...
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.
...
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...
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 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
...
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 ...
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?
...
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;
...
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
...
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)....
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)
...
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...
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({
...
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...
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...
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...
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...