I'm trying to implement this in a template where a variety of items may have the class assigned to implement the tooltip.
I have had success getting the tooltip on click only, and some success on getting the tooltip populated with ajax of the url is fixed, but I can't seem to extract the url from the link and get the content for the tooltip from that link and have the tooltip work on click rather than hover.
I had success doing something similar with dialog. I added a rel property which contains the url plus the element to load out of the link. That works. Can't seem to accomplish the same thing with tooltip. I've tried a variety of approaches and about everything Google has to offer.
I had a recent strange problem I have not encountered before.
I have a form that uses tablednd and colorbox. The main form (event) allows the user to open a detail page (tshirt sizes) in a colorbox window, and resort the table row order.
The problem is that jQuery or colorbox seems to be caching the content so when the reordered list is submitted, the MySQL query is completed, but the table shows the old order in FF11. If I reload the frame, my changes appear.
PHP Headers, Meta tags, and $.ajaxSetup({cache:false}) have no impact. IE seems to be respecting the headers and working fine, but FF refuses to stop caching the content. I am certain that is the cause, in part, because if I disable FF's cache, the form inside colorbox works fine.
The only way I could get it to work consistently in FF11 was to resort to an old method of adding a dummy url variable on the redirect after the query is executed.
Any ideas on a better solution or info on whether this is a known issue with FF11 would be greatly appreciated.
This is the PHP code I used in both the parent page and the colorbox form:
//Set no caching header("Expires: -1"); header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); header("Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0"); header("Pragma: no-cache");
I also used meta tags and tried both $.ajaxSetup ({cache: false}); and $.ajaxSetup ({async: false, cache: false}); in the parent page that calls the colorbox with no luck.
I have some code for enabling the submit button once the form is fully loaded. The button i an image button and for some reason, removeAttr refused to work, but .prop("disabled", false) did work. The thing is, removeAttr worked on a regular button, so anyone know what the deal is?
I am trying to resize a colorbox from the child iframe window. The strange thing is, the parent window via $(window).height() reports 1080, but from the child colorbox window via parent.$(window).height() reports 956. If I make a function in the parent window called getHeight which just returns $(window).height() and access it by parent.getHeight(), I get 1080, so why the discrepancy between $(window).height() and parent.$(window).height(). SHouldn't they be the same?
I have an object-embed combination for a flash swf file. I have added javascript controls for the movie.
I am successfully using the following in a function to access the movie and send the javascript commands:
if (window.document[movieName])
{
return window.document[movieName];
}
if (navigator.appName.indexOf("Microsoft Internet")==-1)
{
if (document.embeds && document.embeds[movieName])
return document.embeds[movieName];
}
else // if (navigator.appName.indexOf("Microsoft Internet")!=-1)
{
return document.getElementById(movieName);
}
I am trying to use jQuery to select the objects by determining if one of the flash properties exists. Something like:
if ($("#"+movieName).TGetProperty("/",15) != "undefined") {
return $("#"+movieName).get(0);
} else if ($("#"+movieName).children("embed:first").TGetProperty("/",15) != "undefined") {
$("#"+movieName).children("embed:first").get(0);
}
$("#"+movieName) works for IE, but nothing I have tried can get the correct movie element out of the DOM to be the equivalent of document.embeds[movieName]. I have tried quite a few combinations beyond what is in the code above like:
$("#"+movieName).children("embed:first")
$("#"+movieName+"embed:first")
$("[name='"+movieName+"']")
Any idea what the correct method is would be greatly appreciated. I have it working but the problem bugs me.
I am trying to use colorbox with media plugin (http://jquery.malsup.com/media/). The program uses ajax to load the links that make up the gallery and then opens the colorbox as a slideshow.
It works great for pictures. What I am trying to do is fill in the gap for the lack of native flash support in color box by the follwing method.
If a gallery item is an swf file instead of an image, the gallery link points to a player file instead of the image. The player file contains a link pointing to the swf file.
I am trying to use the onComplete method like this:
onComplete:function() {
if ($("#playerbox").length > 0) { // Test if the player content was loaded instead of an image
$("#playerbox").parent("div").css({"width":"400px","height":"400px"}); // Just trying to get some dimensions
$(this).colorbox.resize();
$('.cboxSlideshow_on').find('#cboxSlideshow').click(); // Stop the slideshow for a video
// I cannot seem to get the resize function to take any parameters. I've tried every syntax combination I can think of, but only resize() does anything.
I am trying to use the Cycle plugin with the corners plugin to cycle rounded corners. I am accounting for different sized images and hiding all but the first image until document ready.
Everything works until I try to use any easing affect it does not work. I have tried using easing version 1.1.1 which is used on the cycle plugin website and I have tried using the compatibility plugin on the easing plugin site without any luck. It may just be an outright incompatibility, but any help would be appreciated.
The code is:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Untitled Document</title> <script type="text/javascript" src="inc/jquery.easing.1.3.js"></script>
I have researched this a bit ad I am sure the question has been asked often, but the behavior I am getting does not seem to jive with what I am reading.
and in my script $(document).ready (below the above code but in the head) function I have:
if (typeof(DAbuttons) == "undefined") { var DAbuttons = { "up" : "type=\"submit\"", "down" : "type=\"submit\"", "update" : "type=\"submit\"" } }
but when I alert the value I see that the head code works, but it is undefined in the $(document).ready function. I have tried it with and without var in the head code, but no luck. The first instance should be a global definition, so I am at a loss how to resolve this.
Since someone will ask, the second code is delivered through a .js file and the head code is an override.