Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jun 27th, 2005, 4:21 PM   #11
tempest
Programming Guru
 
tempest's Avatar
 
Join Date: Oct 2004
Posts: 1,041
Rep Power: 5 tempest is on a distinguished road
Send a message via ICQ to tempest Send a message via AIM to tempest Send a message via Yahoo to tempest
That onclick event is javascript...
__________________

tempest is offline   Reply With Quote
Old Jun 27th, 2005, 4:29 PM   #12
Navid
Hobbyist Programmer
 
Navid's Avatar
 
Join Date: Feb 2005
Location: Canada
Posts: 187
Rep Power: 4 Navid is on a distinguished road
Send a message via MSN to Navid
Shhh.......it's okay

Last edited by navnav; Jun 27th, 2005 at 4:55 PM.
Navid is offline   Reply With Quote
Old Jun 27th, 2005, 5:17 PM   #13
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Quote:
I would use PHP and just do this...
One can't JUST do that. PHP runs on the server; the client has to get the server's attention by making a request. Whether that's done by clicking a link, by clicking a submit button, or by the user typing into the address bar, it has to occur. If it's a simple page request, one may as well tell the server the page they want delivered, rather than ask the server for an executable page whose only reason for being is to deliver the second page that the client really wants.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Jun 27th, 2005, 5:26 PM   #14
Cerulean
Professional Programmer
 
Cerulean's Avatar
 
Join Date: Apr 2005
Location: London, England
Posts: 459
Rep Power: 4 Cerulean is on a distinguished road
Quote:
Originally Posted by navnav
This could be done in just html

HTML:
<form>
<input type="button" value="Click here" onClick="parent.location='http://www.programmingforums.org'">
</form>
The pure HTML version you were looking for is
<form action="http://www.programmingforums.org"><input type="submit" value="Click here" /></form>
Cerulean is offline   Reply With Quote
Old Jun 28th, 2005, 12:49 PM   #15
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
Quote:
Originally Posted by Ooble
I would personally just do this:
<form action="http://www.example.com/" method="post">
    <div><input type="submit" value="Go!" /></div>
</form>
Hello? Do I not get credit for anything? :p
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old Jun 28th, 2005, 2:33 PM   #16
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
We didn't give you credit because you put a div, to no purpose, around just the button! :p
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Jun 28th, 2005, 5:28 PM   #17
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
Actually, you have to do that. If there's an input element without a container, the W3C gets angry.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old Jun 28th, 2005, 6:10 PM   #18
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
I question that, without any sound basis for doing so. I'll have to revalidate some of my pages, I guess. I never waste anything if I can help it, or put an unnecessary load on a parser or renderer.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Jun 29th, 2005, 4:24 PM   #19
Rory
Expert Programmer
 
Rory's Avatar
 
Join Date: Jan 2005
Location: London
Posts: 542
Rep Power: 4 Rory is on a distinguished road
Send a message via MSN to Rory
What's wrong with a hyperlink picture of a button?
Rory is offline   Reply With Quote
Old Jun 29th, 2005, 4:29 PM   #20
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Not a thing, if you don't run your page load time up with a skadillion button images.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 10:05 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC