Results 1 to 13 of 13
  1. #1
    Join Date
    Oct 2009
    Posts
    8

    Unanswered: 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

  2. #2
    Join Date
    Mar 2003
    Location
    The Bottom of The Barrel
    Posts
    6,102
    Provided Answers: 1
    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? ***

  3. #3
    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

  4. #4
    Join Date
    Mar 2003
    Location
    The Bottom of The Barrel
    Posts
    6,102
    Provided Answers: 1
    Quote Originally Posted by peterg2000 View Post
    The application is running on a Viux server !
    What's a Viux server?

    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.

    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? ***

  5. #5
    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

  6. #6
    Join Date
    Mar 2003
    Location
    The Bottom of The Barrel
    Posts
    6,102
    Provided Answers: 1
    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? ***

  7. #7
    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

  8. #8
    Join Date
    Oct 2002
    Location
    Baghdad, Iraq
    Posts
    697
    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.

  9. #9
    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

  10. #10
    Join Date
    Nov 2004
    Location
    out on a limb
    Posts
    13,692
    Provided Answers: 59
    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 on the Tiger 800 or the Norton

  11. #11
    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

  12. #12
    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

  13. #13
    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.

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •