Newbie help required

J

Jim S

I have incorporated a little bit of javascript into my website. I used
'Lightview', one of the Lightbox clones and it works well enough on my
desktop http://www.jimscot.myby.co.uk/Latest/Latest.html.

The site itself works fine on my mobile (cellphone) until I click on the
thumbnails then all I get is a white screen. Do mobiles not run javascript
or have I to learn something else new?
 
J

JR

I have incorporated a little bit of javascript into my website. I used
'Lightview', one of the Lightbox clones and it works well enough on my
desktophttp://www.jimscot.myby.co.uk/Latest/Latest.html.

The site itself works fine on my mobile (cellphone) until I click on the
thumbnails then all I get is a white screen. Do mobiles not run javascript
or have I to learn something else new?

Hi,
How can 'Lightview' be considered "light" using Prototype.js (4872
lines), script.aculo.us effects.js (1130 lines), scriptaculous.js (60
lines), and three hundred more lines of lightview.js itself?

With so many code lines from so different libraries, I think that it
should be extremely difficult to know why the site doesn't work in
mobile phones.

Cheers,
JR
 
J

Jim S

Hi,
How can 'Lightview' be considered "light" using Prototype.js (4872
lines), script.aculo.us effects.js (1130 lines), scriptaculous.js (60
lines), and three hundred more lines of lightview.js itself?

With so many code lines from so different libraries, I think that it
should be extremely difficult to know why the site doesn't work in
mobile phones.

Cheers,
JR

Thanks JR
Like I said it's my first venture into javascript.
I chose it because of the separate navbar, but that's not an essential.
What is your lightbox program of choice or that of this ng?
 
J

JR

Thanks JR
Like I said it's my first venture into javascript.
I chose it because of the separate navbar, but that's not an essential.
What is your lightbox program of choice or that of this ng?

Hi Jim,
Many people in this ng are against 'cute effects' on a web page and
huge libraries such as Prototype, Script.aculo.us, jQuery, etc. So I
think c.l.js won't be of great help for you in this case. I'd like to
suggest that you address the problem to the developer of 'Lightview',
at http://www.nickstakenburg.com/projects/lightview/

Another suggestion, if you don't mind, would be developing an 'mobile
site', thus more adequate for mobile phone users, the same way many
companies do. E.g:
http://www.mirror.co.uk/mobile/

Please read this good article about mobile websites:
http://econsultancy.com/blog/3032-best-practice-tips-for-mobile-websites

Cheers,
JR
 
S

SAM

Le 11/6/09 11:15 PM, Jim S a écrit :
I have incorporated a little bit of javascript into my website. I used
'Lightview', one of the Lightbox clones and it works well enough on my
desktop http://www.jimscot.myby.co.uk/Latest/Latest.html.

The site itself works fine on my mobile (cellphone) until I click on the
thumbnails then all I get is a white screen. Do mobiles not run javascript
or have I to learn something else new?

I see that this page launches a lot of JS libs (see below)
If you have no real use of biggest ones, for "ligtboxing" you may use
Litebox that doesn't need any other lib to work :
<http://www.dolem.com/lytebox/>
and that is much less heavy


Weight of the page Latest :
Documents (1 fichier) 4 Ko
Images (18 fichiers) 26 Ko
Objects (0 fichiers)
Scripts (9 fichiers) 219 Ko
StyleSheets (2 f) 11 Ko
Total 261 Ko

So ... 219ko of JS
just for 30ko of real data ...
Is it a good idea relatively with phones ?
 
J

Jim S

Hi Jim,
Many people in this ng are against 'cute effects' on a web page and
huge libraries such as Prototype, Script.aculo.us, jQuery, etc. So I
think c.l.js won't be of great help for you in this case. I'd like to
suggest that you address the problem to the developer of 'Lightview',
at http://www.nickstakenburg.com/projects/lightview/

Another suggestion, if you don't mind, would be developing an 'mobile
site', thus more adequate for mobile phone users, the same way many
companies do. E.g:
http://www.mirror.co.uk/mobile/

Please read this good article about mobile websites:
http://econsultancy.com/blog/3032-best-practice-tips-for-mobile-websites

Cheers,
JR

Thanks I'll look at those sites.
The original question arose because a bought a mobile phone with a screen
big enough to see websites for the first time. I had never thought of this
before.
 
J

Jim S

Le 11/6/09 11:15 PM, Jim S a écrit :

I see that this page launches a lot of JS libs (see below)
If you have no real use of biggest ones, for "ligtboxing" you may use
Litebox that doesn't need any other lib to work :
<http://www.dolem.com/lytebox/>
and that is much less heavy


Weight of the page Latest :
Documents (1 fichier) 4 Ko
Images (18 fichiers) 26 Ko
Objects (0 fichiers)
Scripts (9 fichiers) 219 Ko
StyleSheets (2 f) 11 Ko
Total 261 Ko

So ... 219ko of JS
just for 30ko of real data ...
Is it a good idea relatively with phones ?

Thanks.
You are perfectly right of course and I would wonder why anybody but me
would use a mobile phone to access the site :eek:?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,079
Messages
2,570,575
Members
47,207
Latest member
HelenaCani

Latest Threads

Top