HTML, JavaScript And CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingHTML, JavaScript And CSS Help

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 ASP Free Forums Sponsor:
  #1  
Old January 26th, 2004, 10:16 AM
clipper clipper is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 35 clipper User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
On Click Problem

When I click on a button that ive created I want it to go to a url that I have. Can anyone help me with this?

Reply With Quote
  #2  
Old January 26th, 2004, 10:34 AM
Memnoch's Avatar
Memnoch Memnoch is offline
Unholy Moderator
ASP Free God 14th Plane (11500 - 11999 posts)
 
Join Date: Oct 2003
Location: In hell, where did you think?
Posts: 11,760 Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level) 
Time spent in forums: 3 Weeks 5 Days 5 h 22 m 16 sec
Reputation Power: 443
try this
Code:
<script language="JavaScript">
function OpenWindow(varLink)
{
   var objWin
   objWin = window.open(varLink);
}
</script>
<input name="Link" type="button" value="Go To Page" onClick="javascript:OpenWindow('http://www.mansiononmain.com')">

Last edited by Memnoch : January 26th, 2004 at 11:30 AM.

Reply With Quote
  #3  
Old January 26th, 2004, 11:10 AM
haffej haffej is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 87 haffej User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
if you want the url to open up in the same window, try this approach:

Code:
<script language="javascript">
function register() {
     window.location.href = "register.asp";
}
</script>

<input type="button" value="Register" onclick="register();">

Last edited by haffej : January 26th, 2004 at 11:13 AM.

Reply With Quote
  #4  
Old January 26th, 2004, 11:53 AM
clipper clipper is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 35 clipper User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
the url I am specifying actually sends an sms. i do not want the page in the url to come up rather a new page which states that the message was actaully sent.

Reply With Quote
  #5  
Old January 26th, 2004, 12:17 PM
haffej haffej is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 87 haffej User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
oh, then the button you're clicking is the submit button? my example was for using a button that doesn't submit the form, just directs to a new page.

then what language are you using to process the form? or is that out of your hands? whatever page processes the form would have to redirect the user to a different page or display that the message was sent... i think...

Reply With Quote
  #6  
Old January 26th, 2004, 12:39 PM
clipper clipper is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 35 clipper User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
I am using ASP to process the form. Should have explained that earlier

Reply With Quote
  #7  
Old January 26th, 2004, 02:28 PM
haffej haffej is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 87 haffej User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
all right, asp ... vbscript or jscript?

if jscript, it's easy. you have two options: after the code is run, simply do something like

Response.Write("Your SMS has been sent!");

of course, if you want your message to appear within an actual site layout, you'll probably want to redirect the user to a different page, such as

Response.Redirect("messagesent.asp");

is that what you're looking for?

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingHTML, JavaScript And CSS Help > On Click Problem


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 4 hosted by Hostway