Jump menu + cfgrid image width height problems

2nd day and no answer of anyone, please help! Just to simple
questions:
1. HOw could I build a cfselect jump menu, since JavaScript
does not work with cfforms?
2. Does anyboy knows why the thumbnail inside a cfgrid does
crop beyond 75px x 70px dimension? HOw could I put a 120px x 94px ?
Thank you!

once I removed the "auto" setting everything worked just fine, the images came in at the proper pixel size, and the thumb nail images where proportional in size seeing how I had a height set of 40 px the width took care of itself.
Any Ideas on where I can find a good tutorial on client login and password to access pages with their content?

Similar Messages

  • [CS2]How to get the Image Width & Height using JS (ILLUSTRATOR CS2)

    Hi,
    How to get the Image width & height of an Image using javascript .Im using Illustrator CS2.
    Any sample code
    Regards
    MyRiaz

    you can reference the dimensions of a loading image (or swf)
    by referencing the target movieclip's dimensions AFTER loading is
    complete. ie, use preloader code or the onLoadInit() method of a
    moviecliploader listener.

  • Image width/height  without loading file into JVM?

    How do we find the width/height of an image, without loading the image into the JVM? Also it would be nice to to obtain the height/width without creating any new objects(from which i would obtain the height and width).
    Thanks
    Tapan
    Edited by: tapanmokha on Jan 27, 2009 8:03 AM

    ImageInputStream imageStream =
            ImageIO.createImageInputStream(location);
    java.util.Iterator<ImageReader> readers =
            ImageIO.getImageReaders(imageStream);
    ImageReader reader = null;
    if(readers.hasNext()) {
        reader = readers.next();
    }else {
        imageStream.close();
        //can't read image format... what do you want to do about it,
        //throw an exception, return ?
    reader.setInput(imageStream,true,true);
    int imageWidth = reader.getWidth(0);
    int imageHeight = reader.getHeight(0);
    reader.dispose();
    imageStream.close();

  • Use cs4 make loader load flex swf width/height problem

    hi,all:
      i use cs4 make as3 loader from SharedObject.getLocal, load flex make swf file, so width/height is not Ok
    load cs4 make swf file is Ok,
    why?
    as3code:
    // copy right china summer xiatian qq 11602011
    package{
      import flash.net.SharedObject;
      import flash.utils.ByteArray;
      import flash.display.*;
      import fl.controls.*;
      import flash.net.URLRequest;
      import flash.net.URLRequestMethod;
      import flash.system.ApplicationDomain;
      import flash.system.LoaderContext;
      import flash.net.*;
      import flash.utils.*;
      import flash.external.ExternalInterface;
      import flash.system.*;
      // http://as3corelib.googlecode.com/svn/trunk/src/com/adobe/crypto/MD5.as
      import com.adobe.crypto.MD5;
      import flash.events.*;
          public class MyCacheLoader extends Sprite
              public function MyCacheLoader()
                  Security.allowDomain("*");
                  Security.exactSettings = true;
                  function getStr(s:String):String
                     return ExternalInterface.call("(function(){return window['" + s + "'];})")  || '';
                  function MyLog(s:String):void
                      // ExternalInterface.call("(function(){var o = document.getElementById('myLog');o.value += '" + s + "' + '\n\n';})");
                      ExternalInterface.call("(function(){top.alert('" + s + "');})");
                      // myTestTxt.text = myTestTxt.text + s + "\n\n";
                  var bLoadSwf:Boolean = true;
                  var parm:Object = loaderInfo.parameters;
                  // parm["u"] = "/xuicore/test/myTest.swf";
                  // parm["v"] = "4.4";
                  var szUrl:String = parm['c'] + "/CMHS?jsessionid=" + parm['s'] + "&CMHS=GetOutSpFile&rmpath=rs/&rmf=" + parm["u"] + ".swf",
                      szVer:String = parm["v"], szName:String = parm["u"];// "X" + MD5.hash(parm["u"]);
                  var loader:Loader = new Loader();
                  var so:SharedObject = SharedObject.getLocal(szName);
                  loader.x = loader.y = 0;
                  addChild(loader);
                  function showSwf(byteArray:ByteArray):void
                    // MyLog("开始显示处理: " + byteArray.length);
                    if(0 >= byteArray.length)return;
                    bLoadSwf = false;
                    // loader.visible = false;
                    configureListeners(loader.contentLoaderInfo);
                    var context:LoaderContext = new LoaderContext(false,ApplicationDomain.currentDomain);
                    // context.allowLoadBytesCodeExecution = true;
                    loader.loadBytes(byteArray, context);
                  function displaySwf():void
                     var oData:Object = so.data;
                     // MyLog([szVer, oData.version].join(" = "));
                     if(szVer == oData.version)
                       showSwf(so.data.swf as ByteArray);
                     else downloadSwf();
                  var ldr:URLStream = new URLStream();
                  function downloadSwf():void
                      bLoadSwf = true;
                      // MyLog(szUrl);
                      var ur:URLRequest = new URLRequest(szUrl);
                      ur.data = new Date().getTime();
                      ur.method = URLRequestMethod.POST;
                      configureListeners(ldr);
                      ldr.load(ur);   
                  function configureListeners(dispatcher:IEventDispatcher):void {
                      dispatcher.addEventListener(Event.COMPLETE, completeHandler);
                      dispatcher.addEventListener(HTTPStatusEvent.HTTP_STATUS, httpStatusHandler);
                      dispatcher.addEventListener(Event.INIT, initHandler);
                      dispatcher.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
                      dispatcher.addEventListener(Event.OPEN, openHandler);
                      dispatcher.addEventListener(ProgressEvent.PROGRESS, progressHandler);
                      dispatcher.addEventListener(Event.UNLOAD, unLoadHandler);
                      if(!bLoadSwf)dispatcher.addEventListener(Event.INIT,loaded);
                  function removeListeners(dispatcher:IEventDispatcher):void {
                      dispatcher.removeEventListener(Event.COMPLETE, completeHandler);
                      dispatcher.removeEventListener(HTTPStatusEvent.HTTP_STATUS, httpStatusHandler);
                      dispatcher.removeEventListener(Event.INIT, initHandler);
                      dispatcher.removeEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
                      dispatcher.removeEventListener(Event.OPEN, openHandler);
                      dispatcher.removeEventListener(ProgressEvent.PROGRESS, progressHandler);
                      dispatcher.removeEventListener(Event.UNLOAD, unLoadHandler);
                      if(!bLoadSwf)dispatcher.removeEventListener(Event.INIT,loaded);
                  function loaded(e:Event):void{
                          loader.x = loader.y = 0;
                          loader.content.y = loader.content.x = 0;
                          var s:String = "", k:String, obj:Object = loader.content;
                          // for(k in obj)s += k + " = " + obj[k] + ";";
                          // obj.width = "100%", obj.height = "100%";
                          // MyLog([obj.width, obj.height].join(", "));
                          loader.x = -180;
                          loader.scaleX = 1.83;
                          loader.scaleY = 1.05;
                          // loader.content.height = stage.stageHeight;
                          // loader.scaleContent = true;
                          // loader.content.width = stage.width,loader.content.height = stage.height;
                          // loader.content.stage.stageWidth = stage.stageWidth,loader.content.stage.stageHeight = stage.height;
                          // loader.content.stage.scaleMode = "exactFit";
                          setTimeout(function(){
                            // loader.x = loader.content.x = 0;
                            var fullWidth:Number = loader.content.width;
    var fullHeight:Number = loader.content.height;
    var stageWidth:Number = loader.content.loaderInfo.width;
    var stageHeight:Number = loader.content.loaderInfo.height;
    var fixOffStageScaleX = fullWidth / stageWidth;
    var fixOffStageScaleY = fullHeight / stageHeight;
                            loader.content.scaleX = fixOffStageScaleX,loader.content.scaleY = fixOffStageScaleY;
    // loader.content.width = stage.width * 1.59;loader.content.height = stage.height * 1.15;
                            // loader.content.width = stage.stageWidth,loader.content.height= stage.height;
                            // loader.width = stage.stageWidth,loader.height= stage.height;
                            // loader.content.stage.scaleMode = "exactFit";                       
                          }, 3000);
                  var _byteArray:ByteArray = new ByteArray();
                  function completeHandler(event:Event):void {
                      if(bLoadSwf)
                          if(0 < _byteArray.length)
                             so.data.swf = _byteArray;
                             so.data.version = szVer;
                             try{so.flush();}catch (e:Error){}
                             removeListeners(ldr);
                             showSwf(_byteArray);
                          else removeListeners(ldr);
                          bLoadSwf = false;
                          ldr = null;
                      else
                          removeListeners(loader.contentLoaderInfo);
                          // loader.visible = true;
                          // loader.content.width = (height / loader.content.height) * loader.content.width;
                          // loader.content.height = (width / loader.content.width) * loader.content.height;
                          if(isNaN(loader.content.width) || 0 >= loader.content.width)
                            setTimeout(function(){
                             loader.content.width = stage.stageWidth;
                             loader.content.height = stage.stageHeight;
                          }, 4000);
                          // width=loader.content.width;  height=loader.content.height;
                          // MyLog("显示处理完毕");
                  function httpStatusHandler(event:HTTPStatusEvent):void {
                      // MyLog("httpStatusHandler: " + event);
                  function initHandler(event:Event):void {
                      // MyLog("initHandler: " + event);
                  function ioErrorHandler(event:IOErrorEvent):void {
                      // MyLog("ioErrorHandler: " + event);
                  function openHandler(event:Event):void {
                      // MyLog("openHandler: " + event);
                  function progressHandler(event:ProgressEvent):void {
                      // MyLog(bLoadSwf + ": progressHandler: bytesLoaded=" + event.bytesLoaded + " bytesTotal=" + event.bytesTotal);
                      if(bLoadSwf)
                        var urlStream:URLStream = event.currentTarget as URLStream;
                        while (urlStream.bytesAvailable)
                           urlStream.readBytes(_byteArray, _byteArray.length);
                  function unLoadHandler(event:Event):void {
                      // MyLog("unLoadHandler: " + event);
                  displaySwf();
    flex code:
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" horizontalAlign="left" layout="absolute"
    paddingLeft="2"
        paddingTop="2"
        paddingBottom="2"
        paddingRight="2"
        autoLayout="true"
        width="100%"
        height="100%"
    backgroundGradientColors="[0x000000,0xBAD3F9]"
    ">
    </mx:Application>
    must:
    width="100%"
    height="100%"

    loader from SharedObject.getLocal, use SharedObject.getLocal cache bytearray swf data is ok,
    so, Can be seen as not with urlstream
    loader.loadBytes(byteArray, context);
    as3 cs4
    flex sdk 3.3.0.4852

  • WebcamPublisher Hidden width/height Problem!

    Is it me, or do the WebcamPublisher, AudioPublisher, and AudioSubscriber components have hidden widths and heights?  They seem to be taking up space in my layout!  I have gone in and physically set their dimensions to "0", yet they still appear to be taking up a few pixels of space.
    For example:
    <s:VGroup width="200" height="200">
         <rtc:WebcamPublisher width="0" height="0" id="webcamPub" />
         <rtc:WebcamSubscriber width="200" height="200" webcamPublisher="{webcamPub}" />
    </s:VGroup>
    results in the WebcamSubscriber being pushed down a few pixels:
    +-----------------------------------------+ <---- VGroup
    +-----------------------------------------+  <---- WebcamSubscriber
    |                                          |
    |                                          |
    |                                          |
    |                                          |
    |                                          |
    |                                          |
    |                                          |
    |                                          |
    +-----------------------------------------+
    +-----------------------------------------+
    This is not going to work well and is a bit frustrating to say the least!
    Am I doing something wrong, or is there a solution to this problem?
    Thanks in advance!
    Matt

    Hi ,
    It depends on your requirement. If you need to create the webcampublisher only under certain scenario within a component, then you might want to use Actionscript rather than using mxml to create with the component. However, if you don't have the restriction of dynamic creation , you can use mxml.
    Lastly, putting anything in Actionscript gives you much more power to change,modify and destroy things than in mxml but then creating in mxml is more easier with just a line of code written by you.
    Hope this helps
    Thanks
    Hironmay Basu

  • Jump Menu to Images HELP...

    I am working on a site for work.
    Here is a link to the image swapping that I would like to do.
    http://www.grixeyewear.com/products/id/8
    For example:
    When you go towards the bottom of the page and select the
    lens color and frame color, the sunglasses change to your
    selection.
    I am fairly new at this stuff, and looking to accomplish just
    as this site has it set up.
    I appreciate any help.

    I think I understand what you would like to have. Sadly this
    is not a very easy thing. You need to have a (ajax based) posting
    form which make a script rotate the image of the sunglass in
    accordance with the selections. I suggest you to hire a php coder
    to solve this for you.

  • How many ways are there to get the Width/Height of an image ?

    I am currently using the following code to get the width and hight of an image :
    BufferedImage Buffered_Image=ImageIO.read(new File(Image_Path));
    int Image_Width=Buffered_Image.getWidth();
    int Image_Height=Buffered_Image.getHeight();I don't need to get the image (*.jpg, *.gif, *.png), just want to know it's dimensions. I wonder how many other ways are available to do the same thing in a Java application ?
    Frank

    Ni_Min wrote:
    That's what I thought. I am asking because I hit a wall and am trying to find a different approach.Yeah, if you only have one file type you can probably write the code to read the header in 20 min.
    I packed my programs into an executable Jar file which I can run and access images on my C:\ drive, everything worked fine until I tried to experiment with something new. I know that I can force JVM to pre-load all my java classes just after it starts, so I deleted the jar right after the program pre-loaded all my classes and tried to see if it would work, but now I get a null pointer error when it tried to get the width/height of an existing image, because ImageIO.read return null. ( The same image is still on my C:\ drive )Sounds like a strange thing you're doing here. What's the point of this?
    So I wonder why it makes a difference after I deleted the jar, what was the problem ( or do I need to pre-load another class related to ImageIO.read ? ), and maybe if I use something else other than the ImageIO.read to get the width/height, I can bypass the problem.I dunno why you need to do this preload stuff and/or delete anything. I'd say leave the JVM and the app alone if possible.

  • [iPhone] image width and height was exchanged after load to CALayer

    I want to put an image into a CALayer's sublayer, like this:
    *CALayer *parent = [CALayer layer];*
    *CALayer *child = [CALayer layer];*
    *[parent addSublayer:child];*
    *UIImage *image = [UIImage imageWithContentsOfFile:imagePaht];*
    *NSLog(@"%f-%f", image.size.width, image.size.height);*
    *child.contents = [image CGImage];*
    I have five images in my app to display, their sizes are (3648, 2048),(3648, 2048),(3648, 2048),(2048, 3648),(2048, 3648), but when the images are displayed, I found that the last two images were rotate 90 degree. anyone has such problem?

    No - not quite the same - but about the same on iPhone 4.
    My app uses ImagePicker to let the user select an image from the album or the camera roll. I picked an image (that was shot in landscape mode) from the album. The image picker showed it in portrait mode so, it was smaller in size. But when the app showed the image in different view, it was shown in original size in portrait mode - as if the image was zoomed in!
    This does not happen on iPhone 3GS, though.
    Any ideas?
    Sam.

  • APIs for Adobe Reader to get the x, y co-ords,width,height of all elements (text/image) in a PDF doc

    Hi all,
    I have written a Acrobat plugin using  PDFEdit APIs to extract x, y co-ordinates, width and height of all  elements(objects) in a PDF document.
    Now, I wanted to make the same working on Adobe Reader.I have added the READER_PLUGIN macro enabled in Project settings.
    When I re-compiled the code, I got a bunch of errors saying all PDFEdit APIs are not available under Adobe Reader.
    My  objective is to parse through the entire PDF document and get x, y  co-ordinates, width, height of all PDF objects (especially Image and  Text objects).
    Can anybody help me how to achieve this ?
    Thanks
    Prasanth

    I know that we cannot obtain the PDEContent of a PDF page from Adobe Reader, as PDEContent is modifiable content and as such it cannot be accessible from Adobe Reader.
    Also, as PDFEdit API's does not work for Adobe Reader, we are trying to figure out a way to achieve this for Adobe reader.
    I am curious to know if the COS APIs can help us in this task.
    I tried to read the stream content using PDPageStmGetToken API. I get the data of this format:
    344.88 0 0 91.44 71.882 41.92cm
    Here, as per PDF reference, I am getting only distance from X Axis and distance from Y Axis. But not width and height.
    Can you knidly let us how to get the image attributes (primarly read only attributes like x and y co-ordinates, width and heoght) with Cos APIs.
    Thanks
    Prasanth

  • Problems with Jump Menu

    Hello to everyone in the community.
    I have a problem for the jump menu.
    My problem is the following:
    When I click on the value of I he opens the menu page it returns the correct value most of the menu to the first position.
    I wonder how can the value that was chosen in the menu.
    It is possible to develop
    The following script below
    <script type="text/javascript">
    function MM_jumpMenu(targ,selObj,restore)
         eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"' ");
          if (restore) selObj.selectedIndex=0;
    </script>
    Note: this menu is jumping into a separate php file, there on the pages where you use the jump menu I made a call to include the file.
    Thank you all hope to have a quick return.
    God bless you all
    Rodrigo Vieira da Silva Eufrasio
    Brazil - Sao Paulo - Osasco
    55 11 6691-5299
    GMAIL: rodrigo.mct @ gmail.com

    Unless your jump menu is in a parent region of a template and you CANNOT edit it in child pages, why not just go to the select tag (jump menu) of your code on each page and for the apporpriate page, simply put select="selected" in the <option> tag for that page?
    It may be more work but it will certainly be easier than trying to have a javascript figure out which page someone goes to, especially if they use the jump menu to jump around to several pages in the site.

  • How can I get the image width and height stored in database?

    Hi!I write s servlet to display images store in database.but how can I get the image width and height?

    Have you tryed using PJA or a similar library?
    I presume you get java.lang.NoClassDefFoundError on the line :
    Toolkit.getDefaultToolkit();?

  • Dynamic Jump Menu Problem in CS3

    I'm trying to create a link in a Jump Menu to a Detail Page.php by setting the parameters in the menu item to match a value in a recordset. When selected from the menu, a new page should open with a subset of the original php page. So far I haven't found a method to transfer a value in the menu to a url parameter which can be used by the target php page. Any suggestions appreciated.
    Regards to the List

    Nevermind. I was over-thinking the problem and adding dynamic parameters, when a simple solution was all that was required.
    Regards to the list.

  • The crawled property of Image width and height - is there a differnce when the image is png format?

    Hi,
    We are indexing file share with images and get the properties of Image Width, Image Height, Image Size (we show it as refiners in SharePoint after make it managed properties). Somehow when the picture is png format - we see only Size but not height and width.
    Is that any setting that should be done in the file share (when i select an image in the windows explorer window i can see all its properties, and it seems that png files do expose the width and height properties
    keren tsur

    Hi  Keren,
    According to your description, my understanding is that when you tried to  crawl file share with images, the ows_ImageWidth and ows_ImageHeight crawled property for PNG  file could not be generated.
    For your issue, I can reproduce your issue in my SharePoint 2013 environment. For a workaround, you can upload the PNG images into SharePoint images Library and they would work fine.
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • Make an image of height h and width w

    Hi all,
    I want to create an black or any colored image of height" h "and width "w" ,how can I do that ?
    Thank you.

    Hi,
    these articles may help you:
    http://www-128.ibm.com/developerworks/library/j-begjava/index.html
    http://javaalmanac.com/egs/java.awt.image/CreateBuf.html
    On the second page read also related examples
    L.P.

  • Jump menu problems in IE

    Hello,
    I am having trouble with the Dreamweaver Jump Menu. I have
    set up a basic page, used the Insert: Form: Jump Menu to navigate
    to different pages. It works fine in all browsers with or without
    the "Go" button, but it never works in IE 6 or 7. Is this a common
    issue with the Jump Menu? Is there some bit of code I need to add
    to make it work in IE? I can post my code in here if necessary;
    just thought I'd check to see if it was an easy fix first.
    Thanks for any advice.

    Your markup is screwed up. Compare yours with the following
    <ul id="MenuBar1" class="MenuBarHorizontal">
      <li><a href="index.html">Home</a></li>
      <li><a class="MenuBarItemSubmenu" href="#">About Us</a>
        <ul>
          <li><a href="about us.html">About Us</a>
          <li><a href="calendar.html">Calendar</a></li>
          <li><a href="bus ministry.html">Bus Ministry</a></li>
          <li><a href="subscribe.html">Newsletter</a></li>
        </ul>
      </li>
      <li><a href="directions.html">Directions</a>
      <li><a href="sermons.html">Sermons</a></li>
      <li><a href="contacts.html">Contacts</a></li>
      <li><a href="gallery.html">Gallery</a></li>
    </ul>
    Gramps

Maybe you are looking for

  • Integration server as logical system in IDoc to file scenario

    Hi, Will we configure integration server as logical system in IDoc to file scenario or the RFC destination related to the port will be suffice? For which logical system will the outbound partner profile configured? Regards, Gajendra.

  • Ipod won't mount w/ firewire400 anymore, but USB2.0 it will. Why?

    I've trolled through numerous articles & discussion threads, but I can't seem to find anything that deals with this issue specifically. I want to revert to using my firewire connector instead of USB, but cannot get iTunes to recognize iPod. All it do

  • Snow Leopard and connecting to the Internet

    Has anyone had intermittent or constant problems connecting to the internet since upgrading to Snow Leopard? I am trying to find the cause of the problem and I'm not sure if it's the Broadband provider (British Telecom) Faulty wiring (which has never

  • Problem mirroring on my apple tv

    Can play movies purchased through iTunes store from last year from MacBook pro through AirPlay. Can play YouTube videos play on AirPlay. Can'T watch movie I rented through iTunes on MacBook pro throu AirPlay to my TV. I get gray checkerboards. Can he

  • How do I activate Adobe Captivate 7 on a Windows 7 64 bit Laptop

    Using a Windows 7 64 bit Lenovo Laptop Have installed Adobe Captivate 7. During installation I was prompted to enter my Adobe ID and Product Serial Number. Now that installation is complete everytime I open the Adobe Captivate Application it prompts