Resize CFWindow when reloading
I have a 2 pages, the first is a thumbnail list page which creates a cfwindow of the second page (a large thumnail with the same images underneath it).
When I select one of the thumnails in the cfwindow, it refreshes the page, takes the url information and calls a query to retrieve the thumnails, and set the fullsize image to the one clicked.
Here is a cfwindow looks like to give you a better understanding
(please excuse the beautiful skinning I have done)..
My problem
My images are different sizes so I will need to resize the cfwindow everytime I reload it. I have tried these attempts
setContentSize() & resizeTo(). Now I am using this in my cfwindow, and when i created my cfwindow I called it 'fullimage' I would assume, that I could use 'this' or 'fullimage' as the name of my object.
<script language="JavaScript">
resizeWindow = function(width,height){
//Get window object
myWindow = ColdFusion.Window.getWindowObject(this);
//use the setContentSize function to resize the window.
fullimage.setContentSize(width, height);
</script>
And then on the body tag I do this
<body onload="resizeWindow('<cfoutput>#url.width#</cfoutput>',
'<cfoutput>#url.height#</cfoutput>')">
Instead of reloading the window every time a thumbnail is clicked, why not load all the images into an array on the page load, then use Javascript to a) load the first image by default, and b) dynamically load the respective larger image when a thumb is clicked. This way, you can get all the image dimensions at once and size the window for the largest one. I believe DreamWeaver has a built-in template for pre-loading the images.
^_^
Similar Messages
-
Urgent: Gif animation shows only the last frame when reloaded
I use ImageIcon to show gif animations on screen. I want to use only non-looping gif animation files.
Always when I show a gif animation for the first time it runs correctly through all the frames.
However when reloading later the same gif animation only the last frame appears. I want to see all the frames of the animation, not only the last frame.
So for the first showing of the animation this works well:
icon = new ImageIcon("first_animation.gif");
label = new JLabel();
label.setIcon(icon);Then I show another animation and also it works well:
icon2 = new ImageIcon("second_animation.gif");
label.setIcon(icon2);Now I would like to show the first animation again but only the last frame of that first animation appears on screen:
label.setIcon(icon);And even this alternative way to refresh does not work:
icon = new ImageIcon("first_animation.gif");
label.setIcon(icon);
How can I reload the first animation again so that it shows all the frames not only the last frame???
I have tried for ex. commands updateUI(); and setImageObserver but they don't seem to help.
I am only a novice so...
Please I would really appreciate your detailed advice what lines I should rewrite in my code and how?
Thank you very much!!By flagging your question "urgent", you are implying that either your question is more important than other people's questions, or your time is more valuable than mine (or someone else's answering questions here). Both are not true.
-
Quicklook does not work with WMV files and quick look no longer maintains resized views when viewing from a folder using the up/down arrows. Any fixes?
Same problem here...
-
Running into the following problem UC540 crashes when reload command is issued the following message appears: Unexpected exception to CPU: vector 400, PC = 0x0
Tried the following steps:
installed ios uc500-advipservicesk9-mz.151-4.M5
installed ios uc500-advipservicesk9-mz.151-2.T4
formatted flash card erased nvram rebuild the uc540 with cca 3.2 used pack 8.6.1
inserted new flash card installed ios uc500-advipservicesk9-mz.151-4.M5
Nothing seems to fix the problems is there anything else i can try?
Attached crash log.Hello, I am managing two devices with the same IOS, but I cannot understand why one of my boxes by surprise begin with exact the same problem, now I am afraid to restart the other box because is in production finally, working perfect.
I am trying to understand the problem to fix, but really I can’t understand.
Checking IOS in both boxes with the command
"verify flash:uc500-advipservicesk9-mz.151-4.M5"
Both UC show the same results
Embedded Hash MD5 : 8027DE0C732BA0E276AA843102F53529
Computed Hash MD5 : 8027DE0C732BA0E276AA843102F53529
CCO Hash MD5 : 9433B3EEC2AC1D8FED8ED17642ADB02C
I find this document:
http://www.cisco.com/en/US/products/sw/iosswrel/ps1828/products_tech_note09186a00800a65d1.shtml
But...I thought it no say so much.
Please, if any person can help, I should to continue looking for solution, if I find any effective answer, immediately I will comment here. -
Resize datafile when database is mount
Hello,
I need resize datafile when database is mount not open(I recover database).
Is it posible?Try making the tablespace offline, opening the database and resizing the datafile. After you resize the datafile, recover the tablespace or just the datafile.
In Oracle documentation: Backup & Recovery Guide, you can find more details of these options:
=>RECOVER TABLESPACE Statement
RECOVER TABLESPACE performs media recovery on all datafiles in the tablespaces listed. For example, enter the following at the SQL prompt to recover tablespace TBS_1:
RECOVER TABLESPACE tbs_1
The tablespaces must be offline to perform the recovery. Oracle indicates an error if none of the files require recovery.
=> RECOVER DATAFILE Statement
RECOVER DATAFILE lists the datafiles to be recovered. For example, enter the following at the SQL prompt to recover datafile /oracle/dbs/tbs_22.f:
RECOVER DATAFILE '/oracle/dbs/tbs_22.f'
The database can be open or closed, provided that you can acquire the media recovery locks. If the database is open in any instance, then datafile recovery can only recover offline files.
Hope it helps.
Eliane -
Show resize cursor when mouse hovers edge of window?
When I'm not using the standard window chrome, is there an easy way to show the resize cursor when the mouse hovers a window edge?
thanks, that's the component I was looking for (assuming I can now change the fonts, colour etc)
I have done the following and it kind of works: it should highlight the text and show the tooltip. However, it kind of gets stuck every now and then...two things: it takes some time before the tooltip appears (1 sec): is there a way to make it immediate, simultanous to the highligh? also, I have a few Jtextfield, as you may remember..as I hover the mouse over each of them, it all works fine, but when I go back to a jtextfield previously hovered over and highlighted, nothing happens, until I randomly click around and then works again. Any ideas? thanks a lot
myJTextField.addMouseListener(new MouseAdapter(){
public void mouseEntered(MouseEvent e) {
((JTextField) e.getSource ()).requestFocus();
((JTextField) e.getSource ()).selectAll(); // highlight the text
((JTextField) e.getSource ()).setToolTipText("text");
-
Viewer Auto Resizes Columns – when too many columns
Hi Guys,
I’ve created a report in Desktop and am viewing it through Viewer (4.1). The report itself is a simple ‘table’ report with quite a lot of columns. (that’s where my problem comes in). I’m trying to tidy it up (mostly column X), therefore have wrapped a few columns in Discoverer Desktop all should look good….right?… well not quite ;-(
When viewing the Report in Viewer, Viewer has automatically resized or shrunk the columns. I have 24 columns in the report and even after Viewer has done it’s own resize to my columns, I still need to use the scroll bar to view columns to the right. So what was the point of Viewer doing that in the first place? Anyways, column X was originally word wrapped and expanded to include a lengthy description, however after being “Viewered” it is now the width of the heading text itself. Data within this columns is still wrapped, but by the size of the column heading.
I’ve noticed that if I start taking columns out one by one, Viewer will resize and increase the column size by a tiny amount. So to be able to display column X as required in Viewer, I’d have to take out 18 columns to be left with 6, which would then show Column X as the right size.
Please tell me if there is any workaround or settings that can be amended in the Pref.txt file?
Thanks,
Lance
Message was edited by:
Lance BothaHi Lance
There is nothing you can do in 4i to control this behavior, one very good reason to upgrade.
Discoverer Viewer will resize its columns in an attempt to fit them on a single page. It does this very well when the number of columns allows this. When you have more columns than can fit into a single page you will get multiple pages. If you reduce the headings for some of the columns are you able to get it to compress into a single page? If not, I fear you cannot do more.
Best wishes
Michael -
Are captions and tags in backup when reloading after a computer crash?
I have Adobe photoshop 11. I have backed up my photos in an external hard drive and also on carbonite. If my computer crashes and I need to reload my photos back onto my computer will the captions and tags still be there? I was wondering because when I just look at my photos on the hard drive it does not look the captions are there. Is there a special way to save them so they are there?
If you use the backup command in the organizer file menu, all your media files will be saved, as well as the catalog which contains all the information about your media files : their location (path), exif camera data, your tags, captions etc. The restore command in the organizer will let you recover everything where you want to (same computer or not).
If you are using any other external backup solution, only your media files will be saved, not the catalog and its data, unless you also backup the catalog; it's a folder containing the database and associated files. You find its location in the Help, System Info menu.
You could also use the file menu of the organizer to 'save metadata to files', which would write the tags and captions in the header of the files themselves. If you reimport those files in the organizer, tags and captions will be recovered. -
Why does Fireworks CS5 keep resizing images when I paste them?
I am having a problem in Fireworks CS5 where images that are copied and then pasted into a new document automatically re-size and become either very tiny or very large.
I have taken some screenshots to show this more clearly: (this website only allows me to upload images of 450 pixels across so they are not too clear)
Image 1: I have taken a large image and reduced its size to 100x100 pixels (highlighted in red).
Image 2: I have created a new document which is 100x100 pixels in size.
Image 3: I have copied the image from Image 1 (control + C) and then pasted it into Image 2 (control + V). The image was 100x100 and the new image was 100x100 yet when I paste the image it suddenly becomes 313x313 in size and is too large for the new image. Sometimes it becomes tiny when pasted and is too small for the document.
Can anyone help with this matter? Perhaps I am missing something obvious, but I have tried searching for solutions and tried a range of methods (different kinds of copy and paste etc), but nothing seems to help. Please let me know what I am missing!
Thank you for your help! As I said I am using Fireworks CS5. I am using Windows 7. If there is anything else you want to know just let me know.I don't know what could be causing the copy/paste resizing issue, but here are a couple of ideas that may help with your workflow:
You can create a new document for animation by choosing File > Open..., selecting multiple images, and clicking the "Open as Animation" option. This will place each image file into its own State.
Consider using commands from the States panel fly-out menu—e.g., Duplicate State, Copy to States, etc.—to move objects from one state to another.
Other commands to copy objects within Fireworks include Edit > Duplicate and Edit > Clone. These do not involve the clipboard and may sidestep the resizing problem.
Sometimes with bitmaps, I like to convert them to symbols, as it allows me to resize the bitmap freely without losing the original resolution. (This might introduce extra steps, but it could allow you to correct the image size after it's been pasted incorrectly.)
It's a longshot, but I wonder if it would help to empty the clipboard contents once in a while, to clear out old data. -
Auto resize window when opening image.
How do you make the whole window automatically resize to fit your screen without covering the palletts? Everythime I open an image the window is hidden by the pallets. I then have to move the pallets out of the way, resize the window to fit my monitor, move the pallets back and Im ready to go. This is such a pain. I want the tools pallet to be on the left, the action and history, etc. on the right, and I want the window with all my image tabs to fit between those from top to bottom and from side to side automatically. I never had this problem in earlier versions. I have cs5.
Thank you!I don't need the image to be full screen, just the window. And the window is not technically full screen, because you can still see the window borders and the panels. I want the image window with the different image tabs to open as big as my screen. I want the edges to come right up next to my panels and the bottom to go down to the bottom of my screen. For example: I use Mac and when you close a finder window and open a new one, it will open at the same size that you closed it. If you resize it, lets say, to fill your entire screen, close it and then reopen it, it will open the same size as you closed it. I don't want photoshop to open new image windows to the same dimension as the image. I want a grey screen to cover my entire monitor just like in CS3 and before. I really like the tabs, but I want the window to open bigger with grey space arround the image.
-
Group not resizing correctly when contents are moved programmatically
Hi there,
My apologies in advance if this is a known issue. I searched the forums but I was unable to find a discussion about this topic. The issue we are running into is when we programmatically move the contents of a Group which is in turn enclosed within a Scroller beyond the Scroller's limits the position of the Group within the stage is incorrectly calculated. This will cause mouseEvents in the area beyond the Group's limits to be "ignored" among other problems.
I have created an application to illustrate the problem, we are in 4.1:
<?xml version="1.0" encoding="utf-8"?>
<s:Application
minWidth="955" minHeight="600"
xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx">
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
<fx:Script>
<![CDATA[
import mx.controls.Alert;
private function onGroupClick(event:MouseEvent):void
Alert.show("It works");
private function onButtonClick(event:MouseEvent):void
rect.x += 500;
rect.y += 500;
]]>
</fx:Script>
<s:Scroller
width="100%" height="100%">
<s:Group id="myGroup"
width="100%" height="100%"
click="onGroupClick(event)">
<s:Rect id="rect"
x="0" y="0" width="10" height="10"/>
</s:Group>
</s:Scroller>
<s:Button
label="Move Rectangle"
click="onButtonClick(event)"/>
</s:Application>
Steps to reproduce:
Click anywhere in the screen - notice that an alert that reads "It works" shows up.
Click on the "Move Rectangle" button enough times for the coordinates of the Rectangle to exceed the limits of the Scroller, hence producing scroll bars.
Scroll all the way to the right and to the bottom.
Click right next to the right bottom corner - notice that no alert is displayed. The reason is the Group has not resized correctly hence we are actually clicking outside the Group. Resizing your browser window for example will cause the Group to resize and events will again "work". FlexSpy will make things pretty apparent as well.
Any pointers regarding where this bug lives in the source code or suggestions on how to fix this would be greatly appreciated, this issue is causing us a lot of pain.
Thanks in advance!!
~ TheMadPenguinThanks for logging this in the bugbase: https://bugs.adobe.com/jira/browse/SDK-29112. The latest comments there say:
Reproduced in 4.0.0, 4.1.0
Confirmed fixed in 4.5.0.19764
A workaround for the 4.0.0 and 4.1.0 release would be to put the click handler on the Scroller instead of the viewport.
Note: This bug seems to be fixed, but the fact that the width/height of the Group doesn't change is still consistent (and correct). Group has a concept of size and content size, scrolling is enabled when the content size is larger than the size (with Group.clipAndEnableScrolling set to true which Scroller sets automatically).
See this spec for more details: http://opensource.adobe.com/wiki/display/flexsdk/Spark+Viewport
Hans has a good article here: http://hansmuller-flex.blogspot.com/
Here's a simple example that demonstrates width does not change:
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark">
<s:Scroller width="100" height="100">
<s:Group id="viewport">
<s:Rect width="100%" height="100%">
<s:fill><s:SolidColor color="red" /></s:fill>
</s:Rect>
<s:Button id="btn" label="out of view" y="150" click="btn.y += 50" />
</s:Group>
</s:Scroller>
</s:Application>
You might expect that this example should have a red background behind the Button, but it does not. That is because width/height of 100% on the Rect is 100% of the width/height of the viewport, not the contentWidth/contentHeight.
One way of getting the behavior where the Rect expands across the whole content size would be to bind to contentHeight:
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark">
<s:Scroller width="100" height="100">
<s:Group id="viewport">
<s:Rect width="100%" height="{viewport.contentHeight}">
<s:fill><s:SolidColor color="red" /></s:fill>
</s:Rect>
<s:Button id="btn" label="out of view" y="150" click="btn.y += 50" />
</s:Group>
</s:Scroller>
</s:Application>
Note: You shouldn't specify or change the size of the viewport Group inside of a Scroller. The Scroller component manages the size of the Group in a specific way and if the Group has a size that conflicts with that then you can get into a bad situation that might cause infinite loops. Notice in my example the viewport Group has no size set on it.
Thanks to SDK QE for the info!
-Heidi -
How to resize window when stage style is undecorated ?
Hi,
I have one undecorated window and I want to make it resizable by using mouse.
How can I do it ?
If I use decorated window then it allows me to resize it.
Thanks.Just make a draggable shape and resize the stage depending on the drag action.
Here is a simple stage illustrating that and moving the window too.
Note an old bug already seen in 1.1 at least: when dragging such window, on WinXP, sometime it seems to "jump" to one bound of the screen, then it goes back (in a flicker) to current position. Strange and annoying.
def resizeHandle: Path = Path
var origX = bind scene.width
var origY = bind scene.height
var startW: Number; var startH: Number;
elements:
MoveTo { x: bind origX, y: bind origY }
LineTo { x: bind origX - 50, y: bind origY - 30 }
LineTo { x: bind origX - 30, y: bind origY - 50 }
fill: Color.CORAL
stroke: null
blocksMouse: true
// Resize with the arrow
onMousePressed: function (evt: MouseEvent): Void
startW = stage.width;
startH = stage.height;
onMouseDragged: function (evt: MouseEvent): Void
stage.width = startW + evt.dragX;
stage.height = startH + evt.dragY;
var keyHandler: Rectangle;
def titleBar: Stack = Stack
var title: Text;
content:
keyHandler = Rectangle
width: bind title.layoutBounds.width * 1.2
height: bind title.layoutBounds.height * 1.3
fill: Color.web('#33FF55')
blocksMouse: true
// We can drag the stage by dragging the title bar
onMouseDragged: function (evt: MouseEvent): Void
stage.x += evt.dragX;
stage.y += evt.dragY;
onKeyReleased: function (evt: KeyEvent): Void
if (evt.code == KeyCode.VK_ESCAPE)
FX.exit();
println(evt);
title = Text
content: "Resizable and Draggable Window"
font: Font { name: "Arial Bold", size: 24 }
fill: Color.web('#331122')
var scene: Scene;
def stage: Stage = Stage
title: "Undecorated Stage"
style: StageStyle.UNDECORATED
scene: scene = Scene
width: 500
height: 500
fill: Color.GOLD
content:
Ellipse
centerX: bind scene.width / 2
centerY: bind scene.height / 2
radiusX: bind 0.45 * scene.width
radiusY: bind 0.45 * scene.height
fill: Color.AQUA
Circle
centerX: bind scene.width - 55
centerY: bind scene.height - 55
radius: 50
fill: Color.PURPLE
titleBar,
resizeHandle
keyHandler.requestFocus(); -
Safari3 crashes (win/beta) when reloading the page with a cookie filled in
i subscribe to wunderground weather, and everytime i try to login, safari crashes. i go to the site, punch in my data/userID etc, and reload and BAM it's sending an error report to apple.
hopefully someone can take a look at this. i'll keep an eye on the topic to see if anybody's got a workaround (i'v heard of suggestions as to deleting folders and renaming folders and all that business). safari izzz fast, i gotta give ya credit on that front. and i only use safari when i'm on the mac. but with windows, you got some work left before it's ready for primetime as they say.I'm having the same problem and have no idea what's up. The only other time this happens is when I print out a receipt. As soon as I exit, as in the case of Weather Underground, or hit print, as I did today to get a receipt for a subscription renewal, I get the "send error message" and Safari crashes.
-
RANT! : still no resize option when using drop zones!
Picture this: you drop a photo into a drop zone. But it's a little too big, and doesn't fit well. So, in a perfect world, you right-mouse-click, say resize, and some handles come up and you can resize on the fly.
I really don't understand why this option isn't in yet. It seems so obvious and usefull.
Really... sometimes the software is too simple for it's own good!!! grrr...There is a way around this.
In iPhoto, crop the image to a more suitable width, but make the crop higher than it is wider (keep the full height).
Now, when you drop the cropped photo on a drop zone you can at least move it up or down.
I do it all the time, or I deliberately take and/or use vertical photos.
Regards
Santa -
Resizing output when exporting to Flash/SWF
Does anyone know if there is a way to resize the output when exporting a Keynote presentation to Flash/SWF? When you export to QuickTime, you can adjust the output size. I can't find a way to do that when exporting to Flash.
I think that's because the Flash output displays at whatever size you want when you embed it into a website. For example, you can't create a Keynote presentation smaller than 200x200. BUT, if you create at 200x200 and then, in your embed statement, change it to 100x100, then that's how it will display on your web page.
Maybe you are looking for
-
I have a problem with my apple tv, I can watch my music of my mac in the TV but I cant transmit music or video from my mac to my apple tv because not appear the logo Apple Tv in my itunes. Somebody help me?
-
Logic 9.1.6 scrolling causes CPU overload
Since I've upgraded to Lion and 9.1.6, everytime I use my Mighty mouse to scroll, the CPU meter goes to full, no matter what I'm doing. I'm on a Nehalem 2x2.26 with 12gb of RAM, and Logic has been rock solid until this. Any thoughts? Thanks, - Kent
-
How do I play games on classic environment?
Hello! I'm trying to run classic environment on my iMac so that I can play a 1996 game, Zork Nemesis, and I have found something that seems to work but it's WAY to technical in what I need to get it to work and what the installation process is. Can
-
Smart album to show untagged photos
Since I won't be able to tag 3000+ photos except in one heck of a marathon sitting, I want to define a smart album that shows those pictures that do NOT have keywords assigned. That way, as the pictures get tags added, they should fall out each time
-
Error during solution activation
Hi gurus, I have been trying to activate a baseline solution for china (UTL_CN_1603) but each time I try it always give me this error : ECATT /SMB12/V_TCN41_O001 in BB 884 (CN) of scenario CN_884 not exist in system. Please what do I do? I have gone