Wrox Programmer Forums
|
Javascript How-To Ask your "How do I do this with Javascript?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 9th, 2004, 06:42 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 347
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Adam H-W
Default not working on a macintosh

Hi there

I'm using this function

function changeSection(Frame, Path)
    {
    var fra = document.getElementById(Frame);
    fra.src = Path;
    }

to call data into an iframe.

this is what I'm using for the link:

javascript:changeSection('main', 'main_section.asp?id=<%=intCategoryID%>');

all things are hunky dory on a PC but when I try it on a Macintosh, the link doesn't work - infact it doesn't even work as a link.

does anyone know why?
do macintoshes not recognise the Id element?

cheers

Adam
 
Old June 9th, 2004, 01:08 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
Default

I don't know if Macs recognize the getElementById() function.... maybe, not sure.

Snib

<><
 
Old June 9th, 2004, 02:01 PM
richard.york's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
Default

It doesn't really have anything to do with a Mac it has to do with the browser you're trying to run it on. What browser are you trying to run it on? Have you checked that browser's website to see if the method is supported?


Regards,
Rich

::::::::::::::::::::::::::::::::::::::::::
The Spicy Peanut Project
http://www.spicypeanut.net
::::::::::::::::::::::::::::::::::::::::::
 
Old June 9th, 2004, 02:45 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 347
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Adam H-W
Default

Hi Rich

Well, it's internet explorer 6 on the mac so I imagine it's pretty up to date.
 
Old June 9th, 2004, 03:41 PM
richard.york's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
Default

lol, IE 6? There is no IE 6 for Mac! I assume you mean 5.x?

A quick google leads me to suppose that getElementById is not implemented in IE 5 for Mac.. so either the erroneous task of browser and platform detection is in order, ignore it all together (lots of Mac users are diehard users of browsers like Safari and Mozilla anyway), or take another approach. Microsoft has abandoned its standalone IE browser for all platforms, in Windows its being integrated with their next OS. So a new IE for Mac is never going to happen! Instead they've done a browser in MSN for OS X, which has fantastic support for standards. Personally I wouldn't worry about it too much.

Regards,
Rich

::::::::::::::::::::::::::::::::::::::::::
The Spicy Peanut Project
http://www.spicypeanut.net
::::::::::::::::::::::::::::::::::::::::::





Similar Threads
Thread Thread Starter Forum Replies Last Post
window.opener working .... not working alyeng2000 Javascript How-To 5 January 5th, 2007 08:05 AM
Local COM working , but not working at Web Serv nagen111 .NET Web Services 3 February 19th, 2005 04:22 AM
Uncompressed TIFF from Macintosh not24 C# 0 December 14th, 2004 07:59 PM
Internet Explorer between Windows and MacIntosh rpalanivelu Javascript 2 August 31st, 2004 10:52 PM
Can Macintosh load <div>? danielh Javascript How-To 1 May 13th, 2004 10:27 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.