New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
Web Design and Hosting Creating sites, scripting, and hosting discussions.

designing for safari problem


Post Reply New Thread Subscribe

 
Thread Tools
cyanide
Guest
 
Posts: n/a

Hi everyone,

Just came across this board . And thankfully too !

Hope some good person can give me a heads-up on a webpage, I've been working on.

Specifically user-activated pop ups utilizing php and javascript
It works on IE, Netscape, Mozilla, Opera - but I'll be darned if for some reason the picture in the pop up doesn't show in Safari. IE on Mac works fine.

The page is on this testing domain www.eatseeker.ca

Any and all suggestions very much welcome

Thanks !
QUOTE Thanks
Murlyn

 
Murlyn's Avatar
 
Member Since: Jun 11, 2003
Location: Mount Vernon, WA
Posts: 4,909
Murlyn is a name known to allMurlyn is a name known to allMurlyn is a name known to allMurlyn is a name known to allMurlyn is a name known to allMurlyn is a name known to allMurlyn is a name known to all
Mac Specs: MacBook Pro 2.6 GHz Core 2 Duo 4GB RAM OS 10.5.2

Murlyn is offline
Well my advice is to use a different javascript for this.. it's pretty interesting code and Im not sure exactly why you are doing a browser check..

I have a bit of code that will do a simple popup window plus a simple window resize. You'll need something like php to get the right image though..
QUOTE Thanks
cyanide
Guest
 
Posts: n/a

Hi Murlyn,

Doing a browser check is a normal part of doing websites for me. Unfortunately, we do not have Macs in the office, so it recently came to our attention that the pop up image doesn't show up.

We really had to modify this Javascript code and incorporate php so that the client can upload his own images.

Don't really want to use a different script.... worked too hard to get this one to work, with the mouseovers, etc.

It's weird that the Javascript pop up works, but just the pic doesn't show up.

Any ideas how I can tweak the code to make it work ?

Thanks
QUOTE Thanks
Murlyn

 
Murlyn's Avatar
 
Member Since: Jun 11, 2003
Location: Mount Vernon, WA
Posts: 4,909
Murlyn is a name known to allMurlyn is a name known to allMurlyn is a name known to allMurlyn is a name known to allMurlyn is a name known to allMurlyn is a name known to allMurlyn is a name known to all
Mac Specs: MacBook Pro 2.6 GHz Core 2 Duo 4GB RAM OS 10.5.2

Murlyn is offline
My guess is that, you first call about:blank.. and I think from there safari doesnt allow you to do anything else. The problem with browser checks is that you're probably not using code that all browser can see If you write code that all browser can use then you don't have to worry about checking.. and I understand that you've probably done that and you are needing very specialized scripts, but that comment was more for anyone reading this thread

Ok seriously what I would do is just use javascript to open up another window with a certain get variable and then use PHP to parse the $_GET variable and show what image you are wanting...

And about the "worked too hard to get this one to work..".. well.. it doesnt.. It's hard for me to get certain clients to see that.. sometimes they go with a very bad design.. why? because it was so hard to put together.. when they could actually go with a much better design.. but they didn't put their blood sweat and tears into it.. so they dont.

Anyways what I said with the PHP would be the easiest way of doing it. If it is someone else that does PHP you can just post here again and I can write a quick little script that will help you out

Cheers!
QUOTE Thanks
cyanide
Guest
 
Posts: n/a

Hey Murlyn ,

Thanks for your reply.

You're killin' me with the idea of re-writing the script LOL

When it was first completed, I had a hard time with Netscape, that's why the browser check. And then getting the hover and onclick to work ................ whew !

The php code is pretty simple. variables are placed where the pictures are to go. It was done so the pics can be uploaded and placed without messing with the code on the page.

So, you don't think that the code can be tweaked a bit for Safari?
It just seems weird that everything else with the code works !! ..........except the pic doesn't show up :confused:
QUOTE Thanks
Murlyn

 
Murlyn's Avatar
 
Member Since: Jun 11, 2003
Location: Mount Vernon, WA
Posts: 4,909
Murlyn is a name known to allMurlyn is a name known to allMurlyn is a name known to allMurlyn is a name known to allMurlyn is a name known to allMurlyn is a name known to allMurlyn is a name known to all
Mac Specs: MacBook Pro 2.6 GHz Core 2 Duo 4GB RAM OS 10.5.2

Murlyn is offline
Yeah I agree, but if you look at the source code.. the javascript is most definitely not writing to the page. If you can use maybe a document.write or something like that.. it just might work.. or throw all that write stuff into a variable and then do a umm.. not opener.write, but.. hmm... child.write? or actually whatever you named that new window.. do a name.document.write.. I believe.. maybe that would work. At least it gives you a direction to go with your current code
QUOTE Thanks

Post Reply New Thread Subscribe


« PHP Temporary Upload Folder | GoLive! or BBEdit? »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Importing video problem woofboy111 Movies and Video 11 04-01-2004 05:22 AM
g4 ibook trackpad problem chafner Apple Notebooks 3 01-30-2004 09:11 AM
Startup problem OS 10.2 and G4 450 AGP lvinay OS X - Operating System 2 09-30-2003 11:21 AM
ADSL Connect problem ResErection OS X - Operating System 4 07-11-2003 06:19 PM

All times are GMT -4. The time now is 02:17 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?