Can I use asynchronous update on a chart I generate from my own DB Package?

I have created a database package that will generate a stacked bar graph in SVG with dynamically generated series based on a requirement I have been given.
I would like to know if it is possible to take advantage of the asynchronous update mechanism available on Application Express for its own SVG charts?
That is, as long as the package as a callable URL, can it be made to refresh as if it were a native SVG component of Application Express?

Hello,
Do not split your posts up across different threads askign for the same thing, it confuses the subject and makes it harder for people to help you.
Asking a question should not be like a shotgun more like a sniper rifle, guess whos been playing first person shooters latley ;)
Use this code in your plsql package to link in the correct javascripts.
htp.prn('<script xlink:href="'||v('IMAGE_PREFIX')||'javascript/svg_js_includes/svg_common/oracle.svgInit.js"/>');
htp.prn('<script xlink:href="'||v('IMAGE_PREFIX')||'javascript/svg_js_includes/svg_common/oracle.svgNodes.js"/>');
htp.prn('<script type="text/ecmascript">');
htp.prn('<![CDATA[');
htp.prn('function htmldb_Load(evt){');
htp.prn(' myTimer = setTimeout('svgSync();','5000');');
htp.prn('}]]>');
htp.prn('</script>');
and add attribute to the top level &lt;svg> tag
onload="htmldb_Load(evt)"
that will reload yoru svg every 5 seconds
Carl

