JQuery Dialog Not Working

My application uses jQuery Dialog should display a message the first time the user goes to the screen. It does not display.
In page 0:
Region Dialogs HTML
Display Point Before Footer
Sequence 1010
Source:
<div id="alert-dialog" style="display:none">
<p id="alert-dialog-text"></p>
</div>In page 2:
Region Instructions HTML
Display Point Before Footer
Sequence 1009
Source:
& nbsp;
Region Footer
<script type="text/javascript">
    firstTime = $v ('P2_FIRST_TIME');
    if (firstTime != "N" || firstTime == null)
   $("#alert-dialog-text").text("Answer each of the following questions completely to the best of your ability. Read all instructions before answering the questions. If you have any questions about completing the form, contact the attorney designated under the Code of Ethics and Financial Disclosure.");
   $("#alert-dialog").dialog('open').dialog("option","title","Instructions").dialog("option", "width", 460 );
</script>Items
Region: Instructions
P2_FIRST_TIME Text Field
It was working at one time. Then I did something (i don't remember what) to not display it temporarily.
Now I need to display it.
Can someone help? Jari helped me last time but if Jari is too busy and someone else can help, I would appreciate. (The 1st person that gets it right I will give him/her "Correct" Points, Others I'll give "Help" Points)
APEX 3.2.1.00.12
DB Oracle 10g Rel 2
Robert
http://apexjscss.blogspot.com

Hi,
Try
<script type="text/javascript">
$(function(){
    firstTime = $v ('P2_FIRST_TIME');
    if (firstTime != "N" || firstTime == null){
     $("#alert-dialog-text").text("Answer each of the following questions completely to the best of your ability. Read all instructions before answering the questions. If you have any questions about completing the form, contact the attorney designated under the Code of Ethics and Financial Disclosure.");
     $("#alert-dialog").dialog('open').dialog("option","title","Instructions").dialog("option", "width", 460 );
</script>So JavaScript is run after whole HTML document is ready
Regards,
Jari

Similar Messages

  • JQuery.js not working in UNIX environment

    Hi All,
    My development environment is Linux with Apache and we are using Coldfusion 9.
    We have developed some part of our code using jQuery.
    This is perfectly working in our DEV environment.
    We shipped the same code to the Production Environment. Which is Coldfusion 5 and Unix Environment with Apache Server.
    The problem is the parameter passing to jQuery is always null.
    Is jQuery will not work in Coldfusion 5?
    Your help is needed.
    Thanks in advance!

    1. CF versions 9 and 5 and radically different.  I wouldn't expect code written for CF9 to run on CF5.
    2. CF runs on the server, jQuery runs in the brower, the version of CF on your server shouldn't be relavent.  You should look for the problem in the HTML, Javascript, CSS, etc. in the browser.
    3. We cannot help diagnose your problem without seeing the code that is causing the problem and any error messages you receive.
    4. If this is a issue with jQuery on the browser you might consider posting a question to a jQuery specific forum.

  • [solved] Gnome 3.14.2 Modal dialogs not working

    Hi,
    updated today and found out that the modal password prompts in Gnome 3 do not work anymore. Does anybody know anything about this?
    I´m experiencing following behaviour:
    Whenever a gnome modal dialog with an input field appears the dialog will freeze after submitting the data. The only action left to click is the cancel action (or the escape key) which of course also cancels the data submission and also cancels the data submission the process.
    I would love to debug this, unfortunately Google hasn´t provided anything useful yet...
    Last edited by justforgetme (2015-01-10 15:21:58)

    Ok, so apparently the Modal dialog not working was based on gdk-pixbuf2 dhaving wrong caches or something.
    When consulting journalctl about gnome in general I discovered that my system had lost the ability to comprehend the svg format. One ddg query later i was  here again just in another topic viewtopic.php?pid=1491839

  • Jquery is not working after i enable the attachments in Share Point EditForm

    Hi ,
    I have customized the Edit form .After customization the attachment functionality is not working and resolved the issue by creating the new Edit form .The attachments section only works if i don't push any j query/java script functions.If i comment below
    line two lines the attachment sections works.But i would need to include them .Could you tell me how would i call below script in EditForm.
    //_spBodyOnLoadFunctionNames.push("Test");
    //_spBodyOnLoadFunctionNames.push("checkStatus");
    <script>
    function redirect(offerID)
      var loc = "DispForm.aspx?ID=" + offerID;
      window.location.href = loc;
    function Test()    
    var TitleValue = "Drafting Communication";//$('#ctl00_m_g_1918401d_e6f3_4b9b_9262_dbb4aabcfd12_ff11_ctl00_ctl00_TextField').val();
    alert(TitleValue );
    if(TitleValue =="Drafting Communication")
    $("select[Title='Workflow Stage']").find('option:contains("Stage 1 – Review")').remove(); 
     $("select[Title='Workflow Stage']").find('option:contains("Stage 2 – Review")').remove(); 
     $("select[Title='Workflow Stage']").find('option:contains("Stage 3 – Review")').remove();
     $("select[Title='Workflow Stage']").find('option:contains("Stage 4 – Review")').remove();
     else if(TitleValue =="Stage-1 Pre Approval Business")
     $("select[Title='Workflow Stage']").find('option:contains("Drafting Communication")').remove(); 
     $("select[Title='Workflow Stage']").find('option:contains("Stage 2 – Review")').remove(); 
     $("select[Title='Workflow Stage']").find('option:contains("Stage 3 – Review")').remove();
     $("select[Title='Workflow Stage']").find('option:contains("Stage 4 – Review")').remove();
    else if(TitleValue =="Stage-2  Approval Marketing")
    $("select[Title='Workflow Stage']").find('option:contains("Drafting Communication")').remove(); 
     $("select[Title='Workflow Stage']").find('option:contains("Stage 1 – Review")').remove(); 
     $("select[Title='Workflow Stage']").find('option:contains("Stage 3 – Review")').remove();
     $("select[Title='Workflow Stage']").find('option:contains("Stage 4 – Review")').remove(); 
    else if(TitleValue =="Stage-3  Approval Director")
     $("select[Title='Workflow Stage']").find('option:contains("Drafting Communication")').remove(); 
     $("select[Title='Workflow Stage']").find('option:contains("Stage 2 – Review")').remove(); 
     $("select[Title='Workflow Stage']").find('option:contains("Stage 1 – Review")').remove();
     $("select[Title='Workflow Stage']").find('option:contains("Stage 4 – Review")').remove(); 
     else
    $("select[Title='Workflow Stage']").find('option:contains("Drafting Communication")').remove(); 
     $("select[Title='Workflow Stage']").find('option:contains("Stage 2 – Review")').remove(); 
     $("select[Title='Workflow Stage']").find('option:contains("Stage 1 – Review")').remove();
     $("select[Title='Workflow Stage']").find('option:contains("Stage 3 – Review")').remove(); 
      $(".SelectA").hide();
    function getTagFromIdentifierAndTitle(tagName, title) 
      var tags = document.getElementsByTagName(tagName);
        for (var i=0; i < tags.length; i++) {
         var tempString = tags[i].id;
        if (tags[i].title== title) {
        alert(tags[i].title);
          return tags[i].value;
      return null;
    function checkStatus() {
      var selectedId = getField('select','Current Status').options[getField('select','Current Status').selectedIndex].value;
       var docID = 73;
      if(selectedId == 'Approved')
       $("input[value$='Save']").attr('disabled', true); 
    function getField(fieldType,fieldTitle) {   
        var docTags = document.getElementsByTagName(fieldType);   
        for (var i=0; i < docTags.length; i++) {   
            if (docTags[i].title == fieldTitle) {   
                return docTags[i]   
    //_spBodyOnLoadFunctionNames.push("Test");
    //_spBodyOnLoadFunctionNames.push("checkStatus");
    </script>

    Hi,
    According to your post, my understanding is that you failed to use the _spBodyOnLoadFunctionNames.push() function.
    Per my knowledge, the _spBodyOnLoadFunctionNames.push() is SharePoint's version of jQuery's $(document).ready() or $(function(){}).
    I recommend you to add a content-editor-webpart on the page and add the code below on the source editor to check whether it works.
     <script language="javascript">
    _spBodyOnLoadFunctionNames.push("FunctionName");
    function FunctionName(){
        alert(Test);
    </script>
    More information:
    SharePoint JavaScript – Page Load Add function: _spBodyOnLoadFunctionNames
    If it works well, the issues is caused by the functions you created.
    You need to check whether your code are correct.
    In addition, you can make init.js loaded before _spBodyOnLoadFunctionNames.
    Here is a similar thread for your reference:
    http://sharepoint.stackexchange.com/questions/93937/spbodyonloadfunctionnames-not-working-on-master-page
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Jquery content not working after the updates from firefox

    Hi, i've realized that some of my website's banner is not working after the recent updates from firefox, whereas those website's banner is working in google chrome.
    Hope there is a solution for this as i'm using the firefox for years and wish this issues can be settle.
    The banner URL is http://www.irs.com.my/slider/index.html

    SlideDeck has a post on how to resolve this error, caused by a bug in this very old version of their library that you're using. See: [http://www.slidedeck.com/blog/firefox-20-update-and-slidedeck-js-weve-got-you-covered/ Firefox 20 update and SlideDeck.js – we’ve got you covered] for more information. As a Pro customer, you were supposed to get an email notice, but... here you are.
    I studied the script before discovering that and found two issues, but there might be more:
    (1) slidedeck.jquery.js detects Firefox 20 as Firefox 2 and halts. Note that this regex is the problem:
    firefox2:F.match(/firefox\/2/)?true:false
    (2) Starting in Firefox 16, the -moz-transform property was unprefixed, that is, you need to use transform for Firefox 16 and later.

  • JQuery Thickbox not working in safari

    i have implemented a jQuery thickbox and calendar on our live site http://www(.)houseofmoli(.)com. We are calling this thickbox from book now button and calendar under "Find an apartment:". The Problem with this is that the thickbox and calendar is opening in Firefox and IE all versions but not in google chrome and Safari. Probably $(document).ready() function is not working here.

    Mmmmm... this humble pie is delish.
    Ok, so after managing to reproduce this error on my old iPad I think I have it sussed. It's not the iPad's fault entirely. It seems that when you lock the iPad is can mess with the timestamps on events. Even after the app is reopened the timestamp seems to think that its back when it was locked. I've worked around this and used getTimestamp. Seems a few other people have seen this as well.
    Hopefully anyone in the same boat will see this. Thanks to anyone who read it.

  • Jquery & JSONP not working

    I am making a web app with the flex html element. I'm trying load a couple of scripts into the index.html file to recive data, but there is one problem. I'm not getting the data.
    I'm using Flash Builder 4.6 & SDK 4.6.0 to create the desktop application.
    Here is the script I'm trying to run. It works when running it in the browser (google chrome, safari, firefox) but its not working in Adobe Air Desktop App.  HELP!!
              <script src="js/jquery-1.7.2.min.js" type="text/javascript"></script>
    </head> 
    <script type="text/javascript">
              function updatedata() {
                        if(getdata == 'test'){
                                  $.getJSON('https://api.twitch.tv/kraken/channels/bmacbook?callback=?', function beta(data) {
                                                      document.getElementById("title").innerHTML= data.status;
    </script>

    I suspect you are running into a sanbox security issue here.  See these docs/posts for details:
    http://www.adobe.com/devnet/air/articles/introduction_to_air_security.html
    http://www.adobe.com/devnet/air/ajax/quickstart/articles/sandbox_bridge.html
    http://help.adobe.com/en_US/as3/dev/WS5b3ccc516d4fbf351e63e3d118a9b90204-7e3f.html
    http://stackoverflow.com/questions/785823/accessing-an-iframes-contents-in-adobe-air

  • Mac OS printer dialog not working

    I searched the internet and found lots of similar posts but none exactly matched my situations and the solutions other people provided did not work.
    Mac 10.9.4
    Printer HP ENVY 4500 Series
    Adobe Reader 11.0.07 (already tried reinstalling)
    I want to do 2-sided printing and I learned from the internet that I had to use the OS printer dialog (by pressing "Printer" at the bottom of the Adobe printing dialog). But after pressing "Print" on the OS printer dialog, nothing happens. No errors. Print job doesn't even show up. It does print if I use the Adobe dialog, but it only prints on one side. I actually successfully printed duplex using the OS dialog last week but now it just doesn't work.
    Please help! This is so frustrating.

    I am also facing the same problem.
    I brought a Mac mini and tried for Software update. After downloading it asks for restart and then start installation ....after that it just shows configuring installation ... and no progress ... i had to restart the machine.
    it may be problem with download.
    is there any way i can download software update again ?
    Because next time i start software update it shows me download completed after few secs...
    can i delete the previous software download

  • JQuery Code Not Working (Positioning Nav at a fixed point)?

    Hello So lets just cut to the cace,
    This code does work outside of Edge but doesn't work in edge. . . .
    $(window).bind('scroll', function () {
            sym.$("arroworb").addClass('fixed');
    The Object i want to keep in its place at all times even if the scroll bar is moved has the div ID of arroworb. . .
    I have no Idea what i am doing wrong but yeah the code does work it just doesn't when put into Edge
    My guess would be the window or blind has something to do with it not working but I have no idea how to fix this,
    Any idea's?
    Thanks In Advance!

    Here is a small example, using animate, as Joe mentions.
    In Stage > compostionReady
    $(window).scroll(function(){
           var element = sym.$("arroworb");
           element.stop()
      .animate({"marginTop": ($(window).scrollTop() + 30) + "px"}, "slow" );
    View here http://www.heathrowe.com/edge/scroll_with_page/
    Download here http://www.heathrowe.com/edge/scroll_with_page/scrollwithpage.zip
    hth
    Darrell

  • Dymanic action with jQuery selector not working in version 4.2.2

    Hi,
    We’re in the process upgrading to APEX version 4.2.2. We have an issue is with a report with a link that’s firing a dynamic action with a jQuery selector.
    The first sequence in the dynamic action is Confirm. When we click the link in the report it’s supposed to popup a confirm “Are you sure you want to save?"
    When we click the link nothing happens. This works in our current version 4.0.1, but not in 4.2.2. Do you have any ideas?
    Thanks,
    Joe

    change the
    in the url to
    javascript:void(0);
    The reason for your issue is that the default action of the anchor tag is not prevented and thus navigation occurs. A confirm action will return true or false, and execution of further true actions will stop when selecting cancel but this will still not prevent the default action from occuring. Similarly a cancel event true action is not adequete as this has to be run after the confirm so not accounting for the execution-stopping cancel of the confirm.
    That javascript in the url is some good ol' "hack". It'll run that javascript instead of performing a navigation and void(0) just does nothing, and the click dynamic action will be unaffected.

  • JQuery animate not working in Safari after auto lock on IOS 8.2

    Hi Guys,
    We are developing a browser-based video platform which makes use of jQuery's .animate function and am encountering some problems. The animate function is used to simulate inertia when dragging buttons around. This all works perfectly, until the iPad auto-locks after 2 minutes. Once the iPad is unlocked, all inertia is gone. there's no error that I can see, the animate just doesn't work. Refreshing the page doesn't restore functionality, neither does re-entering the address manually into the address bar or navigating to the apps page and back. The only way to restore functionality is to double-tap the iPad's Home button to bring up the apps menu and swipe Safari up to close it.
    'It's the code' I hear you cry. Well, I have 2 iPads for testing. One is an iPad 3, the other is a brand new iPad air. Both are on IOS 8.2. The old iPad works perfectly all the time in the exact same condition when the iPad air fails. I've also tried factory resetting the iPad air to try to resolve this but without success.
    I've also done a lot of research into this and have seen the posts on stackoverflow saying a few people have resolved the issue with the upgrade from 8.1 -> 8.11 (I also had this issue on 8.1, the version that came with the iPad). Alas I still have it on 8.2.
    Also, before anyone tells me to use CSS3 transitions, I use this on other platforms which work perfectly and do not support CSS3.
    Thanks in advance for any help anyone can provide.
    Problem iPad:
    Version: 8.2 (12D508)
    Model: MD785B/B
    Working iPad:
    Version: 8.2 (12D508)
    Model: MC705B/A

    Mmmmm... this humble pie is delish.
    Ok, so after managing to reproduce this error on my old iPad I think I have it sussed. It's not the iPad's fault entirely. It seems that when you lock the iPad is can mess with the timestamps on events. Even after the app is reopened the timestamp seems to think that its back when it was locked. I've worked around this and used getTimestamp. Seems a few other people have seen this as well.
    Hopefully anyone in the same boat will see this. Thanks to anyone who read it.

  • JQuery/Javascript not working on Firefox and Chrome

    Hi guys, I've had this Jquery/Javascript on my page for a long time. This has stopped working. If the user clicks on buttons on the Apex page, nothing happens.
    It works on IE but doesn't work on Firefox and Chrome. It used to work fine.
    Is there anything I can change to make it work on all 3 browsers?
    Firefox error console shows a syntax error at this point in the script:
    $allButtons.click(function(){
    itemChanged = false;
    var toDo = $(this).attr('data-submitval');
    eval(toDo);
    Please can someone help?
    This is the full script:
    <script type="text/javascript">
    //<![CDATA[
    var itemChanged = false;
    $(document).ready(function(){
    var $items = $(':input');
    var $htmlButtons = $(':button[id]');
    var $templateButtons = $(':button[class]');
    var $allButtons = $($htmlButtons).add($templateButtons);
    $items.change(function() {
    itemChanged = true;
    $templateButtons.attr('data-submitval', function(){
    return $(this).attr('onclick').toString().split('\n')[2];
    $htmlButtons.attr('data-submitval', function(){
    return this.id;
    $allButtons.removeAttr('onclick');
    $allButtons.click(function(){
    itemChanged = false;
    var toDo = $(this).attr('data-submitval');
    eval(toDo);
    $('a').click(function(event){
    if ($(this).children('img[id="P&APP_PAGE_ID._DATE_PICKER_IMG"]').length > 0) {
    event.preventDefault();
    eval($(this).attr('href'));
    window.onbeforeunload = function() {
    if (itemChanged) {
    return 'You have made changes to data on this page. If you navigate away from this page without first saving your data, the changes will be lost.';
    //]]>
    </script>
    Thanks
    Sam
    Edited by: sam on 29-Jan-2013 03:50

    JavaScript doesn't work on any site at all? If particular sites are the issue, or you get specific error messages, please let us know.
    Usually the only two ways to disable JavaScript in Firefox are:
    (1) Options dialog > Content tab<br>
    (2) NoScript add-on (or other security-related add-ons)
    Normally Safe Mode bypasses issues caused by add-on problems or non-default settings, so it's worth considering external issues.
    Does JavaScript work normally in any other browsers you have installed?

  • JQuery script not working after DW update

    After updating to the latest DreamWeaver Version 12 build 5861 a jQuery script for collapsible panels no longer works.
    I had used the script many times in the past few years on various sites and when I open the html and php pages I created in the past the script still runs in Live View and as a web page.
    As I mentioned above since I updated to build 5861 the script no longer works for any new pages I create. I used FireFox view source to confirm the links to the jQuery engine and the actual script are correct. I have placed the engine script link above the actual script, as well as deleted additional links to other engines used by other plug-ins.
    Any thoughts would be appreciated.

    I discovered the cause but not the solution.
    After the update and the creation of a new site the first element I created involved a jQuery script and when I went to check it's functionality it failed. I have been mostly obsessing on getting various scripts to work. As I mentioned if I placed the code in the head all was fine, if I linked to a script file it failed and according to FireFox view source the html was linked to the file.
    Well a few minutes ago I bypassed the script issue and placed an image in a document and saw that Dreamweaver wrote the code as a absolute path to the image rather than a relative path.
    Before the update DW accepted a relative path for the scripts such as:
        <script type="text/javascript" src="scripts/diQuery-collapsiblePanel.js"></script>
    After the update I can get the scripts to work if I enter absolute paths:
        <script src="http://localhost/panel/scripts/diQuery-collapsiblePanel.js"></script>
    The funny thing is that the CSS files work fine with relative paths.
    I thought perhaps I set the site up incorrectly and had the links referencing the Site Root instead of the document but thats not the case. It is set to Document and should be creating Relative paths to images.
    I can not see any other Preference settings involving the way paths are written. I would really like to get back to Relative paths for all elements.
    Any thoughts?

  • External Dialog not working (Jdev 11.1.1)

    ADF is not opening up a new browser and launchListener is not being invoked
    This is what I've done so far:
    1. Created navigation rule in faces.config.xml:
    <navigation-case>
    <from-outcome>dialog:showXML</from-outcome>
    <to-view-id>/invoiceXMLDialog.jsp</to-view-id>
    </navigation-case>
    2. Created the corresponding JSP
    3. Invoke the dialog using a CommandButton
    <af:commandButton text="Invoke Dialog" id="myButton"
    action="dialog:showXML"
    useWindow="true"
    windowHeight="200"
    windowWidth="500"
    partialSubmit="true"
    launchListener="#{invoiceViewer.onDialogActionListener}">
    </af:commandButton>
    4. Disabled popup blocker in my browser
    Any help will be really appreciated,
    MV

    It seems that you use faces-config.xml for your navigation rules.
    you should use adfc-config.xml or bounded task flow for this navigation to work.
    <control-flow-rule>
    <from-activity-id>TestPage</from-activity-id>
    <control-flow-case>
    <from-outcome>dialog:openDialog</from-outcome>
    <to-activity-id>Testdialog</to-activity-id>
    </control-flow-case>
    </control-flow-rule>

  • Jquery autocomplete not working within WCI 10g R3

    Hi we have written below code that works fine outside of portal to load an autocomplete. But with in portal it gets stuck on java script call to some defualt java script that WCI renders while typing in autocomplete text box. We tested on a blank community page.PLease let su know if there is anything OOB in WCI for autocomplete text box or how can we get this to work.
    Code for JSP
    <%@ page contentType="text/html;charset=windows-1252"%>
    <%@ taglib prefix="html" uri="http://jakarta.apache.org/struts/tags-html" %>
    <style type="text/css" media="all">
              /* NOTE: Do not remove this style. The "listHiliteText" style is used
              to highlight search terms in the result's extract section.
              For example, a search for "Plumtree" might return:
              ...The <span class="listHiliteText">Plumtree Corporate Portal...
              .listHiliteText {background=lightblue}
              .bcTrail { font:normal 10px Verdana; padding-left:5px; color:#3D3937; padding-right:2px; }
         .mainContent { padding : 0px 8px 2px 5px;margin: 10px 0px 0px 5px;font : normal 11px Verdana;color : #3D3937; }
         .Normal { font : normal 11px Verdana; color : #000000; }
              </style>
    <link rel="stylesheet" type="text/css" href="jquery.autocomplete.css" />
    <script src="jquery.min.js" type="text/javascript" charset="utf-8"></script>
    <script src="jquery.autocomplete.js" type="text/javascript"></script>
    <script id="search" type="text/javascript">
    $(document).ready(function() {
    $("#searchQuery").autocomplete('http://10.61.239.222:8989/CRIPSearch/CRIPBasicSearchSavedRecords.jsp');
    </script>
                             <div class="bcTrail">Home &gt; Basic Search</div>
                             <div class="mainContent">
                                  <html:form name="CRIPBasicSearch" action="/CRIPBasicSearchAction.do" type="com.wcisearch.form.CRIPBasicSearchForm">
                                       <strong>Enter your query here:</strong><br>
                                       <br>
                                  <!--     <html:text property="searchQuery" />-->
    <input type="text" name="searchQuery" id="searchQuery" value="" />
    <html:hidden name="start" value="1" property="start"/>
                                       <html:hidden name="count" value="10" property="count"/>
    <html:submit value="Search"/>
                                       <br>
                                       Tips for searching
                                       <br>
                                       <br>
                             </html:form>
    </div>
    view source in portal::::: Java script error in below javascript is being called when typing in the autocomplete text box:
    <script type="text/javascript">
    //Gray out and disable anchor links by passing in the object id
    disableAnchor = function(objId, disable)
    var obj = document.getElementById(objId);
    if(obj != null)
    if(disable)
    var href = obj.getAttribute("href");
    var onclick = obj.getAttribute("onclick");
    //Store the previous value in a new attribute
    if(href && href != "" && href != null)
    obj.setAttribute('href_bak', href);
    if(onclick != null)
    obj.setAttribute('onclick_back', onclick);
    obj.setAttribute('onclick', "void(0);");
    obj.removeAttribute('href');
    obj.style.color="gray";
    else
    //Swap back in the original href and onclick values
    var hrefBack = obj.getAttribute("href_bak");
    var onclickBack = obj.getAttribute("onclick_back");
    if(onclickBack !=null )
    obj.setAttribute('onclick', onclickBack);
    obj.removeAttribute('onclick_back');
    if(hrefBack !=null )
    obj.setAttribute('href', hrefBack);
    obj.removeAttribute('href_bak');
    obj.style.color="blue";
    </script>

    ptportletservices.js:
    line 588 (this is 6.1 mp1). no idea if this helps you or not btw.
    //modified by JDC
    PTPortletServices.prototype.RaiseWindowEvent = function(objEventArgs)
         try{
              if (this && this.RaiseEvent)
                   this.RaiseEvent(this.WindowEventURN, 'on' + arguments[0].type, arguments[0]);
              else if (document.PCC && document.PCC.RaiseEvent)
                   document.PCC.RaiseEvent(document.PCC.WindowEventURN, 'on' + arguments[0].type, arguments[0]);
         }catch(e){}
    }

Maybe you are looking for