Go Back   The macosxhints Forums > OS X Help Requests > Applications



Reply
 
Thread Tools Rating: Thread Rating: 62 votes, 4.94 average. Display Modes
Old 03-13-2010, 03:02 PM   #1
paldo
Triple-A Player
 
Join Date: Dec 2006
Location: Switzerland
Posts: 175
Safari and aspx files

On my company homepage we can get company documents with the file ending .aspx.
Safari is not able to open them. On the contrary Camino Opera and firefox can do it. How can I tell Safari to convert aspx documents into pdf?
Do I need an apple script?
Why are other browsers capable but not safari? Are camino,opera and firefox windows based?

Thanks for your help.
paldo is offline   Reply With Quote
Old 03-13-2010, 03:54 PM   #2
Appleart
Triple-A Player
 
Join Date: Mar 2010
Location: California
Posts: 122
Just a guess, Safari is an Apple program; Camino, Opera and Firefox are developed third-party.
.aspx is a Microsoft thing, so Apple probably doesn't have access.
Appleart is offline   Reply With Quote
Old 03-13-2010, 04:00 PM   #3
benwiggy
League Commissioner
 
Join Date: Aug 2006
Location: London
Posts: 5,594
I visit loads of websites that use .aspx and been able to view them in Safari. I use no other browser.
Do you get an error message, or are the file types just unrecognised?

Anything that Safari can view can be turned into a PDF. However, if you can only view them in Firefox or Camino, then you can turn them into a PDF through the OS X print menu's PDF button, as usual.
benwiggy is offline   Reply With Quote
Old 03-13-2010, 04:28 PM   #4
paldo
Triple-A Player
 
Join Date: Dec 2006
Location: Switzerland
Posts: 175
Thanks Ben. I don't get an error, the file type is unrecognised. We are about 80 Mac users having this problem and we would like to stick to Safari.
Opera opens acrobat reader, the file is named (just an example) CrewComposition_PDF .pdf
Camino opens acrobat reader, the file name is CrewComposition_PDF.aspx
paldo is offline   Reply With Quote
Old 03-14-2010, 01:52 AM   #5
benwiggy
League Commissioner
 
Join Date: Aug 2006
Location: London
Posts: 5,594
Is the file an .aspx file, or a PDF? As I understand it, an .aspx file is just auto-generated HTML.

When you click on a known PDF file in Safari, do you view it in Safari, or with ADobe Reader, or is the file downloaded?

You can make sure that Safari shows PDFs in its window with the following command:
Code:
defaults write com.apple.Safari WebKitOmitPDFSupport NO
though make sure you turn off support for web in any Adobe Acrobat products that you have.
benwiggy is offline   Reply With Quote
Old 03-14-2010, 09:10 AM   #6
paldo
Triple-A Player
 
Join Date: Dec 2006
Location: Switzerland
Posts: 175
The file is an .aspx file but "interactive". You first have to enter the date and flight number, then click on show. The file will not be downloaded. The problem might be that safari can't send the form ( we enter date and flight number), process it and send it back.
Where do I enter the code "defaults write com.apple.Safari WebKitOmitPDFSupport NO" ?
We have others files which have the ending xy_PDF.aspx that are downloaded and opened on a new safari window but this files are not interactive.
Thank you
paldo is offline   Reply With Quote
Old 03-14-2010, 10:08 AM   #7
benwiggy
League Commissioner
 
Join Date: Aug 2006
Location: London
Posts: 5,594
Quote:
Originally Posted by paldo
Where do I enter the code "defaults write com.apple.Safari WebKitOmitPDFSupport NO" ?

In the Terminal app. But this relates to displaying PDFs in Safari, nothing else.

So does the page display in Safari BEFORE you enter the data and submit? Or will this page just not display in Safari at all?

It may be that the page is not generating standard HTML/Javascript, but some MS nonsense, which the other browsers are accommodating.
benwiggy is offline   Reply With Quote
Old 03-14-2010, 10:41 AM   #8
paldo
Triple-A Player
 
Join Date: Dec 2006
Location: Switzerland
Posts: 175
Yes, it displays the form first, then after you enter the data and click on show there is no response, it still shows the filled out form.
paldo is offline   Reply With Quote
Old 03-14-2010, 10:56 AM   #9
benwiggy
League Commissioner
 
Join Date: Aug 2006
Location: London
Posts: 5,594
You might want to look through the page source, to see what is going on.

