If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > poor behaviour on a Mac!

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-13-09, 20:09
peterg2000 peterg2000 is offline
Registered User
 
Join Date: Oct 2009
Posts: 8
poor behaviour on a Mac!

I wrote an app for a client that uses a Mac herself! I tested the app with several different browsers and it runs great , but when she tried to run the page on her Mac it doesn't show some calculations, which use simple VBscripting!

Dim variable

some code that loops thru a database and when true does ...
variablehere=variablehere +1

later on the page I do

<td>The present count is = <input name="variablehere" type="text" id="variablehere" size="60" value="<%=variablehere%>" /></td>

I have several other variations that all work fine on Windows based computers! It shows the running totals fine , but on a Mac all the variables show 0 .
This is with both Firefox and Safari!


Is there some peculiarity I'm unaware of for this code to run on a mac?


Thanks

Pete
Reply With Quote
  #2 (permalink)  
Old 12-14-09, 12:06
Teddy Teddy is offline
Purveyor of Discontent
 
Join Date: Mar 2003
Location: The Bottom of The Barrel
Posts: 6,042
Where is this "running"? Are you aware of the differences between client side vs. server side behavior?
__________________
oh yeah... documentation... I have heard of that.

*** What Do You Want In The MS Access Forum? ***
Reply With Quote
  #3 (permalink)  
Old 12-14-09, 12:53
peterg2000 peterg2000 is offline
Registered User
 
Join Date: Oct 2009
Posts: 8
The application is running on a Viux server ! We access the pages via any PC
and they work fine ! But on a MAC its missing the ability to show running totals!

I don't see where behaviors would come into play as a web browser should
work the same way on all platforms whether it be on a Mac, PC, Unix whatever!

Is there a difference in the way a Mac interprets VBScripts is an ASP page?




Pete
Reply With Quote
  #4 (permalink)  
Old 12-14-09, 14:51
Teddy Teddy is offline
Purveyor of Discontent
 
Join Date: Mar 2003
Location: The Bottom of The Barrel
Posts: 6,042
Quote:
Originally Posted by peterg2000 View Post
The application is running on a Viux server !
What's a Viux server?

Quote:
I don't see where behaviors would come into play as a web browser should
work the same way on all platforms whether it be on a Mac, PC, Unix whatever!
Oof... Welcome to the world of web development. Web browsers can and will differ WILDLY from eachother when rendering the exact same html/css. In fact, there's an entire cottage industry that has sprung up around this fact.

Quote:
Is there a difference in the way a Mac interprets VBScripts is an ASP page?
There is if you're not using an ASP enabled web server and you're loading the pages locally instead...
__________________
oh yeah... documentation... I have heard of that.

*** What Do You Want In The MS Access Forum? ***
Reply With Quote
  #5 (permalink)  
Old 12-14-09, 16:44
peterg2000 peterg2000 is offline
Registered User
 
Join Date: Oct 2009
Posts: 8
Viux is an internet service provider!

The web pages work fine from a PC based browser! But if you use a Mac I can't
see the running totals that work on a PC based browser!

If I use Firefox on a PC it works fine , but Firefox on a Mac gives the error!
I've also tried Apples own Safari and it still has the same problem!

Its not the ASP as such I'm worried about but rather the odd behavior of the MAC!
I'm just wondering if ASP with VBscripts should work OK on a MAC!

Pete
Reply With Quote
  #6 (permalink)  
Old 12-14-09, 17:36
Teddy Teddy is offline
Purveyor of Discontent
 
Join Date: Mar 2003
Location: The Bottom of The Barrel
Posts: 6,042
VBScripts execute on the server, not the client.

VBScript never gets sent to the client. The client has no clue how the page it just received was generated (short of some header information).

I'd look closer at the generated source and less at the asp.
__________________
oh yeah... documentation... I have heard of that.

*** What Do You Want In The MS Access Forum? ***
Reply With Quote
  #7 (permalink)  
Old 12-14-09, 17:45
peterg2000 peterg2000 is offline
Registered User
 
Join Date: Oct 2009
Posts: 8
The server should be sending the SAME code to a client on a Mac or a PC. The
server doesn't differentiate what platform the client is running on !

So if a client with a PC on Firefox calls up the page, it should be the same code
a client running Firefox on a Mac gets! they should technically both get the same code!
but the PC based client works fine and the Mac client doesn't!

Is there a difference on how code is interpreted on a PC based web browser verses
a Mac based browser?

