473,732 Members | 2,219 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Safari read/write cookies with javascript?

I am using a standard javascript that I downloaded from
javascriptsourc e.com to read from and fill in a form using cookies.
The page tests well in every browser except Apple's Safari (from
10.3.2)

Unfortunately, my clients daughter uses Safari so I have to get it to
work with it, even though most of his clients use IE.

What do I need to do to change the code so this will all work in
Safari?

The test pages can be seen at
http://www.mvldesign.com/form_cookie.html

When I run these pages on IE and look in the cookies I can see that
the cookie has been written as expected. Plus the form fills in on the
next page. In Safari I see that the cookie has not been written plus
the form doesn't fill in which is the whole reason for the code.

If there are any other sources of code that I can use with all
browsers including Safari I'd love to hear about them. Or any other
tutorials or ideas.

Thanks

Sam Wuebben
Jul 20 '05 #1
1 2978
Sam Wuebben <sa*@alltm.or g> wrote:
I am using a standard javascript that I downloaded from
javascriptsourc e.com to read from and fill in a form using cookies.
The page tests well in every browser except Apple's Safari (from
10.3.2)

Unfortunately, my clients daughter uses Safari so I have to get it to
work with it, even though most of his clients use IE.

What do I need to do to change the code so this will all work in
Safari?

The test pages can be seen at
http://www.mvldesign.com/form_cookie.html

When I run these pages on IE and look in the cookies I can see that
the cookie has been written as expected. Plus the form fills in on the
next page. In Safari I see that the cookie has not been written plus
the form doesn't fill in which is the whole reason for the code.

If there are any other sources of code that I can use with all
browsers including Safari I'd love to hear about them. Or any other
tutorials or ideas.


http://developer.apple.com/internet/safari_faq.html#6

m.

--
matt neuburg, phd = ma**@tidbits.co m, http://www.tidbits.com/matt/
AppleScript: The Definitive Guide
http://www.amazon.com/exec/obidos/AS...methingsbymatt
Read TidBITS! It's free and smart. http://www.tidbits.com
Jul 20 '05 #2

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

Similar topics

1
4377
by: Mike | last post by:
Hello, I want to read and write key'ed cookies from both javascript and ASP. I can't find any javascript that reads and writes cookies with keys, so that it is compatible with ASP like the following: <% Response.Cookies("user")("firstname")="John" Response.Cookies("user")("lastname")="Smith"
4
6015
by: Bernard | last post by:
Hi, I am suddenly getting Safari script errors with the following user agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/125.2 (KHTML, like Gecko) Safari/125.8 In a frameset scenario, the framesetting document (top) contains a
1
2797
by: David M. Gauntt | last post by:
I have been testing some javascript for my professional society web page, and found that I couldn't get Safari to save any cookies. No matter what I assign to document.cookie, I get an empty string when I read back document.cookie. In researching this problem, I found a function on the Apple website to test for cookies. I found that the function sometimes tells me cookies are enabled and sometimes disabled, as follows: 1) Open the...
1
2224
by: Mike | last post by:
Hello, I can't find any javascript that reads and writes cookies with keys, so that it is compatible with ASP (I want to read and write cookies from both javascript and ASP) for example in ASP: <% Response.Cookies("user")("firstname")="John" Response.Cookies("user")("lastname")="Smith"
5
5210
by: joaopedrogoncalves | last post by:
Hi, I want to load an external javascript file, get its results and stick them inside a <div> block. I also want to do this in several places on a web page. This way the browser doesn't have to wait for the external resource to load to show up the page, thus giving a perceiving faster load time for the user.
3
1675
by: Shiva | last post by:
This is my HTML Page containing javascript --------------------------------------------------- <html> <head> <script language="JavaScript"> var isSafari = (agent.indexOf("Safari") != -1); // LINE 1 var myimg = new Object(); // LINE 2
2
2511
by: drew197 | last post by:
I am a newbie. This is someone else's code which I have to modify to work in Mozilla and Safari. The changes I made so far have allowed it to work in Mozilla but not Safari. It seems to be getting hung up on the first line of code. I put an alert after that line and I never saw it in Safari but I did see it in Mozilla. Any Thoughts? Thanks, Andrew Here's the code:
2
2991
by: darren | last post by:
I have a small Javascript problem with that mutch love web browser safari, I tested the code on all other browsers PC (Win) and Linux and IE on the mac and it seams to work ok, but for some reason it will not work with safari. function domywindows() { //alert('test'); mywondows = window.open('writeme.html','TellAFriend','width=450,height=600'); mywondows.document.write("<html>");
0
8946
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8774
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
9235
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9181
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8186
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4550
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4809
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2721
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2180
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.