Pulling Dynamic Conntent

In this example
http://htmldb.oracle.com/pls/otn/f?p=31517:98
I am trying to do what Carl suggested in this thread:
Partial refreshing of pages in 2.0 ?
and this example:
http://htmldb.oracle.com/pls/otn/f?p=11933:48
It works as expected. Now, I am trying to get it working with a report, by clicking
on the report row instead of selecting the value from a pull down. Obviously, the
problem is in getting the right value from the report. The report will be pulled but it
will show "no data found" message. Does anyone know how to modifiy the javascript
to pass the current row value?
One more thing: moving the mouse over the rows of "pulled" report will generate
numerous javascript errors of the same type:
"row_mouse_out4628953914518701556 is not defined"
Denes Kubicek

Hi Denes,
I am trying to use your examples and Carl's for a reports page, with some changes that I'm not quite sure how to do. I'm hoping you, or someone, can point me in the right direction.
I have a select list with my report names. When I select each report, I would like different parameters to appear. (Based on a hidden page value that the select list sets) Once the parameters are set, the user will hit 'Go' which submits the page and returns the report results. So far, I have 3 reports in the list, and each one is its own region (all reports regions).
I have taken the javascript provided and placed it in a script that my page references. I have gotten this to work as far as when the select list changes, P2_ACTION gets set to the proper value, with no page submits. The ReportDrop section I dont think is working, but I think my requirements for it are a bit different?
My question is is it possible to change the parameters that show based on this, or should I just go with a page submit on the select list?
Here is what I have in the javascript function:
// jehansen 033108
// show region based on pThis value
// from http://apex.oracle.com/pls/otn/f?p=11933:48:2193802626505248
// Carl Backstrom app, 'Ajax Region Pull'
function dhtml_GetReport(pThis, pPage, pReg, pAct)
var l_Val = html_SelectValue(pThis);
var get = new htmldb_Get(null, $x('pFlowID').value, null, pPage);
get.add(pAct, l_Val);
gReturn = get.get(null, '<htmldb:BOX_BODY>', '</htmldb:BOX_BODY>');
get = null;
$x(pReg).innerHtml = gReturn;
return;
Here is my call from the Select List, which is a page 0 item:
onchange="dhtml_GetReport(this, 2, 'ReportDrop', 'P2_ACTION')";
Do you think this is possible? Any help would be greatly appreciated!!
Thanks,
Janel

