Open browser in backend
Hi,
First of all, when I click on the document link, the data will pull out from the database and display the contents within the browser by invoked the AFP web viewer plugin.
The method that I used to do that through setContentType("application/afp"), and using ServletOutputStream.
The case above happened when I only click on one document link.
However, I need to select multiple documents by checking the checkbox and print without opening them.
Therefore, I m just wondering that can I open the documents and invoke the plugin in the backend, which mean the documents is open up without user seeing it, is invisible to user. And then call the javaScript print to print the documents.
My concern is is it possible to do it this way?
Thanks
I expect some of your original description is happening on the client and some on the server. You didn't bother to explain which, so it's hard to understand. Perhaps you don't understand it yourself and that's your problem.
Anyway, using the HTTP protocol you can only return one thing in the response. What that "thing" can be depends on what's receiving the response, but in general if you're going to be returning more than one file in the response, you're going to have to package up the files according to the requirements of whatever is going to receive this multi-file package. So check the documentation of this AFP thing and see if it can receive multiple files, and if it can how it wants them packaged.
Similar Messages
-
Open browser window behavior in Mac not working right
I am simply selecting my text in my html document and then selecting "Open Browser Window" from the Behaviors panel. I then put in the info for the file I want it to open along with the size, etc...
When I test it in the browser (Safari) the link works but the rollover features don't show ... it doesn't show as a link in the browser window. I followed the tutorial exactly and the instructor's browser showed the link as a rollover. It's driving me a bit crazy.
I'm using CS5 on the latest version on Mac OS (Snow Leopard).
I can put up an example if needed.
Thanks so much for any assistance.
BCAll I can tell you is that when you browse to that link URL, you do not see a JPG image, you see this page -
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Apartment Anchor - Free Apartment Locating Service | ApartmentAnchor.com</title>
<style type="text/css">
.content {
width: 400px;
a {
font-size: 20px;
</style>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-25512543-2']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
</script>
</head>
<body>
<div class="content">
<ol>
<li><a href="http://apartmentanchor.com/blogs">Houston Apartment Blog</a></li>
<li><a href="woodlands/woodlands-tx-apartments.html">Woodlands Texas Apartments</a></li>
<li><a href="clear-lake/clear-lake-tx-apartments.html">Clear Lake Texas Apartments</a></li>
<li><a href="cypress-texas/cypress-tx-apartments-for-rent.html">Cypress Texas Apartments</a></li>
<li><a href="river-oaks/houston-river-oaks-apartments.html">Houston River Oaks Apartments</a></li>
<li><a href="spring-texas/spring-apartments-for-rent.html">Spring Texas Apartments</a></li>
<li><a href="league-city/league-city-tx-apartments.html">League City Texas Apartments</a></li>
<li><a href="houston-texas-apartment-search-engine.html">Houston Apartment Search Engine</a></li>
<li><a href="get-availability-information.html">Get Apartment Listing</a></li>
</ol>
</body>
</html>
Do you have that page on your site? Is that your home page?
Perhaps you have some hidden redirection going on via an htaccess file? I dunno.... -
Open Browser behavior question
Hi, does anyone know if its possible to control the placement
of the window that pops up using the open browser behavior. I'm
doing a catalogue, and I would like that when you press a thumbnail
the popup window pops up to a specified size to the left of the
thumbnail. Any suggestions? ThanksThe DW open browser doesn't have the option to positions
popups. You can use
our open browser window which does, and has more features as
well. It's
free.
http://fourlevel.com/dreamweaver/extensions/openbrowser/index.htm
Regards,
Trent Pastrana
www.fourlevel.com
"roigron80" <[email protected]> wrote in
message
news:g2mvh3$9c3$[email protected]..
> Hi, does anyone know if its possible to control the
placement of the
> window
> that pops up using the open browser behavior. I'm doing
a catalogue, and I
> would like that when you press a thumbnail the popup
window pops up to a
> specified size to the left of the thumbnail. Any
suggestions? Thanks
> -
I use the Open Browser Window behavior with the <A>
onClick attribute for many images and text links on my site. Works
fine, UNTIL the page gets updated via a change on the main
template. Then the link gives me a javascript error. To fix I have
to pull up each page, open the behavior, OK to save and then resave
the page. No changes made, the code does not appear to change, but
then it works. As my site grows this is becoming more and more of a
nusiance to remeber to "fix" every page that has such behaviors on
it.
I have search the forum, but didn'[t come across a similiar
error. Has anyone seen this. Is there a fix
Thanks!This means that your template does not contain the required
javascript for
the OpenBrowserWindow behavior in the head of the page. If it
did, then
every child page would contain the necessary code, and you
wouldn't have to
do the song and dance that you are doing.
Make sure it goes in a NON-EDITABLE region of the template
page.
The downside to this is that each page gets the code
(admittedly it's a
small bite) whether it needs it or not....
So - what you should do is open the particular page that has
just broken,
run through your procedure again (which writes the required
code into the
head of the page, and then copy that code (from
<script...> though
</script>), and paste it into the template page in the
same location. When
you save the template page, all child pages will be updated.
There's one nagging problem here, though. If the procedure
you describe is
working without error, then it is also true that DW is
writing that markup
into an EDITABLE region of the head of the page. If that's
the case, then
WHY IS A TEMPLATE UPDATE OVERWRITING THIS? I don't know -
would need to see
your page to know for sure....
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"JR-ITGUY" <[email protected]> wrote in
message
news:[email protected]...
>I use the Open Browser Window behavior with the <A>
onClick attribute for
>many
> images and text links on my site. Works fine, UNTIL the
page gets updated
> via a
> change on the main template. Then the link gives me a
javascript error. To
> fix
> I have to pull up each page, open the behavior, OK to
save and then resave
> the
> page. No changes made, the code does not appear to
change, but then it
> works.
> As my site grows this is becoming more and more of a
nusiance to remeber
> to
> "fix" every page that has such behaviors on it.
>
> I have search the forum, but didn'[t come across a
similiar error. Has
> anyone
> seen this. Is there a fix
>
> Thanks!
> -
Open browser behavior does not work properly
I have quite a few websites in subfolders to my root website. I have tried using the open browser behavior to open a smaller resized html page in two of these subfolders. When I apply this behavior it causes about 20 windows to open up of this page.
However, I have another subfolder where the behavivor works perfectly.
What could be causing this error. All these websites are created with templates. Maybe this has something to do with it.
A quick second question. I use ico files to have an image in the url. Everything I have read and the way I used to get this to work was to put these images in the root level. However, using template, they have to be put in the templates folders to work. I don't remember have I came to discover this. Why is this?
I really would like some input to the open browser behaviror problem. Any help will be appreciated.
JoeIt's hard to say what the problem could ber without seeing the page in question. Could you post a link to a live page?
The actual .dwt template (if it's being used correctly) is only used by DW, you do not need to upload it to your actual web server or place your .ico file within it. You may have a link in the head section of your template that is pointing to the .ico file within the wrong folder, and that could be causing the issue. -
iPad running iOS 5 has on the menu bar only have 4 icons, being: back, forward, bookmarks, and the "add to bookmarks", but is missing an icon after the "add to bookmarks" arrow, that is a "show all open browser windows" icon. How do I get it in my safari?
What you are seeing is how Safari works now in iOS 5. There is no way to get that icon in Safari now. There other much better browsers available in the App Store. Look at iCab Mobile, Mercury, Atomic, ....
I have been running iOS 5x for so long now, that I don't even remember if that icon did appear in earlier iOS versions -
Open Browser Window - Not working correctly.
I click the thumbnail on my homepage, I get a larger image in
a new window. Unfortunately, the homepage also redirects itself to
the larger image. You can see this at www.real9.com
I want the homepage to stay where it is, but the larger
window to open in a new window. I used the Open Browser window in
Dreamweaver to set this link up, but its not doing what I want it
too.
Help would be much appreciated, I have been trying to fix
this problem, but no success.
Thank you.On Sun, 08 Apr 2007 21:01:21 +0100, djinn
<[email protected]> wrote:
>In the link fields for rather than linking to the file or
image - enter
>this........
>
>javascript:;
That's one way of handling it. My own preference is to leave
the link in
there and add a return false after the onclick handler. That
way the
link will still work if JavaScript is not available.
To implement that, your onclick for the link looks like this:
onclick="MM_openBrWindow('pics/inside_large.jpg','LargePicture','width=640,height=480')"
Change it to:
onclick="MM_openBrWindow('pics/inside_large.jpg','LargePicture','width=640,height=480');re turn
false"
Careful of word wrap. It's all on one line.
Gary -
How do i open browser in java application
hi....
please help me!!!!!!!!!!!!!!!!!!!!!!!!!!
how do i open browser in java application ? ( for show javascript in java application)
thank you.......You can run any program from java by doing
Runtime.getRuntime().exec("mybrowser myjavascriptfile.js");
The real question is why would you want to.
I would suggest you rethink whether running Javascript from Java is a good idea. -
I built a site named greenscapepump.com. I used the behavior
"Open Browser Window" that allows a photo to be viewed in a smaller
window. I have it set up to double-click the photo name to go to
the browser window. It works on some computers but not others. I
used the same behavior on other pages in the same web site and it
is working on all computers.
The three pages under the menu "Portfolio" are: Architectural
Fountains, Waterfalls and Streambeds, and Floating Fountains, are
the pages that have problems with this behavior on some computers.
Is this an individual computer problem, or do I need to do
something in Dreamweaver to fix it?OMG - the code on the architecturalfountains page is a horror
Why do you need to use doubleclick.... most users are
accustomed to clicking
on a link wait for something to happen....
Also, the code for that dropdown is massive... are you really
committed to
that menu?
The validator found quite a few errors on that particular
page - I didn't
test each page (that's up to you :) these errors aren't
helping with your
page load also - one of the pages (can't recall which now)
just kept trying
to load and never did stop... try fixing the errors (some
more important
than others to the well being of your page) and then see
where you are at
with your pages... I'd also suggest changing the
'doubleclick' to just the
one click - really no need for anything else.
http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fgreenscapepump.com%2Farchitectura lfountains.html%23
Nadia
Adobe® Community Expert : Dreamweaver
http://www.DreamweaverResources.com
|Tutorials|SEO |CSS Templates
http://www.csstemplates.com.au
http://www.adobe.com/devnet/dreamweaver/css.html
CSS Tutorials for Dreamweaver
"texasgranny" <[email protected]> wrote in
message
news:ef9h1v$4h8$[email protected]..
:I built a site named greenscapepump.com. I used the behavior
"Open Browser
: Window" that allows a photo to be viewed in a smaller
window. I have it
set up
: to double-click the photo name to go to the browser window.
It works on
some
: computers but not others. I used the same behavior on other
pages in the
same
: web site and it is working on all computers.
: The three pages under the menu "Portfolio" are:
Architectural Fountains,
: Waterfalls and Streambeds, and Floating Fountains, are the
pages that have
: problems with this behavior on some computers.
: Is this an individual computer problem, or do I need to do
something in
: Dreamweaver to fix it? -
File Open/Browse dialog?
Is there any way to bring up (and get info from) the standard
Windows File Open/Browse dialog in CF?
Thanks!if i'm understanding you correctly, <input type="file"
name="foo" /> ... but this isn't CF. it's straight HTML. -
A:hover with "open browser window" behavior?
Hi,
Is it possible to make a text link follow the a:hover style (CSS?) with the behavior of "open browser window"?
I've been using the "OnClick" option (for behaviors), but the cursor doesn't turn into the little hand symbol so I feel like people won't know that you can click on it. If I could make it change color like it does when it is a direct link, or if i could make the hand symbol appear, that would be great.
Thank you in advance!!We'd need to see your code but I'm guessing you did not highlight the link text and make it a null link.
http://alt-web.blogspot.com/2010/02/making-pop-up-window-in-dreamweaver.html
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
http://alt-web.com/
http://twitter.com/altweb
http://alt-web.blogspot.com -
Window size will not change in open browser window behaviours
Despite changing the sizes of the window in the edit function of
edit open browser window it always opens up as one big page.
My code is
<p><a href="popup.html"><img src="../Existing business1.jpg" alt="existing1" name="services" width="359" height="283" id="services" longdesc="http://Hr existing" onclick="MM_openBrWindow('popup.html','popup','width=430,height=300')" /></a></p>
Can anyone help?
ThanksWhich browser(s) are you testing?
Have you got a URL to your test pages yet? That's the best way to get help.
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
http://alt-web.com/
http://twitter.com/altweb
http://alt-web.blogspot.com -
please tell me how to open browser from an application.i want to give links in my application.
http://search.java.sun.com/search/java/index.jsp?qp=&nh=10&qt=%2Btitle%3Abrowser+%2Btitle%3Aapplication+%2Btitle%3Aopen&col=javaforums
-
I have rewritten my site in Dreamweaver because I thought
this was a problem with the export from Go Live.
When I tell a link to open in a new browser window it works
but the older window also update to the linked page. This pretty
much defeats the purpose of it opening another browser window.
The link that is the problem is the link to "
http://www.yourmaclifeshow.com"
It's the only one I have put in so far since it doesn't seem to
work properly.You might also mention the need to apply this behavior to the
<a> tag
surrounding the <img>. It's a common mistake, and it
leads to other
undesirable effects.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"E Michael Brandt" <[email protected]> wrote
in message
news:[email protected]...
>> I just don't understand why that Open Browser Window
extension in DW
>> writes the code the way it does. Seems like it
pretty much broken.
>
> Yes.it was created in the time before people considered
making sites more
> accessible to a variety of users.
>
> When created, Macromedia expected the href attribute to
be either "#" or
> "javscript:;". With either of those, the
MM_openBrowserWindow function
> works just fine in that it will NOT tell the main window
to update itself
> with the new page at the same time it opens the popup
window. However, if
> the user has javascript turned OFF, then NOTHING will
happen, there will
> be no way to get to the linked page at all. Bad.
>
> So, with this accessibility issue in mind, and with the
notion of
> "progressive enhancement" coming to the fore, the newer
way to code this
> is to have the new page's url in the href attribute
rather than simply "#"
> or "javscript:;". Now if javascript is disabled, the
javscript function
> will not fire, but the main browser window will refresh
with the new page
> so the user will get to see it.
>
> HOWEVER the consequence of this is that with javscript
ON,
> MM_openBrowserWindow will fire, opening the popup, AND
the main window
> will refresh with the new page also. To prevent this
unintended result,
> you can add ";return false" after MM_openBrowserWIndow()
to tell the
> browser NOT to refresh the main window with value in the
href.
>
> Hope that makes sense.
>
> Thierry also mentioned divaPOP. It has many advantages,
among them that
> opening new windows is simply easy as pie. For just $9
you save yourself
> lots of time and coding. You don't use the
MM_openBrowserWindow function.
> Simply have the links on your page, and divaPOP will add
its openWindow
> behavior for you. For links to external websites or to
pdf files, you need
> add no "hooks" to your links at all: divaPOP will
automatically detect
> them. For other sorts of links, like to html pages,
images, flash, word
> docs, or whatever, you merely add a special CSS class to
the link to tell
> divaPOP to do its thing. divaPOP also handles Templates
and Child pages
> with no special steps required at all. Take a look at
>
>
http://divahtml.com/products/divaPOP/open_popup_windows.php
>
>
> --
>
>
> E. Michael Brandt
>
> www.divaHTML.com
> divaPOP : standards-compliant popup windows
> divaGPS : you-are-here menu highlighting
> divaFAQ : FAQ pages with pizazz
>
> www.valleywebdesigns.com/vwd_Vdw.asp
> JustSo PictureWindow
> JustSo PhotoAlbum, et alia
>
> -- -
Hi guru's
In the CAT2 transaction I have used a user exit to open a browser screen when a user presses on a specific button.
I'm using function module "CALL BROWSER" to open up
When using a normal GUI the function module opens up a browser and displays it in full on my screen.
When a user runs the CAT2 transaction on a normal GUI the function module works fine and opens up the URL in a fully opened browser window.
On alternative our users can use SAP ITS (webgui) for inputting their hours. When calling the function module from SAP ITS the URL opens up in a non-fully opended browser window. The window isn't adjustable in size and users are barely able to scroll down to the bottem of the page.
I've used several function modules trying to solve the problem (ITS_BROWSER_WINDOW_OPEN, HR_URL_CALL_BROWSER), but all have the same problem.
Please suggest how to solve theh problem.Hi,
What do mean by browser window?
If you mean the File>Open dialog, double click on the Title bar to get it back to a smaller size.
Maybe you are looking for
-
Data is not getting displayed in my form
hi, i have declared variable to hold amount in that as v_amt type konv-kwert in my program and in form interface in import parameters i gave it the same as v_amt type konv-kwert..............and in text i gave the variable v_amt............. but it i
-
I have multiple devices with the same cerificate, once I have an exception for one, FF denys access to the others. I cannot change the certificates, I need to stop FF blocking them. == This happened == Every time Firefox opened == I attempt to access
-
Dear All, This has beome very difficult as it is my daughters Birthday on Friday and I have been unable to order the iphoto albums as the sytem refuses to let me order them as it does not think my phone number is valid. I have put this number in ever
-
Numbers instead of names in SMS
Today, my N95 started to use numbers instead of names on SMS messages. I've looked through the other topics about this, and there are no duplicates, and it didn't seem to do this before. Powering off, deleting and remaking contacts all don't seem to
-
ContentDisposition for httpservletresponse
Hello everyone, I am using response.setHeader("Content-Disposition", "attachment; filename=betty1.pdf") in my code to open the pdf as an attachment. What should i use in the place of "attachment" in order not to open the pdf?? I don't want to open an