Posted by MS on 10/11/67 11:57
<cronoklee@hotmail.com> wrote in message
news:1157333779.268428.258990@b28g2000cwb.googlegroups.com...
> > If it is...
> > Do the JavaScript routine.
> > else
> > Do the PHP equivalent Routine
> It wouldn't really be as simple as that MS - PHP runs on the server.
> Javascript doesn't run until it hits the user's browser ....
I realise this fact...
> so I guess you'd need to check if javascript is enabled on a previous page
and
> then send that result to the next page using a form so that the server
> could process it on the way. I can't think of a better way but someone
> else probably will.
Its the check for javascript enabled i want... I dont mind passing the the
result from the previous page.
I just need a function that checks if its enabled or not.
> Can you not just always do it in PHP? It'd be a lot
> cleaner and you don't have to worry about it being enabled or not ;c)
I could but the script is an image gallery... so in the PHP each time the
image was to change the page would have to be loaded again. which i only
want to do if Javascript is not enabled.
The javascript works from one page load !!
Thanks
MS
Navigation:
[Reply to this message]
|