Similar Messages

  • Asynchronous update of Flash chart error in IE

    Hi gurus,
    I had a post a while ago about an update command for a flash chart:
    [Asynchronous update of flash chart when select list value changes|http://forums.oracle.com/forums/thread.jspa?messageID=3491745]
    The goal was when I clicked a button or changed a select list the flash chart should update. Here is the command to update the flash chart:
    apex_RefreshChart ($v('pFlowStepId'), $v('Pxx_REGION_ID').substr(1), navigator.language );This worked really well in Firefox but IE always created an error:
    Details zum Fehler auf der Webseite
    Benutzer-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
    Zeitstempel: Mon, 5 Oct 2009 06:16:52 UTC
    Message: Object doesn't support this property or method
    Line: 1
    Char: 31991
    Code: 0
    URI: http://apex.oracle.com/i/javascript/apex_3_1.jsTry this example:
    [http://apex.oracle.com/pls/otn/f?p=65555:23|http://apex.oracle.com/pls/otn/f?p=65555:23]
    I found out that IE used another function to get the client language. I fixed that but an error still occurs:
    Details zum Fehler auf der Webseite
    Benutzer-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
    Zeitstempel: Mon, 5 Oct 2009 06:27:02 UTC
    Message: Unkown error.
    Line: 49
    Char: 5
    Code: 0
    URI: http://SERVER:8080/apex/f?p=150:1:10579031101899::NO::P1_I_ID,P1_INSTANCE_NAME:1,DB1That is the javascript I used now:
    //check the Browser type to set the right browser language
    function fnc_checkBrowserLanguage()
    var nav_lng="en"; //default language string
    if(navigator.language)nav_lng=navigator.language;
    if(navigator.browserLanguage)nav_lng=navigator.userLanguage;
    if(navigator.systemLanguage)nav_lng=navigator.systemLanguage;
    if(navigator.browserLanguage)nav_lng=navigator.browserLanguage;
    if(navigator.userLanguage)nav_lng=navigator.userLanguage;
    if(window.navigator.language)nav_lng=window.navigator.language;
    return nav_lng;
    // return 'en-us';
    function fnc_setTablespaceItem (pItem)
      var get = new htmldb_Get(null,$v('pFlowId'),'APPLICATION_PROCESS=dummy',0);
      get.add(pItem,$x(pItem).value)
      gReturn = get.get();
    // alert('Item '+pItem+' Session State set to '+$x(pItem).value+'!');
      var v_flow_id = $v('pFlowStepId');
      var v_region_id = new String($v('P1_REGION_ID_TU').substr(1));
      var v_browser_lang = fnc_checkBrowserLanguage();
      //alert(v_flow_id);
      //alert(v_region_id);
      //alert(v_browser_lang);
      var vOriginal_apex_RefreshChart = apex_RefreshChart;
      apex_RefreshChart = function(v_flow_id,v_region_id,v_browser_lang)
        vOriginal_apex_RefreshChart(v_flow_id, v_region_id, v_browser_lang);
      apex_RefreshChart(v_flow_id, v_region_id, v_browser_lang);
      get = null;
    }If I set the alert boxed all variables have a value. Firefox works well. And I have no idea what I could do next???
    Tobias

    I just found out that the original time based flash update option creates the same error I get all the time. It can be configured under:
    Chart attributes > Refresh: Asynchronous Update = YES and Update Interval (Seconds) = 10
    Error: (line 49) (JScript - script block):
    function __flash__addCallback(instance, name) {
      instance[name] = function () {
        return eval(instance.CallFunction("<invoke name=\""+name+"\" returntype=\"javascript\">" + __flash__argumentsToXML(arguments,0) + "</invoke>"));
      }By the way I use the newest APEX version: "Application Express 3.2.1.00.10"
    Seems more like a general error? Everybody should be able to rebuild this under IE 8 or IE 7. I use IE8!
    Created source code:
    &lt;script type="text/javascript" language="javascript">
    function chart_r2258227549390282_InitRefresh(pNow) {
      setTimeout("chart_r2258227549390282_InitRefresh(true)",10000);
      if (pNow){apex_RefreshChart (1, '2258227549390282', 'de');}
    apex_SWFFormFix('c2258227549390282');
    &lt;/script>It still works well with Firefox.
    Tobias
    Edited by: Tobias Arnhold on Oct 6, 2009 2:37 PM

  • How can I use Office Update without the Office CD?

    How can I use Office Update without the Office CD? On the microsoft website I've clicked the options which mean I shouldn't need the CD (which wasn't supplied with the laptop), but poartway through updating the service pack I get a request for the Office 2000 Professional CD.
    Any suggestions?

    Hi
    Did you mean a Office or One Note?
    As far as I know the One Note is a part of the Recovering Image and the CD is not delivered with the unit. Furthermore the Toshiba units are not delivered with the Office 2000 software.
    Nevertheless, did you check the update function in the Help i.e. in Word?
    There you will find a options called Check for Updates
    http://office.microsoft.com/en-us/officeupdate/default.aspx
    Bye

  • What software can be use to update iphone 3g 4.2.1 to iOs 4.4.4 without any error occuring...???

    what software can be use to update iphone 3g 4.2.1 to iOs 4.4.4 without any error occuring...???

    Ah...there is no iOS 4.4.4, & iOS 4.2.1 is the end of the line for your phone. There are no further updates available.

  • I can't use thunderbird 31.2.0 to send attachement from a pdf file with Acrobat PRO XI

    I can't use thunderbird 31.2.0 (Mozilla) to send attachement from a pdf file with Acrobat PRO XI. Each time, Acrobat replies (in french) : "il n'y a pas de client pour la messagerie par défaut". Thunderbird is indicated as "by default" in the list of programs of Windows.
    Even if I type my e-mail address, etc. in the account of Acrobat, it doesn't change. Each time, I have to record a PDF file in a folder and return to Thunderbird to send it as attached. It is a too long process,  compared with Windows XP with Acrobat Reader or Acrobat 5, I had before.
    Would you please help me to explain the process. My OS is Windows 8.1.
    Thank you

    Thank you for your answer.
    What i want to do : to send PDF files as attached documents in a message
    generated by thunderbird by my e-mail address [email protected] or
    another one I have.
    When I introduce my e-mail address under Edit-Preferences-Email
    Accounts, Acrobat ask the e-mail account, the password, the IMAP for
    ingoing message (and I use POP) and SMTP for outgoing messages. Even I
    introduce all the datas, it doesn't change, Acrobat is unable to send
    the message. And the process is not convenient, because I need all my
    outgoing messages be documented inside Thunderbird.
    So, I repeat my request : how can I use thenderbird as program by
    default from Acrobat or any other software ?
    Thank you for your next message.
    Jean-Luc Rongé
    Le 21-10-14 14:24, ANAND8502 a écrit :
    >
          I can't use thunderbird 31.2.0 to send attachement from a pdf
          file with Acrobat PRO XI
    created by ANAND8502 <https://forums.adobe.com/people/ANAND8502> in
    /Acrobat Installation & Update Issues/ - View the full discussion
    <https://forums.adobe.com/message/6850947#6850947>

  • HT4623 how can i use one i5 in oman which is bought from australia?

    how can I use my i5 in oman which is bought from Australia?

    Hi,
       I put new sim card (omantel -prepaid) but some msgs. is came.( The sim card that you currently have installed in this phone is from a carrier that is not supported under the activation policy that is currently assigned by the activation server. This is not a hardware issue with the I phone.Please insert another SIM card from a supported carrier  or request that this I phone be un locked by your carrier.Please contact Apple for more information ).

  • 2 atv's both have home sharing enabled but one asks to turn on home sharing on my pc but it is on so can only use one at a time to watch movies from my computer

    2 atv's both have home sharing enabled but one asks to turn on home sharing on my pc, but it is enabled on pc so I  can only use one at a time to watch movies from my computer

    Both atv,s are on the same network, they are wirless and the computer can see them and they are named different.
    what ever one i switch on first gets to stream from my computer and the other one asks for home sharing to be switched on, then if i switch both off and start the other one first it gets to stream and the other one which worked asks for home sharing to be turned on. i have hidden all functionality, netflix etc as these are for my 7yr old kids.

  • Can I use Google Sync to transfer only my contacts from my IPhone 4 to my gmail acct? I don't want to sync info from Gmail to the IPhone. Can the sync work only one-way? I have 0 contacts on my gmail as I'll only use it as a back-up 4 my IPhone contacts.

    Can I use Google Sync to transfer only my contacts from my IPhone 4 to my gmail account? I do not want to sync info from Gmail to the IPhone. Can the sync work only one-way? I have 0 contacts & 0 calendar events on my gmail account. I opened the Gmail account specifically to for the Google Sync and wil only be using this account as a back-up for my IPhone contacts. Please Help!!

    You do realize that the SIM only contains account information for your wireless account.
    Moving the SIM from phone to phone does not cause any of your iTunes content, contacts, email, etc to magically appear on the device.

  • Can I use Visual Basic to covert form user data from multiple .pdf files to a single .csv file?

    Can I use Visual Basic to covert form user data from multiple .pdf files to a single .csv file?  If so, how?

    You can automate Acrobat using IAC (InterApplication Communications), as documented in the Acrobat SDK. Your program could loop through a collection of PDFs, load them in Acrobat, extract the form data from each, and generate a CSV file that contains the data.
    Acrobat can also do this with its "Merge Data Files into Spreadsheet" function, but this is a manual process.

  • Can i use microsoft office on my macbook pro and from where should i download it?

    can i use microsoft office on my macbook pro and from where should i download it?

    I don't use Office myself so can't really offer advice. I don't recall seeing your issue before. Maybe someone who uses Office will be able to help.
    As this thread is marked as solved it won't get the attention your query warrants. It would be a good idea to start your own thread discussing the problem - I'm sure someone here will offer the right advice/help.
    Make sure you note what Mac your have and what version of OS X you are running.

  • Can i use iphone6 in greece with a nano sim from vodafone?

    can i use iphone6 in greece with a nano sim from vodafone?

    See above From what I can see the Thai carriers lock their iPhones and do not unlock
    If it came from direct from Apple in Thailand  then it should be unlocked
    Borrow a sim from a different carrier to yours and see if it gives service

  • I bought iphone4 in china,  and it broken when I was in USA. After I sending to your company. You send me a new phone, but this phone is locked phone. I can't use it. Because my sim card is from china

    I bought iphone4 in china, the ss number is 82044JAVA4S, and it broken when I was in USA. After I sending to your company. You send me a new phone, but this phone is locked phone. I can't use it. Because my sim card is from china, so I think you shoulu give me a unlocked one.

    I understand your frustration.
    Fortunately for you, you can make your new phone to work; but to do so, you have to call your Chineese carrier and give them the IMEI number found on the SIM card of your iPhone.
    They will then activate it and you will be able to use it.
    It's NOT a matter of locked/unloked phone; it's a matter of activating (pairing) a SIM card with a phone !
    Just call you Chineese carrier and have them register your SIM card with your new iPhone and you will be back in Business !

  • Can I use the Camera Connection Kit to transfer files from my Mob/PS3/iPod?

    Can I use the Camera Connection Kit to transfer files from my mobile/iPod or Playstation 3 to iPad using a USB cable?
    I have an *iPod nano 16GB 5g* & my mobile is a *Samsung G800* and *Playstation 3 80GB*.
    _Thanks for reading_

    The CCK will find/ask to download (if iPad supported formate )picture and video files if the device is formated in FAT 16 or 32 and the supported files are placed in a "DCIM" folder in the root directory. I have transfered such files from SD card and USB drives. However, not USB drive work. I had an old 2GB (very large) and when i connected it it said it drew too much power.
    I also downloaded pictures and video files from a compact flash card and smart media card via a SanDisk USB card reader.
    AppleIpod60GB wrote:
    No. The CCK is only designed to allow you to import photos from a digital camera via USB or an SD card. You cannot import any data via this kit and no other files will work as it's designed for only the functionality it does. The kit looks for a folder with the label "DSC####### the same structure as most digital cameras, and will only function with JPG files.
    Message was edited by: lllaass to add CF and SM info

  • If I buy the iphone 6 contract free T-Mobile,  is he also unlocked? Can I use in Brazil with my cell phone company from Brazil? thanks

    If I buy the new iphone 6 here in US, as a contract free T-Mobile, is he also will be unlocked? Can I use in Brazil with my cell phone company from Brazil? thanks

    Some users are reporting their contract-free T-Mobile iPhone 6 is unlocked, others are saying that they had to activate on T-Mobile and use their network for 40-days to get T-Mobile to unlock the iPhone.
    It would be wise to wait for the release of the Apple unlocked models.

  • Can i use an itunes gift card to buy things from the games im playing?

    can i use an itunes gift card to buy things from the games im playing?

    how do i do that? .. im playing clash of clans..

Maybe you are looking for