Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in PHP only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Today's Posts
Member List
Calendar
Home
Forum
Topic
PHP
Php & ajax
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
bandula111
New Member
Join Date:
Feb 2012
Posts:
3
#1
Php & ajax
Feb 1 '12, 09:43 AM
how to set setfocus commnd with textboxes in php with Ajax
Rabbit
Recognized Expert
MVP
Join Date:
Jan 2007
Posts:
12517
#2
Feb 1 '12, 03:56 PM
You don't do set focus in PHP, you do it in javascript.
Comment
Post
Cancel
bandula111
New Member
Join Date:
Feb 2012
Posts:
3
#3
Feb 2 '12, 06:48 AM
Then, how to do the same action of set focus in javascript with php or php/Ajax?
Comment
Post
Cancel
Rabbit
Recognized Expert
MVP
Join Date:
Jan 2007
Posts:
12517
#4
Feb 2 '12, 04:32 PM
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.
Code:
document.getElementById("someTextbox").focus()
Comment
Post
Cancel
bandula111
New Member
Join Date:
Feb 2012
Posts:
3
#5
Feb 3 '12, 06:34 AM
Originally posted by
Rabbit
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.
Code:
document.getElementById("someTextbox").focus()
Thanks for yur information. I will try it and inform you later
Bandula
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment