View unanswered posts | View active topics
It is currently Tue May 06, 2025 10:41 pm
|
Page 1 of 1
|
[ 10 posts ] |
|
Author |
Message |
tombolt
Spends far too much time on here
Joined: Fri Apr 24, 2009 8:38 am Posts: 2967 Location: Dorchester, Dorset
|
I'm putting a JavaScript slideshow in the portfolio section of my website. I know some of you browse with JavaScript turned off, but that's a pretty rare thing, so I'm not too bothered about people doing that as they'd made a conscious effort to switch it off and would expect reduced browsing as a result, but I was wondering if JavaScript will work okay with the iPhone and other smartphones?
If this is going to be a problem, I'm also going to have to come up with a solution to show something else if JavaScript is disabled. I know nothing about JavaScript and have used a free plugin to create it. If this is going to be a problem, I'll post a link and maybe one of you clever folk would be able to point me in the right direction to sorting it out.
Cheers all.
|
Mon Dec 07, 2009 1:52 pm |
|
 |
Linux_User
I haven't seen my friends in so long
Joined: Tue May 05, 2009 3:29 pm Posts: 7173
|
Somewhere, Nick is having a heart attack. 
|
Mon Dec 07, 2009 2:00 pm |
|
 |
tombolt
Spends far too much time on here
Joined: Fri Apr 24, 2009 8:38 am Posts: 2967 Location: Dorchester, Dorset
|
Yeah! I understand not liking unnecessary use of javascript, but sometimes there's just no other way of doing it. Actually, I could have done this in flash, but it would have taken about twenty times as long.
|
Mon Dec 07, 2009 2:21 pm |
|
 |
Nick
Spends far too much time on here
Joined: Thu Apr 23, 2009 11:36 pm Posts: 3527 Location: Portsmouth
|
If you are going to do it, then the best way to go about it is by having what you want to display to non-javascript browsers show as default. Then, you can use JavaScript to pull that out of the page and put your slideshow in. It might come as a pretty big surprise to hear that I actually did something myself for a site I made for someone a few years ago. This particular example uses PHP to create the array, but I'm sure there are some JavaScript functions available to do the same thing. When the page loads, PHP throws a random image into the container. If they have JavaScript enabled, then that image will change periodically. If they don't have JavaScript enabled it will remain the same, and only change when they refresh the page.
_________________
|
Fri Dec 18, 2009 4:49 pm |
|
 |
tombolt
Spends far too much time on here
Joined: Fri Apr 24, 2009 8:38 am Posts: 2967 Location: Dorchester, Dorset
|
That sounds ideal, thanks Nick.
|
Tue Dec 22, 2009 10:50 am |
|
 |
Nick
Spends far too much time on here
Joined: Thu Apr 23, 2009 11:36 pm Posts: 3527 Location: Portsmouth
|
No worries. By the way, I tested on my iPhone and that JavaScript runs fine - the images switch just as they do on a 'real' computer. I also tried it on a PC and it works just as it does on a 'real' computer. 
_________________
|
Thu Dec 24, 2009 12:05 am |
|
 |
big_D
What's a life?
Joined: Thu Apr 23, 2009 8:25 pm Posts: 10691 Location: Bramsche
|
Note: Adobe, Microsoft, Apple and Mozilla have all recommended their users turn off JavaScript this year - Mozilla currently says anybody not using versions 3.0.16 or 3.5.6 of Firefox should immediately disable JavaScript until they can upgrade due to in-the-wild exploits.
Adobe also currently recommend that all users of all versions of Acrobat and Reader disable JavaScript until the next quarterly patch cycle (January 12th), where version 9.12 of both Acrobat and Reader will be updated.
_________________ "Do you know what this is? Hmm? No, I can see you do not. You have that vacant look in your eyes, which says hold my head to your ear, you will hear the sea!" - Londo Molari
Executive Producer No Agenda Show 246
|
Tue Dec 29, 2009 7:08 am |
|
 |
tombolt
Spends far too much time on here
Joined: Fri Apr 24, 2009 8:38 am Posts: 2967 Location: Dorchester, Dorset
|
Interesting, that hasn't filtered down to me, so I suspect a lot of people will not have heard to have done that! Doesn't that seriously reduce the functionality of sites like Facebook?
|
Wed Dec 30, 2009 10:46 am |
|
 |
big_D
What's a life?
Joined: Thu Apr 23, 2009 8:25 pm Posts: 10691 Location: Bramsche
|
It has been in the news section of PC Pro, IT Pro, Mac User, ZDNet and CNet over the last couple of weeks... 
_________________ "Do you know what this is? Hmm? No, I can see you do not. You have that vacant look in your eyes, which says hold my head to your ear, you will hear the sea!" - Londo Molari
Executive Producer No Agenda Show 246
|
Wed Dec 30, 2009 1:31 pm |
|
 |
Nick
Spends far too much time on here
Joined: Thu Apr 23, 2009 11:36 pm Posts: 3527 Location: Portsmouth
|
It probably would, although I'd like to think that those sites would degrade properly I doubt they would work without JavaScript. You might get a nice message telling you that you don't have JavaScript turned on and that you need it. 
_________________
|
Thu Dec 31, 2009 6:10 pm |
|
|
|
Page 1 of 1
|
[ 10 posts ] |
|
Who is online |
Users browsing this forum: No registered users and 25 guests |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum
|
|