Opening jQuery UI accordion with a link

I need to create a link that once clicked goes to a jQuery UI accordion. I want the link to open up the accordion when its clicked.
I have been following the instructions on: http://foundationphp.com/tutorials/jqui_specific.php
I have added jQuery in my test page but cant figure out how to get the thing to open from a link.
It doesnt look like it should be to difficult but I have been stuck for hours now...
The guide says:
" Locate the code that initializes the jQuery UI accordion. It should look similar to this:
<script type="text/javascript"> $(function() { $( "#Accordion1" ).accordion(); }); </script>
I dont have anything with $ and when I try to add it I get error messages?
Thanks for any help!

When we were confronted with your orginal questen, we had no idea of the purpose of the accordion panel. This resulted in giving you an answer that was not correct for your application.
What you should have used for your application are a series of collapsible panels.
Copy and paste the following into a new document and view in your favourite browser.
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
<style>
h2, p, ol, ul, li {
    margin: 0px;
    padding: 0px;
    font-size: 13px;
    font-family: Arial, Helvetica, sans-serif;
#container {
    width: 300px;
    margin: auto;
    margin-top: 100px;
/* --------- COLLAPSIBLE PANELS ----------*/
.expandable-panel {
    width: 100%;
    position: relative;
    min-height: 50px;
    overflow: auto;
    margin-bottom: 20px;
    border: 1px solid #999;
.expandable-panel-heading {
    width: 100%;
    cursor: pointer;
    min-height: 50px;
    clear: both;
    background-color: #E5E5E5;
    position: relative;
.expandable-panel-heading:hover {
    color: #666;
.expandable-panel-heading h2 {
    padding: 14px 10px 9px 15px;
    font-size: 18px;
    line-height: 20px;
.expandable-panel-content {
    padding: 0 15px 0 15px;
    margin-top: -999px;
.expandable-panel-content p {
    padding: 4px 0 6px 0;
.expandable-panel-content p:first-child {
    padding-top: 10px;
.expandable-panel-content p:last-child {
    padding-bottom: 15px;
.icon-close-open {
    width: 20px;
    height: 20px;
    position: absolute;
    background-image: url(http://www.webdevdoor.com/demos/expandable-panel-jquery-demo/icon-close-open.png);
    right: 15px;
.expandable-panel-content img {
    float: right;
    padding-left: 12px;
.header-active {
    background-color: #D0D7F3;
</style>
</head>
<body>
<div id="container">
  <div class="expandable-panel" id="cp-1">
    <div class="expandable-panel-heading">
      <h2>Content heading 1<span class="icon-close-open"></span></h2>
    </div>
    <div class="expandable-panel-content">
      <p>Panel HTML...</p>
    </div>
  </div>
  <div class="expandable-panel" id="cp-2">
    <div class="expandable-panel-heading">
      <h2>Content heading 2<span class="icon-close-open"></span></h2>
    </div>
    <div class="expandable-panel-content">
      <p>Panel HTML...</p>
    </div>
  </div>
  <div class="expandable-panel" id="cp-3">
    <div class="expandable-panel-heading">
      <h2>Content heading 3<span class="icon-close-open"></span></h2>
    </div>
    <div class="expandable-panel-content">
      <p>Panel HTML...</p>
    </div>
  </div>
</div>
<script src="http://code.jquery.com/jquery-latest.min.js"></script>
<script>
(function($) {
    $(document).ready(function () {
        /*-------------------- EXPANDABLE PANELS ----------------------*/
        var panelspeed = 500; //panel animate speed in milliseconds
        var totalpanels = 3; //total number of collapsible panels 
        var defaultopenpanel = 0; //leave 0 for no panel open 
        var accordian = false; //set panels to behave like an accordian, with one panel only ever open at once    
        var panelheight = new Array();
        var currentpanel = defaultopenpanel;
        var iconheight = parseInt($('.icon-close-open').css('height'));
        var highlightopen = true;
        //Initialise collapsible panels
        function panelinit() {
                for (var i=1; i<=totalpanels; i++) {
                    panelheight[i] = parseInt($('#cp-'+i).find('.expandable-panel-content').css('height'));
                    $('#cp-'+i).find('.expandable-panel-content').css('margin-top', -panelheight[i]);
                    if (defaultopenpanel == i) {
                        $('#cp-'+i).find('.icon-close-open').css('background-position', '0px -'+iconheight+'px');
                        $('#cp-'+i).find('.expandable-panel-content').css('margin-top', 0);
        $('.expandable-panel-heading').click(function() {         
            var obj = $(this).next();
            var objid = parseInt($(this).parent().attr('ID').substr(3,2));
            currentpanel = objid;
            if (accordian == true) {
                resetpanels();
            if (parseInt(obj.css('margin-top')) <= (panelheight[objid]*-1)) {
                obj.clearQueue();
                obj.stop();
                obj.prev().find('.icon-close-open').css('background-position', '0px -'+iconheight+'px');
                obj.animate({'margin-top':0}, panelspeed);
                if (highlightopen == true) {
                    $('#cp-'+currentpanel + ' .expandable-panel-heading').addClass('header-active');
            } else {
                obj.clearQueue();
                obj.stop();
                obj.prev().find('.icon-close-open').css('background-position', '0px 0px');
                obj.animate({'margin-top':(panelheight[objid]*-1)}, panelspeed);
                if (highlightopen == true) {
                    $('#cp-'+currentpanel + ' .expandable-panel-heading').removeClass('header-active'); 
        function resetpanels() {
            for (var i=1; i<=totalpanels; i++) {
                if (currentpanel != i) {
                    $('#cp-'+i).find('.icon-close-open').css('background-position', '0px 0px');
                    $('#cp-'+i).find('.expandable-panel-content').animate({'margin-top':-panelheight[i]}, panelspeed);
                    if (highlightopen == true) {
                        $('#cp-'+i + ' .expandable-panel-heading').removeClass('header-active');
        $(window).load(function() {
            panelinit();
        }); //END LOAD
    }); //END READY
})(jQuery);
</script>
</body>
</html>

Similar Messages

  • Performance issue when opening DOCX Word Doc with Excel Links

    Is this a bug or is there a config setting that can prevent Word from needlessly opening Excel repeatedly (upon initial open of a DOCX Word doc) when pre-existing links should NOT be updated. The behavior is good using 2003 formats (DOC & XLS),
    but varies significantly (~100:1 range in performance) depending on the test scenario (see below) using DOCX with XLSX.
    We can't move our environment to the new XML formats until we can find a fix. We were led to believe Microsoft knew this to be a bug in Office 2007, but it has NOT been corrected in Office 2010. Omitting a detailed explanation for why we need to
    do this, here's our test scenarios:
    -Currently testing Office 2010 Pro Trial version on WIN XP SP3. (We have found similar results using Office 2007 with Win7 or XP).
    -Word Option Deselected/DISABLED: "Update Automatic Links at Open"
    -The Word Doc contains 100 linked Excel tables and is 130K in size (DOCX).
    -Each link points to the same 10x10 cell range in one Excel Workbook located in same directory as the Word Doc, although other tests using separate directories produced similar results.
    -The Excel Links were inserted into Word via Paste Special/Paste Link/MS Excel Worksheet Object.
    -The workbook (XLSX) is 15K in size.
    -All Links are set for "Manual" update, our testing showed no difference if links are set to "Auto".
    -Again, Word is set to NOT update Automatic links when the document is opened.
    -Results shown below are for local hard drive test.
    -Network response times are slightly greater on 100mb LAN
    -Word is completely restarted prior to each test to make sure there's no application caching involved.
    LOCAL DRIVE RESPONSE TIMES TO OPEN THE WORD DOC in Docx format:
    1. Open the Word Doc from Word with Excel closed - 175 seconds (Excel appears to be opened and closed once per link)
    2. Open the Word Doc from Word with Excel open & workbook closed - 33 seconds (Excel appears to be accessed once per link)
    3. Open the Word Doc from Word with the linked workbook already open - 7 seconds (Excel appears to be accessed once per link)
    4. Rename Excel XLSX workbook so that Word can't find it. Then open Doc the from Word. 1-2 seconds (Excel does not appear to be invoked)
    5. Repeat ALL of the above scenarios 1-4 using DOC and XLS files. These files are created with "Save AS" option based on original test files and then re-pasting the links.  1-2 seconds to open the Word Doc (Excel does not appear to be invoked)
    Summary
    Using DOCX/XLSX, if Word can't find the linked spreadsheet it gives up and performs nicely during file-open. Otherwise, Word performs needless, time-consuming access to Excel, and in the worst case, opens and closes Excel repeatedly in the background.
    Testing with DOC/XLS formats gives good performance across all scenarios.

    It is a known bug and one for which AFAIK, there has been no fix.  The only way that I could get around it in a particular application was to do something like save the linked information as document variables and then on opening the document recreate
    all the information.  My memory on exactly what I did is a bit hazy, but I can go back and check if you are interested.
    -- Hope this helps.
    Doug Robbins - Word MVP,
    dkr[atsymbol]mvps[dot]org
    Posted via the Community Bridge
    "galmcrantz" wrote in message news:[email protected]...
    Is this a bug or is there a config setting that can prevent Word from needlessly opening Excel repeatedly (upon initial open of a DOCX Word doc) when pre-existing links should NOT be updated. The behavior is good using 2003 formats (DOC & XLS), but varies
    significantly (~100:1 range in performance) depending on the test scenario (see below) using DOCX with XLSX.
    We can't move our environment to the new XML formats until we can find a fix. We were led to believe Microsoft knew this to be a bug in Office 2007, but it has NOT been corrected in Office 2010. Omitting a detailed explanation for why we need to do this,
    here's our test scenarios:
    -Currently testing Office 2010 Pro Trial version on WIN XP SP3. (We have found similar results using Office 2007 with Win7 or XP).
    -Word Option Deselected/DISABLED: "Update Automatic Links at Open"
    -The Word Doc contains 100 linked Excel tables and is 130K in size (DOCX).
    -Each link points to the same 10x10 cell range in one Excel Workbook located in same directory as the Word Doc, although other tests using separate directories produced similar results.
    -The Excel Links were inserted into Word via Paste Special/Paste Link/MS Excel Worksheet Object.
    -The workbook (XLSX) is 15K in size.
    -All Links are set for "Manual" update, our testing showed no difference if links are set to "Auto".
    -Again, Word is set to NOT update Automatic links when the document is opened.
    -Results shown below are for local hard drive test.
    -Network response times are slightly greater on 100mb LAN
    -Word is completely restarted prior to each test to make sure there's no application caching involved.
    LOCAL DRIVE RESPONSE TIMES TO OPEN THE WORD DOC in Docx format:
    1. Open the Word Doc from Word with Excel closed - 175 seconds (Excel appears to be opened and closed once per link)
    2. Open the Word Doc from Word with Excel open & workbook closed - 33 seconds (Excel appears to be accessed once per link)
    3. Open the Word Doc from Word with the linked workbook already open - 7 seconds (Excel appears to be accessed once per link)
    4. Rename Excel XLSX workbook so that Word can't find it. Then open Doc the from Word. 1-2 seconds (Excel does not appear to be invoked)
    5. Repeat ALL of the above scenarios 1-4 using DOC and XLS files. These files are created with "Save AS" option based on original test files and then re-pasting the links.  1-2 seconds to open the Word Doc (Excel does not appear to be invoked)
    Summary
    Using DOCX/XLSX, if Word can't find the linked spreadsheet it gives up and performs nicely during file-open. Otherwise, Word performs needless, time-consuming access to Excel, and in the worst case, opens and closes Excel repeatedly in the background.
    Testing with DOC/XLS formats gives good performance across all scenarios.
    Doug Robbins - Word MVP dkr[atsymbol]mvps[dot]org

  • Why does selecting a web link open 2 windows, one with the link and the other the home page? This is a single click of the mouse.

    When I single click on a weblink (usually in an email, Firefox starts up and opens two windows; one with the selected web page and one with my home page. If Firefox is running, it opens a new tab which is what normally occurs. It is only when it is not open that I now get the 2 windows. I have an imac running OSX 10.6.3
    == This happened ==
    Every time Firefox opened
    == In the past couple of weeks.

    Hi,
    The rolling over from radius servers only occurs on the same wlan and only when the controller deems the radius server being dead. However, if you get rejected from one WLAN but then you reassociate to another WLAN there is no mechanism in place in rejecting the attempt because they previously failed on a seperate wlan. This happens all the time with users connecting on incorrect wlans.
    The failover feature is for when you have multiple servers (usually for redundancy) on the same WLAN. So when user is rejected but radius server 1 the process stops there and the request isnt sent to radius server 2.
    Hope that helps!
    Tarik Admani
    *Please rate helpful posts*

  • Adobe Reader open a PDF embed with a Link to Open another PDF

    HI,
    I have a online web program. The browser use Adobe reader to open a PDF. In ths PDF, it  has a link to point a file that store in Server. When click this link to open the file, the link file can open, but the original PDF screen  will turn to grey. I need to press F5 to reload the original PDF.
    The verion of Reader 9, it does not have this problem. Reader X or XI have this problem.
    I already try to set the parameters on "Preference" of the reader , but it is useless.
    What is the problem.
    Thanks for giving any suggestion .

    yet another problem with Adobe X1 and where is Adobe to own up to the mutlitude of problems with this release- missing in action!!

  • I can't open a HTML file with flash linked

    I have Flash CS3.  I have created a flash file.  If I click on the SWF file I have no problems opening it.  It plays.  It looks nice.  I'm the man.
    However, now when I try to publish it, the HTML file will not work.  It says "windows cannot find this file, please ensure you have typed the location correctly".
    I am double clicking directly on the file and not typing anything, in fact I was considering checking on Ebay to see if I could upgrade my PC to have eyes.
    The feature has worked previously, which leads me to the conclusion that something else has changed.  I have tried using the publish setting, I have also tried using Dreamweaver to embed the file, and have also tried manually inserting the necessary code after seeing some on a website.
    All of these things produce the same result, windows cannot (or will not) find the necessary file.
    It's an odd one, and very frustrating, can anyone help me at all?
    Cheers in advance,
    Eoin

    Nope this doesn't work.  I wasn't using the default names previously but I can't see that it should make a difference, although Flash can be quirky.
    I tried putting them in a new location to no avail.
    Attached is a screenshot of the error message.

  • All downloads through Firefox are not opening correctly. Bookmarks open up a page with links flush left down the page that do not work. All file downloads do not open correctly with the same issue as bookmarks. Want to avoid losing all my bookmarks so don

    Something happened in the last day with FF. IE downloads files correctly. FF Delicious bookmarks open up a page with blue links that look like an outline but they are not my links. My downloads do the same. No virus.

    That can be caused by having some bookmarks with a long title in the main Bookmarks menu.
    The width of a column in the Bookmarks menu list is in current Firefox versions automatically adjusted to fit the bookmark with the longest name.
    You can check the names of the bookmarks and make the longer ones shorter.

  • Clicking on a link often causes the link to open behind the window with the linik.

    Clicking on a link often causes the link to open behind the window with the link.
    This occurs most frequently when only one or two windows are open.

    Work around found.
    The problem was occurring in links on a web page I created for my home page with "target=_new". Changing this to "target=_blank" fixed the problem. The old links worked fine before version16.

  • How to open a jsf page on a link with a record . Link is in email

    Respected Friends ,
    I am facing a need for sending a email link to users for opening a form for processing a record . I have created a servlet for forwarding the user to the desired page on which we need to render a perticualr record. The servlet forwards the user to the required page but when the page is rendered it gives
    java.lang.NullPointerException     at iffco.wf.view.servlets.UserLinkRedirectServelt.getApplicationModule(UserLinkRedirectServelt.java:143)     at iffco.wf.view.servlets.UserLinkRedirectServelt.doPost(UserLinkRedirectServelt.java:125)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:712)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:369)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:865)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:447)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:215)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)     at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)     at java.lang.Thread.run(Thread.java:595)
    Please help me ,
    I want to know how i can load a page from a link with a perticular record .
    I am using jdeveloper 10.1.3 . Also when i acess the current application module from the servlet it gives me the null pointer exception.
    Thanks in advance

    HI FRANK THANKS FOR THE QUICK REPLY I AM PASTING THE CODE OF MY SERVLET..
    frank can you please provide me how to pass parametres along with jspx link and how to acess them in the managed bean .this will also solve my problem.
    package iffco.wf.view.servlets;
    import java.io.IOException;
    import java.io.PrintWriter;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import iffco.wf.view.backing.LoginPageBean;
    import iffco.wf.view.utils.ADFJSFUtils;
    import oracle.jbo.ApplicationModule;
    import oracle.jbo.ViewObject;
    import oracle.jbo.client.Configuration;
    import iffco.wf.model.wf_servicesImpl;
    import javax.faces.context.FacesContext;
    import javax.faces.el.ValueBinding;
    import oracle.adf.controller.v2.context.LifecycleContext;
    import oracle.adf.controller.v2.lifecycle.PageController;
    import oracle.adf.model.BindingContext;
    import oracle.adf.model.binding.DCDataControl;
    public class UserLinkRedirectServelt extends HttpServlet {
        private static final String CONTENT_TYPE = "text/html; charset=windows-1252";
        public void init(ServletConfig config) throws ServletException {
            super.init(config);
        /**Process the HTTP doGet request.
        public void doGet(HttpServletRequest request,
                          HttpServletResponse response) throws ServletException,
                                                               IOException {
            String var0 = "";
            String var1 = "";
            String var2 = "";
            response.setContentType(CONTENT_TYPE);
            PrintWriter out = response.getWriter();
            out.println("<html>");
            out.println("<head><title>UserLinkRedirectServelt</title></head>");
            out.println("<body>");
            out.println("<p>The servlet has received a GET. This is the reply.</p>");
            out.println("</body></html>");
            out.close();
            System.out.println("Inside doget method of servlet");
            LoginPageBean LoginBeanInstance = new LoginPageBean();
            System.out.println("Login bean initiated--->" + LoginBeanInstance );
            String nextJSP = "/faces/LoginPage.jspx";
            RequestDispatcher dispatcher = getServletContext().getRequestDispatcher(nextJSP);
            dispatcher.forward(request,response);
        /**Process the HTTP doPost request.
        public void doPost(HttpServletRequest request,
                           HttpServletResponse response) throws ServletException,
                                                                IOException {
            String var0 = "";
            String var1 = "";
            String var2 = "";
            response.setContentType(CONTENT_TYPE);
            PrintWriter out = response.getWriter();
            out.println("<html>");
            out.println("<head><title>UserLinkRedirectServelt</title></head>");
            out.println("<body>");
            out.println("<p>The servlet has received a POST. This is the reply.</p>");
            out.println("</body></html>");
            out.close();
            System.out.println("Inside post method of servlet");
            LoginPageBean LoginBeanInstance = new LoginPageBean();
            System.out.println("Login bean initiated--->" + LoginBeanInstance );
            String        amDef = "iffco.wf.model.wf_services";
            String        config = "wf_servicesLocal";
            wf_servicesImpl service = (wf_servicesImpl)Configuration.createRootApplicationModule(amDef,config);
            System.out.println("service created --> "+ service);
            ViewObject vo=service.getLoginVO();
            System.out.println(vo);
            vo.setNamedWhereClauseParam("p_personal_no","109128");
            vo.setNamedWhereClauseParam("p_password","abc");
            vo.executeQuery();
            System.out.println("View Object has -->"+vo.getEstimatedRowCount()+" Rows");
            ADFJSFUtils newHelperClass = new ADFJSFUtils();
            System.out.println("New Helper Class Initated -->"+newHelperClass);
            ApplicationModule currentAM = newHelperClass.getDataControlApplicationModule("wf_servicesDataControl");
            System.out.println("Current AM is -->"+currentAM);
            ViewObject vo = currentAM.findViewObject("LoginVO");
            System.out.println(vo);
            vo.setNamedWhereClauseParam("p_personal_No","109128");
            vo.setNamedWhereClauseParam("p_password","abc");
            vo.executeQuery();
            System.out.println("View Object has -->"+vo.getEstimatedRowCount()+" Rows");
            System.out.println("Before method");
            wf_servicesImpl wfser=getApplicationModule();
            System.out.println("after method value got-->"+wfser);
            String nextJSP = "/faces/LoginPage.jspx";
            RequestDispatcher dispatcher = getServletContext().getRequestDispatcher(nextJSP);
            dispatcher.forward(request,response);
        public wf_servicesImpl getApplicationModule() { 
                 FacesContext context = FacesContext.getCurrentInstance(); 
                 System.out.println("context --"+context);
                 ValueBinding vb = context.getApplication().createValueBinding("#{data}"); 
                 BindingContext bc = (BindingContext) vb.getValue(context); 
                 DCDataControl dc  = bc.findDataControl("wf_servicesDataControl"); 
                 return (wf_servicesImpl) dc.getDataProvider(); 
        private void redirect(
            ResponsePage aDestinationPage, HttpServletResponse aResponse
          ) throws IOException {
            String urlWithSessionID = aResponse.encodeRedirectURL(aDestinationPage.toString());
            aResponse.sendRedirect( urlWithSessionID );
          private void forward(
            ResponsePage aResponsePage, HttpServletRequest aRequest, HttpServletResponse aResponse
          ) throws ServletException, IOException {
            RequestDispatcher dispatcher = aRequest.getRequestDispatcher(aResponsePage.toString());
            dispatcher.forward(aRequest, aResponse);
    }

  • Adobe Reader Splash--I have a PDF file that whenever I try to open it suggests using Adobe Reader with a link to download Adobe Reader...

    Adobe Reader Splash--I have a PDF file that whenever I try to open it suggests using Adobe Reader with a link to download Adobe Reader. I can't get beyond this. I have made Preview the default for all PDF's and yet this persists. I have also deleted Adobe Reader. This particular file is a portfolio, btw.

    I have similar issue. Did u find an answer?

  • When I click on a link in an email, it does not automatically open the site page? When I receive an email with a link in it, if I click on the link to open the page, nothing happens. It does not open the internet to that page.

    When I click on a link in an email, it does not automatically open the site page?
    When I receive an email with a link in it, if I click on the link to open the page, nothing happens. It does not open the internet to that page.

    I don't appear to have a toolbar either.

  • How can I have a Pages document that is shared with me under my Pages section and not open it with the link?

    How can I have a Pages document that is shared with me under my Pages section and not open it with the link?

    Try this.
    Open the document and select and copy a few pages, say ten pages.
    Open a new blank document and paste the pages you copied into that.
    Save it with a new name.
    Work on those new pages to see if the problem has disappeared.
    If this helps, continue breaking up the large file in to smaller chunks and working on them
    You can of course later reverse the process and merge the files into one new one.
    This suggestion is based on my experiences with large Word files. Breaking it up in to smaller chunks does two things. First, if there is any corruption in the old file, the new copies might escape that. Second, the Mac is faster handling the smaller chunks.

  • Open google maps, youtube, video etc links with app instead of browser?

    According to the search maps and youtube won't ask if you want to use an app to open the links because google doesn't see firefox as a mobile browser (which is weird given that it will always load the mobile youtube site...)
    But the same thing happens when I want to watch streams from other websites. Instead of asking me if I want to open media files using an app it will automatically use the built in player. But I want to open media with a different player (mx player) as I don't really like the firefox player.
    How can I have firefox ask me to pick an app/browser to open certain things like google map links, youtube links, media file link (mp4 etc)?

    My biggest bugbear with the Play Store opening in the browser is that it's slower than the native app, so waiting for the page to load before given the option to launch the app isn't a lot of help. Would it be possible to have an option to automatically load such pages in the associated app? Perhaps when using the address bar icon it could ask "Do you want to do this automatically in future? Yes/No/No and don't ask again".
    Jon

  • Can I save on a Mac then open on a PC with links still attached.

    Is there any way to save a document with photo links using a Mac and be able to open it on a pc with the photo links in tack ? We are both using CS6 InDesign and hope there is a way to edit each other's work.

    She knows nothing about dropbox.
    I am the Mac user, I saved the document preflight embedded and also embedded all the links. We both purchase CS6 two years ago for this history book project. I have always been able to open her document but some links were missing. Today I sent her a file and she said it wouldn't open and ask her for a CC account number. I'm lost as to what o have her do...
                            Debbie                    
    [email protected]
    Never allow someone to be your priority while allowing yourself to be their option...
    "There's a difference between interest and commitment.
    When you're interested in doing something, you do it only when it's convenient.
    When you're committed to something, you accept no excuses, only results."

  • Win 7 Pro 64-bit / DW CS5 crashes when opening files with external links

    open any html, php, etc with a link to an external file - could be any type
    dw cs5 crashes
    this is on a fresh, clean install of win 7 and cs5 suite. hard drive was wiped clean before installing
    Has anyone experienced this issue also?
    This is extremely annoying...  why I should pay for software that doesn't work?

    "Enable Related Files" isn't the fix for this issue. It's slightly different - I wanted to still load related files, but only the ones local to the file I was editing.
    The fix was to use DW's Resolve To IP Address feature. It required adding a registry value - it fixed the issue straight away
    This Adobe support doc helped: http://kb2.adobe.com/cps/887/cpsid_88742.html

  • How to open a file with a link ?

    I am using servlets to design an application.
    The application supports uploading and downloading of .DOC and .RTF files.
    My problem is that I am opening an uploaded file via a link.
    OPen File
    The above is also working fine and opens the file in the IE browser.
    But my problem is that I want to open the file with MS-Word...as is done on many resume-building websites.
    1) How am I supposed to do that ?
    2) Can I specify ContentType="application/msword" in a link ?
    Please Help !!

    I did the foll. w.r.t a docbase.
    A docbase stores documents and assigns an unique id to each one. The foll. is a code snippet that opens a document's contents in a browser.
    public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
    Connection conn = null;
    Statement stm;
    ServletOutputStream sos = null;
    ResultSet res;
    // .... get id of document u want to open
    query = "select id from .. where object_name = ' xx' .."
    res= stm.executeQuery(query);
    Blob blob = res.getBlob("_content"); // this will get content of document identified by id
    int blobLen = (int)blob.length();
    //the foll. is the part u need..
    if (blobLen > 0) {
    InputStream contents = blob.getBinaryStream();
    response.setContentType("application/msword"); // MS Word
    byte[] buf = new byte[blobLen];
    int length = -1;
           while ((length = contents.read(buf)) != -1){
              sos = response.getOutputStream();
              sos.write(buf,0,blobLen);
    sos.flush();
    System.out.println("Doc Received");
    contents.close();
      res.close();
      conn.close();
    }

Maybe you are looking for