However, there is a new update to Safari, v4.05, which claims: "Stability improvements for websites with online forms". Perhaps that might make a difference.
benwiggy is offline   Reply With Quote
Old 03-14-2010, 11:52 AM   #10
paldo
Triple-A Player
 
Join Date: Dec 2006
Location: Switzerland
Posts: 175
I did the safari update, but no improvement. I attached the page source, I don't see anything that can be the reason.

Thank you

Quote:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
****** **********="Expires" ***********">
****** **********="Last modified" content="now">
****** **********="Pragma" content="no-cache">
****** **********="Cache-Control" content="no-cache, must-validate">
****** name="robots" content="noindex">
<title>Crewlink </title>
<link rel="STYLESHEET" href="/Style.css" type="text/css">
</head>
<frameset cols="203,*" border="0" frameborder="0" framespacing="0">
<frame name="content" src="../LeftNavigation.aspx" scrolling="auto" noresize marginwidth="0" marginheight="0" border="0" frameborder="0" framespacing="0">
<frame name="main" src="../Main.aspx" scrolling="auto" marginwidth="0" marginheight="0" border="0" frameborder="0" framespacing="0">
</frameset>
<noframes>
<body>
<p align="center">
Diese Seite verwendet Frames. Frames werden von Ihrem Browser aber nicht unterstuetzt.<br>
Bitte laden Sie eine neue Browser-Version herunter (Netscape, Internet Explorer)
bei:</p>
<p align="center">
<a href="http://www.microsoft.com">www.microsoft.com</a></p>
<p align="center">
<a href="http://www.netscape.com">www.netscape.com</a></p>
<p align="center">
<a href="http://www.tucows.com">www.tucows.com</a></p>
<p align="center">
&nbsp;</p>
<p align="center">
&nbsp;</p>
</body>
</noframes>
</html>

paldo is offline   Reply With Quote
Old 03-14-2010, 12:05 PM   #11
benwiggy
League Commissioner
 
Join Date: Aug 2006
Location: London
Posts: 5,594
That is the source for a sort of holder page, while the real data is hidden in a sub-frame.
Try right-clicking on the main area of the page, and select "View as Source".
benwiggy is offline   Reply With Quote
Old 03-14-2010, 12:13 PM   #12
paldo
Triple-A Player
 
Join Date: Dec 2006
Location: Switzerland
Posts: 175
Thank you.


Quote:
<html xmlns="http://www.w3.org/1999/xhtml" >
<head><title>
Crew Composition
</title><link href="../stylesheets/new_crewlink.css" rel="stylesheet" type="text/css" />
<script src="../script/navigation.js" type="text/javascript"><!-- --></script>
</head>
<body>
<form name="form1" method="post" action="CrewComposition.aspx" id="form1">
<div>
<input type="hidden" name="__LASTFOCUS" id="__LASTFOCUS" value="" />
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="uVbEO1KQJu1uTtiAfurQBX+bbLYF5Vdj+TVjqEq8qs+SRXnB56Imei1X2XAajUzoBzIhjU/RY/Ede2ymEl3n1bKjb/beIiXwBWY28TsrZXuSGpQG1cLhVlK74Ps0pXDyWkhooH6IJvc=" />
</div>

<script type="text/javascript">
//<![CDATA[
var theForm = document.forms['form1'];
if (!theForm) {
theForm = document.form1;
}
function __doPostBack(eventTarget, eventArgument) {
if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
theForm.__EVENTTARGET.value = eventTarget;
theForm.__EVENTARGUMENT.value = eventArgument;
theForm.submit();
}
}
//]]>
</script>


<script src="/CrewLink/WebResource.axd?d=VHyAL1ncmv4icPVqezxHNw2&amp;t=633956632969650110" type="text/javascript"></script>


<script src="/CrewLink/WebResource.axd?d=9oHsvsKeNZOj9SUOslXQtw2&amp;t=633956632969650110" type="text/javascript"></script>
<div>

