473,382 Members | 1,786 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,382 software developers and data experts.

Php & ajax

how to set setfocus commnd with textboxes in php with Ajax
Feb 1 '12 #1
4 1475
Rabbit
12,516 Expert Mod 8TB
You don't do set focus in PHP, you do it in javascript.
Feb 1 '12 #2
Then, how to do the same action of set focus in javascript with php or php/Ajax?
Feb 2 '12 #3
Rabbit
12,516 Expert Mod 8TB
You don't use PHP. You just use javascript. In javascript, you just call the .focus method on the form element you want to set focus to.
Expand|Select|Wrap|Line Numbers
  1. document.getElementById("someTextbox").focus()
Feb 2 '12 #4
@Rabbit
Thanks for yur information. I will try it and inform you later
Bandula
Feb 3 '12 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Peter | last post by:
Does anyone have an example of a listbox being populated with data from database while user types the search text in a textbox. I have found examples where a text box is being validated while...
21
by: javainfo | last post by:
How can i refresh IFRAME and load data through AJAX?
13
by: Sharon | last post by:
Hi all, I was wondering if anyone had experience using ajax with asp.net controls. What i'm looking for, are ways to implement and possible problems. A way to implement could be rendering the...
2
by: =?Utf-8?B?RG90TmV0RGV2?= | last post by:
Hi, We are still using .net 1.1 and I am working on a problem that I thought could be 'probably' done easily through 'AJAX'. I visited the ajax.asp.net site and I got an impression that its only...
4
by: KDawg44 | last post by:
Hi, I have a feeling this is a dumb question, but I am exploring AJAX and PHP. I would like to write my PHP in an Object Oriented approach. What is the limitation on what I can return in AJAX? ...
1
by: Slapoo | last post by:
In my ASP 2.0 web app my system.web tag is nested within a location path tag. This structure breaks all AJAX functionality, causing the 'Sys is not defined' error. When I remove the location path...
4
by: DanWeaver | last post by:
I am dumbfounded at the apparent lack of an obvious mechanism that prevents finding a shared host being the absolute nightmare it is: due to the nature of the business (ie techies who know about...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.