Generate the current URL with css file

Hello everybody,
I just added a QRCode App on my Custom List page and I'm trying to create a css file that
it can generate the current URL where the QRCode App is opening.  The QRCode App allows to add css file which Indicates
if I want to specify a custom CSS file URL. The QRCode opens with each List item. 
Below is the code that I've been trying to use:
<ul >
    <a href="">Link </a>
</ul> 
*This code shows the current URL. However instead showing the the URL, it shows a Link to the current page. Can someone help me with that? 
Link for the QRCode App:
http://office.microsoft.com/en-us/store/qrcode-app-for-sharepoint-WA103699711.aspx
Thanks!
App Part properties
When you're editing the app part properties, you can change the following custom properties:
Name
Category
Type
Description
QR Code Text
QRCode Settings
String
QR code
associated text or url. By default, this value is the host web url.
QR Code Width
QRCode
Settings
Integer
QR
code width. Default value is 200 px.
QR Code Height
QRCode
Settings
Integer
QR
code height. Default value is 200 px.
Render Mode
QRCode
Settings
Enum
QR
code render html method. The value could be canvas or html table. Default value is Cancas.
Custom CSS File Url
QRCode Settings
String
Indicates
if you want to specify a custom CSS file URL.
flavio

hi
what do you mean by current url? If url of current page is not what you are looking for, then is it url of current site?
As you use app, I guess you are working with Sharepoint Online and can't use server side code? If this is the case, then check the following post:
How to get URL of current site collection and other server side properties on client site in Sharepoint. Briefly you need to use OTB _spPageContextInfo object and set href attribute of your link in javascript:
<ul>
<a id="foo">Link</a>
</ul>
<script type="text/javascript">
document.getElementById("foo").setAttribute("href", _spPageContextInfo.siteAbsoluteUrl);
</script>
Blog - http://sadomovalex.blogspot.com
Dynamic CAML queries via C# - http://camlex.codeplex.com