<input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />
<input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" />
<input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="FJzn6bz/Zo0hCQVUZ4izUeOCJiDNMH27c20tETxLGPagUgnOWCu/lt4+N5HNs/nI0/XXKnyDL2QAwA36/Ee3FqHVPGRv2aRR11o/4rgew4g=" />
</div>
<!-- Rebuild cross page post back with nav() JavaScript to support different target windows.
Use this marker for a real post back to this page. -->
<input type="hidden" name="___POST_BACK" id="___POST_BACK" value="1" />
<div>
<div class="header">Crew Composition</div>
<table border="0" cellpadding="2" cellspacing="0" class="standard">
<tr>
<th colspan="5">Specific Flight</th>
</tr>
<tr>
<td style="text-align: right; width: 129px;">date:</td>
<td colspan="4">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<input name="TB_Date" type="text" value="14.03.2010" maxlength="10" id="TB_Date" tabindex="2" size="10" /> <input type="image" name="IB_Date" id="IB_Date" tabindex="3" src="../images/calendar.gif" style="border-width:0px;" />
</td>
<td>

</td>
<td>&nbsp;<span title="Select this checkbox if the date has to be seen as local time (default UTC)"><input id="CB_DateLocal" type="checkbox" name="CB_DateLocal" /><label for="CB_DateLocal">Local time</label></span></td>
</tr>
</table>
</td>
</tr>
<tr>
<td style="text-align: right; width: 129px;">Airline:</td>
<td style="width: 55px;">
<input name="TB_AirlineCode" type="text" maxlength="3" id="TB_AirlineCode" tabindex="4" size="3" value="LX" />
</td>
<td style="width: 50px;">FLT.Nr.</td>
<td style="width: 97px;">
<input name="TB_FlightNum" type="text" maxlength="5" id="TB_FlightNum" size="10" />
</td>
<td class="button">
<input type="submit" name="GetSpecificFlight" value="Show" onclick="nav('CrewComposition_PDF.aspx', '_blank');" id="GetSpecificFlight" tabindex="1" />
</td>
</tr>
<tr>
<td style="width: 129px;"></td>
<td style="width: 55px;" class=".small_txt">e.g LX</td>
<td style="width: 50px;"></td>
<td style="width: 97px;" class=".small_txt">e.g. 16</td>
<td></td>
</tr>
<tr>
<td colspan="5"> </td>
</tr>
</table>
<br />
</div>


<script type="text/javascript">
//<![CDATA[
WebForm_AutoFocus('TB_FlightNum');//]]>
</script>
</form>
</body>
</html>

paldo is offline   Reply With Quote
Old 03-14-2010, 04:44 PM   #13
benwiggy
League Commissioner
 
Join Date: Aug 2006
Location: London
Posts: 5,594
Don't know. Hard to see if anything is non-standard or not working in all that JavaScript.

I guess if you can't appeal to the developers, then you'll have to use another browser for that page.
benwiggy is offline   Reply With Quote
Old 03-14-2010, 06:24 PM   #14
styrafome
Hall of Famer
 
Join Date: Nov 2004
Posts: 3,818
Just checking, but on some of these types of database-driven sites I know won't get output if the Safari pop-up blocker or other ad/content-blocking software is on. Do you have anything like this active?
styrafome is offline   Reply With Quote
Old 03-14-2010, 07:13 PM   #15
Appleart
Triple-A Player
 
Join Date: Mar 2010
Location: California
Posts: 122
There are also differences in the way browsers interpret pages. Perhaps there is something in the way those pages are coded that disagrees with Safari?
Appleart is offline   Reply With Quote
Old 03-15-2010, 12:10 AM   #16
Hal Itosis
Hall of Famer
 
Join Date: Apr 2002
Posts: 3,315
I'm curious why (15 posts into this) a link to the page hasn't been provided (or asked for) yet.

[i did google it the other day... but wasn't certain about the results.]
Hal Itosis is offline   Reply With Quote
Old 03-15-2010, 06:02 AM   #17
paldo
Triple-A Player
 
Join Date: Dec 2006
Location: Switzerland
Posts: 175
Quote:
Originally Posted by Hal Itosis
I'm curious why (15 posts into this) a link to the page hasn't been provided (or asked for) yet.

.

Because the site is password protected
paldo is offline   Reply With Quote
Old 03-15-2010, 06:05 AM   #18
paldo
Triple-A Player
 
Join Date: Dec 2006
Location: Switzerland
Posts: 175
Quote:
Originally Posted by styrafome
Just checking, but on some of these types of database-driven sites I know won't get output if the Safari pop-up blocker or other ad/content-blocking software is on. Do you have anything like this active?

No, pop-up windows are not blocked
paldo is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 07:49 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.