I need to show listing of names of PDF files which are to be printed. I need to show this list in a JQuery Modal window. If anybody can please suggest as to how to redirect the view to a jquery modal window? I plan to use JQuery UI for the purpose.
My other requirement is to display the select PDF file in a new window.
You could have a controller action that will return a partial view containing the list of PDF files. Then configure jQuery Dialog to use AJAX in order to fetch this list from the server and show it in a div. Finally inside this list you could add target="_blank" to anchor elements pointing to the actual PDF file so that it is opened in a new window when the user clicks on this anchor.
Check out fancybox plugin for jquery . You pass it a web link and set it to iframe.
secondly, if you want to open up a pdf in a new window set the anchor link target="_blank" i.e. title
hope that helps
Related
I am working on creating an app navigation using a tabs module and the first tab includes a shortcode for a community wall similar to Facebook. There is supposed to be an option for adding a gif a poll or a photo but when I use the shortcode inside the tab content only the option to add the photo is there. Just looking for some direction as to what could be causing this ? Would it be in the php file ?
For further clarification when the shortcode is published it is returning this in the html
when not housed inside a tab it is displaying correctly and this is the html output:
I want to develop a firefox addon sdk to show a sidebar or a panel that contains an embedded browser with a navigation bar.
I have constraint too : Since the page shown in the embedded browser, I want to be able to inspect the dom, to hightlight some specific text and also to be able to select text from and send it to a specific input in sidebar with right menu.
Is there some examples or ideas how can I do this?
P.S : I'm sorry for my bad English ;)
Use sidebar module, create HTML file with a fixed textarea top:0, left:0, width: 100%. Create an iframe that takes up the rest of the sidebar. User enters text into the textarea, then listen for enter keystroke, use regex to see if it's a URL, and set iframe source to the URL if it's a URL or to a Google search if not.
Loading a whole browser into the sidebar seems like overkill, but if you really want to, try to load chrome://browser/content/browser.xul into the sidebar.
I am trying to write an editor for a particular type of file in Eclipse which has multiple pages, just like the PDE editor.
How do I get a hyperlink in the main Overview page to point at one of the individual pages?
I've got the hyperlink drawn but I don't know how to link it to the actual page so that when a user clicks it, the page view changes.
Any ideas?
Follow this recipe:
Create the main page and all the sub pages
Add links
Add HyperlinkAdapter to the links using link.addHyperlinkListener()
In linkActivated() you can switch the page with formEditor.setActivePage(...)
I have written an panel which supports file / image uploads. So the panel is a simple plain form. The panel works in a normal Wicket page.
What I would like to do now:
I would like to use the panel in a modal window. The panel is displayed correctly. However, when I submit it / upload a new file, my browser prompts whether or not I would like to leave the page. The page which contains the DIV of the modal window is a form itself.
My research didn't turn up any interesting information about forms in a modal window expect it has to be self contained (nested form). I think this prerequisit is met.
Is there any information available, what I have done wrong? Any tutorials?
You need to use an AjaxSubmitButton (or AjaxSubmitLink) to submit your form. The problem is that the modal window requires Ajax communication. If you use the window to just reprocess a whole page and don't care about the Ajax'ness, then you can override the ModalWindow#getCloseJavaScript() method.
As Martijn pointed out, the modal window relies on AJAX communication. So use AjaxSubmitButton or equivalents. When components in the main window need to be updated after the submit of the modal window, this can be done by adding them to the AjaxRequestTarget.
However when it comes to multi part forms (file uploads) this does not work quite. Apparently multi part doesn't play nicely with AJAX. One has to do an IFrame trick as pointed out e.g. here: http://www.dooriented.com/blog/2008/04/23/wicket-ajax-like-file-upload-on-a-modal-window/
I am Using pdf in my application .i am loading PDF in webView .In that PDF i have index as a first page click on list item it should go that particular page and in that PDF for every page top option is there clock on that it should go first page .how can i solve this problem .help out me
thank you
i am loading PDF in webView .In that PDF i have index as a first page click on list item it should go that particular page and in that PDF for every page top option is there clock on that it should go first page
check its code it will help u...
im using it my app
https://github.com/vfr/Reader
try this code
it may help you
https://github.com/vfr/Reader