Using AJAX to load city, state, metro area based on zip code

I'm new to getting APEX to work with AJAX properly. I've been reading some tutorials and trying to apply what they do to my situation, but I'm running into a problem. I have a text field item for zip code. What I want to happen is that when someone enters in a zip code, I want to use AJAX to populate 3 different select lists (1 each for state, city, and metro area) and to populate a checkbox (of neighborhoods based on the zip code as well). I'm looking at the examples in:
http://www.oraclealchemist.com/wp-content/uploads/2006/11/s281946.pdf
and
http://apex.oracle.com/pls/otn/f?p=11933:63
But they all use examples where the value of a text field item is used to populate 1 select list. I can't figure out how to apply that methodology to populate 3 select lists and 1 checkbox item. I've got all my SELECT statements written to populate these fields based on the value of the zip code text field item, but don't know how to convert what I already have to use AJAX.
Here are my SELECT statements:
P2805_STATE lov:
===========================================================================================
SELECT INITCAP(GEO_DATA_STATE.STATEFULLNAME) d,GEO_DATA_STATE.STATE v
FROM GEO_DATA_STATE, GEO_DATA_ZIP
WHERE isPrimary = 'P' and
trim(upper(GEO_DATA_ZIP.STATE)) = trim(upper(GEO_DATA_STATE.STATE)) and
GEO_DATA_ZIP.ZIPCODE = :P2805_ZIPCODE
ORDER BY STATEFULLNAME
P2805_CITY lov:
===========================================================================================
SELECT UNIQUE (INITCAP(GEO_DATA_CITY.CITY)) d,GEO_DATA_CITY.CITY v
FROM GEO_DATA_STATE, GEO_DATA_ZIP, GEO_DATA_CITY
WHERE
trim(upper(GEO_DATA_ZIP.STATE)) = trim(upper(GEO_DATA_STATE.STATE)) and
trim(upper(GEO_DATA_ZIP.CITY)) = trim(upper(GEO_DATA_CITY.CITY)) and
GEO_DATA_ZIP.ZIPCODE = :P2805_ZIPCODE
ORDER BY GEO_DATA_CITY.CITY
P2805_METRO_AREA lov:
===========================================================================================
SELECT UNIQUE (INITCAP(GEO_DATA_METRO.METRO_AREA)) d,GEO_DATA_METRO.CODE v
FROM GEO_DATA_STATE, GEO_DATA_ZIP, GEO_DATA_METRO
WHERE
trim(upper(GEO_DATA_ZIP.STATE)) = trim(upper(GEO_DATA_STATE.STATE)) and
trim(upper(GEO_DATA_ZIP.METROCODE)) = trim(upper(GEO_DATA_METRO.CODE)) and
GEO_DATA_ZIP.ZIPCODE = :P2805_ZIPCODE
ORDER BY 1
P2805_NEIGHBORHOOD lov:
===========================================================================================
SELECT UNIQUE (INITCAP(GEO_DATA_HOOD.HOOD)) d,GEO_DATA_HOOD.HOOD v
FROM GEO_DATA_STATE, GEO_DATA_ZIP, GEO_DATA_METRO, GEO_DATA_HOOD
WHERE
trim(upper(GEO_DATA_ZIP.STATE)) = trim(upper(GEO_DATA_STATE.STATE)) and
trim(upper(GEO_DATA_ZIP.METROCODE)) = trim(upper(GEO_DATA_METRO.CODE)) and
GEO_DATA_HOOD.METRO_CODE = GEO_DATA_METRO.CODE and
GEO_DATA_ZIP.ZIPCODE = :P2805_ZIPCODE
ORDER BY 1Do all these statements need to go in 1 on-demand process? Where do I go from here?

