JQuery :: Minimize Portlets By Default?
Nov 21, 2011How do you minimize the portlet on form load?
View 1 RepliesHow do you minimize the portlet on form load?
View 1 RepliesI have the code below, when I put it directly in the html, I am able to drag and drop into it.When I try to add it dynamically, and I look in Firebug, the added column is identical with what I added manually in the html, yet, it will not allow me to drag and drop into it.
[Code]...
I am trying to create portlets that dynamically load their content (usinq jQuery). My first approach was to leave the header + footer + decorations of the portlet OUTSIDE of the dynamically loadable content. It worked just fine but I had to abandon that approach so that I could use the same code both for statically- and dynamically-loaded content (e.g. when no AJAX support was available). So far so good.
Now to my problem: I use the following code for loading my dynamic content
The loading works fine, but after the dynamic content has been loaded I can not seem to get access to it using jQuery!
Short description: Line 3 clears the content (I know! There are better solutions!) Line 4 loads the content Line 6 dumps the data on the console; this is for debuging only, so that I can establish that the correct content is loaded
After the data is properly loaded I did expect to be able to find it by traversing the DOM tree in traditional jQuery fashion (like in Line 10). However, dumping the contents of the 'tag' shows it containing no content at all; it is empty even though the browser renders the expected new result. I thought: Well! The browser holds two copies of the DOM tree; one that is the original page and one that is the modified content used for rendering". Therefore I attempted to manipulate the loaded content within the function (Line 8). The content is visible there, that I have established in Line 6. But I do not know how to access it jQuery-style.
(Why am I trying to modify the loaded content? I want to inject a title row with various decorations and clickable content.)
how to set a cookie for this jquery script so that on page refresh it remembers the layout the user made? [URL]
View 1 Replies View RelatedI 've try to enlarge an image with a click and then downsize again with another click.
I use the following jQuery
code:
$(".wpBilderliste img")
.click(function() {
$(this).animate({width: "593px"}, "slow")
.click(function(){
[Code].....
I saw minimize/restore pluign for jquery dialog, I need one for a table is there anything avaliable ?
View 1 Replies View Relatedthis is the code i get the window size (width) when the page is ready.
Code:
$(document).ready(function(){
var height_window = $(window).height();
[Code]....
ideally, i hope to get the window size as well when you make the window smaller by dragging... what event should i be using then??
this is the implimentation of the entire code, [URL]
I am looking for a way to put all CSS values on my selected elements back to its default. I was wondering if anyone has maybe done this before and if not has any idea's to get me started.
The idea is that when I use for example:
The elements within .setDefault will return to its default font/color/height/width etc... so basically all posible values.
I am developing a site for my client in wordpress. According to clients needs I have to add 6-7 jquery instances into a site. means I need to import jquery.js file for each of JQuery effect such as menu, slider, scrooler, tabs, buttonsinto a site. Because of this site loading time is affected and I need to use noconflict() function to make jquery variable separate for each of JQuery effect. I need help to improve site loading time by minimizing importing of jquery.js file. but I need to keep all the effect as before.
View 8 Replies View RelatedI've implemented the following script: http://www.cross-browser.com/x/examples/drag1.php
all works perfectly, however i just need to know how i could also add a maximize function in order for a div to cover the whole webpage..
I'm writing a web server and an Ajax-y web UI for an embedded system. My server is just plain dumb and quite resource constrained and right now I have code in the server to skip over all the POST header fields. I'd rather not use bandwidth to send them and CPU to skip them. Can I minimize my request header? I was looking to do something like:
req = new xHttpRequest();
for (f in req.header) {
if (f != "Content-Type:') {
req.header[f] = null;
}}
But I haven't found a reliable way to get the header fields. Maybe I haven't looked hard enough. Pointers...?
I want the div to start out completely minimized at 0% height and then when I click the button that calls the function it should increase the size to 100%, once it is maximized I want it to set the height back to 0% when the button is clicked again. Heres what I have so far. I can get it to minimize and maximize itself but I can't get the height set correctly.
<SCRIPT language="javascript">
var y = 100;
var q = 5;
var f = 0;
[Code]....
How can I capture the maximize and minimize of a browser? It is possible to capture this events? I'm searching the web and I didn't found any results. I want to be know if the user maximize/minimize the browser ?
View 1 Replies View RelatedCode... Check out this picture.. i want to make one of my lists to be shown in this way..
whenever you click the '+' sign, the products under the main products will be displayed, and when you click the '-' sign, the products under the main products will be hidden.
How to remove the close(x), minimize and maxize buttons on the browser?.
View 4 Replies View RelatedI'm maximizing display space on a touch screen using chromeless windows but I need to minimize the screen with a button. Is there a way to do this?
View 1 Replies View Related<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
[Code]...
I'm able to set default value in text box using jqury but don't know how to set default value in file upload control. For filling textbox I'm using the following code:
$("#TextBox1").attr("value","Default value");
set fileupload control value using jquery?
I have this simple code for change combos based on selection.
$("#manufacturer_id").change(function(){
$.ajax({
url: 'index.php?route=catalog/product/getConsignaManufacturer&token=<?php echo $token; ?>&manufacturer_id=' + $('#manufacturer_id').val(),
[Code].....
This works perfectly. Now the mail combo have a option value="0" with title "Please select one" so if not change happen then the second combo never is activated. How when the user select the first option "Please select one" in the main combo (#manufacturer_id) I can disable the second combo?
I need to know how do I select the last tab using JQUERY.
For what I have readed you need to pass the index of the tab you want to select. But Im doing dynamic tabs, so the index might not always be the same.
I have a form with a input text field, a link, when I click the link gets the value of the field, but
as the field has a default value it gets that even if the user fills something else.
[Code]...
I cannot work out why this doesn't work.
$(document).ready(
function(){
// Actual jQuery goodness that moves the captions
// Set the default value for the caption
$('.boxcaption').live('click',
function(){
console.log(this);
});
});
When I run the following and click on a .boxcaption element. It returns the this value 15 times, once for each .boxcaption that is on the page. I only want to return one value, which is the one I have clicked on.
i want to clear the default value of textbox, i wrote this code,
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
[Code]....
I have the following function in order to implement a datepicker:
$(function()
{
$("#DataVariazione").datepicker({
[code]....
I use this snippet to remember the state of a toggle. But i want the default state to be hidden. How can i accomplish this? I added "display:none;" to .toggle_container but this isn't working.
$
(
".toggle_container"
).
[Code].....
I have a problem that I'm able to set default value in text box using jqury but don't know how to set default value in file upload control.For filling textbox I'm using the following code:
$("#TextBox1").attr("value","Default value");