473,320 Members | 2,161 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Problem with mac os safari browser...

58
Hi all,
The following code is not working properly in Mac os/safari browser.

Expand|Select|Wrap|Line Numbers
  1. function newWindow(){
  2.         window.open('<jstl_core:url value="/pages/orders/printAllPackingSlip.jsf"/>','jav','width=500,height=500,resizable=yes,scrollbars=yes'); 
  3.     } 
The problem i am having is,the above newWindow() will be called inorder to print all items,i can able to retrieve all values from DB,when click preview button of safari browser nothing gets displayed,this code works well in mozilla and IE.
can u guide me to solve this problem?

Thanks in advance,
sundar
Nov 12 '07 #1
3 2854
acoder
16,027 Expert Mod 8TB
Can you show the code for the new window (the generated HTML/JavaScript, not JSF code).
Nov 12 '07 #2
gsuns82
58
Can you show the code for the new window (the generated HTML/JavaScript, not JSF code).
Hi,
I tried a code for disabling cache on any browser,but the safari browser on mac os still caching my page,so that it shows the same items on print priview from its cache.
The code:
***********
Expand|Select|Wrap|Line Numbers
  1. function ae_nocache() 
  2. {
  3.     header("Expires: Tue, 03 Jul 2001 06:00:00 GMT");
  4.     header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
  5.     header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0");
  6.     header("Cache-Control: post-check=0, pre-check=0", false);
  7.     header("Pragma: no-cache");
  8. }
  9.  
Even i tried general <meta> with no-cache attribute,its ok for IE & Mozilla,but not working in safari browser on mac os.
Can u give me a code so that i can prevent my page from being cached on safsari browser?

Thanks in advance,
sundar
Nov 12 '07 #3
acoder
16,027 Expert Mod 8TB
So you're using PHP to render the page?

Try adding the date/time to the end of the URL to prevent retrieval from the cache (as a fix).
Nov 12 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: London Geek | last post by:
Hello, I'm having a rendering problem with italics in Safari 1.2. The following displays correctly and is consistent with other Mac and non-Mac browsers: ..Title { font-family: Impact;...
4
by: Martin! | last post by:
hi all, yesterday i checked some of my sites with safari on a mac with os x and saw that some things didnt show up as they do in IE and FF. these things include a css_roll_menu and a suckerfish...
2
by: laredotornado | last post by:
Hi, Is it possible to fool Javascript running on a Mac Safari web browser into believing it is a PC IE browser? We have the following JS code that is detecting both Mac and Safari. Sadly, we do...
8
by: Bob Skutnick | last post by:
Greetings, I'm hoping someone has experienced a problem I'm having: I have an existing ASP application (working fine) that uses an SSL server certificate. My user community is made up of both...
4
by: Paul W | last post by:
Hi - can someone point me to info on the issues/resolutions of supporting the safari browser? To help me understand, if I was developing pages in say FrontPage, what attributes would I set for...
17
by: dejavue82 | last post by:
You'll see a render problem on http://www.asp.net when you access it with the Apple Safari browser. Anybody know why? This is a Microsoft site, shouldn't they know what they are doing? ...
34
by: Simon Wigzell | last post by:
document...focus() will scroll the form to move the specified text field into view on everything I have tried it with except Safari on the MAC. The form doesn't move. Any work around? Thanks.
21
by: Edward | last post by:
Hi All, I feel frustrated with one of my Customers who wants me to ensure that a dotnet web site I am building for them must be compatible to Apple's Safari browser! Safari is buggy and it...
7
by: David Stone | last post by:
Run into something recently that has left me a little puzzled. According to the examples in section 13.6.1 of html 4.01... <http://www.w3.org/TR/html401/struct/objects.html#h-13.6.1.1> I...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.