Similar Messages

  • Q: How to retrieve the current URL with PL/SQL

    I've got a pair of dynamic page portlets on a page. The first is simply an input text box and a submit button, the second is an inventory 'report' based on what is entered in the text box. When a value is entered and the button pressed, there is javascript behind the button that takes the current URL, adds '&ITEM=XXXXXXXX' (removing it first if this is not the first invocation of the page), and redirects to the new page.
    The second portlet uses the &ITEM parm to list a bill of materials for the item. If one of the items possesses a sub-assembly, I want to display the item# in an <a href= manner to make it so the user can simply click on the link to see the BOM of the subassembly.
    To do this, I believe I need to capture the current url and modify it as required to pass the new &ITEM value. I'm having a lot of trouble trying to figure out how to get the current page url. Any help would be greatly appreciated!
    Geoff

    Hello
    I have a similar problem I have developed a pl/sql portlet and put it into a page, this portlets display a dynamic page. This dynamic page have a search functionality, what I am trying to do is that when I click the search button on the dynamic page it recall the whole page and pass the paremeter that the user wrote on the search box, then the portlet that contains the dynamic page recieve the parameter and recall the dynamic page with the parameter that was received. The problem that I have is that the portlet receive the parameter but when I pass the parameter to the dynamic page it doesn't get it. This is the way the I am calling the dynamic page inside my portlet into the show procedure:
    EXECUTE IMMEDIATE
    'begin
    APP_NAME.PG_DYN_DIR_ALFABETICO.show (
    p_arg_names => PORTAL30.wwv_standard_util.string_to_table2(''url_page'',''search_param''),
    p_arg_values => PORTAL30.wwv_standard_util.string_to_table2(:1,:2));
    end;'
    using url_pg,p_text1;
    The dynamic page receive the first parameter(url_page) but not the second one(p_text1), I have checked that the p_text1 has a value on my portlet before I send it to the dynamic page so I really don't understand why my dynamic page doesn't work.
    Please HELP ME. I am desperate
    Ana Lasprilla

  • Listen the current URL with Flash  Adobe Air

    Hi!
    I'm new in Adobe Air, I need (urgente!!!) to do a simple widget with Adobe Air that monitors the URLs where I navigate and when I enter to a specific site the widget appears in the front of my screen and display a message. The problem is that I don't know how to listen the current URL of my browser using Adobe air (flash).
    I was trying with HttpStatusEvent but I can figure aut how to retireve the URL from my browser.
    Thanx!!
       Carolina

    An Adobe AIR application runs independently from web browsers.  For something like what you describe to work, an application would need to find a way to interact deliberately with browsers running on the system. The HttpStatusEvent, however, is an event that is listened for when the Adobe AIR application itself is attempting to interact with a URL and receives an HTTP status code, in which case you are already aware of the URL to begin with.
    dex

  • I need to align the margins of my forms with those of my website, I have looked at all the options and unfortunately I am unable to do it with access to the Adobe.form.min.CSS file which I can't access as a consumer, how else can I fix my problem

    I need to align the margins of my forms with those of my website, I have looked at all the options and unfortunately I am unable to do it with access to the Adobe.form.min.CSS file which I can't access as a consumer, how else can I fix my problem

    I need to align the margins of my forms with those of my website, I have looked at all the options and unfortunately I am unable to do it with access to the Adobe.form.min.CSS file which I can't access as a consumer, how else can I fix my problem

  • I upgraded to Lion yesterday. Now I keep getting and error message: there was a problem connecting to the server. URLs with type "file:" are not supported. What server?

    I upgraded to Lion yesterday. Now I keep getting and error message: there was a problem connecting to the server. URLs with type "file:" are not supported. What server? How do I get rid of this.

    Take a look at this link, https://discussions.apple.com/message/16156214#16156214

  • Whats the current deal with popup windows in flash?

    Hi There,
    whats the current deal with popup windows in flash? I'm
    trying to include popup windows in a site, and with IE7 (or
    whatever the newest version of IE is ..the firefox lookalike) the
    popups are not working at all, I have gone out a gotten other
    sample popup scripts and I encountering the same problem, which is
    the popups aren't working at all?
    Is this a problem with just IE7 or am i completely missing
    out on something here?
    any ideas would be really appreciated! or if anyone has any
    scripts for sizeable popup windows that work on IE7 i would really
    appreciate it. thanks
    :}

    well i have used a couple of different attempts. I have used
    code generated by this:
    http://www.flash-db.com/PopUp/
    on (release) {
    getURL
    ("javascript:NewWindow=window.open('pants.html','newWin','width=200,height=50,left=0,top= 0,toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No');
    void(0);");
    I have also tried a couple of other tutorials from
    http://www.kirupa.com
    link;
    http://www.kirupa.com/kirupa.htm'
    and I used the javascript supplied and had no luck (I
    embedded the html etc) ... i have tried about 5 other tutorials and
    I've got to the point where I'm wondering is the problem based
    around by browser, I only using IE7 and have no ther browser. I'm
    using FlashMX 2004. all the example files .fla and swfs i have
    downloaded aren't working either so I'm totaly scartching my head
    at this point...
    any ideas where i'm going wrong here? any help very much
    appreciated
    :}

  • Is there a way to show the current URL for a WebHelp topic in the browser?

    RoboHelp 11, WebHelp.
    When I open the WebHelp project, the URL displays the start page for the Touchstone Help project: ..../Documentation/Touchstone/Content/Content.htm.
    As I go to different pages in the Help, the URL never changes.
    Our client consulting personnel often like to copy a URL to send to a client who has a question about a particular topic.
    Is there a WebHelp setting that supports display of the current URL?
    Thank you.
    Carol Levine
    AIR Worldwide

    Hi, Jeff.
    Internet Explorer 9.
    I've got the pointer in the topic.
    Right-clicking displays the following shortcut menu.
    When I click "Create shortcut" (the only option with "shortcut" in the name), the following message appears.
    After clicking Yes, the shortcut is on the desktop. The user must then right-click the URL, select Properties, copy the URL from the Web Document tab, paste it into an email, and send it.
    Is this the process as you understand it?
    Thanks.
    Carol

  • Highlighting Current Page with CSS

    This morning I post my first Dreamweaver/CSS site. It is for
    a DVD I produced about infant massage. www.BabyBabyOhBaby.com.
    What I'd like to do is highlight the current page in the
    navigation bar using either a border or color change. I've found
    some sites like
    http://www.hicksdesign.co.uk/journal/highlighting-current-page-with-css
    but, sorry to say, I'm a beginner at both Dreamweaver & CSS and
    I can't quite follow the code.
    Is there some way within Dreamweaver to accomplish the
    highlighting in design view without writing the code? Or perhaps
    someone has some very basic elementary CSS guidance?
    Thanks for your time,
    David

    Oh, yeah. 8)
    Get that....
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "E Michael Brandt" <[email protected]> wrote
    in message
    news:[email protected]...
    > <informative but also self-serving>
    >
    > Really we have made this much much easier. divaGPS
    creates you-are-here"
    > menu highlighting and is easy to add to any number of
    pages at once - even
    > Templates' Child pages. It is a commercial DW Extension
    that will save
    > you lots of time and effort.
    >
    >
    http://divahtml.com/products/divaGPS/current_menu_location.php
    >
    > <informative but also self-serving />
    >
    > --
    >
    > E. Michael Brandt
    >
    > www.divaHTML.com
    > divaGPS : you-are-here menu highlighting
    > divaFAQ : FAQ pages with pizazz
    >
    > www.valleywebdesigns.com
    > JustSo PictureWindow
    > JustSo PhotoAlbum
    >
    > --
    >
    >
    > Murray *ACE* wrote:
    >> You need to know the downside to using layers as a
    primary layout
    >> device - open your page in Firefox (or any non-IE
    browser) and bump the
    >> text size up a tick or two. Ugh....
    >>
    >> Here's your navbar -
    >>
    >> <div id="navbar"><a
    href="index.html">Home</a> | <a
    >> href="about_dvd.html"> the DVD</a> | <a
    href="preview.html">Preview</a> |
    >> <a href="reviews.html">Reviews</a> |
    <a href="infant_massge.html">Infant
    >> Massage</a> | <a
    href="contact_us.html">Contact Us</a> | <a
    >>
    href="shopping.html">Shopping</a></div>
    >>
    >> Change it to this -
    >>
    >> <div id="navbar"><a href="index.html"
    id="button1">Home</a> | <a
    >> href="about_dvd.html" id="button2"> the
    DVD</a> | <a href="preview.html"
    >> id="button3">Preview</a> | <a
    href="reviews.html"
    >> id="button4">Reviews</a> | <a
    href="infant_massge.html"
    >> id="button5">Infant Massage</a> | <a
    href="contact_us.html"
    >> id="button6">Contact Us</a> | <a
    href="shopping.html"
    >> id="button7">Shopping</a></div>
    >>
    >> Then on each page, embed a little stylesheet in the
    head by changing
    >> this -
    >>
    >> </head>
    >>
    >> to this -
    >>
    >> <style type="text/css">
    >> a#buttonX { your highlight styles }
    >> </style>
    >>
    >> and just change the "X" to whatever number button
    you want to highlight.
    >>
    >> You can do this in Design view, but it's too
    tedious.
    >>

  • Load the External text and css file for more frames

    hello..
           I created one Movie file. In that I load the External text and css file in first frame and display the first variable value in one text box.
    And then in 2nd frame I use another one text field and display the 2nd variable value like that I want to load the more variable in more textboxes with different frames.
         I loaded  for first variable value in first frame. But I don't know how to do next frames like that..
         Help me...

    You need to load them in the frames they are in.  You can store the loaded data in variables in frame 1, but you will need to extend that layer so that whatever is stored is avaliable in other frames.  The code to load the data into the other textfields can then be done in the frames where it is needed.
    There are other options, such as not using other frames for content or having all of them in frame 1 and making them invisible until you get to the other frames where they get turned visible.

  • Comparing the current value with the previous one in Powershell

    Hi,
    New to scripting and i was wondering how can I compare the current value with the previous value?
    I am having trouble with the loop structure, and I am not sure I am on the right track...
    I am trying to compare the record to next record in the same csv file after import-csv... My code runs fine, but is not giving the right result.
    $FilePath = Get-FileName -initialDirectory "C:\"
    #Testing for null
    If($FilePath)
    $Data = Import-csv -Path $FilePath | Sort-Object BUYER, {[int] $_.PO_NBR}, {[int] $_.LINE_NBR}
    Foreach($fData in $Data)
    $i = $fData
    Foreach($i in $fData)
    if($fData.Buyer -eq $i.Buyer)
    #save all the same buyer name to a new variable
    Write-Host "Same as previous"
    Else
    Write-Host "Variable is null"
    Remove-Item function:\Get-FileName

    Thank you. The Foreach loop is now working properly.
    Can I ask what is the purpose of "-ea 0" in the import-csv? I can't seem to find "-ea" as a parameter for import-csv in help.
    -ea is short for -ErrorAction.
    Don't retire TechNet! -
    (Don't give up yet - 13,225+ strong and growing)

  • How can we read the current URL in Forms9i

    Hi,
    It will be greatful, if anyone give me the solution to get the current URL in Oracle forms 9i
    Regards,
    Walter Nicholas T

    Walter,
    it depends on what you need it for. The Forms URL cannot be accessed directly from Forms without using a Java Bean in it, but consists of
    <protocoll><server><port>forms90/f90servlet?config=<application>
    If you want to call resources on the same server, then you could do a web.show_document() call to /<virtual path>/<file>, whic would then look for the resource on the server that downloaded Forms
    To get the information about the config parameter, create a user parameter in Forms, say "conf" and add teh following to teh formsweb.cfg file
    [myApp]
    otherparams=conf=%config%
    In Forms the config information is accessible via
    varStr := :parameter.conf;
    To get the whole URL string, I am afraid you need to write a Java Bean in Forms (not sure of webutil already implements this, maybe worth checking)
    Frank

  • How can i change the html, jsp, js, css file using ../tools/filemanager.jsp

    Hallo Experts
    I want to know how to get the html, jsp, js, css file using .../strategy/tools/filemanager.jsp? If I search the file such as "commentslist", I'll find the file. It is shown in the table with three columns:
    Column with trash symbol for deletion, Path and Date. But I cannot to fetch the file and saved local to make the modifications.  Could you tell me how I can get the file? Is there another way to this?
    Thanks a lot and
    Best regards!
    Ping

    Wang,
    If you are looking at the commentslist file with the intention of customizing, you would use File Manager Path to be directed to the file's location:
    \usr\sap\<3 letter CE instance>\J00\j2ee\cluster\apps\sap.com\xappscpmsm~strategymanagement\servlet_jsp\strategy\root\pilotworks
    Any customization would have to be noted, since upgrades will overwrite customizations.
    Regards,
    Bob

  • Generating the .CAP, .JCA and .EXP files.

    Hello;
    I have downloaded the java_card_kit-2_1_2 to &lsquo;C:\java_card_kit-2_2_1", and I tried to compile HelloWorld application that shipped with its distribution. I was successfully able to compile the file HelloWorld.java, but I am having lots of problems in generating the .CAP, .JCA and .EXP files.
    I tried to follow the instructions in jcdk2.2.1 user guide, but of no use.
    This is what I am basically doing:
    _Step1) Setting my Environment Variables as follows:_
    *set JC_HOME=C:\java_card_kit-2_2_1*
    *set JAVA_HOME=C:\Program Files\Java\jdk1.6.0_16*
    *set PATH=.;%JC_HOME%\bin;%JAVA_HOME%\bin;%PATH%*
    _Step2) Compile the java file_
    The package of HelloWorld.java is : src.com.sun.javacard.samples.HelloWorld, so to compile I use the following command line:
    *javac -g -target 1.1 -source 1.3 -classpath .\classes;..\lib\api.jar;..\lib\installer.jar src\com\sun\javacard\samples\HelloWorld\*.java*
    _Step3) Converting_
    I have the class file generated in the package folder: src.com.sun.javacard.samples.HelloWorld, I generated an .opt file as follows:
    +-out EXP JCA CAP+
    +-exportpath .+
    +-debug+
    +-applet 0xa0:0x0:0x0:0x0:0x62:0x3:0x1:0xc:0x1:0x1 src.com.sun.javacard.samples.HelloWorld.HelloWorld+
    +src.com.sun.javacard.samples.HelloWorld 0xa0:0x0:0x0:0x0:0x62:0x3:0x1:0xc:0x1 1.0+
    Finally, the command line for conversion is:
    *set _CLASSES=%JC_HOME%\lib\apduio.jar;%JC_HOME%\lib\apdutool.jar;%JC_HOME%\lib\jcwde.jar;%JC_HOME%\lib\converter.jar;%JC_HOME%\lib\scriptgen.jar;%JC_HOME%\lib\offcardverifier.jar;%JC_HOME%\lib\api.jar;%JC_HOME%\lib\installer.jar;%JC_HOME%\lib\capdump.jar;%JC_HOME%\samples\classes;%CLASSPATH%;*
    *"%JAVA_HOME%\bin\java" -classpath %_CLASSES% com.sun.javacard.converter.Converter -config src\com\sun\javacard\samples\HelloWorld\HelloWorld.opt*
    After successfully executing all these lines, I get the following error:
    Java Card 2.2.1 Class File Converter, Version 1.3
    Copyright 2003 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
    *+error: class HelloWorld does not belong to package src.com.sun.javacard.samples.HelloWorld.+*
    conversion completed with 1 errors and 0 warnings.
    PLEASE HELP! I also tried adding -classdir to the opt file, but still did not work.
    The whole point behind this exercise is to import a javacard framework of version 1.0
    Really appreciate anyone's help! Thanks in advance.

    Thank you Shane, but my claSs file is indeed saved in "C:\java_card_kit-2_2_1\samples\src\com\sun\javacard\samples\HelloWorld"
    Now since I am running my command lines from C:\java_card_kit-2_2_1\samples, so I guess that the class directory is:
    src.com.sun.javacard.samples.HelloWorld
    Right?

  • My original iPad still shows iOS 5.1.1 as the current version with no opportunity to update.

    My original iPad still shows iOS 5.1.1 as the current version with no opportunity to update.

    No IOS 6 for Original iPad.

  • What is the exact problem with this file?

    Hi all,
    There is an old form , which was not in use from many days.
    Now when we tried to run the form, i got the error saying "FRM-40734:Internal Error:Pl/SQL error occured.", in the login form.
    When i tried to open the fmb file in Oracle Forms Builder 6i, i got the following error:
    FRM-10102: Cannot attach PL/SQL library d2kwutil. This library attachment will be lost if the module is saved., but the fmb file got open.
    The login button has the following code:
    DECLARE
      UNAME VARCHAR2(30);
      --USER_ID PARAMLIST;
      V_USER APUSERMA.USER_NAME%TYPE;
      V_PASSWED APUSERMA.USER_PASSWD%TYPE;
    BEGIN
    select user_CD INTO :GLOBAL.USER_ID from apuserma 
    where user_CD = :TI_USER_NAME AND user_PASSWD = :IT_USER_PASSWD
    AND SYSDATE BETWEEN USER_VALID_FRM AND USER_VALID_TO;
    :global.user_id  := substr(win_api_environment.read_registry('HKEY_LOCAL_MACHINE\system\currentcontrolset\control\computername\computername','computername'),1,10);
    :global.compname := :compname;
    compnm(:compname);
    --USER_ID := CREATE_PARAMETER_LIST('USER_id_NAME');
    call_form('Forms\MAIN_SCREEN',hide,DO_REPLACE);
    exception
      when no_data_found then
      MESSAGE('Incorrect Username or Password.  Please Re-Enter');
      message(' ');
      RAISE FORM_TRIGGER_FAILURE;
    END;
    EXIT_FORM;
    When i tried to compile, i got error saying ,
    Error 201 at line 10, column 28
    identifier 'WIN_API_ENVIRONMENT.READ_REGISTRY' must be declared.
    I am not getting to know What is the exact problem with this file?
    Help me with this please.
    Thank You.
    Oracle forms builder 6i.
    Oracle 9i.

    Vijetha wrote:
    I also want to know what is the use of  win_api_environment.read_registry('HKEY_LOCAL_MACHINE\system\currentcontrolset\control\computername\computername','computername') ??
    What does it do??
    If i comment the following line , will it be a problem??
    :global.user_id  := substr(win_api_environment.read_registry('HKEY_LOCAL_MACHINE\system\currentcontrolset\control\computername\computername','computername'),1,10);
    Because i commented the above line & compiled, so it is not giving any error now.
    So please tell me what win_api_environment.read_registry does??
    it's read windows registry value. So, no problem if you comment it.
    Thanks

Maybe you are looking for

  • Indexes created in database

    Hi, on FSCM 91, on Win 2008, Tools 8.52, DB Oracle 11g. If an index is created not in Application designer (but in for example in SQLPLUS) would it be used by PeopleSoft when browsing or running a batch by Process Scheduler ? In other words the index

  • Event Handling when EditText has been filled

    I'd like to call some code after an EditText has been filled.  But I'm having a little trouble figuring out which events I need to watch. The tricky part (it seems) is that I need to catch the event any time data is added to or changed in the EditTex

  • I cannot open an existing document.

    The new version of Pages is installed on my Macbook Pro but I get an error message when trying to open a saved document. It says I have to download the new version of pages to open the document?

  • Customer master Upload

    HI, Iam doing Customer master Upload.............My proble is... Some of my Customers are GOvt customers...Lets say..R&B Karnataka....having 50 customer masters in Diff branches.....like R&B(Bangalore/mysore/Etc...) Some times Bangalore branch may gi

  • How to bring up the screen in mozilla firefox facebook

    how to bring up the screen in mozilla firefox facebook == URL of affected sites == http://[email protected] == User Agent == Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.125 Safari/533.4