|
|
 |
RE: FN-FORUM: little Javascript issue
date posted 9th October 2007 09:04
Why are you using JSON if you are not totally confident with javascript?
Send you data as XML and use XSLT to build your HTML - it makes far more
sense because it will generally be less work for you.
"I tried to sort the JSON with the php using ASORT" - I don't understand
that phrase. Javascript is client-side and php is server-side. Can someone
explain to me why one would want to "sort the JSON with the php"?
Mark Pawelek
-----Original Message-----
From: [EMAIL REMOVED] [EMAIL REMOVED] On Behalf Of cedric
Sent: 08 October 2007 14:30
To: FN-FORUM / [EMAIL REMOVED]
Subject: RE: FN-FORUM: little Javascript issue
Hi again,
Thank you guys for your replies, the php file builds some JSON which the
JS script uses to build the gallery:
http://missoma.com/inc/pyxy3.js
I understand how it works and where I need to apply new code to order
the items however I don't have the necessary JS knowledge to write it.
I don't think its a massive job as it looks like I need to get the JS to
systematically run through the JSON, create a page then output rather
than allowing it to create the items and pages on the fly.
I've mostly worked with php although I am trying to teach myself the
javascript in between projects so any hekp would be great.
btw, I tried to sort the JSON with the php using ASORT but it doesn't
make any difference.
date posted 6th October 2007 12 :21
cedric wrote:
> Hi everyone,
>
> I have a little issue with a script, maybe you could help. The URL is
> as follows: http://missoma.com/fashion/aw07/
>
>
> It looks nearly as I want it except the pictures are not in order (The
> order needs to be by file name). Page one seems fine but page two
> starts causing problem... Anyone ?
>
> Cheers!
Cedric,
From what I can see this is a third party javascript gallery that uses ajax
to get a list of images from (presumably) a server-side script. I may be
wrong but from what I can see it is not really a simple "what is wrong with
my javascript" question it is a major debugging exercise you are asking for?
Regards,
Dai
--
Freelancers, contractors earn more with Prosperity4
Call 0870 870 4414 or visit www.prosperity4.com
and benefit from Inland Revenue approved expenses today.
To advertise here: http://www.freelancers.net/advertising.html
|
 |
|