Thank you for being a valued part of the CNET community. As of December 1, 2020, the forums are in read-only format. In early 2021, CNET Forums will no longer be available. We are grateful for the participation and advice you have provided to one another over the years.

Thanks,

CNET Support

General discussion

ASP page not working in Mac OS (Safari)

May 27, 2007 11:28PM PDT

Following transferred from Mac OS Forum

Hi.

one of my web application developed in ASP/Access,some of the web pages is not working in Mac OS version 10 especially when i click the submit button, there is no response in the page its got struck. i am using Safari browser in Mac os. its working in windows OS. if any additional script for running ASP page in Mac Os??? if yes kindly send me the script....

thanx in advance provide me a solution to sorted out this issue.

Regards
Bahru

Discussion is locked

- Collapse -
Forms?
May 28, 2007 7:27AM PDT
- Collapse -
ASP Page not working in MAC OS
May 28, 2007 9:56PM PDT

Hi.

one of my intranet application developed in ASP/Access,some of the web pages is not working in Mac OS version 10 especially when i click the submit button, there is no response in the page its got struck. i am using Safari browser in Mac os. its working in windows OS. if any additional script for running ASP page in Mac Os??? if yes kindly send me the script....

thanx in advance provide me a solution to sorted out this issue.

Regards
Bahru
-----------------------------------------------


my page contain Javascirpt function n codes, is any additional code to add in the web page to run in Mac......

badly i need the solution to run the page in Mac...


bye.......

- Collapse -
Just a question.
May 29, 2007 8:28AM PDT

Dit you read the above answer by Sovereign? Somehow, it seems you didn't, because you just repeat your question.

And, no, we don't send scripts. If you need a script, and you can't find it out yourself with all the resources of the Internet at hand (and Sovereign gives 2, which I assume are useful), hire a programmer who can.

"Intranet" points to a company, and 'company' points to a budget to hire people if they need special expertise that's not in-house.
Ultimately, it's a simple calculation: take your hourly fee times the hours you spend yourself to solve the problem and compare it with the fee times the hours of Mac Safari specialist.

Kees

- Collapse -
Two links
May 29, 2007 2:51PM PDT

The two links I provided are two independent discussions about a very similar problem. I don't own a MAC nor have much experience with it, but from what I read on those two sites, it sounds like you are having this exact same problem.

If you have any other questions about this, don't hesitate to ask.

~Sovereign

- Collapse -
Also, just a side note
May 29, 2007 2:55PM PDT

CNET is here to help, but not do the work for you. We can lead you in the right direction, but some effort is required and perhaps some reading. We can not post, submit or send scripts in any way. I'd be more than happy to help you, but you have to let me know whether you tried and experimented with what those two discussions talked about, and what your outcome was.

Let us know!

~Sovereign

- Collapse -
A couple of ideas....
May 30, 2007 2:13AM PDT

1) What kind of authentication is the web server using for the ASP? If it is using some integrated Windows then this could be the source of problems.

2) Can you test the JavaScript in Safari to see that it is working? Supporting different browsers can cause issues and this may be worth examining to some extent.

Just a thought or two,
JB

- Collapse -
HTML hidden tag value is not working in Mac
Jun 3, 2007 6:08PM PDT

Thanx for reply....

javascript is working fine like client validation script alert and all fine ...but i found the following is problem

<input type="hidden" value="0" name="CmdAction">

<%Response.Write "<input type=""image"" onClick=""document.getElementById('CmdAction').value = 'Change Password';"" id=""CmdAct"" name=""CmdAct"" src=""images/save.gif"" >" %>


in the above code i m assigning the value to hidden Tag "cmdaction" as "Change Password", after submitting the value is taking to next page for password change.. this page work well in PC, but in Mac the value is not getting.....

strAction = request.Form("CmdAction")

in Mac "strAction " is empty but in PC i m getting "Change Password"

can u help me out in this issue.....

Regards
Bahrudeen

- Collapse -
A thought...
Jun 4, 2007 2:19AM PDT

Could you give the hidden input field an ID attribute that you set to "CmdAction"? That may be the issue in Safari though that is just a guess on my part.

Regards,
JB

- Collapse -
Thanx man
Jun 4, 2007 3:36PM PDT

Wow... Thanx jbking its working fine.. really i break my head for 1 week. i vl touch with u in feature also......

- Collapse -
ASP Page not working in MAC OS
Jun 4, 2007 9:16PM PDT

hi..

sorry for disturb u again....

i have one input tag , value took from the popup window value..

<input size=41 type=text class=""text"" readonly name=" & TbFieldName & " value="""& estlocname &"""><input type=hidden id=" & TbFieldName1 & " name=" & TbFieldName1 &" value="""& estlocid &"""><A HREF='javascript:PopWin(""" & TbFieldName & """,""" & TbFieldName1 & """,""Est"")'></a>

by the above code, javascript fucntion for opening one popup..

---------------------
function PopWin(vField, vFieldId, vParam )
{

var nW = window.open("", "popup", "resizable=yes,scrollbars=yes,top=100,left=100,width=650,height=420");
nW.location.href = "popEst.asp?rqFieldName=" + vField + "&rqFieldID=" + vFieldId + "&Param=" + vParam ;
nW = null;

}
-----------------------------

in the popEst.asp page,

im populating all the values from table, if i m click one value from the popup window value should appear in the input tag...

response.write "<td><left><a href=""javascript:sendback('" & replace(EstName,"'","\'") & "', " & EstID & ")"">" & EstName & "</a></left></td>"

function sendback(sWo,sWl,sW2,sW3,sW4)
{

window.opener.document.all.<%=MainFormFldName%>.value = sWo;
window.opener.document.all.<%=MainFormFldID%>.value = sWl;
}

all the code working fine in PC, but not in Mac.. i found that in javascript ASP variable is not recognize..

window.opener.document.all.<%=MainFormFldName%>.value = sWo;

in the above line MainFormFldName is showing "varaible undefined" error i m getting when i try to alert the <%=MainFormFldName%> like
alert (<%=MainFormFldName%>);

i dnk i wrote lot, but i want to clearly u my problem...

expecting ur solution......

- Collapse -
Script in script issues....
Jun 5, 2007 2:25AM PDT

The last part is easy to explain why there is an error there as the alert value has to be either a variable or a string as if <%=MainFormFldName%> evaluated to foo then the Javascript has to have a variable called foo while if you want the alert to show the word foo then you'd have to call alert('<%=MainFormFldName%>'); so that when the ASP does evaluate the alert is calling on a string rather than some undefined variable. If you want to get the Field then use the getElementById function. It may be that windows supports things that let you be a bit lazy while the Safari is expecting things to be a bit more formal, e.g. are all your variables declared and initialized properly in the resulting Javascript?