JavaScript - The opener Property

QUESTION: How must I change the code provided below to make
it compatible with FireFox?
INTRODUCTION
The following three sets of code produce a small window that
illustrates a proper method for citing information taken from a
webpage. This code has been tested and found to work in both Safari
3.2.1 and Opera 9.63. For some reason it fails to work in FireFox
3.0.5. In effect, the information to which the opener property
serves as a reference is not captured by FireFox.
CODE (for citing window -- namely, citation.html)
<p>A proper way to cite a passage of text on this
page:</p>
<p>
Stegemann, R. A. 2000. <cite>Imagine: Bridging a
Historical Gap In Japan</cite>. <script
type="text/javascript">document.write(opener.document.title)</script>
[online document] &lt;<script
type="text/javascript">document.write(opener.location.href)</script>&gt;
</p>
<div><input type="button" value="Close Window"
onclick="window.close()"></div>
CODE (for document window to be cited)
function openCitationWindow() {
ciDow = window.open("../Contents/utility/citation.html", "",
"width=450, height=175, top=300, left=300");
ciDow.focus();
CODE (for citing link in cited document window)
<a href=""
onclick="openCitationWindow()">Citation</a>

Could this be causing the problem?
[online
document] <<script
type="text/javascript">document.write(opener.location.href)</script>>
Dave
"kiusau" <[email protected]> wrote in
message
news:gm6dsn$kn9$[email protected]..
> QUESTION: How must I change the code provided below to
make it compatible
with
> FireFox?
>
> INTRODUCTION
> The following three sets of code produce a small window
that illustrates
a
> proper method for citing information taken from a
webpage. This code has
been
> tested and found to work in both Safari 3.2.1 and Opera
9.63. For some
reason
> it fails to work in FireFox 3.0.5. In effect, the
information to which
the
> opener property serves as a reference is not captured by
FireFox.
>
> CODE (for citing window -- namely, citation.html)
>
> <p>A proper way to cite a passage of text on this
page:</p>
> <p>
> Stegemann, R. A. 2000. <cite>Imagine: Bridging a
Historical Gap In
> Japan</cite>. <script
>
type="text/javascript">document.write(opener.document.title)</script>
[online
> document] <<script
>
type="text/javascript">document.write(opener.location.href)</script>>
> </p>
> <div><input type="button" value="Close Window"
onclick="window.close()"></div>
>
>
> CODE (for document window to be cited)
>
> function openCitationWindow() {
> ciDow = window.open("../Contents/utility/citation.html",
"", "width=450,
> height=175, top=300, left=300");
> ciDow.focus();
> }
>
> CODE (for citing link in cited document window)
>
> <a href=""
onclick="openCitationWindow()">Citation</a>
>
>

Similar Messages

  • "Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information" while attempting to open UNIX/Linux monitor

    We have upgraded our System Center to 2012 R2, and we cannot open any of the UNIX/Linux LogFile monitor property or the UNIX/Linux process monitor property for those monitors created prior to the upgrade.  Error we get is below.  Any assitance
    appreciated.
    Date: 9/30/2014 10:01:46 PM
    Application: Operations Manager
    Application Version: 7.1.10226.0
    Severity: Error
    Message:
    System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
       at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection,
    Boolean suppressSecurityChecks)
       at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection,
    Boolean suppressSecurityChecks)
       at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection,
    Boolean suppressSecurityChecks)
       at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection)
       at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
       at System.Reflection.Assembly.Load(String assemblyString)
       at Microsoft.EnterpriseManagement.Internal.UI.Authoring.Extensibility.TypeContainer.get_ContainedType()
       at Microsoft.EnterpriseManagement.Internal.UI.Authoring.Extensibility.MomExtensionsCommon.AddTemplatePages(LaunchTemplateUIData launchData, Form form)
       at Microsoft.EnterpriseManagement.Internal.UI.Authoring.Extensibility.MomExtensionsCommon.Initialize(Object launchData, Form form)
       at Microsoft.EnterpriseManagement.Internal.UI.Authoring.Extensibility.MomExtensionsCommon.RunPrivate(Object[] userData)
       at Microsoft.EnterpriseManagement.Internal.UI.Authoring.Extensibility.MomExtensionsCommon.Run(Object[] userData)

    It's possible the upgrade did not update everything properly as it looks like a dll mismatch or a missing file. I'd open a support ticket with MS and have a support engineer look at the upgrade logs. What version of SCOM did you upgrade from?
    Regards,
    -Steve

  • Javascript to open a new html page without the various tools bar

    Where can I find a javascript that I could that would to the
    following.
    I will put a button (text button) "QUIT".
    I want to see a dialog box asking the following.
    Are you sure you want to quit this training module? You can
    restart the module at anytime by clicking on the restart button.
    Yes (I go to the URL of the web page hosting the captivate)
    or No (button) I go back to the beginning of the captivate
    file (Slide 1).
    Can we also have a javascript in one captivate file
    for example main.swf (who has 10 slide) and have a button
    that open another captivate swf (5 slides) and have it go to a
    specific slide (for xample the slide 3).
    i know that with Flash it is possible when you load an
    external file. But with Captivate I am a little bit confused on how
    to achieve the same results with Javascript.
    The only javascript that I know of is
    javascript:window.close().

    Here is some documentation on the "window.open()" method:
    http://www.javascript-coder.com/window-popup/javascript-window-open.phtml
    You'll find options for removing toolbars and setting
    size/position.

  • Add bookmark using javascript, it opens in the sidebar, not in the main window

    im using this function:
    function add_bookmark(){
    var title = "My Title";
    var url = "www.myurl.com";
    window.sidebar.addPanel(title, url, "");
    it successfully creates a bookmark but when i click on it, it just opens in the sidebar and not in the main window.

    Don't use that function as it selects the "Open this bookmark in the sidebar" feature in Properties for the bookmark. That is the way it works in Firefox and it probably won't ever be fixed. Someone filed a Bug about fixing that in Firefox back in 2004 or 2005, and the Mozilla developers marked it as WONTFIX due to perceived security issues with scripts of that sort.

  • Window.opener  property from child window to parent window

    Hi
    When communicating between the child (popup) window to the parent window works fine as long as we pass the static reference to the window.opener
    Example :
    Main Page
    form name = staticform
    input name = col1
    Popup Page
    javascript :
    window.opener.staticform.col1.value = some value
    How can I use a dynamic reference for the staticform.col1 in the window.opener property to post the value back to the parent window ?
    thanks for the help
    sarma

    Actually, I think tolmank's would work... I've done basically the same thing before, but more like this (if it's generic, it's a good idea to have checks for the things being in existance). This is something I used in a generic color chooser I wrote in Javascript. Had multiple fields in one form using it for selecting different foreground/background colors.
    <%
    String form = request.getParameter("form");
    String fgfield = request.getParameter("fgfield");
    String bgfield = request.getParameter("bgfield");
    %>
    vfnSet = function() {
       if(typeof(window.opener) == 'undefined' || window.opener == null) {
          return;
       if(typeof(window.opener.document.forms['<%= form %>']) == 'undefined') {
          return;
       var oForm = window.opener.document.forms['<%= form %>'];
       if(typeof(oForm.<%= fgfield %>) == 'undefined') {
          return;
       if(typeof(oForm.<%= bgfield %>) == 'undefined') {
          return;
       oForm.<%= fgfield %>.value = document.forms['colorform'].foreground.value;
       oForm.<%= bgfield %>.value = document.forms['colorform'].background.value;
    }

  • Does anybody have a workable exemple of JavaScript to open windows

    Hello I have been trying to use Javascript to open a window
    with no toolbar and resizeable with no success. Does any you have
    an exemple that has worked for this. I tried the following code:
    MM_openBrWindow('
    http://www.mrperezonlinemathtutor.com/GEOFLASH/3_1_Similar_Triangles.pps.swf','','width=80 0,height=600,resizable=1');
    and including the following function in the Page that opens
    the captivate 2 quiz, placed between the two head tags just after
    the title tag:
    <script language="JavaScript" type="text/JavaScript">
    <!--
    function MM_openBrWindow(theURL,winName,features) {
    window.open(theURL,winName,features);
    return false;
    }//-->
    </script>

    Hello shperez.
    Here is a JavaScript that works well for me.
    void window.open('file.html','myWin','width=300, height=300,
    top=300, left=500, toolbar=1, menubar=1, location=1, status=1,
    scrollbars=1, resizable=1')
    Let me explain a few things. The 'myWin' is just naming your
    new window, in case you may have more than one button or click box
    that opens a new window. Gives it a unique name. It does not put
    that name at the top of the new browser window.
    The properties from toolbar to resizable can be either 1's or
    0's. 1's mean Yes I want that feature and 0's mean No. Also, if you
    don't want your window to have a property, it is not necessary to
    declare it with a false value, just leave it out.
    The void at the beginning of the code is to prevent the text
    [Object] being written in the main window, as a result of the
    open() method being directly invoked from the HREF attribute.
    When you place the code on a button or click box, just type
    it as above without putting in javascript:.
    You will have to publish and place it on your server to see
    it work. Javascript running on a PC invokes error messages or
    blocks off malicious code being run.
    Play around with the code to get the type window you want.
    Regards,

  • The Title property is showing instead of the filename at top of application bar

    We have a need to rename a series of files from their original name to a new name.  After renaming the files in Windows (BRU000003.PDF in the example above), we opened one of the files in Adobe Acrobat.  We were surprised to see that the "name" displayed in the application bar at the top of that window was the Title property (000010.pdf in the example above) and not the file name.
    Is there a way to programatically remove the Title property or to make Adobe Acrobat display the Filename and not the Title property?

    If you need to do this to multiple files, a batch process is the way to go. You can use the Open Options command to display the file's name instead of the title.
    You can also use a simple JavaScript to reset the title, or to replace it with the file's current name.

  • "The 'charCode' property of a keyup event should not be used. The value is meaningless." Is this possibly caused by a virus?

    I don't know what's wrong with my Mac Mozilla Firefox, version 3.6.8, but today, it started alerting me about an error message on the "Error Console". In every website I visit, it tells me: "The 'charCode' property of a keyup event should not be used. The value is meaningless." Is this possibly caused by a virus?
    I saw a pop-up which did not allow me to click it when I scatter the windows on my Mac. I was using Private Browsing, with pop-ups disabled, but one pop-up managed to get passed my settings, and open in another window. It would not allow me to select it, so all I did was to close Firefox, and start a new session. So far, everything has been normal, I also deleted the cookies it installed.
    But, I still keep seeing that "Error Console" notice under my "Tools" on the Menu Bar, and when I clicked on it, it listed errors (such as what I listed above).
    Would someone explain this to me?
    Thanks for your help!

    The messages you see in the Error Console are mostly to assist the web site's author in resolving compatibility problems. Some of them can assist you in determining why a web site doesn't work as intended. The one you mentioned doesn't sound that suspicious, except that it occurs on many sites. Perhaps one of your add-ons is trying to monitor what you type?
    To diagnose whether this is caused by an add-on or one of your settings, you could try the following:
    First, make a backup of your computer for safekeeping. To back up Firefox, see [https://support.mozilla.com/en-US/kb/Backing+up+your+information Backing up your information].
    Next, try starting Firefox in Firefox
    [http://support.mozilla.com/kb/Safe+Mode Safe Mode]. Be careful not to "reset" anything permanently if you didn't back up.
    Does that resolve the errors? If so, then an add-on usually is the culprit. If not, try creating a new (blank) profile: [http://support.mozilla.com/kb/Managing+profiles Managing profiles].
    If the new profile works correctly, you can choose between further research on your old profile or moving key settings like bookmarks from your old profile to the new one. [https://support.mozilla.com/en-US/kb/Recovering+important+data+from+an+old+profile Recovering important data from an old profile].
    Hope this helps.

  • I am not able to share a blogpost image on facebook using the open graph meta-tag for the blogpost image.

    Dear Members,
    I am wrestling a few days now, and still not able to get a blogpost image into the facebook share-box.
    This is the link where i am talking about:
    Top 10 Celebrities on Holiday in Saint Tropez
    I have 2 issues:
    1
    Below ( under the blog-post ) you'll find my facebook like button.
    When i like the blog-post, the share-box pops up BUT without the blog image.
    I put the link in the debugger window from Facebook, but it tells me that the open graph tag for a image is not proper defined.
    this is the link to facebook debugger : https://developers.facebook.com/tools/debug/
    So i created this meta-tag :  <meta property="og:image" content="/_assets/images/blog/img-{tag_blogpostid}.jpg" />
    and put it inside the head of the html code for the detailed blog post lay-out ( site-manager/module-templates/Blog lay-outs/Blog post detail lay-out )
    2
    I dont know how i must specify the URL to be liked on facebook.
    My blog-list url = http://www.duvanduvan.com/blog  BUT i have to specify the url for a single blogpost item, but have no idea what to specify. i tried different url's like : duvanduvan.com/blog/{tag_itemurl} etc.... with no result
    Can you also help me out here?
    I really tried everything i possibly know off but without result :-(
    Can somebody help me out here?
    Much much appreciated.
    Stefan.

    try selecting music from the top bar check the songs you want, then sync

  • Javascript Issues with 'javascript:window.open'

    Hi guys,
    Really hoping someone can help out here. To set the scene I have detailed a similar example from the OEHR Schema based on the EMP table.
    I have a page defined with a classic report with all the contents of the EMP table, for example :
    HIREDATE | SAL | COMM | DEPTNO | MGR | JOB | ENAME | EMPNO |
    I have edited the column EMPNO report attribute so i can create a link from the EMPNO column, in the Column Link section i have defined the following attributes :
    Link Text : #EMPNO#
    Target : URL
    URL : javascript:window.open('f?p=&APP_ID.:28:&SESSION.::NO::P28_EMPNO:#EMPNO#');
    So in the URL i call the javascript function to open a new window, passing the Application ID, Page 28, Session ID and a parameter for the EMPNO.
    So far this all works fine, the new page opens which is also defined with a report region, however this time i pass the parameter item P28_EMPNO into the SQL to return just that row. I understand that from a security stand point this is probably bad practise however, at the moment this appears to be the only way i've managed to figure out how to create a pop up window passing parameters.
    The problem though is the original APEX page must be doing some sort of branch when the EMPNO link is passed, as the page refreshes with the following :
    The actual URL used is : javascript:window.open('f?p=101:28:2506768909457997::NO::P28_EMPNO:7369');
    and the page just displays : [object Window]
    Hope this makes sense.
    Thanks in advance

    Report your problem to Apple here: http://www.apple.com/feedback/ipad.html

  • Problem in setting the target property to _SELF of LinkToURL UI Element

    Hi,
    I have a LinkToURL UI Element in my web page which has to open up another page in the same window.
    I tried setting the target property to _SELF, but it's not working.Instead the page is opened in a new child window.
    Please tell me whether to set any other property to get that.
    Thanks and Regards,
    Padma Usha.

    Hi,
    Please give the target value in lowercase "_self".
    Regards, Anilkumar

  • The "open with" dialog doesn't drop down associated applications

    Although I have correctly associated applications to handle specific file types in FF4.0 I am always asked to choose an application in the open/save dialog. Is there any way I can set some sort of drop-down list showing the associated applications for me to choose one? Thanks!

    I have found further issues with the open directory dialog in FM 9 and FM 10, so I thought I would share them in case any developers run into them.
    If the F_ApiChooseFile directory argument is specified as a non-empty string and that path is not valid (i.e. the string cannot be evaluated to an existing directory) the open directory dialog will not be displayed and the function will return immediately without reporting an error in FA_errno. I think most developers who have tried to use the dialog have discovered this behaviour. If you are going to supply the directory argument you should check the path exists before calling F_ApiChooseFile.
    Also, if the F_ApiChooseFile directory argument is specified as an empty string, the function gets the FP_OpenDir property to use for the directory. If FP_OpenDir is not an existing directory (for example, the directory existed in the previous FrameMaker session and at the end of that session the value was saved in the maker.ini, but since then the user has deleted the directory) the open directory dialog will not be displayed and the function will return immediately without reporting an error in FA_errno.
    This problem occurs with API clients built with FDK 9 and FDK10 in FM 9 and FM 10.
    The workaround to this issue is to get FP_OpenDir and check it is a valid path. If it is not valid set it to a valid directory (such as the user's home directory, the FrameMaker current directory or the root of the drive) before calling F_ApiChooseFile.
    It is a pity that the FP_UserHomeDir property of the FO_Session object is not valid in Windows. It would be ideal if this property returned the user's My Documents directory in Windows.

  • Unable to open a seperate java console window with javascript:window.open()

    Hi All,
    I am opening a new window using javascript:window.open() function by clicking an hyperlink in a html document. In this new windows I am trying to load an applet. Only for the first time a java console window is displayed in windows system tray . How can I open a different java console window each time I open a new window ? Basically I want to run each applet in its own JVM and it seems that each applet loaded in new window is using the same JVM and hence only one java console window is seen in my system tray.
    Please help ...
    Thanks & Regards,
    Ravi.

    Hi,
    We are currently facing this exact issue. Did you ever find a resolution?
    Any input would be appreciated.
    Thanks,

  • Batch change the same property of some steps in Teststand3.1

        In Teststand, Test steps like "numeric test","pass/fail test". There's a "run option" in their property dialog, which enable or disable to record results. Sometimes, I need to diable/enable its function together with several steps. I prefer to see a batch method, that is to say, select multiple stpes, then open property dialog and diable them. Unfortunately, current Teststand could not do this only once, but have to slect one and disable one. Is there any better ideas?
      Thanks
      Jacky

    Hi,
    All you need is a sequence, set up in you Tools menu, to pick up the selected steps and change the each of the selected step's proeperty for the reports (Step.TS.NoResults).
    You would look at the RunState.InitialSelection.SelectedSteps which is an array, the size of which will give you the number of selected step. Then loop through the array changing the Step.TS.NoResults.
    There are examples on the NI Website that loop through a sequence, eg http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3EE5556A4E034080020E74861&p_...
    (which gets the step name)
    There are application notes for setting up the Tools menu.
    Hope this gets you going.
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • The opened web pages are not correct even though the address in the link roperty is correct. The web page opens a blank page and says "Done"

    When I search for a web sites, it gives a list of connected web site.
    If I click a particular web site, it immediately opens a blank page and says"done" at the bottom of the page. The opened web address is wrong even though the link property shows the correct address.
    What is wrong?
    Chandra Dhas

    Publish your site to a local folder and launch it in your browser by double clicking the index.html file to see if the problem exists there.

Maybe you are looking for

  • Can you use Apple TV together with an add-on cable-type box?

    We're thinking of buying Apple TV for our 75 yr. old parents for Christmas, but my father inlaw currently pays extra to view live soccer using some add-on cable-type box (sorry, no idea what to call the box).  We do not live in the same city as them,

  • Merge pages in iweb site

    I have not been able to find this question in my searches so I am sorry if this is a repeat: I am trying to do some minor redesigns to my website and one task involves merging two pages that I have created. Both pages are of the blog subtype where I

  • 1080i footage played in Viewer only displays field 1

    I'm using an iMac without an external monitor.  I have 1080i footage.  I can jog forward a field at a time and see both fields individually in the viewer.  But when played real time, my iMac only displays field 1.  Same thing if I play it back full s

  • Please can someone help me to build a query

    Please can someone help me to build a query for getting the following results. I work with Oracle 9. My data is about this: Projectid / Activitycode / Act.DS / Earlystart / ActualStart {color:#ff0000}P001 / 110M / blabla / 1-1-08 / 1-1-08{color} {col

  • Create the data structure

    hi, please let me know how to create the data structure. thanks suja