Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript How-To
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 9th, 2004, 06:42 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: , , .
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
Reply With Quote
  #2 (permalink)  
Old June 9th, 2004, 01:08 PM
Friend of Wrox
 
Join Date: Nov 2003
Location: , , .
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

<><
Reply With Quote
  #3 (permalink)  
Old June 9th, 2004, 02:01 PM
richard.york's Avatar
Wrox Author
Points: 5,506, Level: 31
Points: 5,506, Level: 31 Points: 5,506, Level: 31 Points: 5,506, Level: 31
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Camby, IN, USA.
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
::::::::::::::::::::::::::::::::::::::::::
Reply With Quote
  #4 (permalink)  
Old June 9th, 2004, 02:45 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: , , .
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.
Reply With Quote
  #5 (permalink)  
Old June 9th, 2004, 03:41 PM
richard.york's Avatar
Wrox Author
Points: 5,506, Level: 31
Points: 5,506, Level: 31 Points: 5,506, Level: 31 Points: 5,506, Level: 31
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Camby, IN, USA.
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
::::::::::::::::::::::::::::::::::::::::::
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 01:42 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.