PHP Coding
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Coding

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old October 16th, 2002, 05:56 AM
rashm rashm is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Sydney, Australia
Posts: 4 rashm User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to rashm Send a message via Yahoo to rashm
change focus using PHP

I have a mysql/php site which uses a header.inc, a menu.inc and an index.php to generate the webpages. The header.inc includes a search engine, (search.php) which takes the focus when any page is created. This means that when the user enters a value into a textbox on any of the generated pages and hits return (i.e. the enter key) the search engine is launched. Is there a way of changing the focus to an element in the page body in PHP without incorporating JavaScript (document.form.element.focus) or diasbling the enter key(i.e. onSubmit='return false').
Appreciate any tips
rashm

Reply With Quote
  #2  
Old October 16th, 2002, 10:55 AM
Matt Matt is offline
Moderator
Codewalkers Specialist (4000 - 4499 posts)
 
Join Date: Apr 2007
Location: Florida
Posts: 4,158 Matt User rank is Private First Class (20 - 50 Reputation Level)Matt User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 h 10 m 20 sec
Reputation Power: 6
RE: change focus using PHP

No..changing focus is a client side thing..PHP is server side only....you'll need to use javascript or something similar for this one...

Reply With Quote
  #3  
Old October 16th, 2002, 04:54 PM
rashm rashm is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Sydney, Australia
Posts: 4 rashm User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to rashm Send a message via Yahoo to rashm
RE: change focus using PHP

thanks for that matt. I'll tryout some JavaScript etc first or might introduce an alternative header 'altheader.inc" which does not contain the search engine for this type of page.

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Coding > change focus using PHP


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway