HtmlLoader - is it possible to catch/redirect page content? like a Local cache?

Here's the scenario, I have a kiosk app I'm working on, and am loading html pages within it using the HTMLLoader class. I'm curious if it is possibale to catch requests mainly for video and images from the html page, and redirect the request.
Essentially what i want is a way to set up a local cache of images and video, and possibly data, and have the parent AIR app manage it. As example, the content is managed via an online CMS, and when the kiosk runs, I'd like it to cache all the images/videos it needs locally for playback, and add any new images/content as it changes.
I have complete control over both ends, so if access/permissions/crossdomain files need to happen, that's no problem.
Thanks in advance!

here is a nice piece of code that might get you started!
http://cookbooks.adobe.com/post_Caching_Images_to_disk_after_first_time_they_are_l-10784.h tml

Similar Messages

  • Is it possible to change page content based on 'case' or 'workflow' state (or similar method)

    Is it possible to change the page content if the customer revisits the page?
    I have an approval page which the customer completes - when they submit the form with their answers a case is generated and they are taken to a submission successful page.
    As they can revisit this page through their account details I want the page to change to say they have already submitted their approval.
    Is there a method within business catalyst to achieve this?
    Can I extend the CRM database to use a flag for the case and then set / check the state of that flag when the page is visited again?
    Thanks in advance.
    Gavin

    Ok I have figured out I can use {module_url,variable} to achieve this and pass in the case status to the page.
    Is there a way of changing a case status when the approval form is submitted?
    Gavin

  • Exception when redirect page

    Hi
    I create a class implements PhaseListener
    In afterPhase method I use FacesContext of ADF for redirect page as follow:
    public void afterPhase(PhaseEvent phaseEvent) {
    PhaseId phaseId = phaseEvent.getPhaseId();
    FacesContext facesContext = phaseEvent.getFacesContext();
    String url = ....;
    try {
    facesContext.getExternalContext().redirect(url);
    } catch (IOException ioe) {
    But I see "java.lang.IllegalStateException: Response already committed"
    I do not know why?
    Please help me

    Hi,
    You can try this code instead of facesContext.getExternalContext().redirect(url);
    HttpServletResponse response = (HttpServletResponse)FacesContext.getCurrentInstance().getExternalContext().getResponse();
    response.sendRedirect(url);
    FacesContext.getCurrentInstance().responseComplete();Hope this helps
    Joseba

  • Is it possible to widen the page view when drafting iWeb pages?

    I'm drafting web pages via iWeb and figured out how to make the page content wider (in page layout/content width), but would like to be able to have a view of the entire page while I'm rearranging the text and images on the webpage. I cannot figure out how to be able to view the page without having to scroll left and right. Is it possible to see what the finished product looks like in its entirety before and/or after publishing to iWeb???

    iLyzzard wrote:
    Seems like my iMac with a 21.5 monitor should do the job. The webpages look great online, but how can I widen my draft-view so I don't have to keep guessing as to alignment of my text and images? Please advise.
    I'm not really understanding your question since the way things look in iWeb is pretty much the way they look online.
    In what way do your iWeb pages not look like what you see online?
    This is really a feature in iWeb (and one which costs iWeb excessive code if anything): to be able to provide a WYSIWYG canvas on which to build.

  • Is it possible to change the page of a linked PDF without relinking?

    Is it possible to change the page of a linked PDF without relinking and going through the import options?
    I'm trying to import seveeral pages of the same PDF. The process would be quickest if I could import it once, then duplicate the image box a number of times, then just change the page number each image box is linking to.
    At the moment I'm having to relink (or place), then go through Import Options, then choose the page - it's a long process that feels like it should be quicker.
    Any ideas?
    Thanks

    The short answer is no, that's not possible, but it IS possible to import multiple pages at one time.
    My favorite script for this is from Scott Zanelli: InDesignSecrets » Blog Archive » Zanelli Releases MultiPageImporter for Importing both PDF and INDD Files, but there's also a sample script included with ID.

  • Problems joining Wi-Fi networks that require viewing a redirect page in iOS 8.1.1? Check your "Auto-Login" setting.

    Are you having problems joining previously used Wi-Fi networks that require you to view a login or redirect page (say to accept Terms of Use) first?  The problem could be your Auto-Login Wi-Fi network setting.
    I found numerous cases where I could not access in-store Wi-Fi networks (Nordstrom was one), hotel networks or in fact networks where you had to first view a Terms and Conditions page or where you had to login via a web form.
    These were all networks I had used before.
    This appears to be due to the "Auto-Login" setting assuming that once you (re)join a previously known network you can just go ahead and use it without further action. When the iOS device receives an error trying to use the network, it silently drops the Wi-Fi association.
    If this is happening to you, follow these steps:
    1) Go to Settings -> Wi-Fi
    2) Select the network you want to join
    3) When a check-mark appears next to the SSID, press the "i" button on the right hand side
    4) Set Auto-Join however you want, but shut off the Auto-Login switch
    5) Now attempt to use the network and you should be presented with the usual redirect page with terms you must accept or where you must login to use the Wi-Fi network in question
    This cleared up the issue for me everywhere I had previously been having issues.

    Just let me get one thing straight...you don't change don't do this for the PC you have your router plugged in to?
    "For Vista:
    1. Open Control Panel, Network and Internet, Network and Sharing Center, Manage Network Connections
    2. If Wireless, Right click on your Wireless Network Connection, otherwise, Right click on Local Area Connection and click Properties
    3. Highlight Internet Protocol Version 4(TCP/IPv4)
    4. Click Properties
    5. Tick Use the Following IP Address and enter the IP you want to use for that PC. I would start at 192.168.0.100(D-Link) and work your way up on each additional device. The second device would be 192.168.0.101, the 3rd, 192.168.0.102 and so on. Like I said, different brands of routers use different IP's, so it could be 192.168.1.100 and so on, so you will need to know the IP address of your router first.
    6. Subnet Mask is 255.255.255.0 on all pc's and devices
    7. Default Gateway is 192.168.0.1(D-Link) or whatever your router's IP is on all pc's and devices
    8. Tick Use the Following DNS Server Address and enter 192.168.0.1(D-Link) or whatever your router's IP is and click OK.
    9. You will need to do this on all Vista Pc's"

  • Is it possible to export the page activity report to a pdf file?

    Is it possible to export the page activity report to a pdf file?and is there any api or samples to be reference

    Do you mean audit history?   One method would be similar to the following sample that you could extend to create a PDF from the data returned:
    http://www.eyelock.net/blog/archives/533
    BUT the method used above via JCR Query is an implementation detail.  For future proofing, you should use the ReplicationStatus status = page.adaptTo(ReplicationStatus.class in your code to get the audit logs for a particular page, rather than a straight JCR query. (recommended by Jörg Hoh @ http://forums.adobe.com/message/5253760).

  • How to show specific data for user on redirected page once they logged in

    I and fairly new, but have a general understanding of Dreamweaver. Using CS3 or CS4, how do you get the redirected page after the user logges in to show only the data for that user? I have creater the login page and it works fine but i dont know what needs to be on the redirected page for it to show only the data for the user that just logged in.
    I am not very good with the coding part so if it requires it any help with that would also be helpful.
    thank all.

    I should be able to get the understanding if explained.
    As for scripting i believe its PHP. at lease thats the page i created the login page with.
    As for user-specific information: basiclly there account information.
    As for database i have dreamweaver linked to a MySQL database. it pulls from 2) tables
    1st table has the following: ID - User Names - Password  - account number
    2nd table has the following: ID - account number - names - address - ect
    So basiclly i want when a user loges in for it to redirect them to a page which then only shows the data for that users. if i can link the data the pulls up by the account number that would be ideal
    Thank you Murry

  • In Pages, is it possible to make a page continuous?

    Hi, folks!
    So I'm working with Pages 5.2.2 and I need to make a page continuous. What I mean is that I don't want Pages to separate the pages as I keep writing, imagine it as one big scroll of paper. Is that possible?
    Thanks!

    Pages does what it says, uses pages.
    You can change the pages to be very long though by having a custom page size in Menu > File > Page Setup…
    Or simply use any of the dozens of alternatives more suitable to the task than Pages. Including TextEdit.
    Peter

  • Is it possible to give each page within one pdf document a specific set of print settings?

    I have a complex document (catalogue) that requires printing. There are several different printer settings required and each one is specific to each page within the document. For instance pg 1 is single sided in colour, page 2-3 is duplexed in b&w, page 3-8 is duplexed in colour, etc.... Is it possible to give each page within the pdf document a given set of print settings and then print the entire document as a whole?

    Hi jennyskop
    I assume that is not feasible ...You need to give the print command again and select the respective pages and their settings !

  • Redirect page with POST method in JSTL

    how to redirect page with POST method in JSTL.
    below is the code that i make, but the page redirected with GET method,
    so, the URL shown as http://localhost:8080/tes2/coba2.jsp?nama=saya
    how to hide the parameter, so it didn't show at the URL..??
    anybody help me..??
    server1 -> coba1.jsp
    <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
    <html>
    <head>
    <title>coba1</title>
    </head>
    <body>
    <c:url value="http://localhost:8080/tes2/coba2.jsp" var="displayURL">
      <c:param name="nama" value="saya"/>
    </c:url>
    <c:redirect url="${displayURL}"/>
    </body>
    </html>server2->coba2.jsp
    <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
    <html>
    <head>
    <title>coba2</title>
    </head>
    <body>
    <c:forEach items="${param}" var="currentParam">
            <li><c:out value="${currentParam.key}" />
                = <c:out value="${currentParam.value}" /></li>
          </c:forEach>
    </body>
    </html>

    There are other two way communications methods as well. One such would be:
    Server1Page1: Take response with parameters.  Use HttpURLConnection to make a request to DataInputServlet
                  on Server2 and send the parameters there with a POST operation
    Server2DataInputServer: Takes request with data in it and starts a new session.  Puts the data into the session and
                  returns the session id to the requester
    Server1Page1: Reads the response from the DataInputServer (the session id) and generates a sendRedirect to
                  Server2's display page using the session id.  Server1Page1 is now done.
    Server2Page1: Gets a request from the client with the session id, and pulls the parameters out of the session.  Then
                  can continue as normal.Server2Page1 can also do a quick refresh to itself not using the session id as well, which will keep the URL visible by the client relatively clean.

  • Why does redirect page open in a frame?

    Why does redirect page open in a frame? I don't see the point. Can it be made to open in it's own window?

    We now support an option for having the redirect for an embedded form take over the entire window. This FAQ explains:
    http://forums.adobe.com/docs/DOC-1991
    Randy

  • Modifying the redirect page of an input behavior

    I created a user input behavior for a user registration page.
    I also added a check new username behavior. It all works well. The
    problem isn't really a big problem because it all still works. But,
    it would be nice if I could modify the code that Dreamweaver
    generates and NOT get the red exclamation error next to the
    behavior in the behaviors panel. That way I could still click on
    the behavior and be able to edit it with the dialog box instead of
    hand coding it.
    Here is the deal. In the input behavior, I specified the
    redirect page. The code written by Dreamweaver is:
    MM_editRedirectUrl = "login_confirmation_send.asp"
    Problem is, I want to pass a form value in the query string
    to that redirected page. So, I modified that code to say:
    MM_editRedirectUrl = "login_confirmation_send.asp?email="
    & Request.Form("email")
    When I do that, I get a big red exclaimation next to the
    check new user behavior which says the input behavior has been
    deleted. Eventhough, it still works fine.
    Is there a way to modify the code without getting the
    error?

    MM_editRedirectUrl = "login_confirmation_send.asp?email="
    MM_editRedirectUrl = MM_editRedirectUrl &
    Request.Form("email")
    That might do it. Does ASP have another concatenator besides
    ampersand(&) like the plus sign(+) that you could use? Also,
    I've totally forgotten if you need semicolons(;) at the end of
    lines of ASP code.

  • Is it possible to "nest" iWeb pages?

    Is it possible to "nest" iWeb pages?

    It depends on what you mean by nesting. If you want to have Page A and then have several daughter pages  A1, A2, A3, etc. that are only accessable from Page A you can do that.
    Create pages A1, A2, A3, etc. and remove them from the navbar in the Inspector/Page/Page pane:
    Click to view full size
    The create a secondary navbar on Page A linking to the daughter pages: Text Based Navbar
    On the daugher pages you can remove the standard navbar and only have a link back to the parent page, Page A, if you'd like. Those daughter pages will be accessable only from Page A.
    If you want another nested layer you can do the same with Page A1 - create daughter pages to it.
    OT

  • Is it possible to catch ConnectionException in PublishingCacheStore

    Hi All,
    We are using 3 clusters of coherence; where data flow is always one way, i.e Master Cache writes to 2 other redundant caches (these caches are read only.. No writes are expected in these things). We are using PublishingCacheStore along with EventDistribution pattern.
    We have written our own CacheStore which extends PublishingCacheStore (of Push Replication Pattern). Everything works fine. In case of failover, i.e. if there is a connectionException to remote cluster we are not able to catch that exception. However we could see the exception in the system console.
    Please let me know if anyone has any idea how to do it.
    CacheStore Implementation:
    ==================
    @Override
         public void store(BinaryEntry entry) {
              if(logger.isDebugEnabled()) logger.debug("Entry >> store entry "+entry+" for channelName "+channelName+" & cacheName "+cacheName);
              try {
                   super.store(entry);
              }catch (ConnectionException e) {
                   logger.error("ConnectionException occured while store (replicating) the data to channelName "+channelName+" for cacheName "+cacheName,e);
    //Some business logic needs to be added on Exception
                   //Throwing back the exception to make sure that the replicated failure data is requeued again.
                   throw new RuntimeException(e);
              catch (Exception e) {
                   logger.error("Exception occured while store (replicating) the data to channelName "+channelName+" for cacheName "+cacheName,e);
                   //Some business logic needs to be added on Exception
                   //Throwing back the exception to make sure that the replicated failure data is requeued again.
                   throw new RuntimeException(e);
    Coherence cache Config.xml
    =================
    <cache-mapping>
         <cache-name>TEST</cache-name>
              <scheme-name>CacheDB</scheme-name>
                   <event:distributor>
                        <event:distributor-name>{cache-name}</event:distributor-name>
                        <event:distributor-external-name>{site-name}-{cluster-name}-{cache-name}</event:distributor-external-name>
                        <event:distributor-scheme>
                             <event:coherence-based-distributor-scheme />
                        </event:distributor-scheme>
                        <event:distribution-channels>
                             <event:distribution-channel>
                                  <event:channel-name>Active Publisher 1</event:channel-name>
                                  <event:starting-mode system-property="channel.starting.mode">enabled</event:starting-mode>
    <event:restart-delay>12000</event:restart-delay>
                                  <event:channel-scheme>
                                       <event:remote-cluster-channel-scheme>
                                            <event:remote-invocation-service-name>remote-site1</event:remote-invocation-service-name>
                                            <event:remote-channel-scheme>
                                                 <event:local-cache-channel-scheme>
                                                      <event:target-cache-name>TEST</event:target-cache-name>
                                                 </event:local-cache-channel-scheme>
                                            </event:remote-channel-scheme>
                                       </event:remote-cluster-channel-scheme>
                                  </event:channel-scheme>
                             </event:distribution-channel>
                             <event:distribution-channel>
                                  <event:channel-name>Active Publisher 2</event:channel-name>
                                  <event:starting-mode system-property="channel.starting.mode">enabled</event:starting-mode>
    <event:restart-delay>12000</event:restart-delay>
                                  <event:channel-scheme>
                                       <event:remote-cluster-channel-scheme>
                                            <event:remote-invocation-service-name>remote-site2</event:remote-invocation-service-name>
                                            <event:remote-channel-scheme>
                                                 <event:local-cache-channel-scheme>
                                                      <event:target-cache-name>TEST</event:target-cache-name>
                                                 </event:local-cache-channel-scheme>
                                            </event:remote-channel-scheme>
                                       </event:remote-cluster-channel-scheme>
                                  </event:channel-scheme>
                             </event:distribution-channel>
                        </event:distribution-channels>
                   </event:distributor>
              </cache-mapping>
    </caching-scheme-mapping>
         <!--
                   The following scheme is required for each remote-site when using a
                   RemoteInvocationPublisher
              -->
         <remote-invocation-scheme>
         <service-name>remote-site1</service-name>
                   <initiator-config>
                        <tcp-initiator>
                             <remote-addresses>
                                  <socket-address>
                                       <address>localhost</address>
                                       <port>20001</port>
                                  </socket-address>
                             </remote-addresses>
                             <connect-timeout>2s</connect-timeout>
                        </tcp-initiator>
                        <outgoing-message-handler>
                             <request-timeout>5s</request-timeout>
                        </outgoing-message-handler>
                   </initiator-config>
              </remote-invocation-scheme>
              <remote-invocation-scheme>
                   <service-name>remote-site2</service-name>
                   <initiator-config>
                        <tcp-initiator>
                             <remote-addresses>
                                  <socket-address>
                                       <address>localhost</address>
                                       <port>20002</port>
                                  </socket-address>
                             </remote-addresses>
                             <connect-timeout>2s</connect-timeout>
                        </tcp-initiator>
                        <outgoing-message-handler>
                             <request-timeout>5s</request-timeout>
                        </outgoing-message-handler>
                   </initiator-config>
              </remote-invocation-scheme>
              <distributed-scheme>
                   <scheme-name>UserCacheDB</scheme-name>
                   <service-name>DistributedCache</service-name>
                   <serializer>
                        <class-name>com.tangosol.io.pof.ConfigurablePofContext</class-name>
                        <init-params>
                             <init-param>
                                  <param-type>String</param-type>
                                  <param-value>pof-config.xml</param-value>
                             </init-param>
                        </init-params>
                   </serializer>
                   <backing-map-scheme>
    <read-write-backing-map-scheme>
    <internal-cache-scheme>
    <local-scheme>
    </local-scheme>
    </internal-cache-scheme>
    <cachestore-scheme>
    <class-scheme>
    <class-name>au.com.vha.cpg.cachestore.publishing.CPGPublishingCacheStore</class-name>
    <init-params>
    <init-param>
    <param-type>java.lang.String</param-type>
    <param-value>{cache-name}</param-value>
    </init-param>
                                            <init-param>
    <param-type>java.lang.String</param-type>
    <param-value>TEST</param-value>
    </init-param>
    </init-params>
    </class-scheme>
    </cachestore-scheme>
    </read-write-backing-map-scheme>
    </backing-map-scheme>
                   <listener />
                   <autostart>true</autostart>
              </distributed-scheme>

    Hi,
    As it's possible many things could fail - eg: one site may fail but the other may still remain working - it's best to let the PublishingCacheStore do it's own recovery. If you'd like to additionally use a CacheStore with Push Replication you can configure a separate Event Channel for the CacheStore using a CacheStore Event Channel.
    The configuration options are here:
    http://tinyurl.com/aporpcx
    The source code (for a test) is available here:
    http://tinyurl.com/axse83s
    -- Brian
    Brian Oliver | Architect | Oracle Coherence 

Maybe you are looking for

  • Quicktime wont play video ANY VIDEO and I cant fix it

    I have downloaded all of the software on the quicktime website and it still wont play any of my videos. all of my stuff has different extensions and i have tried a ton of varieties of them but still nothing. Does anyone know what i could use to fix t

  • Updating a derived column of a table

    Hi everyone, Can you please help me and give me a solution for this I have 3 columns paydate, expdate, NewRenew in a table.  If the paydate is greater than 90 days than exp date I need to update NewRenew column to N and If the paydate is less than 90

  • Using Oracle Virtualbox to stage a Oracle VM 3.1.1 demo enviornment

    Below is a link to download the Virtualbox templates for Oracle VM 3.1.1. You will also find detailed instructions on implementing them.... http://www.oracle.com/technetwork/server-storage/vm/template-1482544.html Also check out the PDF at the end of

  • Sso with third party java application.

    hi all, I want to have single signon for third party java application deployed on websphere 5.0 advanced server . I am using SAP EP6.0 SP13 . Can anybody help me out. thanx in advance..... Sarang

  • HT1267 my iphone is stolen how do i track it

    hi my iphone is stolen how do i track it i have the imei