Function for getting full current page url

Hello Everyone!
Is there a funtion to get your full current page url? With
the
http:// and possible url variables?
Thank you!

> <cfoutput>#"
http://" & CGI.HTTP_HOST &
CGI.SCRIPT_NAME &
IIf(len(trim(CGI.QUERY_STRING)),DE('?'),DE('')) &
CGI.QUERY_STRING#</cfoutput>
Unless it's HTTPS, or running on a port other than 80... ;-)
I don't have access to an HTTPS-running server @ present,
otherwise I'd
provide a more helpful answer. However there are two
additional CGI
variables which get set to (something) if the request was
made via HTTPS.
To deal with the port, there is CGI.SERVER_PORT. If it's
other than 80 (or
443 if HTTPS), the one should include a colon and the port
number after the
HTTP_HOST value.
Adam

Similar Messages

  • How to get the current page URL

    HI All
    I am working in oracle apps 4.0
    I have one page called history in that i have one page item called Application url. My application id is 122 but its a copy of application 106
    How to get the current page url for the page item.
    Any steps should be help ful
    Thanks & Regards
    Srikkanth.M

    I'm not 100% clear on what the requirement is from the description, however it does sound like you are making things unnecessarily complicated.
    If you want permanent/ID-independent links then use application and page aliases.
    so here we used to display the url like this: <tt>{noformat}http://81.131.254.171:8080/apex/f?p=122{noformat}</tt>
    Do you mean that the URL is displayed like that? If so that doesn't seem particularly helpful. How is anyone supposed to know what it is?
    There are many ways to provide links in APEX&mdash;including lists and nav bars.
    Where the link is to another resource located on the same server (such as another page in the same app, or a different app in the workspace), relative addressing can be used, making it unecessary to include scheme, domain and port information in the URL. For example, if the page to be linked to has a page alias <tt>ABOUT</tt> in an application with alias <tt>UNITY</tt>, and the apps share an authentication scheme/cookie to permit shared sessions, then the link URL is simply
    f?p=UNITY:ABOUT:&APP_SESSION.

  • Get current page url

    I need to grab the current page url. What is the pl/sql api to do this?

    You find it in the page_url field of the portlet_runtime record in the wwpro_api_provider package.

  • Using Acrobat Reader activeX to get the current page views in a document

    Hello,
    I'm using the Acrobat Reader ActiveX control.
    How can I use this API (or any other way) to get the current page of the PDF document inside the Acrobat reader ActiveX control ?
    Thanks
    Ariel

    Aandi,
    I reckon that you might be right.
    But as side note, maybe Adobe will lose me and others as contributers for her PDF oriented solutions for other formats.
    In the long run experts can tell which approach is better: a .Net like approach (no limitations upon development issues for ) or this kind of an approach.
    Thank you very very much for you help!
    Ariel

  • User defined function for getting last string in the line

    Hi Experts,
    I am not java expert, can anyone give me user defined function for getting last string in the line.
    for example if the source field is "NEW ARBOUR SQUARE"  i want to pass to target field only last string that is "SQUARE"
    please help me out of this.
    Kind Regards.
    Praveen.

    You don't even need a UDF for this. In the graphical editor look for the standard functions and once you do a scroll over on 'text functions; you will find what you are looking for.
    Just a piece of advice, try keeping UDF's to minimum unless really required or it is complicated without it.
    regards

  • Extract current page url without host

    Anybody aware of a {tag_ or {module- that returns the current page url without host, i.e. on page 'http://mysite.com/sub/page1.html' we need to extract the page url 'page1.html'?
    Thanks

    I think I missed it the first time, but I found it, thanks (http://forums.adobe.com/thread/1032246?tstart=0)

  • Function for getting status of a document(vbeln)

    Hello,
    i am creating a report showing the list of sales order. I also want to show the status of each document(vbeln). Is there any SAP function which returns the stauts of a document(vbeln).
    Thanks for yur time.
    Shehryar

    <b>RV_ORDER_FLOW_INFORMATION </b> Reads sales document flow of sales document after delivery and billing  ExampleO
    Don't forget also check direct reference documents for the both starting document # and preceding/following document types that you are searching for (For example, if you search delivery for the given SO, check also LIPS-VGBEL and LIPS-VGPOS, if it's possible with regard to performance). 
    V45A  SD Functions for Copying Documents  SD_SALES_DOCUMENT_READ   Reads sales document header and business data: tables VBAK, VBKD and VBPA (Sold-to (AG), Payer (RG) and Ship-to (WE) parties) 
    SD_SALES_DOCUMENT_READ_POS   Reads sales document header and item material: tables VBAK, VBAP-MATNR 
    SD_DOCUMENT_PARTNER_READ   partner information including address. Calls SD_PARTNER_READ 
    SD_DETERMINE_CONTRACT_TYPE   In: at least VBAK-VBELN
    Exceptions: NO CONTRACT | SERVICE_CONTRACT | QUANTITY_CONTRACT 
    SD_SALES_DOCUMENT_COPY  copy Sales Doc into new one with the required Sales Doc Type (VBAK-AUART) for further creating. ExampleO - create subsequent document 
    SD_SALES_DOCUMENT_SAVE  create Sales Doc from the copied document 
    V45K  Sales Order Processing Functions  SD_SALES_DOCUMENT_ENQUEUE   to dequeue use DEQUEUE_EVVBAKE 
    V05I  SD Index Update  SD_PARTNER_READ   all the partners information and addresses 
    V05O  SD Data Collection for Dlv Note Printing  RV_DELIVERY_PRINT_VIEW  Data provision for delivery note printing  
    SD_PACKING_PRINT_VIEW   
    SD_DELIVERY_VIEW  Data collection for printing  called from RV_DELIVERY_PRINT_VIEW, SD_PACKING_PRINT_VIEW 
    V05N  SD Data Collection for Bill Doc Printing  RV_BILLING_PRINT_VIEW  Data Provision for Billing Document Print

  • Function for getting password with *** from the cmd?

    Hey all,
    i am trying to find a function to get a password from the user using the command prompt in a hidden way... e.g. i want the function to take the password from the user but simultaneously apear * on the screen..?
    is any function doing that ?
    thx a lot!

    Java SE 6 has a new class Console that does not echo password input. It does not print *, it prints nothing, which is tradition of console app.
    http://java.sun.com/javase/6/docs/api/java/io/Console.html

  • How do I open a new window (cmd + N) on the current page (url) NOT my homepage?

    Before I updated to firefox 28, I was able to hit cmd + N and it would open a new window with the exact same webpage I was on. Now it opens a new window with my homepage. I'm assuming I had an add-on or extension, but I am desperate to be able to do this again. Ideas?

    This is an oversight by the developers of the latest FireFox revision: a great shame, as the overall feel of the browser has patently been improved.
    Xabolcs has come up with a nice fudging idea; if it were to work; but sadly it doesn't for me....
    As mentioned by MGprof, the latest version of FireFox (May'14) now opens one's "homepage" instead of a new blank window.
    As my "homepage" is almost a dozen tabs; this is worse than useless. It's like starting FireFox again; and then having to close a whole string of unwanted tabs!
    To compound my frustration, the "move to a new window" option disappeared on another recent FireFox "upgrade"; but I managed to get round that by copying an url from a tab, then opening a new blank window, to paste the url into.
    So, is there any possible way to open a new window in this latest version of FireFox?
    I just want to be able to open a new FireFox window; and I'd be happy with it being either blank, or duplicating the url of a currently-showing tab.
    This would allow view of one trimmed-size webpage in front of another one, showing in a selected tab in my normal-use multi-tab window: useful when comparing complex images, for example.
    I have just installed the above-recommended "duplicate-2-window"; but can't make it work for me.
    I've assumed "no-restart-necessary" claim is correct; but using cntrl+N, I now get a new blank TAB!
    I'll try rebooting next, and post here again if that improves the situation; but don't hold your breath!
    Meanwhile, if the developers are watching out for feedback..................................... please sort this, by putting back the "open a new window" option: I do NOT want to have to use Gugl-Krohm!

  • Firefox not displaying current page URL in address book.

    Firefox is now showing the URL data for the most recently opened tab in every address bar rather than the actual data for the page opened within that tab. For example, tab 1 is opened to wsj.com and tab two is the opened for foxnews.com, suddenly the address bar for tab 1 is now showing foxnews.com in the address bar AND it is now impossible to go 'back' because the back button is greyed out. Additionally, if a link is clicked from within the current tab, the URL in the address bar does not change but remains 'fixed' on the address opened in the most recently opened tab.
    == This happened ==
    Every time Firefox opened
    == 20 June 2010

    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]
    If it does work in Safe-mode then disable all your extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    You can use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    You have to close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")

  • What is function I get the current subform?

    Hi.
    Is there some function that return with the name of the subform current?
    I tryed to find on the Help of LiveCycle, but I didn't find. I find out just currentPage, but it returns just the position of the page.
    Thanks

    No problem Rafael,
    The script "this.parent.name" has the following components:
    this = refers to the object that the script is in.
    parent = refers to the container that the object is inside
    name = the name of the specified object, in this case the container that the object is in.
    Now you can extend this up the hierarchy until you get to the container that you want the name of. You can do this by adding more "parent" to the script, the number of parents will depend on how far up the hierarchy you need to go. This should get you closer:
    this.parent.parent.name;
    Good luck,
    Niall
    Assure Dynamics

  • How to get the current web url in __redirect in custom new form?

    I have created one custom new form of a list in which I want to redirect the user to other page after saving item.
    I have placed <input> button to save the item and set the
    __redirect attribute to my custom page in Pages library. My site url is like,
    <sitecollection>/Pages/Page.aspx for e.x., http://xxx/sites/web/Pages/Page.aspx.
    My HTML code in CustomNewForm.aspx is:
    <input type="button"
    value="Save"
    onclick="javascript: {ddwrt:GenFireServerEvent('__commit;__redirect={/Pages/Test.aspx}')}" />
    But when press save button it redirects me to http://xxx/Pages/Test.aspx rather than
    http://<sitecollection/site/web/Pages/Test.aspx
    What should I do?

    Hi,
    According to your post, my understanding is that you want to redirect to a customized page in the specific "web" site when you click a save button in you customized new form. 
    I recommend that you can use the relative URL of the customized page in this site named "web" like “/site/web/Pages/Test.aspx” to implement it.
    In my environment, I do this test and the result is that it works well.
    Best Regards,
    Yumi Fu

  • Function for getting Adress of Debitor (kna1) out of adrc

    hi guys!
    I know how kna1 and adrc is connected,
    I'm just wondering if there might be a function module which gets the adress of a "kna1" automatically??
    any Ideas?
    regards Thomas

    FYI -
    ADDR_GET_COMPLETE will give you the address for a customer stored in ADRC table which holds complete address.
    BAPI_CUSTOMER_GETDETAIL2 - would give you the address from KNA1 which might have truncated data.
    To verify, check the length of address fields in KNA1 and ADRC
    SKJ

  • Is there any predefined functions to get the current month info?

    Hi,
    I have a business rule which is used to calculate the budget of current month. Right now, I set the current month as a variable, which will need to be changed every month, I know it's stupid, I am new to this area, so I am thinking is there any better way to do this?
    Any inputs is appreciated.
    Thanks
    Tony

    Using substitution variables for current month is perfectly acceptable and widely used.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Store current page url into a string

    What method do i use to store the url of the page that the applet is being viewed?
    The reason i need this is because my applet would produce a different output if the url was http://dimg.biz/1.php as opposed to http://dimg.biz/2.php.

    getDocumentBase(). It's a method of Applet.
    It's right there in the API docs.

Maybe you are looking for

  • How can I get a banner that stays the same?

    I basically want to have a banner on my website like the adobe one at the top of this very site. Where however far you scroll out it can always be seen. I also want to know how to do this with my background image. I know how to stop it from scrolling

  • Writing too much data TCP*Extend Thread

    Hi there, We've got the following error, we're not using any custom serialziation. Any ideas? 2007-12-03 09:12:59.614 Oracle Coherence GE 3.3/387 <Error> (thread=ExendTcpProxyServiceWorker:4, member=7): Caught an unhandled exception while processing

  • Importing RAW

    I have a new Fujifilm XT-1 camera. I can't import RAW images into iPhoto. Does anyone know if there's a list of supported cameras?

  • Any fix for the kernel panic issue?

    So far, i've had 12 kernel panics. Usually it only happens when I start iTunes or software update. I read in a developer forum it was because of the NVIDIA Graphics card. So, are there any fixes for the kernel panics with Lion?

  • How to change the title bar wdith , scroll bar widths in tune with a 7" screen

    can you please help me customize my user chrome section so that I can REDUCE the WIDTH of the scroll bar ( horizontal and vertical ) . That is , at max the scroll bar can be ___ pixels of __ % of total width. ( prefer the relative reference ) Also th