473,394 Members | 1,739 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Mac fails on this

This is fine in IE 5 & 6 on Win, the target I was asked for <g>, but
breaks in IE5.x and Safari under OSX (line will wrap):
document.write('<a href="#"
onClick="getPrevLayout(\'results\',\'preview\',thi sPage,document.resultA
dd.item%RID%A.value); return false;">');

By dropping a few alerts, I see I'm not getting into getPrevLayout() so
I guess the Macs are being picky about writing code with code, rather
than there being an issue with the function being called.

Any ideas? Am I looking at the wrong issue?

Regards
Mark
Jul 23 '05 #1
2 1051
Mark Anderson wrote:
This is fine in IE 5 & 6 on Win, the target I was asked for <g>, but
breaks in IE5.x and Safari under OSX (line will wrap):
document.write('<a href="#"
onClick="getPrevLayout(\'results\',\'preview\',thi sPage,document.resultA
dd.item%RID%A.value); return false;">');

By dropping a few alerts, I see I'm not getting into getPrevLayout() so
I guess the Macs are being picky about writing code with code, rather
than there being an issue with the function being called.

Any ideas? Am I looking at the wrong issue?
item%RID%A this is not a proper js variable syntax.

Try:
document.forms[\"resultAdd\"].elements[\"item%RID%A\"].value

Mick


Regards
Mark

Jul 23 '05 #2
Mick,

Thanks. I should have explained that %RID% is a server-side include such
that "item%RID%A" arrive at the client as "item459A" or such.

Anyway, I've now fixed it. I just don't know how! Some lurking typo I
guess.

Regards

Mark

"Mick White" <mw******@BOGUSrochester.rr.com> wrote in message
news:uC********************@twister.nyroc.rr.com.. .
Mark Anderson wrote:
This is fine in IE 5 & 6 on Win, the target I was asked for <g>, but
breaks in IE5.x and Safari under OSX (line will wrap):
document.write('<a href="#"
onClick="getPrevLayout(\'results\',\'preview\',thi sPage,document.resultA dd.item%RID%A.value); return false;">');

By dropping a few alerts, I see I'm not getting into getPrevLayout() so I guess the Macs are being picky about writing code with code, rather than there being an issue with the function being called.

Any ideas? Am I looking at the wrong issue?


item%RID%A this is not a proper js variable syntax.

Try:
document.forms[\"resultAdd\"].elements[\"item%RID%A\"].value

Mick


Regards
Mark

Jul 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

36
by: Thomas | last post by:
after spending countless hours trying, i give up and hope to get some help in here. on server1 i got the web myweb.com with my test.asp. in the test.asp, i'm trying to read a file from an UNC...
5
by: wk | last post by:
hi, in my code document.all.value works but document.getElementById.value fails. any ideas why?
1
by: Martin Burger | last post by:
Hello, I configured PHP 4.3.11 './configure' '--prefix=~/php-4.3.11' '--enable-memory-limit' '--enable-force-cgi-redirect' '--enable-track-vars' '--with-pcre-regex' '--with-mysql=shared'...
28
by: Sathyaish | last post by:
If fopen fails, is there a way to know why?
0
by: Winterminute | last post by:
I am trying to read a list of install programs using WMI with ASP.NET/C#. However, it fails with "Invalid Class". I have confirmed that if I query LOCALHOST then it works fine, but if I query a...
6
by: kenneth fleckenstein nielsen | last post by:
Hi guru's It runs ok on my developmaschine, and on the test server that i've set up. but fails after installing on the customers server. I made a XML webservice that does these steps: a) access a...
2
by: Anbu | last post by:
Sorry for cross posting the query. But I need a resolution as early as possible. I have developed an application to authenticate the user based on LDAP Search and authentication. The Windows...
12
by: Jim Rodgers | last post by:
I have a big asp file that has an error under certain conditions -- totally repeatable. However, it only fails when I set response.buffer = True at the top. WHen I set it False in order to debug...
6
by: comp.lang.php | last post by:
I am using session_start() on index.php and for some reason sometimes it'll fail. No warnings, no errors, no notices, not even after prepending error_reporting(E_ALL) and ini_set('display_errors',...
2
by: =?Utf-8?B?YWxiZXJ0b3Nvcmlh?= | last post by:
Hi, I'm using Threads, and when I try to do Server.Transfer, I recieved an error. (child object does not exist...) My Code: Dim t As New Thread(AddressOf Hilo) Private Sub Hilo()...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.