Image refresh problem

hi, i have an image inside an iframe that i'm trying to
change upon the click of a button. i use the following code:
<SCRIPT language="JavaScript" type="text/javascript">
function swapImage(intImage){
var
imgs=["images/pic0.jpg","images/pic1.jpg","images/pic2.jpg","images/pic3.jpg","images/pic 4.jpg",
"images/pic5.jpg"];
parent.frames['cont'].document.getElementById('mgmnt_pic').src =
imgs[intImage];
alert(parent.frames['cont'].document.getElementById('mgmnt_pic').src)
</SCRIPT>
then in body:
<p><a href="javascript:; "
onclick="frames['cont'].swapImage(0);">Management
Team</a></p>
i know from the alert that it is changing the source of my
image, the problem is that the image itself is not changing at all.
has anyone experienced this before? what can i do to fix it?

Hi,
chk the link
http://javascript.internet.com/miscellaneous/random-image.html
shanthi

Similar Messages

  • JTextPane -captured image refreshing problem

    Dear All,
    In my application it is necessary to capture the
    screen and save it as jpeg and display the same in a JTextPane using <img> tag.
    I have made use of com.sun.image.codec.jpeg to save the image and it works fine.
    After starting the application the
    first picture is displayed well but the other pictures though get saved is not displayed in the JTextPane.Only the previous picture remains.
    I have made use of new Instance of TextPane each time.All the captured images are saved in the same name say "images/screenshot.jpg" one at a time.
    Please tell me what would be the problem.
    Expecting your reply
    Thanks and Best Regards,
    AnushaJv

    Try to remove text from the document and set it again.
    JtextPane pane;
    Document doc=pane.getDocument();
    String content=doc.getText(0,doc.getLength());
    doc.setText("");
    doc.setText(content);
    best regards
    Stas

  • Refreshment problem when place image.

    Hi Experts,
    When I insert image using script then there is a refreshment problem.
    In place of second image there place first image.
    while if I debug this it place in correct order. But in Run case script not place image in order.
    There is a refreshment problem After place First image it not refresh  and have first image.
    How solve this problem That i place image in proper order in Script Run mode.
    #target indesign
    var myDocument=app.activeDocument;        //Active document have 10 spread with text frame
    for(int i=0; i<10;i++)
    var ImagePath="D:\Indesign\" + i + ".indd";         // There are 0.indd to 9.indd, 10 image in "D:\Indesign\"
    var myTextFrame=myDocument.spreads.item(i).textFrames.firstItem();
    myTextFrame.place(File(ImagePath)); // ImagePath is path of image
    Thanks.

    My problem is like this :
    I want place image in a text box
    File(menu)-->place....-->(Dialog open then Select Image file then click on open)->then image is attach  with cursor. (I do not click on .indd open screen).
    Now I run the script from ExtendedTool Kit
    #target indesign
    var myDocument=app.activeDocument;
    var myTextFrame=myDocument.spreads.item(0).textFrames.firstItem();
    $.sleep(2000);
    myTextFrame.place(File("/C/DOCUME~1/ADMINI~1/LOCALS~1/Temp/temp.jpg"));
    $.sleep(2000);
    var graphic=myTextFrame.allGraphics[0];
    graphic.select(SelectionOptions.REPLACE_WITH);
    graphic.geometricBounds =["-47.853527","-157.370275","1231.018230","709.576702"];
    When this script run then it place the image which I am select from File(menu)-->place....-->(Dialog open then Select Image file then click on open).
    Not from the path "/C/DOCUME~1/ADMINI~1/LOCALS~1/Temp/temp.jpg"
    This is the problem to place image.  So there is image duplicasy and some image missing.
    Is there is solution of this problem ?
    How remove image which is already attach with cursor ?
    Thanks.

  • Problem: codebase, jar and image reloading problem please help!

    Hi Java Gurus,
    I have written an applet that extends JApplet for viewing webcam. In order to reduce the download time I put my classes into a doorcam.jar file. The following is my <applet> tag in my html file.
    <applet code="CameraApplet.class"
    archive="doorcam.jar"
         codebase = "webcam/classes"
         width="375" height="475">
    <param name="imagePath" value="http://judge/webcam/images">
    <param name="webCamImage" value="door.jpg">
    <param name="COMPort" value="COM2">
    <param name="frameRate" value="10"> <!-- could not exceed more than 10-->
    <param name="host" value="judge">
    </applet>
    The fist problem is that my class file does not get loaded from the jar file if i provide the "codebase" attribute as above. Instead the browser load every single class file from the webserver. This has some problem too. Coz the browser sometimes just thorough NullPointerException or ClassNotFoundException. After much of debugging I found out that the problem is the IE browser which seldom fails to load classes or image file from the server. If i referesh the browser the applet and all its classes loaded successfully and runs smoothly. This behaviour never occurs when running with "appletviewer".
    I wanted all my classes to be loaded from my jar file. After much of trial and error I found out that if i remove "codebase" attribute the browser loads the classes from my jar file and applet loads very fast. This is where the second problem comes in. The browser does not reload my webcam image file so that the webcam become alive with live images, like before.
    If I run on "appletviewer" everything works fine my web cam is displayed properly. But in IE browser the image does not get reloaded when I refresh my image to give live to my webcam display. The refresh method is given below.
    private void refresh(final URL url) {
    Image webCamImage =getImage(url);
    webCamImage.flush(); // flush out the previous image
    webCamImage = getImage(url); // get a new image
    webCamImageIcon.setImage(webCamImage); webCamImageIcon.paintIcon(webCamLabel, webCamLabel.getGraphics(), 15, 15);
    When I add the "codebase" attribute back, the image gets reloaded for every refresh() and everything works fine. But the classes are also loaded from the server. And occasionally also suffers Class loading and image loading problem. As I presented earlier, when I do refreshing in the browser everything gets loaded and the applet function correctly with web cam displaying very well.
    The problem is so strange that I could not find any way to solve it.
    It would be a great help to me if somebody provide me some work around to the problem.
    I tested on Windows 2000, Windows XP, IE 5.5, IE 6 with J2SDK 1.4.0.
    Thank you all very much in advance.
    best regards,
    Judge

    Thank you so much for the suggestions. I did tried the way u suggested. The problem still the same.
    I think its the problem between IE browser and Java Plug-in.
    I which SUN would find these incompatibilities and solve these problems.
    I even tried using java SDK and plug-in 1.4.1 it even worst. It can't even load an applet. And it does not show any loading messages nor any error messages. It just show a cross sign on the upper left coner.
    I would be so glad, if Sun would try to eliminate the inconsistancies such as caching, loading, initializing etc between browser and its Java plug-In. For example, applets behave well in appletviewer and behave unpredictably in browser environment.
    I have seen so many people in the forums with all sorts of problems because of this.
    Right now I m desperately looking for work around to my problem.
    If somebody would provide me with the solution to my problem it would be a great help to me.
    thank you all so much.
    best regards,
    Judge

  • Datagrid refresh problem?

    fileListArray.refresh();
    dg_curtainmanager.invalidateList();
    dg_curtainmanager.invalidateDisplayList();
    <mx:DataGrid id="dg_curtainmanager" showHeaders="true"  editable="true"  includeInLayout="false" dataProvider="{fileListArray}"  creationComplete=""  variableRowHeight="true"   wordWrap="true"  rowCount="{fileListArray.length}"  width="100%"  >
    <mx:DataGridColumn  headerText="Parent Folder"  sortable="true"  editable="false"   width="250" minWidth="65" wordWrap="true" >
                            <mx:itemRenderer>
                                <fx:Component>
                                    <mx:HBox width="100%"
                                             horizontalAlign="left" verticalAlign="middle">
                              <mx:Image source="@Embed(source='images/edit_16.gif')"  toolTip="Select Starting Folder" buttonMode="true" click="outerDocument.parentfolderimagclick()" />
                                        <mx:Label text="{data.document_folder_name}" color="black" />   
                                    </mx:HBox>
                                </fx:Component>
                            </mx:itemRenderer>
                            </mx:DataGridColumn>
    </mx:DataGrid>

    @welcomecan,
    What refresh problem you are facing.. in DataGrid? When you change your DataProvider for your grid the values are not being changed or somethingelse..??
    Please always be clear in explaining your problem in order to get it resolved..
    Thanks,
    Bhasker

  • Animated gif and page refresh problem

    Animated gif and page refresh problem
    Hi There,
    I'm trying to build a simple "Please wait......" screen using jsp and javascript.
    So far all is going well except that my animatate gif keeps refreshing everything the page is refresh.
    Is there a way the i can prevent the body of the page from refreshing?
    below is my sample code:
    <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    <jsp:useBean id="StatusBean" class="com1.CandidateRelease" scope="session"/>
    <html>
    <script LANGUAGE="JavaScript">
    function refresh()
    <% if (StatusBean.isRunning()) { %>     
         //setTimeout("refresh()", 1000);
         setTimeout("location='status.jsf'", 1000);
    <% }else{%>
         window.location= "busStopAdmin.jsf";
    <%} %>
    </script>
    <head>
         <script LANGUAGE="JavaScript">     
              refresh();
         </script>     
    </head>
    <body>
         <img id="myImage" src="../img/ojp_wait.gif" alt="" width="151" height="36">
    </body>
    </html>

    Animated gif and page refresh problem
    Hi There,
    I'm trying to build a simple "Please wait......" screen using jsp and javascript.
    So far all is going well except that my animatate gif keeps refreshing everything the page is refresh.
    Is there a way the i can prevent the body of the page from refreshing?
    below is my sample code:
    <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    <jsp:useBean id="StatusBean" class="com1.CandidateRelease" scope="session"/>
    <html>
    <script LANGUAGE="JavaScript">
    function refresh()
    <% if (StatusBean.isRunning()) { %>     
         //setTimeout("refresh()", 1000);
         setTimeout("location='status.jsf'", 1000);
    <% }else{%>
         window.location= "busStopAdmin.jsf";
    <%} %>
    </script>
    <head>
         <script LANGUAGE="JavaScript">     
              refresh();
         </script>     
    </head>
    <body>
         <img id="myImage" src="../img/ojp_wait.gif" alt="" width="151" height="36">
    </body>
    </html>

  • Smartview 11.1.2.1.102 Refresh problems

    I have multiple users experiencing severe refresh problems after upgrading to smartview version 11.1.2.1.102.
    Users state Refresh is taking 10-15mins+ when in old version 9x it only takes 1-2mins. In addition users have rebuilt the excel files (copy in new workbook) then all is working fine but when saved/the next day the refresh goes very slow again!
    Please can any help?

    1. Deleting the Sheet Info fixes the problem for the moment - but the problem soon returns. Do you know what causes the problem, so we can cut the repeating cycle? Is this strictly a multi-user issue? We do have several users that may use the file. Some have version 11.1.2.1.000 (not 103). Oracle's tips doc (http://www.oracle.com/technetwork/middleware/bi-foundation/epm-tips-issues-73-102-1612164.pdf) mentions uncompressed metadata stored in the worksheet.
    2. Is there a specific version that allows the Sheet Info fix? Oracle's tip sheet says they need Some have version 11.1.2.1.103, but the users we have seen so far can use this workaround on Some have version 11.1.2.1.000. I'd like to know when at what version this fix starts so I can push other users to update. It would be good to know at which version this issue starts.
    Thank you - great information in the thread!
    P.S. for reference:
    From http://www.oracle.com/technetwork/middleware/bi-foundation/epm-tips-issues-73-102-1612164.pdf
    In EPM System Release 11.1.2.1, I am opening .xls files with Smart View functions in Excel 2010, but it’s very slow or seems to freeze Excel. How can I fix this?
    This is most likely due to an issue with uncompressed metadata stored in the workbook. In most cases, the issue can be found in the first sheet in hidden shapes. Note that the file will open but it may take a very long time, and in some cases the file will open fine with Smart View disabled. In other cases it will not matter. To solve this problem, save a copy of the file and follow the steps below for the version of Smart View you have.
    If you are using Smart View 11.1.2.1.103 or above, follow these steps:
    1 Open the file (this may take a while) with Smart View enabled.
    2 From the Smart View Ribbon, select Sheet Info.
    3 Select Delete Smart View Info.
    4 Select Workbook and all Sheet Info.
    174 Miscellaneous and Product-Specific Tips
    5 Click OK.
    6 Save the modified workbook.
    7 Reopen the workbook.
    If you are not using Smart View 11.1.2.1.103 or above, follow these steps:
    1 Open the file (this may take a while).
    2 Right-click on the tab of the first worksheet and select Select All Sheets.
    3 Right-click on the tab of the first worksheet and select Move or Copy.
    4 In the drop-down box, select (new book) and check Create a Copy.
    5 Save the workbook.
    6 Open the new workbook.
    7 Refresh the data.

  • I have LR5 on a mac book pro with a external hard drive with LR5 images. my problem is my external hard corrupted reformatedand have to this is expensive and i would to start over in LR5

    i have LR5 on a mac book pro with a WD external hard drive with my with my LR5 images . my problem is my external drive is corrupted .i was told by apple that my macshow the hard drive is there but it is not moumting and have to be reformat. i have to use recovery data to save my images on my external before i can refomat.iam willing to lose my images on my extenal hard drive but i would like to know can i erase my LR5 images and start over or delete LR5 and download it again

    Simply start a new catalog:
    File >> New Catalog
    Choose a new name and save.
    When the empty catalog launches you are ready to start over.

  • My iMac 27" Late 2012 has Image Persistence Problem

    I'm wondering what to do about an annoying image persistence problem on my 27" late 2012 iMac. I got the iMac just a few days ago. Monday actually, so 4 days ago.
    It's the 3.4GHz i7, 8GB, NVIDIA 680MX 1TB fusion drive model.
    Overall it has become the love of my life, but the image persistence thing is getting harder to ignore. This happens after only a few minutes of use. If I follow Apple's instruction on dealing with LCD image persistence, I can make it go away for a while, but it comes back very quickly.
    It is extremely noticeable on a plan dark background. It looks as thought he screen has been left on for a very long time with the same windows open, but it occurrs in less than 5 minutes of use with nothing more intense than a bit of web surfing.
    I've read that this is happening a great deal on these new iMacs, particularly teh 27" machines.
    While the problem seems to be known to those of us afflicted I don't know if Apple has acknowledged an issue or not.
    Here is a sample of the complaints: http://forums.macrumors.com/showthread.php?t=1509571
    I can make the ghost image vanish by bringing up an all white scree for a minute or so or using LCD Scrub.
    I'm wondering if anyone else has foun a solution other than asking for a replacement computer, which Apple seems to be granting on this issue?

    Avoiding image persistence on Apple (IPS) displays
    Avoiding image persistence on Apple LCD displays
    If you cannot resolve the issue yourself, then return the computer for a replacement. You may do this freely within 14 days from date of purchase, so don't delay.

  • Screen refresh problem where data is entered and the screen doesn't refresh

    Many people in the company are experiencing the odd screen refresh problem where data is entered and the screen doesn't refresh to show the updated result in corresponding cell formulas.
    Microsoft have issued a hotfix to fix the issue for Excel 2003 as shown. Microsoft released a hotfix for this problem (<a href="advisory?ID=978908">KB978908</a>). Display memory tends to pick up data from hidden sheets and pastes it
    into the active screen. No impact on the file. This occurs when protecting and unprotecting worksheets in VBA. I also suspect that enabling and disabling screen refresh contributes to this problem. In any case there is a fix, albeit with the following disclaimer:
    As of yet I have not been able to find a fix for this for office 2010 and 2013, Any suggestions would be great.

    Hi,
    Based on your description, Excel does not show the text strings when you typing. It may be caused by the cell format, if we set the cell format as ";;;" in custom format, it will not display the text that you typed. 
    And the issue may be caused by the third-party input method, there are some compatibility issue between them.
    If the issue still exits, please try the following methods
    Verify/install the latest updates
    Repair your Office program
    Regards,
    George Zhao
    TechNet Community Support

  • Container (JPanel) refresh problem

    Hello,
    In fact i have a panel (mainPanel) with a button OK, a another panel which display a specific MyJTable and combo box.
    In fact, when I clic OK Button, i want to charge my MyJTable with data depends on comboBox.
    First, i display a empty white panel and when i clic Ok i want to display my MyJTable.
    JPanel mainPanel = new JPanel();
    JPanel emptyPanel = new JPanel();
    JPanel combo = new JComboBox();
    JButton okButton = new JButton();
    MyJTable myJTable;
    mainPanel.add(emptyPanel);
    mainPanel.add(combo);
    mainPanel.add(okButton);I have a refresh problem, i try mainPanel.remove(emptyPanel) and thus mainPanel.add(myJTable), the remove works but the add no :(
    In ActionPerformed method when okButton:
    myJTable = new myJTable(combo);
    mainPanel.remove(emptyPanel);
    mainPanel.add(myJTable);
    mainPanel.repaint();Thanks for yu help!!

    Hi,
    have you tried playing with
    mainPanel.revalidate();
    mainPanel.revalidate();??
    Might help
    Phil

  • Screen refresh problem with Windows 7

    Hello all,
    I've recently begun testing Oracle with Windows 7 on a new HP 2540p notebook computer. I've encountered a very strange issue so far. After logging into Oracle, and Windows switches to Windows Basic theme, I should be taken to the main Navigator screen. But instead, the screen is simply white. If I drag (or nudge) the title bar just a bit, the screen refreshes and I can see the menu items. Then if I click on something (or even use hotkeys - ALT+F to get the file menu, for example), I don't see anything happen. But if I move the window just a bit, the screen refreshes and I can see that it did actually take my input, it just didn't re-draw the screen. I'm wondering if this may be a graphics driver issue (I do have the latest driver for the Intel Graphics Media Accelerator HD adapter), or if someone could point me toward a resolution to this problem. Any help is much appreciated.

    Dear All,
    Same problem of REFRESH PROBLEM also faced by but only a single and specific Windows 7 client.
    if you have resolved the issue , so please share with us.
    Thanks
    Eidy

  • Forms Refresh Problem on The Web??

    i have a form coded in 6i. in this form i have around 20 buttons one below another and each of the button has a stacked view associated with it. whenever i click on a button i am opening the relative stacked view on th content canvas and repositioning the rest of the bottons and views by moving them down.
    Now the problem is it works fine in client-server, but when i run it on the web, when i try to open any of the buttons the screen scrolls automatically to the top. I also noticed that if i wait for a few seconds(or sometimes minutes) the form takes me to the correct position. i think there is some refresh problem. i tried Syncronize also but to no use.
    i would appreciate If someone can help me out on this ASAP. (thanks for the patience in reading this long mail!!)

    Try to instal the latest version of Jinitiator. I have similar problems, but my case is not so bad. Jinitiator develops very quickly and as i have heard it works now fine.

  • G5 quad gf6600 refresh problems

    I have refresh problems (never had it with 2.5 bipro)
    in photoshop the layers do weird things and leaves traces.
    in lightwave if i select a point op poligon, nothing seems to happen, only when i resize the view it refreshes.
    lightwave is freshly installed, ph is a port from the old mac

    upgraded programs

  • SSRS indicator image display problem!!

    Hello ALL;
    I am having problem with displaying indicator image in DEV report manager. but same rdl works in QA environment. Both server has SP1 installed. Any Idea? Appreciate for your help. Thanks,

    Hi Techchi,
    Based on the limited information, I cannot figure it out for this issue. As per my understanding, I think this issue can be caused by the browser that run the report manager. If you use IE explorer to render the report, I suggest that you can try to run
    it in compatibility mode. If you are using another browser, I recommend that you should use IE explorer to render the report to check the issue again.
    If this issue still exists, in order to solve the problem more efficiently, I need to clarify some information.
    Are all reports with indicator image cannot render well in DEV report manager? Or just this one report?
    What is the phenomenon about the indicator image display problem? Could you please post a screenshot about this?
    It is benefit for us to do further analysis. Thank you for your understanding.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

Maybe you are looking for

  • I am trying to build a DVD from an Everio Camcorder in 16:9. but output is 4:3

    Hi, I can't seem to be able to fix this problem. The settings I use in Premiere Elements 9 are as follows when I Open the project: NTSC, Hard Disk Flash Memory Camcorders, Widescreeen 48KHZ. When I bring my scenes in the timeline, I get a warning:"Mi

  • IPod nano Shuts Down my Windows 7 in the middle of syncing

    What the heck... I received this iPod Nano as a gift, moved all of my items into iTunes, only to have it repeatedly shut down my PC mid-sync.  I've seen this issue in threads dating back to 2010, but I haven't been able to find any posting that actua

  • How to provision an app for all users with all dependencies?

    I have created an app package with VS that I want to provision for all users of a target system using DISM /Online /Add-ProvisionedAppxPackage /FolderPath:".\%package%" /SkipLicense The path contains the content of the *Test folders VS creates when c

  • Absolute navigation using post parameters

    Hi All I am navigating from WD4A iview to WD4J iview through absolute navigation and passing some parameters. I am expecting that these parameters size might be large. Is there is any restriction on the size of the parameters that i can pass in these

  • Multi-Touch Programming

    Hello - Does anyone have any experience working with multi-touch monitors yet?  I know Albatron has released one and there may be others.  Apparently multi-touch control has been added into Vista SP1 and is there on the Mac.  Anyone played around wit