Submitting an individual region rather than everything on a page

I'm sure I have seen an online example of a page where just the region is submitted so that is the only section of the page that gets re-drawn
but after searching all the usual supsects off here
http://www.apexblogs.info/pls/apex/f?p=113:8:0
but I cannot seem to find it
does anybody have any ideas ??
any help greatly appreciated
Cheers
Chris

Hi Chris,
There are certainly a good number of Apex/Ajax examples out there. For an example, see: [http://htmldb.oracle.com/pls/otn/f?p=20297:14] (this is a typical example of cascading select lists).
The construct of an Ajax call is pretty much the same regardless of what you are trying to do. There are a few things to bear in mind:
1 - You need an Application Process that runs On Demand (create this through Shared Components). This process can run any PL/SQL code you need - including updating tables (in the example above, this just retrieves values and constructs select lists from them)
2 - You need one or more Items (usually Application Items - again, created through Shared Components) to receive values to be used in your PL/SQL code. Each Item is given its value in the Ajax call using get.add(). Though the process can use any item value stored in session state.
3 - You need to handle any data or value(s) returned by the process - either a success message, for example, or data for output onto the page. The format of the output is determined by the process - it could be XML, plain text or htp.p() output.
4 - The Ajax code needs to be triggered by some user action - typically clicking a button or changing a select list value.
Andy

Similar Messages

  • PHP forms submitted as an attachment rather than email?

    How do I get my PHP forms submitted as an attachment rather than email?
    Meaning, if I set up a form on my website and someone completes and submits it, how can I get the responses as an attachment rather than in email text?
    Much appreciated.
    G

    Hi Gunter
    I have spent so much time on this now.
    I have tried to convert the php to an attached .txt or .csv file.
    Learnt a lot but still can not seem to get the form data to be submitted as an attached file.
    Here are two of my attempts, please assist:
    <?php
    $email=$_REQUEST['email'];
    $firstName=$_REQUEST['firstName'];
    $lastName=$_REQUEST['lastName'];
    //The Attachment
    $cr = "\n";
    $data = "Email" . ',' . "First Name" . ',' . "Last Name" . $cr;
    $data .= "$email" . ',' . "$firstName" . ',' . "$lastName" . $cr;
    $fp = fopen('reservationTest.csv','a');
    fwrite($fp,$data);
    fclose($fp);
    // Mail to
    $email = "myemailaddress";
    //subject
    $subject = "Test Budget reservation";
    //Header
    $headers("Content-type: application/octet-stream");
    $headers("Content-Disposition: attachment; filename=reservationTest.csv");
    $headers("Pragma: no-cache");
    $headers("Expires: 0");
    //Message
    $message = "".
    "Email: $email" . "\n" .
    "First Name: $firstName" . "\n" .
    "Last Name: $lastName";
    mail($email, $subject, $message, $headers);
    ?>
    <html>
    <body>
    <table width="400" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td>
    <div align="center">Guperman Your Test Message Has Been Submitted</div>
    </td>
    </tr>
    </table>
    </body>
    </html>
    EOD;
    echo "$theResults";
    OR
    <?php
    /* subject and email variables */
    $email = $_POST['email'];
    $lastname = $_POST['lastname'];
    $firstname = $_POST['firstname'];
        $to = 'myemailaddress';
        $emailSubject = 'Test Form';
        $headers = "From: $email\n";
    $message = "A new reservation test.\n
    Last Name</b>: $lastname
    Name</b>: $firstname
    Email</b>: $email
        mail($to,$emailSubject,$headers,$message);
    //open the file and choose the mode
    $fh = fopen("reservationTest.txt", "a");
    fwrite($fh, $email);
    //close the file
    fclose($fh);
    ?>
    <html>
    <body>
    <table width="400" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td>
    <div align="center">Guperman Your Test Message Has Been Submitted</div>
    </td>
    </tr>
    </table>
    </body>
    </html>
    On both accounts when I test these files I get the following types of messages.
    Warning:  fopen(reservationTest.csv) [function.fopen]: failed to open stream: Permission denied in \\HOSTING\DFS\20\1\9\1\2028751191\user\sites\mywebsite.com\www\reservationTest.php on line 11
    Warning:  fwrite(): supplied argument is not a valid stream resource in \\HOSTING\DFS\20\1\9\1\2028751191\user\sites\mywebsite.com\www\reservationTest.php on line 12
    Warning:  fclose(): supplied argument is not a valid stream resource in \\HOSTING\DFS\20\1\9\1\2028751191\user\sites\mywebsite.com\www\reservationTest.php on line 13
    Fatal error:  Function name must be a string in \\HOSTING\DFS\20\1\9\1\2028751191\user\sites\mywebsite.com\www\reservationTest.php on line 22
    And then to give the .php files permission I left click on the already uploaded files and try and set the permission to 777, but then I get a response like: Setting Access Properties failed for:
    Your assistance is much appreciated. Regards

  • Can i share existing albums of photos from my photo library with friends straight to icloud rather than having to create a new shared folder and then select the individual photos rather than a whole album??

    Ok to clarify -
    1. i want to go into my photos on my iphone 6.
    2. create a new folder in shared folders.
    3. Add an entire album of photos from my photo library rather than having to select individual photos.
    4. Share with friends.
    Surely the reason i have saved certain photos into albums already from my mac means i like the selection already. So i would like to just share the whole album rather than having to select all the individual photos from the album. Ive tried but maybe im being a doofus and missing something??????
    Any help would be most appreciated.
    thank you in advance
    Kris

    This is normal and is how Apple handles photos.
    There are NOT duplicate photos.
    Just as a song is in your itunes library and you can access that exact same song from a playlist,  all  photos synced to iphone are in the photo library and those exact same photos (NOT duplicates) can be accessed from the individual albums.
    It is working exactly as it should.

  • Shake exports 1,100 individual frames rather than a Quicktime movie

    I'm stumped. I rendered a file-out node that was set to Quicktime format and 720p60 codec and I ended up with 1,101 individual Quicktime files, or frames, I guess, rather than a single file, a Quicktime movie that was 1,101 frames long. I've done the same thing many times before, and have always ended up with a Quicktime movie that I could import back into Shake to continue with some more rotoscoping.
    Each "file" is 240 kb in size, though when I open them in Quicktime, there seems to be no image there. Just a blank white screen.
    Has this happened to anybody else? I cannot see that I have changed anything in my usual workflow settings.
    Any advice most appreciated,
    Jim

    FYI:
    http://discussions.apple.com/help.jspa#answers
    Patrick

  • How can I get new tabs to automatically open when I click on a new site (rather than replace the existing page I am using)?

    For some reason when i click on to a new site or link, tabs no longer automatically open so if i forget to manually click on the little plus sign at the end of the tab strip, my new destination replaces where i currently was. This was not the case in the past and I cannot find where to reset this so that a new tab will once again auto create. !
    I tried options/tabs: open new windows in a new tab instead, but this did not fix the issue. Can anyone tell me what i need to do get firefox to create auto creat a new tab when i move to a new link rather than replace the one currently in use? Thank you!

    You can middle click a link to open that link in a new tab.
    *Open Link in New Tab: https://addons.mozilla.org/firefox/addon/open-link-in-new-tab/
    *Tab Utilities Lite: https://addons.mozilla.org/firefox/addon/tab-utilities-lite/

  • How to retreive individual tabs rather than tabs group

    I use FF 15.0.1 under WXPP.
    I inadvertently created "tabs group"...
    Now, every new tab has an icon "show/hide the new tab page".
    In "about:config", the only browser.panorama.* entry is browser.panorama.animate_zoom (default-boolean-true).
    What can I do...?

    Thanks for replying.
    I tried to restart in Safe Mode, but id did not change anything (and I always used the default theme.)
    Actually, after having been caught with Tab Groups, I came back to the usual tabs, including the arrows left and right to circulate through them and the small menu on the right "List all tabs" that I like to use by deleting the "sessionstore.js" file in my profile...
    The only remaining annoyance now is that little 3x3 squares icon "show/hide the new tab page" which comes on the right of every new tab page: clicking "show" brings in the page a number of miniature pages which I had formerly visited but do not need anymore.
    Clicking on any of these brings it in the same tab page, but closing that tab and calling for a new tab brings the same group of page miniatures again.
    I'd like to get rid of this... Any solution?
    I'

  • How can I get just the text to resize, rather than the entire web page?

    I used to be able to re-size just text on a webpage by typing Ctrl + +. Today, the entire webpage re-sizes, and when I move to another page it reverts. (I see this mostly in Facebook.). Why did this change, and can I go back to having just the text re-size?

    ''How can I get just the text to resize -- zoom text only''
    steps
    #"Alt" if no menu bar, then
    # View > Zoom > Zoom Text Only
    Zoom text of web pages - MozillaZine Knowledge Base
    :http://kb.mozillazine.org/Zoom_text_of_web_pages
    <br><small>Please mark "Solved" one answer that will best help others with a similar problem -- hope this was it.</small>

  • Refreshing a single portlet rather than the whole portal page

    Ok, here's my situation.
    I have two pdk portlets on my portal that communicate through page parameters. Portlet A has a bunch of search fields, a customer drop-down list, parts drop-down list, division, etc. Portlet B takes those parameters, queries the database, and displays the results. I would like to be able to refresh portlet B without reloading the whole portal page.
    I have onchange events on all of my drop-downs that will do a javascript post back to portal, which will in turn set my page parameters, and I see there is a 'refreshPortlet' function in a javascript file that portal provides that will refresh a single portlet based on a portletReferenceId. It is normally called when a refresh button is clicked in the portlet header, but I don't see any reason I can't call it after my javascript post, that is, if I had the portletReferenceId for the other portlet. I thought about making a hidden html table on the page that, I could fill with the portlet names and ids for each portlet as they load, that way I could reference that list from any portlet. The problem is I can't figure out where the ids are coming from. Based on the code behind the button, the function is looking for something like this 646_701285_646_1_701271, but the closest thing I can come up with is this 676114_POSTCONTENTPORTLET_467414915 which I got from PortletRenderRequest.getPortletInstance().getInstanceName(). As you can see, it's not even close. Does anyone know where the correct id could be coming from? It's got to be available to me somewhere, doesn't it?
    The only other option I can think of to accomplish my goal is to use straight up ajax to display portlet B, but that kind of defeats the purpose of portal doesn't it?
    Any help would be greatly appreciated.
    Thanks,
    Doug

    You can use Ctrl+F4 to close the current tab. I don't think that you can change the Alt+F4 action with Keyconfig.

  • Had multiple problems with Firefox 4..went back to 3.6.16. Now always opens to a blank page rather than my chosen home page, no matter how many time sI have set it to open on my homepage. Running Windows Vista. Any suggestions?

    $ was totally jacked up, no tabs, no history, no buttons that worked and always opened on a blank page. I saved my bookmarks, uninstalled 4, reinstalled 3.6.16 and all my problems went away except for the oening on a blank page. As soon as I hit home, it opens.
    Tnx,
    JFN3

    i ran into a simuler problem using firefox 4 with win 7. browser would not display web address and when you open the browser it would display a blank page. also back, forward, and refresh button's where grayed out and could not click hem.
    after checking plugins i was able to get it working with disableing java deployment toolkit.

  • Using Mac OS Lion - Firefox returns me to the generic Goggle home page rather than the customized home page I created. is this a Goggle problem or the Firefox bowser?

    I always get a "generic" Goggle page to recreate every time I open Firefox or click the Home button. Firefox (or Goggle) can't remember the settings.

    No I'm not using NoScript, but I'm pleased to report that the problem got resolved by deleting the original bookmark, logging in again, opening Google calendar, then bookmarking it again.

  • Is it possible to flatten a selected field rather than all of the page?

    Hi
    I am a relative newbie at javascript so stay with me....
    I have created a report form with a number that increments when opening and it works really well.
    However now we are implementing a digital signature i really need the report number to stop working when the signature is completed or clicked on, as when it is reopened the numbers still go up
    Is there a way of tackleing this as i know signatures have a lot of security hang ups which stop you using some of the methods i have tryed.
    Help!?

    Hi George,
    It will only be opened in acrobat but i would like to keep the option open to use reader if needed,
    It increments using a document level script and then uses a folder level script to save, so it keeps its number.
    How would i only increment on the failure of the signature field being used? Is there a folder level script i can call?

  • Getting paragraphs to begin a few lines from the top of page rather than at top of page

    Hey all,
    I have a master A page. It contains page numbering and a variable, which contains the chapter heading. It is directly within the top and left margin of the page. Now I want all the paragraphs of the pages to be a few lines below the page numbering. Yet, when I try to apply text wrap to variable or page numbering, it knocks the other out of place. If I only apply text wrap to bottom of variable or page numbering, then when text flows on new page, it will flow above the page numbering/variable because the text wrap only applies to bottom and not top of variable or page numbering. So I'm not sure how to address this issue. Thanks for response.
    Thanks for response.

    Here's the thing about the link being lost. I delete the spreads and then create new spreads off the master and now the textbox is positioned correctly with space above it. However, I can't just get the type tool and begin typing in the textbox. I'm forced to hit shift + apple  and drag over the box so I can begin typing in it. I think that's where the link is broken. So now later when I resize the text box in the master, it will not be reflected in any of the pages because I had to shift + apple them in order to be able to type in them. So how can I maintain the link to master while still being able to type into the text frame of any of the pages?
    Thanks for response.

  • Can AI simply outline everything in a PDF rather than preserve text as text?

    I’m on a 2013 MacBook Pro running Mavericks using CS4.  I am a composer of experimental music.
    My workflow is as follows:  I create a music score in a program called Sibelius - I export the file as a PDF - I open this PDF in Illustrator and edit it further. 
    This usually works great but occasionally I suddenly get the following error when I open a file: “to preserve appearance, some text has been outlined”. When I proceed to open the file the musical notes have been replaced with text letters and nothing as been outlined.  In Sibelius, musical notes are actually text from a special font called Opus.  I don’t care if AI treats the notes as text or simply as outlined objects as long as they look right and can be moved around. 
    Is there a way to make AI look at a PDF and not try to preserve the text but simply outline everything as individual objects so that they look the same as in the orignal PDF?
    Thanks

    Kurt, Thank you!  In this case it seems to at least have given me a way around the font switching problem but now when I go to edit the document, I can only select individual objects (like a note-head for example) with the direct selection tool (A) because if I use the regular selection tool (V), it selects everything on the page at once.  Basically, I'm forced to work on the level of individual points rather than with entire objects (I know there is jargon that would clarify what I mean that I'm not versed in, with apologies) 
    Mike, Thank you!  I do it all the time.  Usually AI has no problem with the font but every now and then, especially when I've been working on a large multi-page document for a long time it will give me this error and then I can't proceed.  I'm hopeful that Kurt's solution will provide me with a (albeit slightly less convenient) way forward when that happens. 
    From reading other threads, the problem seems to be one with the nature of PDF files which are not intended to be edited so extensively and with extreme detail as I have been doing, that there is an inherent instability in editing PDF files with AI. 

  • Safari on my iPad 4 opens the latest page used rather than my home page. This is new ,after I updated to IOS 8.3.How do I get it back to what it was?

    Safari on my iPad 4 opens the latest page used rather than to my home page.
    This is new ,after I updated to IOS 8.3.How do I get it back to what it was?

    You're welcome. You're not alone. The change has left alot of people scratchiing their heads wondering why. Maybe if enough people leave feedback at the link below it will be changed.
    http://www.apple.com/feedback/

  • Google directing to Phone version rather than Desktop?

    Be gentle with me as I am pretty new to all of this...
    I need step-by-step instructions on how to make sure Google is directing traffic to Desktop version rather than the Phone/about page as it has been doing.
    www.geelc.com is the site address.
    I have tried adding this <link rel="canonical" href="http://www.geelc.com/about.html"/> to the offending page to no avail.
    Help?

    When I visit your site from google, I'm directed to the desktop version.
    One thing to note - if you have a link from your desktop site to your phone site, and you click that link, Muse sets a browser cookie to remember that you prefer the phone site. Is it possible you've done this? If so clearing your browser cookies may get you back to the desktop site. It might also be useful to google your site from another computer to see what the first time visitor experience will be.

Maybe you are looking for

  • Error: Couldn't find delivery channel for message

    Hi All, In our production environment, we sometime get the following error (Channel Audit Log): 2009-01-12 15:08:47 Error Unable to find channel ID 2009-01-12 15:08:47 Error Delivery of the message to the application using connection SOAP_http://sap.

  • How can I display a new scene in JavaFX 2.2? For example after button click

    how to display new scene after button click in the main window, I want the main window and the new scene are in one stage. thx

  • IOS 4.3 not showing multigestures

    Has anyone installed 4.3. And not see the multi gestures selection in settings. How can I fix the software to show it?

  • Structure of Report painter

    Hi ,   Can anyone tell me what are the basics for report painter , structure of report painter , what is templates in Report painter and what is formatting in Report painter. Please help me by answering this elaborately. Regards, Joseph.

  • Safari Maverick-3 problems

    Four, if you want to count the miserable mess that bookmarks have become, but I digress. When you attempt to change a window size by grabbing a corner or edge of the window, the window strobes maniacially.  I have no clue why it's doing that, but it