HighDots Forums  

Newbie help required

Javascript JavaScript language (comp.lang.javascript)


Discuss Newbie help required in the Javascript forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jim S
 
Posts: n/a

Default Newbie help required - 11-06-2009 , 05:15 PM






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?
--
Jim S
Tyneside UK
www.jimscott.co.uk

Reply With Quote
  #2  
Old   
JR
 
Posts: n/a

Default Re: Newbie help required - 11-06-2009 , 05:38 PM






On Nov 6, 8:15*pm, Jim S <j... (AT) jimXscott (DOT) co.uk> wrote:
Quote:
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?
--
Jim S
* * * * Tyneside UK
* * *www.jimscott.co.uk
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

Reply With Quote
  #3  
Old   
Jim S
 
Posts: n/a

Default Re: Newbie help required - 11-06-2009 , 06:26 PM



On Fri, 6 Nov 2009 14:38:22 -0800 (PST), JR wrote:

Quote:
On Nov 6, 8:15*pm, Jim S <j... (AT) jimXscott (DOT) co.uk> wrote:
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?
--
Jim S
* * * * Tyneside UK
* * *www.jimscott.co.uk

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?
--
Jim S

Reply With Quote
  #4  
Old   
JR
 
Posts: n/a

Default Re: Newbie help required - 11-06-2009 , 08:31 PM



On Nov 6, 9:26*pm, Jim S <j... (AT) jimXscott (DOT) co.uk> wrote:

Quote:
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

Reply With Quote
  #5  
Old   
SAM
 
Posts: n/a

Default Re: Newbie help required - 11-07-2009 , 03:28 AM



Le 11/6/09 11:15 PM, Jim S a écrit :
Quote:
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 ?

--
sm

Reply With Quote
  #6  
Old   
Jim S
 
Posts: n/a

Default Re: Newbie help required - 11-07-2009 , 04:44 AM



On Fri, 6 Nov 2009 17:31:27 -0800 (PST), JR wrote:

Quote:
On Nov 6, 9:26*pm, Jim S <j... (AT) jimXscott (DOT) co.uk> wrote:

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
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.
--
Jim S

Reply With Quote
  #7  
Old   
Jim S
 
Posts: n/a

Default Re: Newbie help required - 11-07-2009 , 04:47 AM



On Sat, 07 Nov 2009 09:28:18 +0100, SAM wrote:

Quote:
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 ?
Thanks.
You are perfectly right of course and I would wonder why anybody but me
would use a mobile phone to access the site ?
--
Jim S
Tyneside UK
www.jimscott.co.uk

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.