Uploading CSS file

Hello:
I uploaded a CSS file that I would like to use for my application.
I selected the template for Page and modified the following line to say this:
<link rel="stylesheet" href="#WORKSPACE_IMAGES#theme14.css" type="text/css">.
When I applied the changes and ran my application, this CSS file did not go into effect. My application is still using the CSS file that is associated with that particular theme.
Can someone help me figure out why my custom CSS file is not being used for formatting?
Thank you.

Hi,
I put my line in place of the APEX line not after it. Are you saying that the header section should look like this:
<link rel="stylesheet" href="#IMAGE_PREFIX#themes/theme_14/theme_3_1.css" type="text/css" />
<link rel="stylesheet" href="#WORKSPACE_IMAGES#theme14.css" type="text/css" />There should be two lines?

Similar Messages

  • Changing or Deleting Uploaded CSS file

    I am having a problem modifying an uploaded CSS file. I uploaded it just fine but now when I go to the Edit Cascading Style Sheet page and click any of the three buttons (Cancel, Delete, Apply Changes) I get a page not found error with the following URL https://<servername>/pls/htmldb/wwv_flow.accept. If I then press the refresh button I get this error:
    Expecting p_company or wwv_flow_company cookie to contain security group id of application owner.
    Error ERR-7621 Could not determine workspace for application (:) on application accept.
    OK
    I'm sure it is something wrong with the environment because it works great on the Application Express version I have loaded on my laptop.
    Message was edited by:
    ddlloyd

    ddloyd,
    Your CSS is too large to edit directly and save. We attempt to prevent you from doing that, but ultimately, we base our size calculation on the actual size and not the eventual size of the encoded data that will be posted.
    You have really two options - either break this up into multiple CSS files, or edit locally and upload again.
    I hope this helps.
    Joel

  • Uploading the file as a blob to oracle database

    Hi..I wrote a program to upload the files as a blob to the database. It works fine for JSP files but when i try to upload a css file...it gives "No more data to read from socket" exception. I have tried all combinations like trying to upload css file first and then a jsp file and then multiple jsp file and then a css file and so on, thinking that it might be a storage problem. But it gives an error only for the css files...could there be any delimiter kind of symbol or something in the css file which make the oracle think that it is the end of file? Just a guess...any help is appreciated...
    n btw i upload the file using the file input stream and then i use preparedStatement.setBinaryStream method ....
    TIA

    Damn it...I cant believe that i took this long to figure it out...the maximum size of the file that my blob can store is 4 kb...and all my css files are bigger than that...wasted so many hours on this...:(

  • Use uploaded images in uploaded CSS

    Unable to reference uploaded image files inside an UPLOADED css file.
    For example in UPLOADED css file:
    .LeftTabForeSlant { background-image: url(#APP_IMAGES#my_image.gif) };
    Have also tried WORKSPACE_IMAGES(after moving image file) and have tried it as a quoted string inside parens.
    Any ideas?

    Absolutely! The idea is to create classes for styles will be used on multiple pages. You put these classes in your css which is included in your page template. Like images, modern browsers will cache your css on the first page view and used the cached version for subsequent page views. I've used this exact technique throughout HTML DB to reduce the page size. On average I was able to cut the size of a page in half. This translates to faster loading pages.
    To maximize the benefits of this technique, learn css selectors. CSS selectors allow you to modify the style of additional attributes of the page without adding any additional text. The following is an example:
    Example 1 CSS:
    table.ex1{border:1px #888888 solid;}
    td.ex1Cell{color:#ff0000;}
    a.ex1Link:link{color:#0000ff;}
    a.ex1Link:visited{color:#0000ff;}
    a.ex1Link:hover{color:#00ff00;}
    Example 1 HTML:
    <table class="ex1"><tr>
    <td class="ex1Cell">Some Text.<a class="ex1Link">A link</a></td>
    </tr></table>
    Example 2: CSS
    table.ex1{border:1px #888888 solid;}
    table.ex1 td{color:#ff0000;}
    table.ex1 td a:link{color:#0000ff;}
    table.ex1 td a:visited{color:#0000ff;}
    table.ex1 td a:hover{color:#00ff00;}
    Example 2 HTML:
    <table class="ex1"><tr>
    <td>Some Text.<a>A link</a></td>
    </tr></table>
    Notice how much smaller the HTML was in example 2? The second line of the css in example says:
    Any td that is a child of a table with class=ex1, make the font red. This means I don't have to apply "class=..." to so many elements, thus cutting down on the size of my page.
    For further reading check out:
    http://htmldog.com
    http://www.w3schools.com
    Good luck,
    Tyler

  • Error When Uploading a CSS file or  Static file

    When I am uploading a CSS or Static file , I get the following error. But I can upload images files with no issues.
    ORA-02291: integrity constraint (FLOWS_FILES.WWV_FLOW_FILE_OBJ_FK) violated - parent key not found
    Oracle XE upgraded to Apex 3.1
    Please help
    George

    Yes, if you upload an image on a normal Oracle Apex Database its stored in the DB.
    But, if you remember, when you configire apex you specify an images directory /i/.
    Under this directory you will find all the images that apex uses as well as css files, etc.
    If you place your image in this directory you can reference it my modifying the appropriate stylesheet/template.
    So, for example, you cna place your own stylesheets in the appropriate directory on the server.

  • Upload a CSS file to APEX

    Hi all,
    I am trying to create a report page that looks exactly like a factsheet. I have someone to help me create a CSS file, but we are not sure if we can import it to APEX and use it as a template.
    Do you know if it's possible to import a CSS file? If yes, how do we do that?
    Thank you very much for the help!

    Sure you can. Go to shared components>> static files >> CSS >> upload file.
    Then you will need to reference that CSS in your report tempalte..
    Thanks,
    Sam

  • CSS files won't upload to server after update

    Hi,
    I checked 'Automaticaly upload files to server on save'
    But it when I make changes to the css in the css panel or in the file,
    the css file is never put on the server. Even if I open the css file and save it,
    it still doesn't get put on the server, I have to specificaly click the 'put' icon and choose put.
    This is VERY inconveinient.
    HELP.
    When I make a change to the css in the css panel or in the file and click save or save all, the
    css file should be put on the testing server.

    Actually this is working as intended.
    You don't mention what version of DW you are using but when making your changes and you have the css file selected in the related files across the top of your page - the css page will indeed upload on save if you have it set that way. If you have the main layout selected and you change an external css file you will notice that an asterisk is placed beside the css file in the related files. Even hitting save at that point won't save the css file and upload it unless you actually have the css file selected when you hit save.
    Brad Lawryk
    Adobe Community Professional: Dreamweaver
    Northern British Columbia Adobe Usergroup: Manager
    Thompson Rivers University: Dreamweaver Instructor
    My Adobe Blog: http://blog.lawryk.com

  • Muse site uploaded to Business catalyst, where are the css files?

    Hello.
    I've uploaded a site created in Muse to my Business Catalyst account. I want to access the css files but in Business catalyst Admin/Site Manager there is no File Manager for the CSS files. How do I make any change? I know I can make changes in the page editor but I need the CSS files as well. Similarly, how do I replace an image, I can't find an images folder either? Do all of these changes have to be done in the Muse program itself?
    Muse is new to me so thank you for any help.
    Grant

    Hi Grant,
    Because for now CSS and HTML file editing is incompatible with Muse (e.g. republishing your site will potentially overwrite all the changes), we've decided to hide the file manager for Muse users.
    However, there is a way to re-enable it. In order to enable site management for your user, please log into your site, and click on "My Details" (upper right). In the My details page, please check the option "Enable online content editing (incompatible with Muse)", and enter the password to confirm. A new entry (Site Manager) will appear in your menu.
    A similar case here:
    http://forums.adobe.com/thread/1030124
    Hope this helps,
    Alexandru

  • Trying to get lighttpd to upload a file through perl cgi

    Hi, I'm quite new in these things, so I might be doing something obvious wrong, but I'd like some help on this.
    I'm trying to make a webpage where people can upload files, this is the html page (located at /srv/html/index.html):
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>lighttpd Test Page</title>
    </head>
    <body>
    <div style="text-align:center; font: 12px sans-serif;">
    <span style="font-weight: bold; font-size: 20px;">
    Arch Linux
    </span>
    <br><br>
    This is a test page for the lighttpd Web Server.<br>
    <form action="/cgi-bin/upload.pl" method="post" enctype="multipart/form-data">
    <input type="file" name="fileName" size="40">
    <input type="submit" value="Send">
    <input type="reset">
    </form>
    </div>
    </body>
    </html>
    And the backend (in /srv/html/cgi-bin/upload.pl):
    #!/usr/bin/perl -wT
    use strict;
    use CGI;
    use CGI::Carp qw ( fatalsToBrowser );
    use File::Basename;
    $CGI::POST_MAX = 1024 * 1024 * 5000; # 5GB filesize limit
    my $safe_filename_characters = "a-zA-Z0-9_.-";
    my $upload_dir = "/srv/jail/";
    my $query = new CGI;
    my $filename = $query->param("fileName");
    if ( !$filename )
    print $query->header ( );
    print "There was a problem uploading your file (filesize limit may be exceeded).";
    exit;
    my ( $name, $path, $extension ) = fileparse ( $filename, '\..*' );
    $filename = $name . $extension;
    $filename =~ tr/ /_/;
    $filename =~ s/[^$safe_filename_characters]//g;
    if ( $filename =~ /^([$safe_filename_characters]+)$/ )
    $filename = $1;
    else
    die "Filename contains invalid characters";
    my $upload_filehandle = $query->upload("fileName");
    open ( UPLOADFILE, ">$upload_dir/$filename" ) or die "$!";
    binmode UPLOADFILE;
    while ( <$upload_filehandle> )
    print UPLOADFILE;
    close UPLOADFILE;
    print $query->header ( );
    print <<END_HTML;
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Done!</title>
    </head>
    <body>
    <p>Uploading done!</p>
    </body>
    </html>
    END_HTML
    My server config:
    # lighttpd configuration file
    # use it as a base for lighttpd 1.0.0 and above
    # $Id: lighttpd.conf,v 1.7 2004/11/03 22:26:05 weigon Exp $
    ############ Options you really have to take care of ####################
    ## modules to load
    # at least mod_access and mod_accesslog should be loaded
    # all other module should only be loaded if really neccesary
    # - saves some time
    # - saves memory
    server.modules = (
    # "mod_rewrite",
    # "mod_redirect",
    # "mod_alias",
    "mod_access",
    # "mod_cml",
    # "mod_trigger_b4_dl",
    # "mod_auth",
    # "mod_status",
    # "mod_setenv",
    # "mod_fastcgi",
    # "mod_proxy",
    # "mod_simple_vhost",
    # "mod_evhost",
    # "mod_userdir",
    "mod_cgi",
    # "mod_compress",
    # "mod_ssi",
    # "mod_usertrack",
    # "mod_expire",
    # "mod_secdownload",
    # "mod_rrdtool",
    "mod_accesslog" )
    ## a static document-root, for virtual-hosting take look at the
    ## server.virtual-* options
    server.document-root = "/srv/http/"
    ## where to send error-messages to
    server.errorlog = "/var/log/lighttpd/error.log"
    # files to check for if .../ is requested
    index-file.names = ( "index.php", "index.html",
    "index.htm", "default.htm" )
    ## set the event-handler (read the performance section in the manual)
    # server.event-handler = "freebsd-kqueue" # needed on OS X
    # mimetype mapping
    mimetype.assign = (
    ".pdf" => "application/pdf",
    ".sig" => "application/pgp-signature",
    ".spl" => "application/futuresplash",
    ".class" => "application/octet-stream",
    ".ps" => "application/postscript",
    ".torrent" => "application/x-bittorrent",
    ".dvi" => "application/x-dvi",
    ".gz" => "application/x-gzip",
    ".pac" => "application/x-ns-proxy-autoconfig",
    ".swf" => "application/x-shockwave-flash",
    ".tar.gz" => "application/x-tgz",
    ".tgz" => "application/x-tgz",
    ".tar" => "application/x-tar",
    ".zip" => "application/zip",
    ".mp3" => "audio/mpeg",
    ".m3u" => "audio/x-mpegurl",
    ".wma" => "audio/x-ms-wma",
    ".wax" => "audio/x-ms-wax",
    ".ogg" => "application/ogg",
    ".wav" => "audio/x-wav",
    ".gif" => "image/gif",
    ".jar" => "application/x-java-archive",
    ".jpg" => "image/jpeg",
    ".jpeg" => "image/jpeg",
    ".png" => "image/png",
    ".xbm" => "image/x-xbitmap",
    ".xpm" => "image/x-xpixmap",
    ".xwd" => "image/x-xwindowdump",
    ".css" => "text/css",
    ".html" => "text/html",
    ".htm" => "text/html",
    ".js" => "text/javascript",
    ".asc" => "text/plain",
    ".c" => "text/plain",
    ".cpp" => "text/plain",
    ".log" => "text/plain",
    ".conf" => "text/plain",
    ".text" => "text/plain",
    ".txt" => "text/plain",
    ".dtd" => "text/xml",
    ".xml" => "text/xml",
    ".mpeg" => "video/mpeg",
    ".mpg" => "video/mpeg",
    ".mov" => "video/quicktime",
    ".qt" => "video/quicktime",
    ".avi" => "video/x-msvideo",
    ".asf" => "video/x-ms-asf",
    ".asx" => "video/x-ms-asf",
    ".wmv" => "video/x-ms-wmv",
    ".bz2" => "application/x-bzip",
    ".tbz" => "application/x-bzip-compressed-tar",
    ".tar.bz2" => "application/x-bzip-compressed-tar",
    # default mime type
    "" => "application/octet-stream",
    # Use the "Content-Type" extended attribute to obtain mime type if possible
    #mimetype.use-xattr = "enable"
    ## send a different Server: header
    ## be nice and keep it at lighttpd
    # server.tag = "lighttpd"
    #### accesslog module
    accesslog.filename = "/var/log/lighttpd/access.log"
    ## deny access the file-extensions
    # ~ is for backupfiles from vi, emacs, joe, ...
    # .inc is often used for code includes which should in general not be part
    # of the document-root
    url.access-deny = ( "~", ".inc" )
    $HTTP["url"] =~ "\.pdf$" {
    server.range-requests = "disable"
    # which extensions should not be handle via static-file transfer
    # .php, .pl, .fcgi are most often handled by mod_fastcgi or mod_cgi
    static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
    ######### Options that are good to be but not neccesary to be changed #######
    ## bind to port (default: 80)
    server.port = ###
    ## bind to localhost (default: all interfaces)
    #server.bind = "127.0.0.1"
    ## error-handler for status 404
    #server.error-handler-404 = "/error-handler.html"
    #server.error-handler-404 = "/error-handler.php"
    ## to help the rc.scripts
    server.pid-file = "/var/run/lighttpd/lighttpd.pid"
    ###### virtual hosts
    ## If you want name-based virtual hosting add the next three settings and load
    ## mod_simple_vhost
    ## document-root =
    ## virtual-server-root + virtual-server-default-host + virtual-server-docroot
    ## or
    ## virtual-server-root + http-host + virtual-server-docroot
    #simple-vhost.server-root = "/srv/http/vhosts/"
    #simple-vhost.default-host = "www.example.org"
    #simple-vhost.document-root = "/htdocs/"
    ## Format: <errorfile-prefix><status-code>.html
    ## -> ..../status-404.html for 'File not found'
    #server.errorfile-prefix = "/usr/share/lighttpd/errors/status-"
    #server.errorfile-prefix = "/srv/http/errors/status-"
    ## virtual directory listings
    #dir-listing.activate = "enable"
    ## enable debugging
    #debug.log-request-header = "enable"
    #debug.log-response-header = "enable"
    #debug.log-request-handling = "enable"
    #debug.log-file-not-found = "enable"
    ### only root can use these options
    # chroot() to directory (default: no chroot() )
    #server.chroot = "/"
    ## change uid to <uid> (default: don't care)
    server.username = "http"
    ## change uid to <uid> (default: don't care)
    server.groupname = "http"
    #### compress module
    #compress.cache-dir = "/var/cache/lighttpd/compress/"
    #compress.filetype = ("text/plain", "text/html")
    #### proxy module
    ## read proxy.txt for more info
    #proxy.server = ( ".php" =>
    # ( "localhost" =>
    # "host" => "192.168.0.101",
    # "port" => 80
    #### fastcgi module
    ## read fastcgi.txt for more info
    ## for PHP don't forget to set cgi.fix_pathinfo = 1 in the php.ini
    #fastcgi.server = ( ".php" =>
    # ( "localhost" =>
    # "socket" => "/var/run/lighttpd/php-fastcgi.socket",
    # "bin-path" => "/usr/bin/php-cgi"
    #### CGI module
    cgi.assign = ( ".pl" => "/usr/bin/perl",
    ".cgi" => "/usr/bin/perl" )
    #### SSL engine
    #$SERVER["socket"] == "0.0.0.0:443" {
    ssl.engine = "enable"
    ssl.pemfile = "/etc/ssl/private/lighttpd.pem"
    # server.errorlog = "/var/log/lighttpd/error-ssl.log"
    # accesslog.filename = "/var/log/lighttpd/access-ssl.log"
    # server.document-root = "/home/lighttpd/html-ssl"
    #### status module
    #status.status-url = "/server-status"
    #status.config-url = "/server-config"
    #### auth module
    ## read authentication.txt for more info
    #auth.backend = "plain"
    #auth.backend.plain.userfile = "lighttpd.user"
    #auth.backend.plain.groupfile = "lighttpd.group"
    #auth.backend.ldap.hostname = "localhost"
    #auth.backend.ldap.base-dn = "dc=my-domain,dc=com"
    #auth.backend.ldap.filter = "(uid=$)"
    #auth.require = ( "/server-status" =>
    # "method" => "digest",
    # "realm" => "download archiv",
    # "require" => "user=jan"
    # "/server-config" =>
    # "method" => "digest",
    # "realm" => "download archiv",
    # "require" => "valid-user"
    #### url handling modules (rewrite, redirect, access)
    #url.rewrite = ( "^/$" => "/server-status" )
    #url.redirect = ( "^/wishlist/(.+)" => "http://www.123.org/$1" )
    #### both rewrite/redirect support back reference to regex conditional using %n
    #$HTTP["host"] =~ "^www\.(.*)" {
    # url.redirect = ( "^/(.*)" => "http://%1/$1" )
    # define a pattern for the host url finding
    # %% => % sign
    # %0 => domain name + tld
    # %1 => tld
    # %2 => domain name without tld
    # %3 => subdomain 1 name
    # %4 => subdomain 2 name
    #evhost.path-pattern = "/srv/http/vhosts/%3/htdocs/"
    #### expire module
    #expire.url = ( "/buggy/" => "access 2 hours", "/asdhas/" => "access plus 1 seconds 2 minutes")
    #### ssi
    #ssi.extension = ( ".shtml" )
    #### rrdtool
    #rrdtool.binary = "/usr/bin/rrdtool"
    #rrdtool.db-name = "/var/lib/lighttpd/lighttpd.rrd"
    #### setenv
    #setenv.add-request-header = ( "TRAV_ENV" => "mysql://user@host/db" )
    #setenv.add-response-header = ( "X-Secret-Message" => "42" )
    ## for mod_trigger_b4_dl
    # trigger-before-download.gdbm-filename = "/var/lib/lighttpd/trigger.db"
    # trigger-before-download.memcache-hosts = ( "127.0.0.1:11211" )
    # trigger-before-download.trigger-url = "^/trigger/"
    # trigger-before-download.download-url = "^/download/"
    # trigger-before-download.deny-url = "http://127.0.0.1/index.html"
    # trigger-before-download.trigger-timeout = 10
    ## for mod_cml
    ## don't forget to add index.cml to server.indexfiles
    # cml.extension = ".cml"
    # cml.memcache-hosts = ( "127.0.0.1:11211" )
    #### variable usage:
    ## variable name without "." is auto prefixed by "var." and becomes "var.bar"
    #bar = 1
    #var.mystring = "foo"
    ## integer add
    #bar += 1
    ## string concat, with integer cast as string, result: "www.foo1.com"
    #server.name = "www." + mystring + var.bar + ".com"
    ## array merge
    #index-file.names = (foo + ".php") + index-file.names
    #index-file.names += (foo + ".php")
    #### include
    #include /etc/lighttpd/lighttpd-inc.conf
    ## same as above if you run: "lighttpd -f /etc/lighttpd/lighttpd.conf"
    #include "lighttpd-inc.conf"
    #### include_shell
    #include_shell "echo var.a=1"
    ## the above is same as:
    #var.a=1
    The site is running over https with a self signed ssl-cert, if that matters. If I try to upload a file, the browser just quickly reloades the page, the filename still in the input field. The file isn't uploaded and the page that the script should display when completed doesn't show neither.
    Does anyone know how to troubleshoot this? I'm not getting any errors, it just doesn't work..

    I haven't used Websphere before so I can't say much about that. Try putting <%@ page language="Java" %> at the top of your jsp page.
    Try putting your java files into a package and see if that helps. I read somewhere that Tomcat once had issues with running classes that weren't in a package. Make sure to put the package statement at the top of your Java files if you do.
    Websphere says it caught an unhandled exception. Instead of having your method throw and Exception put your code in a try-catch block and then print a stack trace to see if it says anything when it trys to read and write data.
    Try{
        PrintWriter pw = new PrintWriter(new BufferedWriter(new FileWriter("doUpload.txt")));
        ServletInputStream in = request.getInputStream();
        int a=0;
        a=in.read();
        while (a!= -1){
            pw.print((char) a);
            a=in.read();
        pw.close();
    }catch(Exception e){
      e.printStackTrace();
    }Sorry I can't really give you more help.
    -S-

  • Can't upload "put" files to remote server unless they are in a folder. Please help.

    I have done many searches on this and found no solutions. Here is the problem:
    When I upload a file from my local site to the remote server it works fine as long as that file is contained in a folder.
    Example:
    I can upload an image from my images folder, or a template page from my template folder with no problem.
    BUT, I can not upload any web/html pages, my CSS page, site map, or any file for that matter that is simply in the root directory but not in it's own folder.
    When I try to do that I get this error:
    index.html - error occurred - An FTP error occurred - cannot put index.html.  Access denied.  The file may not exist, or there could be a permission problem.   Make sure you have proper authorization on the server and the server is properly configured.
    File activity incomplete. 1 file(s) or folder(s) were not completed.
    Files with errors: 1
    index.html
    So every time I make a change to my index page I can't upload it to the server without getting that error unless I use a 2nd party program like Filezilla - which works fine. It is only Dreamweaver doing this.
    I have been using dreamweaver for a long time and had no problems with this site. This all started happening out of no where. and it is happening on my work and home computer.
    I made no changes to my server preferances or anythijng like that.
    I was just doing my thing - being happy - and then BAM, not happy any more....

    Hi there. First off thank you for your interest and your help.
    I have done what you suggest probably 30 times as I have obsessed over this crazy problem for a couple straight weeks before I finaly gave up on CS5.5
    I'm not sure what you mean by REMOTE server. The only server settings I am aware of are the ones in Dreamweaver. Here they are:
    5.0 Settings:
    Server Name = the same values on each
    Connect Using = FTP
    FTP Address = same numeric value on 5.0 & 5.5 port 21
    User name = same on both
    Password = same on both
    Root directory = is blank (I have tried it using / with no luck as well)
    web URL = http://ftp.westbrookadvertising.com/www/htdocs/
    Passive FTP is checked & Use FTP Peformance optimization is checked.
    5.5 Settings:
    Server Name = the same values on each
    Connect Using = FTP
    FTP Address = same numeric value on 5.0 & 5.5 port 21
    User name = same on both
    Password = same on both
    Root directory = is blank (I have tried it using / with no luck as well)
    web URL = http://ftp.westbrookadvertising.com/www/htdocs/
    Passive FTP is checked & Use FTP Peformance optimization is checked.

  • Separate CSS files for Differenct Applications in the Same Workspace

    I am working in APEX 4.0, using Theme 4 (Topaz), primarily with the region template "Top Bar." The application I am working on has gotten so large that I decided to break it into two applications. So I copied the original application and then deleted the pages that I did not want in the second application. I then modified the authentication for a single login. One of the nice things about the Top Bar template is that you can color the background. I had a blue background in the first application and wanted to use a differenct color in the other. So I created a second CSS file and uploaded it to the Cascading Style Sheets area of the Shared Components file for the second application. Turns out that both it and the style sheet for the first application now show up in the CSS file area. The CSS file for the second application has no effect. Here is the CSS code:
    .rc-content-main
          background-color: #E5E5AA;
         }I also tried giving the region on each page in the second application a static id and then identifying them in the CSS file by the id. That didn't work either, at least not yet. Sometimes it takes the server a while to refresh.
    Question: For two applications in the same workspace, can there be separate CSS files? If so, how do I set them up so that each responds only to one of the applications?
    Edited by: Doug on Nov 14, 2012 4:54 AM
    Edited by: Doug on Nov 14, 2012 7:16 AM

    Hello,
    If you upload your file to Shared Components >> Cascading Style Sheetst then:
    edit your page template in the header section and just before +*</head>*+ tag  add :
    <link rel="stylesheet" src="#WORKSPACE_IMAGES#MY_FILE.css" type="text/css" />And that will be applied for all pages that have the same Page Template.
    You can edit a page and put this in the header section to be applied only for a that page:
    <style>
    <link rel="stylesheet" src="#WORKSPACE_IMAGES#MY_FILE.css" type="text/css" />
    <style>If the file is on your web server then replace #WORKSPACE_IMAGES# with #IMAGE_PREFIX#
    This should be helpful to you:
    http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21674/concept_sub.htm
    Best Regards,
    Fateh
    If you believe that my answer is correct or helpful to you, then please mark it as helpful or correct...

  • Problem uploading Dreamweaver file to Server

    Using CS3
    I cannot get my job to upload to the server correctly. The error code says: "Dreamweaver is currently interacting with a server.
    Since putting a file on save requires interaction with a server as well, DW cannot currently perform this task.
    Please try again when current server task is complete."
    And then it DOES save it to the remote site - but my links are not active and I am not able to access the job on internet.
    When I compare the remote site info it is synchronized with the local.
    My site setup has been tested and is good.
    I've been doing this job for 5 years. Not had this problem before.
    I have no other files/programs open and nothing is being saved that I know of. Sauve' 

    JTANNA wrote:
    VSauve\' wrote:
    Thanks for your reply.
    No I have not used any third-party upload files.
    I have contacted my host, but they haven't gotten back to me - Dreamhost - and I'm
    waiting and waiting . . . as my deadline gets later and later.
    In the meantime you could start using FileZilla - a free tool to upload your files.  Don't rely on Dreamhost because they could destroy your livelihood.  They couldn't care less about customers.  This is my experience with them.
    JTANNA wrote:
    1. Jan 9, 2012 7:19 PM (in response to MichaelCo)
    Re: Nav Bar collapsing in Dreamweaver
    MichaelCo wrote:
    Not sure what I am doing wrong.Any help would be appreciated.
    It is unlikely we would know either but have you uploaded/linked the relevant scripts and CSS files?  I believe PVII products rely heavily on scripts so this might be the problem
    I suggest repost your query to their forums as they should know what the problem could be.  We don't use any third party products here.
    Good luck.
    Oh the irony...
    VSauve\' wrote:
    Using CS3
    I cannot get my job to upload to the server correctly. The error code says: "Dreamweaver is currently interacting with a server.
    Since putting a file on save requires interaction with a server as well, DW cannot currently perform this task.
    Please try again when current server task is complete."
    And then it DOES save it to the remote site - but my links are not active and I am not able to access the job on internet.
    When I compare the remote site info it is synchronized with the local.
    My site setup has been tested and is good.
    I've been doing this job for 5 years. Not had this problem before.
    I have no other files/programs open and nothing is being saved that I know of. Sauve'
    From what you're describing that's happening you're syncing the whole site each time you are saving changes and there's a problem with the permission settings. I'm not saying that's the case but just from the description that's what it sounds like.

  • How To Use a css File To Watermark A Report

    Hello.
    I am using Apex 4.0.1 and have a need to place a watermark (that is, a background image) over a report, both a "classic" type and Interactive Report.
    I have two questions about this.
    1) I've searched this Forum and found several good questions/responses about this subject. What I think is the most maintainable solution is to create a .css file and reference this file within the Template section of a copy of, say, the "Reports Region" template used by my application theme. And so, I made a copy of the "Reports Region" template and called it "Watermark Reports Region". I then created a very simple .css file called "bgimg.css" defined as:
    #REGION_STATIC_ID# {
    background-image: url(#WORKSPACE_IMAGES#menu_bug.png) !important;
    background-repeat: repeat !important;
    background-attachment: fixed !important;
    Note: For those that may not know, the "!important" clause is, in fact, a css defined clause used to tell the browser that it should give the associated option the highest precedence. This prevents my desired css option from being overridden by another css file. Frankly, I myself did not know this until after I saw it being used in several of the responses on this Forum and then read up about it.
    I uploaded this css file via the Apex "Shared Components -> Cascading Style Sheets" option. I also made sure that menu_bug.png is, in fact, among my workspace images.
    I also made sure that my "Watermark Reports Region" template contains the substitution variable "REGION_STATIC_ID" and that my actual report region has a value in the Region Static Id field.
    Within my "Watermark Reports Region" template, I tried to reference my .css file. This is where I think my problem is.
    I placed
    <link rel="stylesheet" type="text/css" href="#WORKSPACE_IMAGES#bgimg.css" />
    at the very top of the Template section in my "Watermark Reports Region" template.
    I then assigned my template to my Apex report. When I run my report, I see nothing.
    So, how does one reference this css file within the template?
    =================================================
    2) I tried using my css tags as an internal style by placing it within the "HTML Header" section of my application page. I used:
    <style type="text/css">
    #empreport {
    background-image: url(#WORKSPACE_IMAGES#menu_bug.png) !important;
    background-repeat: repeat !important;
    background-attachment: fixed !important;
    </style>
    I assigned a div tag to my report region header and footer that looks like:
    In Header: <div id="empreport">
    In Footer: </div>
    When I run the report, I do get the image. But it is surrounding the report. It looks like my report is "floating" in a sea of bug images.
    So, how can I get these images to actually appear within the report itself. In other words, I want the report itself to be "transparent" so as to allow these images to be seen within the report body itself.
    Thank you all for any help/advice/code example.
    Elie

    Elie
    Thanks for taking the time to post sufficient information to understand the problem. In future if you're going to such efforts you might want to use them to reproduce the problem on apex.oracle.com, which means you can share actual working (or more likely not working!) code. Please also always wrap code posted on the forum in tags<tt>\...\</tt> tags to preserve formatting and special characters.
    >
    I placed
    <link rel="stylesheet" type="text/css" href="#WORKSPACE_IMAGES#bgimg.css" />
    at the very top of the Template section in my "Watermark Reports Region" template.
    >
    According to the relevant HTML 4.01 and XHTML 1.x standards, <tt>style</tt> and <tt>link rel="stylesheet"</tt> elements should only appear within the <tt>head</tt> element of a document.
    This changes in HTML5. The new <tt>scoped</tt> attribute allows <tt>style</tt> to be used in a prescribed way elsewhere in the document, with the effect that the styling rules specified are only to be applied to the other descendant elements of that <tt>style</tt> element's parent (in the way you're trying to do here). I'd expect <tt>link</tt> with a <tt>rel="stylesheet"</tt> to remain restricted to <tt>head</tt> content in HTML5: off the top of my head I can't see a use case for referencing external stylesheets in a non-metadata context.
    That said, current browsers apply CSS regardless of where in the document it appears, and future HTML5-compliant ones will continue to continue to do so for backwards compatibility. For myself, when using XHTML 1.0 I'll continue to follow the only put <tt>style</tt> and <tt>link</tt> elements in the page <tt>head</tt>. When I get round to using HTML5 for real I'll follow the standards for that as well.
    I strongly recommend that you follow the standards and only put <tt>link rel="stylesheet"</tt> elements in the page <tt>head</tt>.
    >
    Note: For those that may not know, the "!important" clause is, in fact, a css defined clause used to tell the browser that it should give the associated option the highest precedence. This prevents my desired css option from being overridden by another css file. Frankly, I myself did not know this until after I saw it being used in several of the responses on this Forum and then read up about it.
    >
    Use <tt>!important</tt> only where it's actually needed. It's over-represented in this forum because Oracle changed the order of style sheet inclusion in APEX 4.0 and made it more difficult to override theme styles using CSS in the page HTML Header without modifying page templates.
    Try your styles initially without using <tt>!important</tt>, and also consider using the cascade to provide any necessary overrides by including your CSS after other style sheets.
    >
    I then created a very simple .css file called "bgimg.css" defined as:
    #REGION_STATIC_ID# {
    background-image: url(#WORKSPACE_IMAGES#menu_bug.png) !important;
    background-repeat: repeat !important;
    background-attachment: fixed !important;
    I then assigned my template to my Apex report. When I run my report, I see nothing.
    >
    Because <tt>#WORKSPACE_IMAGES#</tt> is not substituted in external CSS files: +{thread:id=986329}+
    If possible it's much better to locate image, CSS and JavaScript files externally on the file system. Otherwise you'll have to use the workaround suggested in that thread and include a <tt>style</tt> element in the page templates to specify the background image.
    When I run the report, I do get the image. But it is surrounding the report. It looks like my report is "floating" in a sea of bug images.Reports are descendants of their region containers and may be subject to additional built-in or theme styles that overrides that specified for the region. Your CSS selector has to specify the report element, not the entire region.
    So, how can I get these images to actually appear within the report itself. In other words, I want the report itself to be "transparent" so as to allow these images to be seen within the report body itself.I'd use a <tt>class</tt> attribute in the region template: this removes the need to use the <tt>#REGION_STATIC_ID#</tt> selector, and allows the CSS to go in the page <tt>head</tt> where it belongs. Add <tt>watermark-report-region</tt> in addition to any existing <tt>class</tt> values in the region template:
    <div class="borderless-region watermark-report-region" id="#REGION_STATIC_ID#" #REGION_ATTRIBUTES#>
      <div class="bl-body">#BODY#</div>
    </div>You may have to inspect the page source (use a web inspector like that found in Safari, or the Firefox+Firebug combo) to figure out what has to be overridden in the theme/templates you're using. This worked for an Interactive Report using theme 17:
    .watermark-report-region .apexir_WORKSHEET_DATA {
      background: #fff url(/i/menu/blank_app_32.gif);
    .watermark-report-region .apexir_WORKSHEET_DATA tr.even td,
    .watermark-report-region .apexir_WORKSHEET_DATA tr.odd td {
      background-color: transparent;
    }For a standard report you'll need to identify the selector required for the actual report element (equivalent to the <tt>apexir_WORKSHEET_DATA</tt> table) using the web inspector or from the report template. It would be a good idea to create standard report template(s) incorporating a <tt>watermark-report</tt> class on the report table to provide a simple selector for such reports.

  • Css file not getting applied to the application

    Hi All,
    I have uploaded a css file and used in my application as
    <link rel="stylesheet" href="#WORKSPACE_IMAGES#default.css" type="text/css"/>
    Previously it was working fine.
    But suddenly, it is not working.
    I am working from a remote server.
    Could anyone please get me a solution for this?
    thanks in advance
    bye
    Srikavi

    Hi joel,
    From this thread
    Shared Files - problems after upgrading APEX 3.0 to 3.1
    i have taken your words,
    In my development of the browser cache support for static files, I did notice some unexplainable behavior with IE and Firefox. When uploading static files and then testing them, it almost seemed like the browser would request the resource only some of the time (and then get the HTTP 304). If an Expires tag is not computed, I know Firefox will compute one itself.
    As per my understanding, Is it cache_expire should be calculated?
    I could not get that line.Could you please explain me.
    Thanks in advance.
    bye
    Srikavi.

  • BIG PROBLEM: CSS files not loading because of international characters in file name

    I have Muse Beta 7 in Spanish.
    The program creates a css file called master_a-página-maestra.css in css folder. It is referenced in the resulting HTML code here:
    <!-- CSS -->
      <link rel="stylesheet" type="text/css" href="css/site_global.css?3951792836"/>
      <link rel="stylesheet" type="text/css" href="css/master_a-p%c3%a1gina-maestra.css?fileVersionPlaceholder"/>
      <link rel="stylesheet" type="text/css" href="css/index.css?3948175564"/>
    When you work locally in your Windows formatted har drive, everything looks fine, but when you upload your files to a server, everything is screwed up. The server doesn't recognizes the URL and returns an error page, resulting in style errors in the entire site.
    This can also happens with html files if the title of the page contains international characters or with images if the image file name in your Hard Drive contains international characters.
    I already pointed out long time ago Muse was generating file names with international characters like á, ñ, etc but nobody cared about it. Too bad. I had to activate file name customization but I think that Muse should replace automatically this characters in the same way that it replaces other conflictive characters like commas or ampersands.
    This is not a fault of the FTP client. Accented characters are not web safe regardless of the FTP client you are using. It is a server side issue. Some servers support it some others don't. I don't mind if it works in Adobe Catalyst server because the final website is going to be in another server and maybe next year when paid hosting is ended the client may move it to another server.
    It makes more sense to replace accented characters in file names by their not accented equivalents ('a' instead of 'á', 'N' instead of 'Ñ', etc) and avoid all this problem.

    Zak, It is funny you mention it, because the site I am talking about is hosted in 1and1. try this: http://www.artofwalls.com/rosannawalls/biografía.html
    As you can see, the offending "í" in the file name causes 1and1 server to throw a "page not found" error. And this has happened with many other servers I have tried since.
    Muse boast of generating code fully compatible with all major web browsers but by using international characters in file names it ggenerates code suitable only for very few web servers. International characters have been always a no-no for internet URLs. Internet was designed by people who didn't care about ascii codes beyond 127 so using international characters in html file names is just call for problems.
    "to work with your hosting provider to determine how to enable Unicode encoded (UTF-8) file names and HTML files on their servers" is not a viable solution most of the time unless you are a Very Important Client of your host provider. If not, making changes means money for them and if you are the only one who complains, they are going to just tell you to not use international characters in your names.

Maybe you are looking for