473,233 Members | 1,377 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,233 software developers and data experts.

Given that some browsers dont have javascript enabled....

Given that some browsers dont have javascript enabled.... do developers try
to avoid using javascript when a php alternative can be used? What sort of
alternative php scripts are often used?

Jul 16 '05 #1
2 3556
"ChronicFatigue" <NO*********@chronic-fatigue.co.uk> writes:
Given that some browsers dont have javascript enabled.... do developers try
to avoid using javascript when a php alternative can be used? What sort of
alternative php scripts are often used?


Yes, people do (or at least *should* if they don't) use PHP (or
another server-side language) instead of Javascript if possible.

As far as what PHP does, that depends what Javascript is doing. I
suppose a common example would be handling form submission, which can
be done in either Javascript or PHP, but can only be *sensibly* done
server-side in PHP.

If you give specific examples of things done with Javascript then it's
easy enough to say whether there's an obvious PHP alternative.

--
Chris
Jul 16 '05 #2
"ChronicFatigue" <NO*********@chronic-fatigue.co.uk> wrote in message news:<bg**********@sparta.btinternet.com>...
Given that some browsers dont have javascript enabled.... do developers try
to avoid using javascript when a php alternative can be used? What sort of
alternative php scripts are often used?


Everything you *need* to do should be done in PHP. Javascript is only
for fancy cosmetic stuff therefore it is not *necessary*. Any
client-side validation you want to do with javascript should always be
done server-side within your PHP script just in case the client has
javascript disabled. Also remember that it is possible for someone to
get your HTML source, edit or remove the javascript then submit the
page. This could potentially lead to a disaster if you did not
double-check everything within your PHP script.

Tony Marston
http://www.tonymarston.net/
Jul 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

53
by: Cardman | last post by:
Greetings, I am trying to solve a problem that has been inflicting my self created Order Forms for a long time, where the problem is that as I cannot reproduce this error myself, then it is...
111
by: Retlak | last post by:
The recommended (on dozens of websites) and effective (works in Netscape, MSIE, Mozilla, probably others) way to detect if a browser has Javascript turned off is to put this in the <head>: ...
5
by: William Krick | last post by:
I did a little searching for javascript code that will make a page "jump out" of frames when the page is loaded. There seems to be many, many ways to do this and I've added the ones I found to the...
5
by: niftyhawk | last post by:
Hi, Can anybody give me a simple example of how to Call Web Services from Mozilla based Browsers ? I can call web services from IE browser using web service behavior file, without any problems....
2
by: Wysiwyg | last post by:
Has anyone found a reasonable way to emulate smartnavigation functionality for any browser? I'd really like to avoid creating history entries when posting back to the same page. SmartNavigation...
4
by: Samba | last post by:
Hi, I'm having a very genuine problem: I'm developing an ASP.NET web application. Since I'm using a lot of Javascripts in my pages, I want to ensure that my clients do not disable Script in...
5
by: vsr | last post by:
is there any way to remove some information from trace, tracing by default displays session , application variables, but i need to remove these two from trace.can any let me know how can i do it?
7
by: Roman | last post by:
I am wondering if anybody can provide statistics what is percentage of visitors with disabled JavaScript. Even more interesting would be statistics of users with disabled JavaScript making a...
51
by: Ojas | last post by:
Hi!, I just out of curiosity want to know how top detect the client side application under which the script is getting run. I mean to ask the how to know whether the script is running under...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.