Page LInk

I am extremely new to java. I mostly "edit" existing scripts to get what I need.
I have downloaded a script that allows me to allow people to enter a file name to get an image file.
The script takes people to the existing directory of the page which is www.embgallery.com/upload/filename.jpg
I would like to be able to choose a different directory to be displayed such as www.embgallery.com/newupload/filename.jpg.
Here is the code...
<script language="JavaScript">
<!--
function password(field)
var thepassword=field.toLowerCase();
window.location.href=thepassword;
//-->
</script>
Basically I want the window.location.href to equal a certain directory and then the password.
To see the way the site behaves, visit http://www.embgallery.com/Upload/index.htm

well, this isn't a Java related question, so for future reference, post your questions to a JavaScript forum, not a Java forum (yes, there is a difference).
However, to answer you question, you can specify either a relative path, or an absolute path as a prefix to your filename. For example, either of the following choices should work for you. The first will go back to the root, and then into the newupload directory, the second takes you back one directory, and then into the newupload directory. Since one directory back IS your root directory in your case, they will both accomplish the same goal.
window.location.href = "/newupload/"+thepassword;
or
window.location.href="../newupload/"+thepassword;

Similar Messages

  • Is there a way to create a "Print This Page" link?

    I have a client who want to insert a print this page link that launches their print utility. Is this possible with Muse?

    This is not a function of Muse. You'll need to use the 'insert arbitrary HTML' function to add this.
    Here's where to get the javascript to insert.
    Beware that Muse only produces a generic stylesheet and does not define its specific media type. That means that printing a Muse-generated web page or rendering a Muse website on a mobile device can be extremely messy.  Elements may fall off of a page or may be sized oddly. The Muse showcase shows how the Horace and Lydia site falls apart in print. Elements appear broken and blank pages result.
    Muse developers need to employ semantic markup so that users can design stylesheets for different media types. This topic is related to the frequent requests that Muse should be able to design for mobile devices. Muse just isn't smart enough to do what a professional designer would want.

  • When I click on a page link the new page doesn't open

    Everything about the problem is contained above.
    The same sites work fine in other browsers

    It would help to know what the problem page link is. <br/>(If it is only one page not opening, clear the browser cache, and that site's cookies)
    *If it happens on all links are you able to open files on your local computer with firefox?
    *Is it only pages on the internet that will not open?
    * are you posting this message from another computer ?
    * have you tried in [[safe mode]]
    *# Open in safe mode, e.g. use the option from the menu that says restart with add-ons disabled
    *#* do not make changes in the first options Window, just click on restart
    *# Use only the default theme
    *# if the problem persists, then whilst still in safe mode disable all plugins
    * see also
    **[[troubleshooting extensions and themes]]
    **[[how to clear the cache]]
    **[[deleting cookies]]
    **[[error loading web sites]]
    ** [[safe mode]]

  • Override "Email a Page link" in ribbon button functionality in SharePoint 2013

    Hi,
    I want to override "Email a Page link" ribbon button functionality on the ribbon control.
      <CustomAction Id="Ribbon.WikiPageTab.Share.EmailPageLink"
                    Location="CommandUI.Ribbon"                
                    Title="Custom Email this page">
        <CommandUIExtension>
          <CommandUIDefinitions>
            <CommandUIDefinition Location="Ribbon.WikiPageTab.Share.EmailPageLink">
              <Group
              Id="Ribbon.WikiPageTab.Share"
              Sequence="30"
              Command="ShareGroup"
              Description=""
              Title="$Resources:core,cui_GrpShare;"
              Image32by32Popup="/_layouts/15/$Resources:core,Language;/images/formatmap32x32.png?rev=23" Image32by32PopupTop="-137" Image32by32PopupLeft="-103"
              Template="Ribbon.Templates.Flexible2"
              >
                <Controls Id="Ribbon.WikiPageTab.Share.Controls">
                  <Button
                    Id="Ribbon.WikiPageTab.Share.EmailPageLink"
                    Sequence="10"
                    Command="CustomEmailPageUrl"
                    Image16by16="/_layouts/15/$Resources:core,Language;/images/formatmap16x16.png?rev=23" Image16by16Top="-115" Image16by16Left="-19"
                    Image32by32="/_layouts/15/$Resources:core,Language;/images/formatmap32x32.png?rev=23" Image32by32Top="-137" Image32by32Left="-511"
                    LabelText="$Resources:core,cui_ButEmailLink;"
                    ToolTipTitle="$Resources:core,cui_ButEmailLink;"
                    ToolTipDescription="$Resources:core,cui_STT_ButEmailLinkPage;"
                    TemplateAlias="o1"
                   />
                </Controls>
                  </Group>
            </CommandUIDefinition>
          </CommandUIDefinitions>
          <CommandUIHandlers>
            <CommandUIHandler Command="CustomEmailPageUrl" CommandAction="javascript:alert('Hello, world');" />
          </CommandUIHandlers>
        </CommandUIExtension>
      </CustomAction>
    Any help would be appreciated.
    Rajasekar A.C

    Hi,
    According to your post, my understanding is that you wanted to override the “E-mail a Link” button on the Ribbon.
    I had created a simple demo to override the “E-mail a Link” button on the Ribbon, you can have a look at it.
    <?xml version="1.0" encoding="utf-8"?>
    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
    <CustomAction Id="Ribbon.Library.Actions.OverrideEmailLinkButton" Location="CommandUI.Ribbon" RegistrationId="101" RegistrationType="List" Title="Display the UniqueId for the list item.">
    <CommandUIExtension>
    <CommandUIDefinitions>
    <CommandUIDefinition Location="Ribbon.Library.Share.EmailLibraryLink">
    <Button Id="Ribbon.Library.Share.EmailLibraryLink.ReplacementButton" Command="ReplacementButtonCommand" Image16by16="http://s10.postimage.org/lhar0oijp/U16.png" Image32by32="http://s17.postimage.org/trf3y2ui3/U32.png" LabelText="Replaced Button" TemplateAlias="o2" />
    </CommandUIDefinition>
    </CommandUIDefinitions>
    <CommandUIHandlers>
    <CommandUIHandler Command="ReplacementButtonCommand" CommandAction="javascript:alert('This button has been replaced.');" />
    </CommandUIHandlers>
    </CommandUIExtension>
    </CustomAction>
    </Elements>
    More reference:http://msdn.microsoft.com/en-us/library/office/ff407619(v=office.14).aspx
    Thanks,
    Jason
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Jason Guo
    TechNet Community Support

  • XE database home page link goes to APEX home page after 3.2 upgrade

    Hi - I had Oracle XE running on Win XP all OK.
    Taking the Database home page link took me to http://127.0.0.1:8080/apex/f?p=4550: etc etc BUT it took me to the XE login page which we use for system administration - all good so far.
    I then upgraded (sucessfully) the installed APEX (V2.1) which comes with XE to the new V3.2 version.
    All went well BUT the url above takes me to APEX login page and I can't get to XE adminstration.
    Any ideas or clues how I should upgrade to keep both login pages available ?
    Regards Dave Lee

    davejlee wrote:
    All went well BUT the url above takes me to APEX login page and I can't get to XE adminstration.
    I'm not sure what you mean with this?
    In APEX Upgrade guide are listed 'Database Management Differences between Oracle APEX 2.1 and 3.2'
    http://www.oracle.com/technology/products/database/application_express/html/3.2_and_xe.html

  • WPC Problem after creation of new Site - no "Edit Page" Link available

    Hello,
    I have a problem with WebPageComposer (WPC) and Edit Page link.
    We are currently on EP 7.01 SP6.
    (I have the wpc_editor_role for my user)
    I am doing the following:
    1) I create a new site, (derived permissions for all folders is wpc_editor_role - Full Control),
    2) I Create some article within its Site Content folder
    3) I create a new web page in its Web Pages folder
    4) assign the article to the web page and publish it
    5) add web page within Site Navigation as a new node
    6) I used Publish Site Navigation
    After clicking on the web page within Web Pages folder it does a preview.
    Our older WPC content does display the Edit Page link - the new one does not.
    What step am I missing here?
    Maybe it is an upgrade issue?
    Best Regards, Thomas
    P.S.: copying one of our older WPC pages into my new site + renaming it via KM + removing old content + assigning new one does display the correct link after publishing it! Any indeas?

    Dear Thomas,
    It sounds like your are doing all the right actions, I don't think that your missing any step in the process, but please consider the following.
    Are you using a custom WPC layout template? The reason I ask is that I have developed a number of WPC custom templates and in some circumstances I have needed to remove/hide the "pageheader" section of the template. This action removed the links from displaying at the top of the page. Try creating and publishing a web page using a SAP standard WPC layout and see if the edit link appears once the page is published.
    The editing and preview page views do not display the "edit" link, they only display the other page header links that can be assigned to a page. The edit link is only visible when viewing the page via the portal, not in edit mode. Another question, was the deployment of KMCWPC successful and without error? I have experienced issues where the deployment did not fully complete, causing some subtle issues regarding publishing of WPC content and redeploying KMCWPC fixed the issue. I hope this helps.
    Best Regards,
    Chris

  • Acrobat Pro 7.0 Crashes while adding page links

    My client has supplied a 238 page Acrobat document. They would like me to add page links to the Table of Contents page for each chapter.
    When I try to set the page links Acrobat shuts down for not apparent reason.
    I've tried on my MacBook Pro running OSX and Windows running XP PRo. Both machines are running 2 gigs of RAM with all the software updates.
    I've tried to close all applications that might be running. Same results.

    Did anyone ever get an answer from Adobe to this problem? I am having almost the same issue, only it's when I try to edit the properties of the Go to a page view link function. I have a main document that has several additional PDF files attached within it. Within those files, I have created destinations so that when I link them up, I can actually link to the correct location in the document. When I create a link, and then try to go to the properties of that link to set up Open in a new window and to set the destination location, Acrobat crashes without an error. It just closes with all changes lost. I have tried this on three different computers at my office, my home computer, and have even tried to complete the links with version 7.0 Professional. That same problem occurs. I have called their Tech support, and they sent me a "TechNote" for "Troubleshoot system errors or freezes" for Acrobat 8.x.. I went through every possible solution that they had, but it never fixed the problem. I asked the customer service person if this was a "known problem", and he said "not officially, but it happens". Is there anyone out there who can help me resolve this?? I need to have this functioning. Thanks.

  • I can right click to copy a web page link, but it will not let me rick click again to paste the link to the body of text

    I use firefox as my web browser. My start page is www.msn.com where I can access hotmail. Once I have logged into hotmail and click on (Create) new mail I have this problem. If I go to a web page link, ie; www.msn.com, I can highlite the address and then right click to copy. When I go to the body of the email I'm working with, and right click again to paste I DO NOT GET A SCREEN THAT HAS PASTE ON IT. I tried this again by logging into Internet Explorer signed into my hot mail account and tried it again. It works in IE with hotmail. So I feel this problem has been encountered with a firefox update, because I did not have the problem in the past.

    Hi,
    You may have to make sure that '''Disable or replace context menus''' is enabled (tick) in '''Tools''' ('''Alt''' + '''T''') > '''Options''' > '''Content''' > '''Advanced''' (on the right end of '''Enable Javascript'''). [https://support.mozilla.org/en-US/kb/Options%20window%20-%20Content%20panel Options > Content]
    [https://support.mozilla.org/en-US/kb/Options%20window Options]
    If the problem persists please check in [https://support.mozilla.com/en-US/kb/Safe%20Mode Safe Mode]
    [http://kb.mozillazine.org/Problematic_extensions Problematic Extensions]
    [https://support.mozilla.com/en-US/kb/Troubleshooting%20extensions%20and%20themes Troubleshooting Extensions and Themes]
    [http://support.mozilla.com/en-US/kb/Uninstalling+add-ons Uninstalling Add-ons]
    [http://kb.mozillazine.org/Uninstalling_toolbars Uninstalling Toolbars]

  • IBooks:may upload a pdf ebook from my computer or, from www page link to it

    iBooks App
    =========
    In this App may upload a pdf ebook from my computer or, from www page link to it? if yes, may write inside the pdf there after?

    You can upload a PDF-file to your iPad via your computer using iTunes and you can download a PDF-file from a website and open this in iBooks.
    You cant edit the PDF inside iBooks.

  • Firefox crashes when trying to send a web page link.

    The questions says it all. I've tried three times to send a web page link and each time I got a Microsoft error message and Firefox closed.

    I filed a bug for this crash as it has been reported on Mac machines and all of the comments are either printing a webpage or printing a print button.
    If I may ask are you using File > Print or is there also a print icon?
    Another question for investigation is do you have print_printer?
    In order to change your Firefox Configuration please do the following steps :
    # In the [[Location bar autocomplete|Location bar]], type '''about:config''' and press '''Enter'''. The about:config "''This might void your warranty!''" warning page may appear.
    # Click '''I'll be careful, I promise!''' to continue to the about:config page.
    #right click new > string and enter name : print_printer and for value : enter the name of your printer with without the quotes, then OK.
    Please post back with the results. Thank you!

  • Is there a way to generate table of contents into page links?

    I have created a PDF document from a data modeling tool.  After the document is created I am looking to generate page links en masse from the table of contents to the appropriate referenced page.  I know I can add links one at a time, but that is too time consuming.  Please give me a clue, this is driving me crazy.  Thanks for any help.

    Hi,
    Thanks for the reply. I am new to the adobe and to the javascript.
    I would appreciate if you can guide me as to where can I get the online help on javascript related to Adobe Print and Interactive Forms.

  • New desktop has wrong path for page links in nav bar

    I created a new desktop and have the following problem. The image links to portal
    pages in the horizontal nav bar in the top have wrong path.
    Example.
    In the original portal the home page link in the nav bar has a image associated
    with it in workshop.
    \framework\skin\classic\images\home.gif
    The partial url generated for the image looks liek this:
    \mywebapp\\framework\skin\classic\images\home.gif.
    I created a new desktop everything works fine except for the images. The href's
    are created for the links but the image path is wrong.
    the url generated is : \mywebapp\appmanager\framework\skin\classic\images\home.gif
    The "appmanager" in the path causes the problem.
    Is this a bug?

    Hi Subbu,
    I used workshop page properties to associate the image to the page.
    framework/skins/classic/images/home.gif
    - Shankar
    Subbu Allamaraju <[email protected]> wrote:
    Shankar,
    Did you use any tag to create the img tag? Do you have any sample
    HTML/JSP snippet?
    Subbu
    Shankar Bala wrote:
    I created a new desktop and have the following problem. The imagelinks to portal
    pages in the horizontal nav bar in the top have wrong path.
    Example.
    In the original portal the home page link in the nav bar has a imageassociated
    with it in workshop.
    \framework\skin\classic\images\home.gif
    The partial url generated for the image looks liek this:
    \mywebapp\\framework\skin\classic\images\home.gif.
    I created a new desktop everything works fine except for the images.The href's
    are created for the links but the image path is wrong.
    the url generated is : \mywebapp\appmanager\framework\skin\classic\images\home.gif
    The "appmanager" in the path causes the problem.
    Is this a bug?

  • When I click on a web page link, it creates a bookmark does not open page, need to right click and open new page or tab

    When I click on a web page link, it creates a bookmark does not open page, need to right click and open new page or tab

    My own problem not a system one

  • Renamed Home page to "index," now my other pages' links to home won't work

    I made a website on Iweb, bought a domain name from Hosting4less, and got an ftp client (cyberduck) to upload it. The Hosting4less support guy told me to rename my "home" page to "index" so that everything would actually show up once I'd uploaded it. This worked, and now, starting from home, I can go to any page. However, from the other pages, when I click back to the home link, I get this:
    The requested URL /Home.html was not found on this server.
    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
    I guess the renaming mixed up the other pages' links to the home page. How do I fix this? I don't know code, so I can't really go in and fix it that way. It seems like Iweb won't allow it either... help???

    Hi and welcome,
    with iWeb you don't need to rename any page to "index" as publishing already creates a page called "index".
    I guess you're publishing to a folder, the result of publishing is an index.html file and a folder named with the name you gave to the site in iWeb. You have to upload the folder and the index.html file.
    Pages should never be renamed after you publish as that breaks the whole structure of the website (all the links that refer to this page).
    Republish from iWeb and reupload (also don't name a page index in iWeb as that may conflict with iWeb already generating such files).
    Regards,
    Cédric

  • How do I add a print this page link? Here is what I've done so far...

    I have tried this code:
    // Print current page silently
    print({bUI : false, nStart : pageNum, nEnd : pageNum});
    which works from the bookmark column. However, when I try to apply it (set link) within a document, it doesn't work.  My clients really want to be able to add a "print this page" link on every page (fun)... so your help is appreciated. Cheers.

    I was just coming back to here to say I've figured it out and am using an invisible button (over text that was created to look like a link) on each page... tested and working (when combined with the code). Thank you for your replies!

  • Iweb page links not working??

    HELP!! I am very new to MAC and even newer to IWEB.
    I have tried making a website, and part way through decided to delete the welcome page and add a new welcome page. Now for some reason the page links are not working on the welcome page??
    Please help

    Welcome to the Apple Discussions. Are you referring to the links in the navbar? Try using the File->Publish All to MobileMe menu option. Also make sure there are no items that are overlapping the navbar area.
    OT

Maybe you are looking for

  • Solaris 8 Installed, but won't run

    I�m pretty new to UNIX environments, so any advice or help in regard to the problem I�m having with Solaris 8 on my Compaq Presario would be much appreciated. It's a 1G Athlon with 128M of memory. I�ve installed the software, though throughout the in

  • How I create a unique instaltion to Oracle 10g Client

    Firstly I dont know where I post about this... So Post here. I need create a Simple instalation to Oracle Client... example: Next, next and conclude. when I define the parameters previously... this is possible? Edited by: jonhwell on 13/09/2012 11:29

  • I don't have face time in my ipad 2. how to enable facetime in my ipad?

    Hi, I am living in UAE and facetime icon is not there in my ipad, someone can help me to enable facetime.

  • Using realms in wls 5.1

    is it possible to invoke authentication by getting a handle on a securty realm? How would i go about doing this? If I can get a hold of the realm from jndi or something...i think i might be golden. thanks

  • Spatial operator issue

    Hallo, I have a general question. I am using a spatial operator. There it is a general rule that the first parameter must come from a indexed table and the second need not to be indexed. As far as good. The other rule is that the first parameter shou