Return-Path: X-Original-To: apmail-cordova-issues-archive@minotaur.apache.org Delivered-To: apmail-cordova-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E79BC11BD9 for ; Wed, 2 Jul 2014 02:31:25 +0000 (UTC) Received: (qmail 11739 invoked by uid 500); 2 Jul 2014 02:31:25 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 11721 invoked by uid 500); 2 Jul 2014 02:31:25 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 11646 invoked by uid 99); 2 Jul 2014 02:31:25 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Jul 2014 02:31:25 +0000 Date: Wed, 2 Jul 2014 02:31:25 +0000 (UTC) From: "165537 (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-6532) cdvfile file url is not working with link tag like css MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-6532?page=3Dcom.atlassian.ji= ra.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1404954= 9#comment-14049549 ]=20 165537 commented on CB-6532: ---------------------------- [~iclelland] I posted a question on Stackoverflow http://stackoverflow.com/q/22801511/27= 6648 Basically I just have some local HTML/JS/CSS files (so whether there's netw= ork connectivity or not shouldn't be a problem, but in my case there was ne= twork connectivity through local WiFi) and none of my styles appeared corre= ctly in iOS. Everything else works fine (link to other pages, loading javas= cript files). I haven't tried recompiling the app with the PR from Louis Franco. > cdvfile file url is not working with link tag like css=20 > ------------------------------------------------------- > > Key: CB-6532 > URL: https://issues.apache.org/jira/browse/CB-6532 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin File, Plugin File Transfer > Affects Versions: 3.4.0 > Environment: iOS 7=20 > Reporter: Patrick D=C3=BCrsteler > Priority: Critical > > A css downloaded with xhr and created a local url (cdvfile://localhost/te= st.css) with the File API can't be used as a stylesheet. > {code} > var filename =3D "test.css"; > var imageURL =3D "http://apache.org/css/style.css"; > requestFileSystem(TEMPORARY, 0, function(fileSystem) { > var ft =3D new FileTransfer(); > ft.download(imageURL, fileSystem.root.toURL() + "/" + filename, funct= ion(entry) { > var fileref=3Ddocument.createElement("link"); > fileref.setAttribute("rel", "stylesheet"); > fileref.setAttribute("type", "text/css"); > fileref.setAttribute("href", entry.toURL()); > document.head.appendChild(imgElement); > }); > }); > {code} -- This message was sent by Atlassian JIRA (v6.2#6252)