Andy, cool. This is starting to make more sense. THANKS A BUNCH! OK. I've gone ahead and modified the on demand process to suit my needs, so I have:
begin
  owa_util.mime_header('text/xml', FALSE );
  htp.p('Cache-Control: no-cache');
  htp.p('Pragma: no-cache');
  owa_util.http_header_close;
  -- Building States list
  htp.prn('<SELECT>');
  FOR i in (
    SELECT INITCAP(GEO_DATA_STATE.STATEFULLNAME) d, GEO_DATA_STATE.STATE v
    FROM GEO_DATA_STATE, GEO_DATA_ZIP
    WHERE isPrimary = 'P' and
    trim(upper(GEO_DATA_ZIP.STATE)) = trim(upper(GEO_DATA_STATE.STATE)) and
    GEO_DATA_ZIP.ZIPCODE = :P2805_ZIPCODE
    ORDER BY STATEFULLNAME
  LOOP
    htp.prn('<OPTION VALUE=''' || i.v || '''>' || i.d || '</OPTION>');
  END LOOP;
  htp.prn('</SELECT>');
  -- Building Cities list
  htp.prn('<SELECT>');
  FOR i in (
    SELECT UNIQUE (INITCAP(GEO_DATA_CITY.CITY)) d, GEO_DATA_CITY.CITY v
    FROM GEO_DATA_STATE, GEO_DATA_ZIP, GEO_DATA_CITY
    WHERE
    trim(upper(GEO_DATA_ZIP.STATE)) = trim(upper(GEO_DATA_STATE.STATE)) and
    trim(upper(GEO_DATA_ZIP.CITY)) = trim(upper(GEO_DATA_CITY.CITY)) and
    GEO_DATA_ZIP.ZIPCODE = :P2805_ZIPCODE
    ORDER BY GEO_DATA_CITY.CITY
  LOOP
    htp.prn('<OPTION VALUE=''' || i.v || '''>' || i.d || '</OPTION>');
  END LOOP;
  htp.prn('</SELECT>');
  -- Building Metro Area list
  htp.prn('<SELECT>');
  FOR i in (
    SELECT UNIQUE (INITCAP(GEO_DATA_METRO.METRO_AREA)) d, GEO_DATA_METRO.CODE v
    FROM GEO_DATA_STATE, GEO_DATA_ZIP, GEO_DATA_METRO
    WHERE
    trim(upper(GEO_DATA_ZIP.STATE)) = trim(upper(GEO_DATA_STATE.STATE)) and
    trim(upper(GEO_DATA_ZIP.METROCODE)) = trim(upper(GEO_DATA_METRO.CODE)) and
    GEO_DATA_ZIP.ZIPCODE = :P2805_ZIPCODE
    ORDER BY 1
  LOOP
    htp.prn('<OPTION VALUE=''' || i.v || '''>' || i.d || '</OPTION>');
  END LOOP;
  htp.prn('</SELECT>');
  -- Building Neighborhood list
  htp.prn('<SELECT>');
  FOR i in (
    SELECT UNIQUE (INITCAP(GEO_DATA_HOOD.HOOD)) d, GEO_DATA_HOOD.HOOD v
    FROM GEO_DATA_STATE, GEO_DATA_ZIP, GEO_DATA_METRO, GEO_DATA_HOOD
    WHERE
    trim(upper(GEO_DATA_ZIP.STATE)) = trim(upper(GEO_DATA_STATE.STATE)) and
    trim(upper(GEO_DATA_ZIP.METROCODE)) = trim(upper(GEO_DATA_METRO.CODE)) and
    GEO_DATA_HOOD.METRO_CODE = GEO_DATA_METRO.CODE and
    GEO_DATA_ZIP.ZIPCODE = :P2805_ZIPCODE
    ORDER BY 1
  LOOP
    htp.prn('<OPTION VALUE=''' || i.v || '''>' || i.d || '</OPTION>');
  END LOOP;
  htp.prn('</SELECT>');
end;It doesn't look like I would have to modify the appendToSelect function at all, correct? Is the checkbox that I need to populate handled the same way as these select lists? And it seems like I only need to make the 2 changes that you mentioned to get_AJAX_SELECT_XML function, right? So my javascript function should be like:
<script language="JavaScript1.1" type="text/javascript">
function get_AJAX_SELECT_XML(pThis,pSelect1,pSelect2,pSelect3,pSelect4){
if  (document.getElementById('P2805_ZIPCODE').value.length == 5)
     var l_Return = null;
     var l_Select1 = $x(pSelect1);
     var l_Select2 = $x(pSelect2);
     var l_Select3 = $x(pSelect3);
     var l_Select4 = $x(pSelect4);
     var get = new htmldb_Get(null,$x('pFlowId').value,'APPLICATION_PROCESS=otn_Select_XML',0);
     get.add('TEMPORARY_ITEM',pThis.value);
     gReturn = get.get('XML');
     var sels = gReturn.getElementsByTagName("select");
     if(gReturn && l_Select1){
          var l_Count = sels[0].getElementsByTagName("option").length;
          l_Select1.length = 0;
          for(var i=0;i<l_Count;i++){
               var l_Opt_Xml = sels[0].getElementsByTagName("option");
               appendToSelect(l_Select1, l_Opt_Xml.getAttribute('value'), l_Opt_Xml.firstChild.nodeValue)
     if(gReturn && l_Select2){
          var l_Count = sels[1].getElementsByTagName("option").length;
          l_Select2.length = 0;
          for(var i=0;i<l_Count;i++){
               var l_Opt_Xml = sels[1].getElementsByTagName("option")[i];
               appendToSelect(l_Select2, l_Opt_Xml.getAttribute('value'), l_Opt_Xml.firstChild.nodeValue)
     if(gReturn && l_Select3){
          var l_Count = sels[2].getElementsByTagName("option").length;
          l_Select3.length = 0;
          for(var i=0;i<l_Count;i++){
               var l_Opt_Xml = sels[2].getElementsByTagName("option")[i];
               appendToSelect(l_Select3, l_Opt_Xml.getAttribute('value'), l_Opt_Xml.firstChild.nodeValue)
     if(gReturn && l_Select4){
          var l_Count = sels[3].getElementsByTagName("option").length;
          l_Select4.length = 0;
          for(var i=0;i<l_Count;i++){
               var l_Opt_Xml = sels[3].getElementsByTagName("option")[i];
               appendToSelect(l_Select4, l_Opt_Xml.getAttribute('value'), l_Opt_Xml.firstChild.nodeValue)
     get = null;
&lt;/script&gt;
And then since all 4 items (3 select lists and 1 checkbox item) are populated based on the value inputted in the text field item, I would only need to add the following to the html form element attribute of my text field item, right?
onKeyUp="javascript:get_AJAX_SELECT_XML(this,'P2805_STATE','P2805_CITY','P2805_METRO_AREA','P2805_NEIGHBORHOOD');"Denes, thanks for the example. It seems like what I need to do is somewhere inbetween what you have and what's in the example on http://apex.oracle.com/pls/otn/f?p=11933:37. I have 3 select lists and 1 checkbox item that should all be populate depending on the value entered for the text item. Do I still need to split everything up then into a function and an on demand process for each select list and checkbox?

Similar Messages

  • I don't know how to use the canlendars function and the notes are kind of messy code,anyone help me

    i don't know how to use the canlendars function and the notes are kind of messy code,anyone help me

    Step by step:
    1. On your main vi Front Panel, create your boolean indicator.
    2. On the block diagram, right click the new boolean indicator and select Create - Reference.
    3. On sub-vi front panel, create boolean indicator (or use one that is already created).
    4. On sub-vi front panel, create a reference (Controls Palette - Refnum - Control Refnum).
    5. Right click on the newly created Refnum and select Select Vi Server Class - Generic - GObject - Control - Boolean. The refnum label changes to BoolRefnum.
    6. On sub-vi block diagram, create Property Node (Functions - Application Control - Property Node). Find the BoolRefnum and move it close to the new Property Node.
    7. Wire the BoolRefnum to the reference input of the property node.
    8.
    Right click on the property node and select Change to All Write.
    9. Move mouse to point to Visible inside property node box, left click and select Value.
    10. Wire the boolean indicator from step 3 to the Value input of the property node.
    11. On sub-vi front panel, right click on icon and select Show Connector.
    12. Click on empty connector spot then click on the new BoolRefnum. Save your sub-vi.
    13. On main vi block diagram, connect refernece created in step 2 to the new connector terminal of sub-vi.
    14. Save and run.
    Here are the modified vi's.
    - tbob
    Inventor of the WORM Global
    Attachments:
    Pass_a_Reference.vi ‏20 KB
    GL_Flicker_mod.vi ‏83 KB

  • Auto-populate city and state based on zip code?

    Based on the zip code entered, can the form auto-populate the city and state in another field?

    Formscentral doesn't support this type of relational type of functionality.
    Andrew

  • Having a problem using Workflow to update a field based on ZIP code

    I created a Workflow to update a Yes/No picklist called eligibility based on a Text (Short) field called Applicant ZIP code.
    It's set to update on the Opportunity page:
    Before modified record saved
    And the value function is:
    IIf(InStr("60601_60602",[&lt;stApplicant_Zip_Code_ITAG&gt;|http://forums.oracle.com/forums/]+)&gt;0,"Yes","No")+
    That was a guess of how to try it while relying on my limited MS SQL & Access knowledge.
    It does work correctly using what I did. The problem I have is that I actually need to choose from over 600 ZIP codes. The function window only allows for 256 characters. (And I suspect my way is fairly inelegant for search a multi-thousand character string.)
    Any suggestions?

    I created a Workflow to update a Yes/No picklist called eligibility based on a Text (Short) field called Applicant ZIP code.
    It's set to update on the Opportunity page:
    Before modified record saved
    And the value function is:
    IIf(InStr("60601_60602",[&lt;stApplicant_Zip_Code_ITAG&gt;|http://forums.oracle.com/forums/]+)&gt;0,"Yes","No")+
    That was a guess of how to try it while relying on my limited MS SQL & Access knowledge.
    It does work correctly using what I did. The problem I have is that I actually need to choose from over 600 ZIP codes. The function window only allows for 256 characters. (And I suspect my way is fairly inelegant for search a multi-thousand character string.)
    Any suggestions?

  • Using JNLP to load a Java Plugin FrameWork based Applications.

    I have a simple application which pull up with different number JPF plugins along with it. I could pull them up easily as normal desktop application but can't with webstart.
    Is there a possibility please guide me.
    Thanks

    I have no experience with JPF, are you referring to this?
    http://jpf.sourceforge.net/
    If that is the case, you might try consulting
    the experts on it, via the forum link..
    http://sourceforge.net/forum/forum.php?forum_id=378299
    In fact, second from top (at this moment) is
    a relevant post with this reply
    http://sourceforge.net/forum/forum.php?thread_id=1656695&forum_id=378299

  • Retrieve city and state from zip code that is entered by user

    I am trying to use AJAX to retrieve city and state from a table based on a zip code that is entered by the user. Two are text fields (zip code and city) and one is a SELECT field (state).
    1. I defined an application item called TEMPORARY_APPLICATION_ITEM.
    2. I defined an application process called SET_CITY_STATE as follows:
        a. Process point: on demand
        b. type: anonymous block
        c. process text:
    <pre>
    DECLARE
    v_city VARCHAR2 (100);
    v_state VARCHAR2 (2);
    CURSOR cur_c
    IS
    SELECT city, state
    FROM ZIP
    WHERE zip = v ('TEMPORARY_APPLICATION_ITEM');
    BEGIN
    FOR c IN cur_c
    LOOP
    v_city := c.city;
    v_state := c.state;
    END LOOP;
    apex_util.set_session_state('P2_CO_CITY',v_city);
    apex_util.set_session_state('P2_CO_STATE',v_state);
    EXCEPTION
    WHEN OTHERS
    THEN
    apex_util.set_session_state('P2_CITY','Unknown city');
    apex_util.set_session_state('P2_STATE',null);
    END;
    </pre>
    3. Javascript is defined in the region header:
    <pre>
    <script language="JavaScript" type="text/javascript">
    <!--
    function pull_city_state(pValue){
    var get = new htmldb_Get(null,html_GetElement('pFlowId').value,
    'APPLICATION_PROCESS=Set_City_State',0);
    if(pValue){
    get.add('TEMPORARY_APPLICATION_ITEM',pValue)
    }else{
    get.add('TEMPORARY_APPLICATION_ITEM','null')
    gReturn = get.get('XML');
    get = null;
    //-->
    </script>
    </pre>
    4. In the HTML Form Element Attributes of the P2_CO_ZIP text item: onchange="pull_city_state(this.value)";
    The city and state are not being populated. I checked the select statement and it is retreiving the city and state in SQL WORKSHOP > SQL COMMANDS.
    I would like to use it for the mailing address as well, so I would need to make the application process / javascript a bit more generic to be used in two places.
    I placed the application on apex.oracle.com:
    Workspace: RGWORK
    Application: Online Certification Application (28022)
    Can someone assists, please.
    Thank you,
    Robert
    Edited by: sect55 on Jun 2, 2009 4:11 PM

    Hi Robert,
    Try using XML instead of session state -
    Change the application on demand process with the following script -
    >
    DECLARE
    v_city VARCHAR2 (100);
    v_state VARCHAR2 (2);
    CURSOR cur_c
    IS
    SELECT city, state
    FROM ZIP
    WHERE zip = v ('TEMPORARY_APPLICATION_ITEM');
    BEGIN
    FOR c IN cur_c
    LOOP
    v_city := c.city;
    v_state := c.state;
    END LOOP;
    OWA_UTIL.mime_header ('text/xml', FALSE);
    HTP.p ('Cache-Control: no-cache');
    HTP.p ('Pragma: no-cache');
    OWA_UTIL.http_header_close;
    HTP.prn ('<body>');
    HTP.prn ('<desc>this xml genericly sets multiple items</desc>');
    HTP.prn ('<item id="P2_CO_CITY">' || v_city || '</item>');
    HTP.prn ('<item id="P2_CO_STATE">' || v_state || '</item>');
    HTP.prn ('</body>');
    EXCEPTION
    WHEN OTHERS
    THEN
    OWA_UTIL.mime_header ('text/xml', FALSE);
    HTP.p ('Cache-Control: no-cache');
    HTP.p ('Pragma: no-cache');
    OWA_UTIL.http_header_close;
    HTP.prn ('<body>');
    HTP.prn ('<desc>this xml genericly sets multiple items</desc>');
    HTP.prn ('<item id="P2_CITY">' || 'Unknown city' || '</item>');
    HTP.prn ('<item id="P2_STATE">' || '' || '</item>');
    HTP.prn ('</body>');
    END;
    >
    in your javascript make sure you typing the application process name correctly as it is case sensitive.
    Hope this helps,
    Regards,
    M Tajuddin
    web: http://tajuddin.whitepagesbd.com

  • Example: Cascading Popup LOVs (Solution using Ajax)

    If you need popup LOVs to depend on each other, here's a way to do it:
    Put this in the header text of the page:
    <script type="text/javascript">
    function clearFormData(data) {
    var items = new Array();
    items.push(data);
    for (var i = 0; i < items.length;i++) {
    var item = items;
    document.getElementById(item).value = '';
    if (document.getElementById(item+'_HIDDENVALUE')) document.getElementById(item+'_HIDDENVALUE').value = '';
    return true;
    function setSessionData(data) {
    var get = new htmldb_Get(null,document.getElementById('pFlowId').value,null);
    var items = new Array();
    items.push(data);
    for (var i = 0;i < items.length;i++) {
    var item = items[i];
    var tempObjID = (document.getElementById(item+'_HIDDENVALUE')) ? item+'_HIDDENVALUE' : item;
    get.add(item, document.getElementById(tempObjID).value);
    get.get();
    return true;
    </script>
    These are some helper functions (makes it easier to port to other pages, you could also put them in an external js file).
    Now on the second (or whatever) popup LOV (one that needs the value of another), put following code into the field "Form Element Option Attributes":
    [i]onclick="setSessionData('P1_FIRST_POPUP')"
    Change "P1_FIRST_POPUP" into the id/name of the popup LOV that the second depends on.
    Now to clear the second one (if there is already something in it) you can put this into the "Form Element Option Attributes" field of the first popup LOV:
    onclick="clearFormData('P1_SECOND_POPUP')"
    Change the "P1_SECOND_POPUP" into the id/name of the popup LOV that depends on the first one.
    If you need more than one item to be set in the session use the javascript functions like this:
    onclick="setSessionData(['P1_FIRST_POPUP','ANOTHER_ITEM';'AND_SO_ON'])"
    onclick="clearFormData(['P1_SECOND_POPUP','ANOTHER_ITEM';'AND_SO_ON'])"
    This is the best solution I figured out so far for cascading popups.
    Demo: http://apex.oracle.com/pls/otn/f?p=36908:2
    If you need cascading select boxes it's better to use this solution: http://apex.oracle.com/pls/otn/f?p=11933:37 .
    Edit:
    - works now regardless of being logged in or not, I just forgot to take ou the 0 in the htmldb_Get call (=> always
    sent the session id "0", which didn't exist)
    - added a link to the demonstration

    excellent tip for using ajax to update session state.
    one small change to share:
    function setSessionData() {
    var get = new htmldb_Get(null,document.getElementById('pFlowId').value,null,null);
    for (var i = 0; i < arguments.length; i++) {
    var item = arguments\[i\];
    var tempObjID = (document.getElementById(item+'_HIDDENVALUE')) ? item+'_HIDDENVALUE' : item;
    get.add(item, document.getElementById(tempObjID).value);
    get.get();
    return true;
    set 4th argument to htmldb_Get constructor to null.. causes the script to retrieve the value from the hidden form field, rather than being set explicitely.
    just noticed this code is different from the demo, which does set a static value of 2. Tempted to hit cancel, but maybe this can avoid someone else a lot of head scratching.
    also, was having issues with Array.push() during debugging to find the above issue.. and changed the way html form element id(s) are passed to the function; opted to use the implicit "arguments" array instead. Minor, but worth noting.
    thanks again for the useful piece of code.
    edit:
    this wiki doesn't parse brackets well; added char escapes so they'll show.. will need to remove by hand.

  • AutoFill City & State by typing in ZipCode

    Here is a great example of using AJAX to automatically lookup
    the City & State by just typing in the Zip Code.
    Problem is I cannot get it to work? I type in the Zip code
    & nothing happens to the City & State fields?
    Since the XML code works fine I'm sure the issue is with my
    Ajax code on my Main Form (listed below) and how I'm assigning the
    values to the variables & then to my Form fields..?
    I have attached the code to my files below:
    1) Part of the Dreamweaver form code that has the AJAX code
    & my Form fields.
    - Here is a link to my site:
    http://www.clearwave.biz/Beta/T1COElogin.cfm
    (username is: Beta password is: 123) Click on the "Add New T1"
    button to see my Main form and View Source to my full Form code.
    2) The getZipInfo.cfm code that creates the XML data.
    - Here is a link to the getZipInfo.cfm file:
    I tested it using
    http://www.clearwave.biz/Beta/getZipInfo.cfm?URL.zip=62948
    & got back the correct XML values for that Zip so I know the
    XML is working fine.
    I’m using : onblur="updateCityState();" on my T1BusZip
    field on my Form like this:
    <tr>
    <td class="KT_th"><label
    for="T1BusZip">Zipcode:</label></td>
    <td colspan="2"><input name="T1BusZip"
    onBlur="updateCityState();" id="T1BusZip"
    value="<cfoutput>#Request.KT_escapeAttribute(rstblT1OrderProcessing2.T1BusZip)#</cfoutput >"
    size="32" wdg:subtype="MaskedInput" wdg:mask="99999"
    wdg:restricttomask="yes" wdg:type="widget" />
    <cfoutput>#tNGs.displayFieldHint("T1BusZip")#</cfoutput>
    <cfoutput>#tNGs.displayFieldError("tblT1OrderProcessing2",
    "T1BusZip")#</cfoutput> </td>
    </tr>
    ps: Here is the link to the original source of this project:
    http://jamesedmunds.com/testing123/ajaxtest2.cfm
    Thanks for any assistance,
    jlig

    This post may help: http://nerdbombs.wordpress.com/2010/11/03/zipcode/
    It uses Ajax and a php array to automatically display the city and state after a user enters their zip code in a form.

  • Business partner migration using lsmw direct load .

    Hi,
    We need to do business partner migration using the direct load method.
    We are thinking of using direct input method of lsmw for the data transfer.
    Could someone suggest a proper object/ subobject for the same.
    Alternatively has anyone done the same using LSMWbapi or LSMWidocs.
    Inputs will be highly appreciated <<text removed>>
    Dirk.
    Edited by: Matt on Dec 19, 2008 1:33 PM -  Do not offer rewards.  Please read the rules of engagement.

    Hi ,
    Does this solution give any way to update the customer fields too ?
    We have few customer fields added to BUT tables ... How can we update these fields using LSMW and IDOC ?
    Could you please give your opinion on thesame.

  • Cross browser issue using ajax report pull

    Hi,
    I have an application working using ajax report pull.
    Entire application is based on ajax and its currently released.
    Its performance is good. It works fine with mozilla but in ie,
    links and buttons are not working.
    my code is as follows:
    var container = document.getElementById("divlayer");
         container.innerHTML="";
         var l_Val = document.getElementById('P15_ID').value;
         var l_Val1 = document.getElementById('P15_REGION').value;
         var l_Val2 = document.getElementById('P15_COUNTRY').value;
    var get = new htmldb_Get(null,html_GetElement('pFlowId').value,null,10);
         get.add('P15_GSI_PARTY_ID',l_Val);
         get.add('P10_ID',l_Val);
         get.add('P10_REGION',l_Val1);
         get.add('P10_COUNTRY',l_Val2);
         get.add('P10_ROWS',l_Val3);
         get.add('P15_REGION',l_Val1);
         get.add('P15_COUNTRY',l_Val2);
         get.add('P15_ROWS',l_Val3);
         gReturn = get.get(null,'<htmldb:BOX_BODY>','</htmldb:BOX_BODY>');
         get = null;
    document.getElementById("divlayer").style.visibility='visible';
    document.getElementById("divlayer").style.display='block';
    var elem = document.createElement('div');
         elem.id='d1';
    elem.innerHTML=gReturn;
         container.appendChild(elem);
    The links with doSubmit is not submitting to the same page in ie.
    Please help me.
    Thanks,
    Niveditha

    Hello Niveditha,
    There're some differences in browsers... so yes it's possible that it doesn't work with the same code in another browser. The good news is that most of time there're workaround.
    When I look at your code, you could already change document.getElementById() by $x(), which is doing the same, but comes from the APEX framework.
    Do you have an idea where it fails in IE? Are you using the Developer Toolbar? Maybe that gives you more insights. You could also put some alert('hello 1'); in your code to see what's happening and how far it comes.
    If you put it on apex.oracle.com we can have a look into more detail.
    Dimitri
    -- http://dgielis.blogspot.com
    -- http://apex-evangelists.com

  • Values not showing up for 3 digit zip code maps of states

    I've been tinkering with an app that displays the US, with a query that shows how many folks we have in each state. The link takes you to a page that displays the state/zip code style map. On the map of the US, I can see the label and the value from the query for all states. But in the state map, all that shows up are the labels. I have the map set to show values, but they won't display.
    I'm using APEX 4.0.1 in a 10.2.0.4 database running on Windows.
    Any thoughts?

    Hi mjblake,
    The Map Region columns (i.e. REGION_NAME, REGION_ID, etc) can vary for each Map source .amap file. So it's definitely worth referencing the AnyChart Map Reference Information when you're adding your map series query, to ensure that your query is referencing data that's actually contained in your chosen .amap file.
    By default, the wizard will set the "Map Region Column" to REGION_NAME, as this the default AnyChart column. However, some maps, like the US State Zipcode maps, don't actually have a REGION_NAME column in their data, which is why you would need to update the "Map Region Column" on the Map Attributes page to your chosen column e.g. REGION_ID. In the case of the US State Zipcode maps, the available columns are REGION_ID, CENTROID_X and CENTROID_Y, as shown in this example: http://anychart.com/products/anychart/docs/users-guide/map_reference/United-States-of-America-3-digit-ZIP-Code-Maps-for-All-50-States-Alabama-Flash-Map.html?fromtree. You may not be aware of this, but when stepping through the Create Map wizard, on the 'Query' page, there's a Show/Hide region called "Map Region Information", which displays the AnyChart information associated with your selected map.
    Regards,
    Hilary

  • Loading local content using AJAX in AIR

    Hello All,
    I've got a techinical question regarding loading local html5/Css/JS files into AIR's HTMLComponent. I'm very much aware that Safari's webkit implementation can handle this effectively and AIR's Webkit Implementation boasts about having nearly the same implementation as Safari's, but there still is a sanbox violation when trying to load files locally with AIR using AJAX from the HTML component. Is there a work around for this?
    One of the original ideas behind AIR was to lower the security violations between web applications and local files to make them feel more desktop-like so it really doesnt make sense if a component used to display webpages contain such restrictions.
    Any form of help or advice would be very much appreciated

    You don't want to use FileReference in AIR for what you are
    doing. Check the documentation for the mx.controls.FileSystemTree.
    There are actually a handful of AIR-specific controls for accessing
    the file system. There isn't a "File Open" dialog per se; you can
    build your own out of the controls given. I will say that the
    controls will have the flavor of the OS (so on a Mac the controls
    will behave similarly to the way a Mac accessses and browses for
    files).

  • "can't load because some files are already in use" - Adobe reader!  How do i close whatever i can't find that they say is in use!?

    Can anyone help me get Adobe reader 11 installed??? The error message when I'm practically done says the file can't be loaded because some files are already in use - and it refers to Adobe reader!  What do I do to get past this??? Help!  I need to install adobe!
    I had been having a problem after I tried to do an adobe update, so i deleted and tried to reinstall the program and it won't let me ! Any suggestions???

    Hi Jody414,
    Use the Acrobat Cleaner tool ( Download Adobe Reader and Acrobat Cleaner Tool - Adobe Labs ) to remove Reader completely from the machine.
    Download Reader 11 from: Adobe - Adobe Reader Distribution   and install and check.
    Regards,
    Rave

  • Release notes for 2.16 states that there was a fix for alerts not being modal. We are using 3.0.6 and are experiencing the same issue; was there a regression to the modal fix. What version needs to be used to make sure that alert messages are modal?

    Release notes for 2.16 states that there was a fix for alerts not being modal. We are using 3.0.6 and are experiencing the same issue; was there a regression to the modal fix. What version needs to be used to make sure that alert messages are modal?

    We are trying to determine why alert boxes are not modal
    The fix states it's for Firefox 2.0 - 3.7a1pre
    We are using 3.0.6 not the current version of 3.6.13.
    Add-on release notes 2.16.1
    https://addons.mozilla.org/en-US/firefox/addon/foxyproxy-standard/versions/
    Repeating 2.16 release notes since 2.16 was not made available for more than a couple of hours
    Fixed bug whereby some alert boxes weren't properly parented/owned. This led to some alerts not being properly modal
    with respect to the window/dialog that issued the alert.

  • Where are stats that are gathered using dbms_stats stored?

    where are stats that are gathered using dbms_stats stored?

    http://docs.oracle.com/cd/E11882_01/server.112/e16638/stats.htm#PFGRF94765

Maybe you are looking for

  • Help !modeless  dialog in acrobat 9.0

    I want to know how to create a modeless dialog in acrobat 9.0 PRO?   ADM has already been removed from the acrobat 9.0? According to  the javascript reference,i can only create modal dialog boxes.help!thanks

  • R12 Update Supplier as Inactive

    In R12, I need to update the supplier as Inactive. Is there an API required for this? or else I need to update the Ap_Suppliers column end_date_active with the date. Please help.

  • Getting PdfSource property of a generated PDF --- null

    Hi All, I have generated an interactive PDF form. I want to uplaod it in KM and also send it through e-mail. I suppose the PdfSource property should contain the binary data of the form through which I can upload it in KM. But at runtime I am getting

  • Keyboard issues with Software

    I have installed Archicad v10 (by Graphisoft) on my Powerbook and desktop G5. The CADD software utilizes the SHIFT, OPTION and APPLE keys quite a bit for drafting functions and keyboard shortcuts. These keyes work fine on my desktop (using Max OS 10.

  • My Canon 20D won't continuously shoot and also I can view my pictures after I take them anymore?

    My camera has been fussy lately.  I can't continuously shoot pictures without turning it off and on.  I also can't view what I have taken. Any advice as to what i should do?