Similar Messages

  • Ajax Dynamic Conntent -- pull report from different page

    Hi All,
    I am reposting my question, the previous thread was hacked by Fifi :-) . I am trying to implement Denes's solution in this Pulling Dynamic Conntent . Somehow I am getting java script error "unknown runtime error". on page load itself. It is giving error at the code html_GetElement('ReportDrop').innerHTML = gReturn;
    I believe I am missing some of the referenced java script files.
    Any help please ?
    I have kept my application on Apex.oracle.come
    workspace : edw_apex
    manish/manish
    Thanks
    Manish

    Finally I figured out the page template was missing, which was causing the issue. Just overwrote the body and footer of the template from this Make a copy of exiting page template and replace the body part with the code below:
    <htmldb:SUCCESS_MESSAGE><div id="SUCCESS_MESSAGE">#SUCCESS_MESSAGE#</div></htmldb:SUCCESS_MESSAGE>
    <htmldb:NOTIFICATION_MESSAGE><div id="NOTIFICATION_MESSAGE">#NOTIFICATION_MESSAGE#</div></htmldb:NOTIFICATION_MESSAGE>
    <htmldb:GLOBAL_NOTIFICATION><div id="GLOBAL_NOTIFICATION">#GLOBAL_NOTIFICATION#</div></htmldb:GLOBAL_NOTIFICATION>
    <htmldb:REGION_POSITION_01><div id="REGION_POSITION_01">#REGION_POSITION_01#</div></htmldb:REGION_POSITION_01>
    <htmldb:REGION_POSITION_02><div id="REGION_POSITION_02">#REGION_POSITION_02#</div></htmldb:REGION_POSITION_02>
    <htmldb:REGION_POSITION_03><div id="REGION_POSITION_03">#REGION_POSITION_03#</div></htmldb:REGION_POSITION_03>
    <htmldb:REGION_POSITION_04><div id="REGION_POSITION_04">#REGION_POSITION_04#</div></htmldb:REGION_POSITION_04>
    <htmldb:REGION_POSITION_05><div id="REGION_POSITION_05">#REGION_POSITION_05#</div></htmldb:REGION_POSITION_05>
    <htmldb:REGION_POSITION_06><div id="REGION_POSITION_06">#REGION_POSITION_06#</div></htmldb:REGION_POSITION_06>
    <htmldb:REGION_POSITION_08><div id="REGION_POSITION_08">#REGION_POSITION_08#</div></htmldb:REGION_POSITION_08>
    <htmldb:BOX_BODY><div id="BOX_BODY">#BOX_BODY#</div></htmldb:BOX_BODY>
    Replace the footer part with the code
    #FORM_CLOSE#</body></html>Thanks again !!
    --Manish                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Pulling dynamic images/JS issue

    Hi All,
    I have a problem I was hoping I could get some help with. I
    am using Zoomify (www.zoomify.com) to zoom in on products. The
    products are loaded up dynamically based on a sting that is passed
    after the URL. Example:
    http://www.grjd.com/zoom/dynamic.html?zoomifyImagePath=back/&zoomifyZoom=25&zoomifyMinZoom =25
    Problem is I am unable to get rid of IE’s ‘click
    to activate this control’ annoyance. Typically I use the
    general JS’s out there to remedy the issue, however the
    javascript that is currently available doesn’t jive with the
    javascript in the HTML (see below) that declares the variables that
    in turn pull in the dynamic images.
    Does anyone have a remedy for this? Any help would VERY MUCH
    be appreciated.
    Thanks,
    Greg.
    HTML Code:
    <script language="javascript">
    var urlString = document.location.href;
    var paramIndex = urlString.indexOf("?")+1;
    var paramString =
    urlString.substring(paramIndex,urlString.length);
    document.write("<OBJECT
    CLASSID='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'");
    document.write("CODEBASE='
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0'");
    document.write("WIDTH='503'");
    document.write("HEIGHT='385'");
    document.write("ID='theMovie'>");
    document.write("<PARAM NAME='src'
    VALUE='zoomifyDynamicViewer.swf'>");
    document.write("<PARAM NAME='FlashVars' VALUE='" +
    paramString + "' >");
    document.write("<EMBED SRC='zoomifyDynamicViewer.swf'");
    document.write("FlashVars='" + paramString + "'");
    document.write("PLUGINSPAGE='
    http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash'");
    document.write("WIDTH='503'");
    document.write("HEIGHT='385'");
    document.write("NAME='theMovie'>");
    document.write("</EMBED>");
    document.write("</OBJECT>");
    </script>

    Have you tried SWFObject?
    http://www.explorinlauren.com/repository/flash/fixing-the-flash-embed-issue-for-internet-e xplorer.html

  • How do I show multiple rollover images on a page inserted dynamically (pulled out of a sql database

    How do I show multiple rollover images on a page inserted dynamically (pulled out of a sql database table) using Dreamweaver’s Repeat Region. Example: I have different products each one associated (through their productID) with two images (one that’s showing in the page and one for the rollover effect) that are pulled from a database using Dreamweaver’s Recordset. So I want to end up with a page containing row after row of images(one for every product).When moused over each image will reveal the second (rollover) image for the same product which in turn can be a link(the image itself ) that when clicked leads to a detailed page with more information about the product the image is associated with. To show row after row with images for the different products in the database table I am using Dreamweaver’s Insert Rollover Image command and then the  Repeat Region – I have no problem to complete the steps, to insert the image and the rollover one at once and set the paths so they are pulled dynamically depending on the productID they are associated with .I have also no problem to apply the Repeat Region so not only the first image associated with the first product in the table is shown but all of them-a routine and standard procedure when using the Repeat Region to dynamically generate and display multiple rows of data. However, when I preview the page the rollover effect is lost –the images are shown but when moused over the second  image does not  show. The problem is caused when the Repeat Region is applied-once again I am allowed to apply it but the rollover stops working, a kind of interference. ANY SOLLUTION PLEASE, ANY WORK AROUND.

    I gotta tell you, using multiple images for rollover effects is going to be a big challenge in your dynamic scenario. 
    If this were my product page, I would use thumbnails with a bit of CSS opacity or filters to desaturate and make them full opacity/color on mouse over.  Nice effect with much less bandwidth. Easily done globally with CSS code.
    Two examples:
    http://alt-web.com/GALLERY/GalleryTest.php
    http://alt-web.com/TEMPLATES/CSS-Semi-liq-photo-sheet.shtml
    Nancy O.

  • Dynamic Calc, 2 Pass with Attributes!

    Hi there,We have an Occupancy KPI within our Measures dimension, that works off the following member calc:(("Agency"/"Occupancy")/"Actual"->"DayInMonth"->"DummyHome")*7;This is set with <Dynamic Calc> <Two-Pass>This works great accross our cost centres until we start to use attributes within the ADD-In. Then the figures are shown as #Missing - Nuts!Any ideas would be welcomeMany Thanks in advanceMark

    Are you also trying to pull dynamic time series or any other dynamically calculated member? If every other intersection is stored, I would expect this to work. However, if you attempt to pull, say Q-T-D(&CurrWk), then a #Mi result is quite possible, and unavoidable (depending on your outline).

  • Jump Box to Dynamic Page

    Greetings all. I have a contact management database for
    different departments. As it stand right now, I have a list for
    each department, and when you click on a department it takes you to
    a webpage that populates with information pertaining to the
    selected department. What I'm trying to do is replace the simple
    list with a jump menu. I know how to populate the jump menu with
    dynamic data, but how do I pass a URL variable? Also, I'm wanting
    the site to go to the same page regardless of which department the
    select. How do I tell the jump menu to go to page x if the labels
    are pulled dynamically from a table? Thank you in advance for the
    help.

    Bookmarks have been removed from Pages 5.2.
    Use Pages '09 if you have it.
    Peter

  • Dynamic page information from the portal database?

    Is it possible to get information about existing dynamic pages from the portal database? We're upgrading our portal from 9.0.4 to 10.1.4 and because we will be running the new version on a different platform, we can't run any upgrade scripts and need to build again from scratch. I was hoping I could pull dynamic page information from a portal view or table into a spreadsheet, to save our developers having to click into each dynamic page application in the old version to get the pl/sql code to copy and paste into the new version. The generated dynamic page packages just have api calls, so it may be possible that there's an api to do this. Does anyone know if this is possible, and if so, how to do it? Thanks.

    closing the thread

  • Comparing dynamic fields of objects using equals and hashCode methods

    To compare the different objects of the same class with their contents like jobTitleId, classificationId, deptId & classificationId was to be done and do some manipulations later using Set and Map. I was able to do that by simply overriding the equals and hashCode methods of Object class and was able to fetch the information (like in the following Map).
        Map<LocationData, List<LocationData>>
    The following is the class I used (its been shown to you so that it can be referred for my problem statement):
    LocationData class
        package com.astreait.bulkloader;
        public class LocationData {    
            String locId, deptId, jobTitleId, classificationId;
            @Override  
            public boolean equals(Object obj) {        
                LocationData ld = (LocationData)obj;       
                return this.deptId.equals(ld.deptId) && this.jobTitleId.equals(ld.jobTitleId) && this.classificationId.equals(ld.classificationId) &&
        this.locId.equals(ld.locId);   
            @Override  
            public int hashCode() {        
                return deptId.hashCode() + jobTitleId.hashCode() + classificationId.hashCode() +locId.hashCode();  
    Problem:
    I'm already known to which all fields of this object I need to make the comparison.
    i.e I'm bound to use the variables named classificationId, deptId, jobTitleId & locId etc.
    Need:
    I need to customize this logic such that the fields Names (classificationId, deptId, jobTitleId & locId etc) can be pulled dynamically along with their values. So, as far as my understanding I made use of 2 classes (TableClass and ColWithData) such that the List of ColWithData is there in TableClass object.
    I'm thinking what if I override the same two methods `equals() & hashCode();`
    such that the same can be achieved.
        TableClass class #1
        class TableClass{
            List<ColWithData> cwdList;
            @Override
            public boolean equals(Object obj) {
                boolean returnVal = false;
                        // I need to have the logic to be defined such that
                        // all of the dynamic fields can be compared
                return returnVal;
            @Override
            public int hashCode() {
                int returnVal = 0;
                        // I need to have the logic to be defined such that
                        // all of the dynamic fields can be found for their individual hashCodes
                return returnVal;
    ColWithData class #2
        class ColWithData{
            String col; // here the jobTitleId, classificationId, deptId, locId or any other more fields info can come.
            String data; // The corresponding data or value for each jobTitleId, classificationId, deptId, locId or any other more fields.
    Please let me know if I'm proceeding in the right direction or I should make some any other approach. If it is ok to use the current approach then what should be performed in the equals and hashCode methods?
    Finally I need to make the map as: (Its not the concern how I will make, but can be considered as my desired result from this logic)
        Map<TableClass, List<TableClass>> finalMap;

    Hello,
    What is the relation with the Oracle Forms tool ?
    Francois

  • Digital Signature in Reader

    I'm trying to design some fillable forms that some of our employees are required to sign. I see how I (as the designer) can sign the form using a digital signature. But can I setup my form to allow it during the form filling process with Reader? Any thoughts or advise is greatly appreciated.
    My second thought and less secure is to put an image of their signature on the form, but I would need to pull dynamically from SQL. Not sure that is possible.
    Thanks
    Greg

    "There is a 500 times use limit on the form, UNLESS you use LifeCycle Reader Extensions."
    Can you explain this please. What are Lifecyle Reader Extensions"? How do I get more than 500? I have rights enabled so that users can save forms and use signatures. I have had NO luck with sending data files (as opposed to pdf) using a submit button. The data files won't open, my only options are xml which opens delimited--style data in a browser and xpd which opens a black screen in acrobat and says "data is not compatible or has been submitted via email". Pdfs send perfectly via email and also my clients know what pdf files are and understand them....data files will scare them...unless I can get it to work properly, which I have not been able to do.
    I have been asking questions here for weeks and still have NO adequate answers or solutions.
    I am using over 100 uses just to test the process with my clients. We have over 40 forms with submit buttons! That doesn't leave many users left.
    Please, any tips on how to make this work would be appreciated.
    Thanks!

  • Looking for a Flash Coder

    Hello! I'm looking for a Flash Coder/Designer to Create Quantity of 5 Flash Animations which pull dynamic text from a XML File.
    Here's the URL of the type of animation styles we like,
    http://tinyurl.com/38r8wo2
    Our finished animation graphics should have a fun look with easy interchangeable sponsors sponsors like the ones in these examples.
    http://tinyurl.com/249gf5l
    The 2 types of animations we require are, one that will display dynamic polling information, the other will be text scrolling horizontally and vertically in a smooth manor.
    The selected designer will receive the .XML Files which the action script will pull the information from.
    We would like the following animations:
    1) Every time a new Text is added to the external XML file, that text is "SMACKED" on the screen, tiny from the distance to big on the screen, it will streak down the screen until it disappears off the bottom of the screen, this will be in a random manor, the text will have rotation angles of 140degrees. The font can be changed easily, as well as the background graphic. It should also contain a holder for a logo in the lower right hand corner which will jiggle whenever a new TEXT is detected.
    2) Every time a new Text is added to the external XML file, it will jump up from the lower part of the screen and stop at the top of the screen, every time a new text comes in, it will stack below that, bumping the top one up. This will happen infinitely. There should be a holder for a logo in the lower right hand corner, this logo should Blink everytime a new text is detected.
    3) Every time a new Text is detected is should scroll from right to left. In between each new text, a logo should scroll with the text. This scroll should easily be able to switch from right to left, and with logo and no logo.
    4) If possible to create a 3D effect, the actual REAL 3D effect that people use to watch with those RED and BLUE glasses. This text would fly in from the far distance and appear big on the screen, it should use Depth of field so the text appear to be flying out of the screen.
    5) Voting Poll Animation, should match the examples given in the URL.
    Thanks! Budget is about $200 total. If interested please email me [email protected]

    >>looking for a top flash developer with dream
    actionscripting skills
    Isn't everybody these days...
    Wrong place to post this ->
    http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid=38&catid=219

  • Loop or count for unique in dropdown?

    I'm trying to build my first dynamic dropdown populated from an XML file.
    The XSD and XML files are output from Access. The nodes of the XML are pretty simple, example as follows:
    <AllStudentsAllSchools>
    <LastName>Doe<LastName>
    <FirstName>Jane<FirstName>
    <SchoolName>Main street Middle<SchoolName>
    </AllStudentsAllSchools>
    The dyanamics on the PDF are running - I'm getting fields filled from the XML.
    (As in the above sample XML) For a dropdown to just list the unique school names and not repeat every row that contains a school name... Do I loop through the XML with a javascript loop or count, etc? Or can this be set up automatically in Livecycle, maybe with the Dynamic Properties dialog under the binding tab?
    Currently, what I have is the dropdown only reads the first row, pulling only one school name.
    Each of the subforms within the main flowed form are set up as Fragments (Including this school name dropdown). Some fragments are dynamic and some not. The dropdown within the fragment is the dynamic one, reading the XML file. The same XML file is the data connection for the PDF (that contains the Fragments).
    Example PDF, XSD and XML attached, although the dropdown isn't set up as a Fragment here.
    Thanks for any responses...
    - e

    Thanks so much for the advice, Ben.
    I'm not sure where to put the code you sent.
    I have an on "exit" switch case javascript on this dropdown that calls the next dropdowns that appear when a user selects a school name.
    I tried putting your code above this switch case as well as below it but neither pulled dynamically from the dom.
    The PDF default connection is the XSD and XML (on the PDF that contains this school names dropdown fragment). There are many other nodes in the XML - with the school names dropdown and a couple of other dropdowns being dynamic - a 'swith-case' on both static and dynamic dropdowns.
    Is the three step code you sent to be set up on the fragment containing this dropdown or on the PDF itself that contains this subform-fragment? Do I need to set up the default data connection on the fragment file as well or does the '3 step' javascript not need this?
    I'm not sure how to mix the switch-case with what you sent since I wouldn't know before hand how many schools the dropdown may display at any given time. I know I could'nt use the following since there would be more than just a "case 0". Maybe just an "on select anything" type javascript?
    switch (this.selectedIndex){
    case 0 : ewcDataManageSubform.presence = "visible";
                 ewcPermissionsSubform.presence = "hidden";
                 ewcOrderBySubform.presence = "hidden";
                 SubmitButton1Subform.presence = "hidden";
                 break;
    default : ewcDataManageSubform.presence = "hidden";
                 ewcPermissionsSubform.presence = "hidden";
                 ewcAnthropoSubform.presence = "hidden";
                 ewcFitTestSubform.presence = "hidden";
                 ewcOrderBySubform.presence = "hidden";
                 SubmitButton1Subform.presence = "hidden";
                 break;
    Thanks again for your input and sending the javascript solution... Just not sure where to put it and if I need to bind the fragment form to a default connection pointing to the XML (as well as the PDF that displays the fragment subform). A learning curve for me here but, what an awesome program this is!
    - e

  • Css style sheet through ASP CMS not displaying in Safari only

    Seeing a quirk in Safari 5 Mac OSX only where it won't pull the CSS file. IE, Opera, Firefox, Chrome don't seem to be having the issue. It is intermittent though, and I know it isn't the server connection.
    Wondering if it may be the way the css path is written. It is a dynamic ASP CMS custom built site. There is a ton of javascript and backend ASP scripting that pulls a bunch of css files via an extended URL with the filenames separated by commas. The path is relative to the CSS file, but the path does start with / not just the folder/file.
    I thought I remembered seeing an issue years ago with another php/mysql CMS site because the url of the relative path had or did not have a / beginning the path, but I couldn't remember what exactly was the resolution on it. Maybe it is the way the css files are being pulled dynamically appending several css filenames with the format:
    css.ashx?file=filename1,filename2,filename3
    ...Or maybe it's just Microsoft ASP doesn't like Safari and vice versa

    JimH430 wrote:
    > I'm new to DW - always used GoLive - making the
    transition. I've
    > created styles in an internal style sheet and moved them
    over to an
    > external style sheet. The page works just fine on my
    computer with
    > the external style sheet in each browser I check it in
    but... When I
    > upload the page with the external style sheet to the
    server- it only
    > works on in Safari, Opera, Windows IE-6. It will not
    work in FireFox
    > 2 and Netscape 9. It acts as if there is no style sheet
    connected to
    > the document. Can someone explain what is going on? I've
    tried
    > everything but can't figure it out. Don't know enough to
    ask the
    > right questions in google.
    http://www.summitcom.net/pii/index5.html
    > Any and all help really appreciated. Thanks, Jim
    You have validation errors on your page - see
    http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fwww.summitcom.net%2Fpii%2Findex5. html
    Fix them, and then see if you still have the problem.
    HTH,
    Pete.
    Peter Connolly
    http://www.kpdirection.com
    Utah

  • Actionscript 3.0 question

    Hi, all
    I absolutely do not know Actionscript 3.0 syntax and need to fix this FAST (of course).
    I named my instance, and used this code snippet. It works:
    thirtyYearFixed.addEventListener(MouseEvent.CLICK, fl_ClickToGoToWebPage_3);
    function fl_ClickToGoToWebPage_3(event:MouseEvent):void
        navigateToURL(new URLRequest("http://www.adobe.com"), "_blank");
    this is the previous code, actionscript 2.0 which is pulling dynamic data from the xml:
    on(release) {
        getURL(clickTAG + "?*", "_blank");
    THE QUESTION:
    how do I get it to link to the clickTAG, dynamic data (instead of http://www.adobe.com)
    tia,
    jarnot

    Yup. Thanks! It works. This is what it looks like:
    thirtyYearFixed.addEventListener (MouseEvent.CLICK, onClick);
    fifteenYearFixed.addEventListener (MouseEvent.CLICK, onClick);
    fiveOneArm.addEventListener (MouseEvent.CLICK, onClick);
    seeMoreRates.addEventListener (MouseEvent.CLICK, onClick);
    buttonMovie.addEventListener (MouseEvent.CLICK, onClick);
    AL.addEventListener (MouseEvent.CLICK, onClick);
    AK.addEventListener (MouseEvent.CLICK, onClick);
    AZ.addEventListener (MouseEvent.CLICK, onClick);
    AR.addEventListener (MouseEvent.CLICK, onClick);
    CA.addEventListener (MouseEvent.CLICK, onClick);
    CO.addEventListener (MouseEvent.CLICK, onClick);
    CT.addEventListener (MouseEvent.CLICK, onClick);
    DE.addEventListener (MouseEvent.CLICK, onClick);
    FL.addEventListener (MouseEvent.CLICK, onClick);
    GA.addEventListener (MouseEvent.CLICK, onClick);
    HI.addEventListener (MouseEvent.CLICK, onClick);
    ID.addEventListener (MouseEvent.CLICK, onClick);
    IL.addEventListener (MouseEvent.CLICK, onClick);
    IN.addEventListener (MouseEvent.CLICK, onClick);
    IA.addEventListener (MouseEvent.CLICK, onClick);
    KS.addEventListener (MouseEvent.CLICK, onClick);
    KY.addEventListener (MouseEvent.CLICK, onClick);
    LA.addEventListener (MouseEvent.CLICK, onClick);
    ME.addEventListener (MouseEvent.CLICK, onClick);
    MD.addEventListener (MouseEvent.CLICK, onClick);
    MA.addEventListener (MouseEvent.CLICK, onClick);
    MI.addEventListener (MouseEvent.CLICK, onClick);
    MN.addEventListener (MouseEvent.CLICK, onClick);
    MS.addEventListener (MouseEvent.CLICK, onClick);
    MO.addEventListener (MouseEvent.CLICK, onClick);
    MT.addEventListener (MouseEvent.CLICK, onClick);
    NE.addEventListener (MouseEvent.CLICK, onClick);
    NV.addEventListener (MouseEvent.CLICK, onClick);
    NH.addEventListener (MouseEvent.CLICK, onClick);
    NJ.addEventListener (MouseEvent.CLICK, onClick);
    NM.addEventListener (MouseEvent.CLICK, onClick);
    NY.addEventListener (MouseEvent.CLICK, onClick);
    NC.addEventListener (MouseEvent.CLICK, onClick);
    ND.addEventListener (MouseEvent.CLICK, onClick);
    OH.addEventListener (MouseEvent.CLICK, onClick);
    OK.addEventListener (MouseEvent.CLICK, onClick);
    OR.addEventListener (MouseEvent.CLICK, onClick);
    PA.addEventListener (MouseEvent.CLICK, onClick);
    RI.addEventListener (MouseEvent.CLICK, onClick);
    SC.addEventListener (MouseEvent.CLICK, onClick);
    SD.addEventListener (MouseEvent.CLICK, onClick);
    TN.addEventListener (MouseEvent.CLICK, onClick);
    TX.addEventListener (MouseEvent.CLICK, onClick);
    UT.addEventListener (MouseEvent.CLICK, onClick);
    VT.addEventListener (MouseEvent.CLICK, onClick);
    VA.addEventListener (MouseEvent.CLICK, onClick);
    WA.addEventListener (MouseEvent.CLICK, onClick);
    WV.addEventListener (MouseEvent.CLICK, onClick);
    WI.addEventListener (MouseEvent.CLICK, onClick);
    WY.addEventListener (MouseEvent.CLICK, onClick);
    function onClick (evt:MouseEvent):void {
    var clickTAG:String = loaderInfo.parameters.clickTAG;
         // Check for malicious code injections, only use URLs if they begin with http: or https:
         if ((clickTAG.substr(0, 5) == "http:") || (clickTAG.substr(0, 6) == "https:"))
                  { navigateToURL(new URLRequest(clickTAG + "?" + evt.currentTarget.name), "_blank");

  • Oracle to T-SQL statement

    Short version of a long story. I am trying to use T-SQL to write a number of create statements to be used in an Oracle database. The Oracle statement that I would use to get the output I am looking for is:
    select 'comment on column someschema.'||table_name||'.'||column_name||' is '''||comments||''';'
    from dba_col_comments
    where comments is not null
    and owner ='SOMESCHEMA'
    order by table_name;
    However, my feeble attempts (based on numerous web searches, I am an Oracle DBA, not SQL Server) have produced this so far:
    SELECT 'comment on column someschema.'+B.TABLE_NAME+'.',A.objname+' '''+cast(A.value as varchar)+''';' as value
    FROM fn_listextendedproperty('MS_DESCRIPTION','schema','dbo','table','SOMETABLE','column',default)
    as A, INFORMATION_SCHEMA.TABLES as B
    where value is not null
    GO
    This does not produce the output I need. This requires that I explicitly provide the table name for each table. I want this to be pulled dynamically as in the Oracle code. It also complains when I try to concatenate the '.' and A.objname with a +.
    It only runs when I put that into a separate column using the comma.
    I appreciate any suggestions anyone can provide.

    kalffiend,
    check if this works :
    --check this
    SELECT 'comment on column '+ sch.name+'.'+t.name+'.'+c.name+' is"'+ cast(value as varchar)+'";'
    FROM sys.extended_properties AS ep
    INNER JOIN sys.objects AS t ON ep.major_id = t.object_id
    INNER JOIN sys.schemas sch ON sch.schema_id=t.schema_id
    INNER JOIN sys.columns AS c ON ep.major_id = c.object_id
    AND ep.minor_id = c.column_id
    WHERE class = 1
    (couldn't test sorry)
    check this as well fr reference:
    http://technet.microsoft.com/en-us/library/ms186989(v=sql.105).aspx
    Thanks,
    Jay
    <If the post was helpful mark as 'Helpful' and if the post answered your query, mark as 'Answered'>

  • PHP inside CSS

    Hullo,
    I'm trying to work out if I can add PHP script pulling
    dynamic images from database, inside CSS "background-image
    url(xx);".
    Like this:
    #someID {
    background-image: url(../randomimage.php)
    the PHP script works ok (done with ADDT) and shows image ok
    when run separately. I get no errors from CSS either, but no
    picture is shown. One or two sites claim that this should be ok...
    Maybe i'm doing it the wrong way then.
    Any ideas, suggestions?
    All help welcome.

    Hi,
    I must have something terribly wrong with the code. The
    bannerimg fecthing PHP follows at the end of this posting... (the
    problem is probably there, but I cannot see it with my very vague
    understanding of PHP, which relies 99,9% on DW generated code). The
    page where the img should appear has "Banner" DIV, and the CSS
    tries to fetch the Background-image using that PHP script. The
    script shows the test img nice and ok, when run on its own with IE,
    but actually with firefox it gets another result.... It's very
    frustrating since the problem is probably very very small :D, or
    maybe, the whole combination is faulty??
    <?php require_once('Connections/connElektra3.php'); ?>
    <?php
    header('Content-type: image/jpeg');
    // Load the tNG classes
    require_once('includes/tng/tNG.inc.php');
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType,
    $theDefinedValue = "", $theNotDefinedValue = "")
    $theValue = get_magic_quotes_gpc() ? stripslashes($theValue)
    : $theValue;
    $theValue = function_exists("mysql_real_escape_string") ?
    mysql_real_escape_string($theValue) :
    mysql_escape_string($theValue);
    switch ($theType) {
    case "text":
    $theValue = ($theValue != "") ? "'" . $theValue . "'" :
    "NULL";
    break;
    case "long":
    case "int":
    $theValue = ($theValue != "") ? intval($theValue) : "NULL";
    break;
    case "double":
    $theValue = ($theValue != "") ? "'" . doubleval($theValue) .
    "'" : "NULL";
    break;
    case "date":
    $theValue = ($theValue != "") ? "'" . $theValue . "'" :
    "NULL";
    break;
    case "defined":
    $theValue = ($theValue != "") ? $theDefinedValue :
    $theNotDefinedValue;
    break;
    return $theValue;
    mysql_select_db($database_connElektra3, $connElektra3);
    $query_rs_bannerbg = "SELECT img_name FROM bannerimages";
    $rs_bannerbg = mysql_query($query_rs_bannerbg, $connElektra3)
    or die(mysql_error());
    $row_rs_bannerbg = mysql_fetch_assoc($rs_bannerbg);
    $totalRows_rs_bannerbg = mysql_num_rows($rs_bannerbg);
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=utf-8" />
    <title>Untitled Document</title>
    </head>
    <body>
    <p><img src="<?php echo tNG_showDynamicImage("",
    "img/banners/", "{rs_bannerbg.img_name}");?>" />
    </p>
    </body>
    </html>
    <?php
    mysql_free_result($rs_bannerbg);
    ?>

Maybe you are looking for

  • Format on download

    hi all, In my report there is an amount field and a quantity field which are need to be downloaded with 1000 separator with 2 decimal places like for eg.10,000.00 I've concatenated the workarea fields for amount and quantity on appropriate places wit

  • Flex Builder 3 Beta 2 Expires early when using Flex 2 key, and new SDK

    I was told to use my Flex 2 key to extend the Beta period for Flex Builder 3, this worked, today it said I have 99 days left. but When I installed the latest SDK and restarted Flex Builder 3 Beta 2, it says it expires in 15 days. If I put the origina

  • Performance tuning of this report

    Hello friends iam attaching my report give the performance tuning for this report to avoid nested endloops. how to do without using nested endloops. give me the reply urgent. REPORT  ZDEMO9          NO STANDARD PAGE HEADING                         LI

  • How to install Windows XP on my Pavilion dv6-6135dx

    (How to disable bios setting Native Sata) http://h10025.www1.hp.com/ewfrf/wc/document?docname=c01092639&tmp_track_link=ot_recdoc/c01172503/en_...

  • Multiple ejb applications deployment

    Hi,I want to know whether it is possible to deploy ejb 2.0 and ejb 3.0 applications in the same server?If I deploy it in the same server,will multiple differnet versions od ejb create ay problems?