Has anyone ever heard of code that works on a PC but not on a Mac , even though its the same code!


Pete
Reply With Quote
  #8 (permalink)  
Old 12-14-09, 19:29
sco08y sco08y is offline
Registered User
 
Join Date: Oct 2002
Location: Baghdad, Iraq
Posts: 696
Quote:
Originally Posted by Teddy View Post
VBScripts execute on the server, not the client.

VBScript never gets sent to the client.
I understand what you mean, but if it's in a script tag, it's technically running on IE. I haven't tried with later versions of IE, but in the past, you could run *any* ActiveScripting language within IE.

So, to be clear:

Code:
<% This is code will run VBScript on the server. %>
<script lanuage="vbscript">
This will run VBScript on Internet Explorer.
</script>
If it is the case that you have script tags running VBScript, you should replace them with Javascript. If you're using VBScript, your page won't run on Linux or even Firefox (which has ~20% of browser share) on Windows.
Reply With Quote
  #9 (permalink)  
Old 12-14-09, 20:29
peterg2000 peterg2000 is offline
Registered User
 
Join Date: Oct 2009
Posts: 8
Ok here is some code !
This is the first line in my asp page!

<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>

<%
Dim t_counter
Dim alli_c
%>

then later I do a bunch of counters like this ...
<%
While (NOT Recordset1.EOF)
t_counter=t_counter+1
%>
HTML stuff

<%
if(request.form("alli")="checked" and Recordset1.Fields.Item("alliance").value=1)then
alli_c=alli_c+1
end if
%>


later in the form I show the results!
<td bgcolor="#66CC99">&nbsp;total records=<%=t_counter%></td>
<td bgcolor="#66CC99">&nbsp;Alliance = <%=alli_c%></td>


Pete
Reply With Quote
  #10 (permalink)  
Old 12-15-09, 02:38
healdem healdem is online now
Jaded Developer
 
Join Date: Nov 2004
Location: out on a limb
Posts: 8,762
so you are running script on the client
as scoo8y says vbscript has limited browser support. you would be safer using javascript

do your web pages work correctly on other browsers running on Microsoft OS's such as Firefox, Chrome, Opera and so on?
__________________
I'd rather be riding my Versys or my Tiger 800 let alone the Norton
Reply With Quote
  #11 (permalink)  
Old 12-15-09, 10:25
peterg2000 peterg2000 is offline
Registered User
 
Join Date: Oct 2009
Posts: 8
I've tried the pages an every browser I could, IE6-7-8 , Firefox , Chrome ! They
all work fine under Windows! I'd change the code but I have several hundred lines of code for this page alone!

At least her main desktop is a Mac but she also has a PC so she can always use the PC for the few times she needs to access this particular page!

Next pages I do I'll do in Javascript! As soon as I get used to the differences.
I did most of my ASP for a national company intranet that had IE as standard browser so I adopted VBScript as the norm!

However I did use javascript for many of my routines! I'll dig up my old code!

Pete
Reply With Quote
  #12 (permalink)  
Old 12-15-09, 18:54
peterg2000 peterg2000 is offline
Registered User
 
Join Date: Oct 2009
Posts: 8
Thanks guys !

I just came back from my clients and low and behold everything works fine!
Last week I tried for an hour and couldn't get the page to show good numbers.
Today I asked to load the page to check some options and it worked fine!
I asked her if she ever had trouble loading other pages and she said no,so it
didn't make sense that it would be a VBscript or javascript problem as
there are a ton of pages just like mine that use VBScript as default!

I guess an occasional reboot for a Mac does some good as well!

Pete
Reply With Quote
  #13 (permalink)  
Old 12-16-09, 10:48
scooby_at_work scooby_at_work is offline
Registered User
 
Join Date: Sep 2009
Posts: 44
Quote:
Originally Posted by peterg2000 View Post
Thanks guys !

I just came back from my clients and low and behold everything works fine!
It's "lo and behold," lo is an exclamation from the same word "look" comes from.

Quote:
Today I asked to load the page to check some options and it worked fine!
I asked her if she ever had trouble loading other pages and she said no,so it
didn't make sense that it would be a VBscript or javascript problem as
there are a ton of pages just like mine that use VBScript as default!
None of the code you pasted was running on the Mac as anything inside <% and %> is handled by ASP on the server. Client-side VBScript is very rare on the web.
Reply With Quote
Reply

Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On