ASP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Iron Speed
Go Back   ASP Free ForumsProgrammingASP Development

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:
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
  #1  
Old March 12th, 2008, 07:25 PM
tonyGTO tonyGTO is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Mar 2008
Posts: 2 tonyGTO User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 44 m 2 sec
Reputation Power: 0
Question Replace buttons with graphic buttons???

I have to change a bunch of regular non graphic buttons (for various functions, all on asp pages) to graphic buttons.

I don't know that much about asp but I can see and understand what it is doing if I look at the code.

Here's an example:
----------------------
bRun = True
If gbUseSSL And gbUseSSLOnLogin Then
If UCase(Trim(Request.ServerVariables("HTTPS"))) <> "ON" Then
bRun = False
Response.Write "<form method=""post"" name=""NextForm"" action=""" & gsSSLURL & "XUDLogin.asp"">"
Response.Write "<input type=""hidden"" name=""UserName"" value=""" & Server.HTMLEncode(sLoginName) & """>"
Response.Write "<input type=""hidden"" name=""Password"" value=""" & Server.HTMLEncode(sLoginPassword) & """>"
Response.Write "<input type=""hidden"" name=""ReturnTo"" value=""" & Server.HTMLEncode(sReturnTo) & """>"
Response.Write "<input type=""submit"" style=""visibility:hidden;"">"
Response.Write "</form>"
Response.Write vbCrLf & vbCrLf & "<script language=""JavaScript"">" & vbCrLf & "<!--" & vbCrLf
Response.Write " document.NextForm.submit(); " & vbCrLf
Response.Write "// -->" & vbCrLf & "</script>" & vbCrLf
End If
End If

If bRun Then
OpenDBConn
Select Case sCMD
Case "SHOWLOGIN":
DoPageHeader
TableHead
ShowLogin
TableFoot
DoPageFooter
Case "CHECKLOGIN":
CheckLogin
Case "LOGOUT":
Logout
Case Else
DoPageHeader
TableHead
ShowLogin
TableFoot
DoPageFooter
End Select
CloseDBConn
End If 'End bRun
Set objErr = Nothing

Sub ShowLogin
Response.Write "<FORM METHOD=""POST"" NAME=""LoginForm"" ACTION=""XUDLogin.asp"">"
Response.Write "<INPUT TYPE=""HIDDEN"" NAME=""CMD"" VALUE=""CHECKLOGIN"">"
Response.Write "<INPUT TYPE=""HIDDEN"" NAME=""ReturnTo"" VALUE=""" & sReturnTo & """>"

Response.Write "<TR><TD VALIGN=""TOP"" COLSPAN=""2"">"
ShowHTMLFile "XUDHtmlTxt/XUDLogin.htm"
Response.Write "</TD></TR>"

Response.Write "<TR><TD VALIGN=""TOP"" COLSPAN=""2"">" & gsFormTextOpen & gsLoginInfoLogin & gsFormTextClose & "</TD></TR>"
Response.Write "<TR>"
Response.Write "<TD VALIGN=""TOP"" COLSPAN=""2"">"
Response.Write "<TABLE BORDER=""0"" CELLPADDING=""1"" CELLSPACING=""0"" WIDTH=""100%"" BGCOLOR=""" & gsRegularBoxColor & """>"
Response.Write "<TR><TD>"
Response.Write "<TABLE BORDER=""0"" CELLPADDING=""3"" CELLSPACING=""0"" WIDTH=""100%"" BGCOLOR=""" & gsPageBGColor & """>"
Response.Write "<TR>"
Response.Write "<TD WIDTH=""30%"">" & gsFormTextOpen & OutMatch(True, objErr.Exists("USERNAME"), GLS_LoginErrorUserName, GLS_LoginUserName) & gsFormTextClose & "</TD>"
Response.Write "<TD><INPUT TYPE=""TEXT"" NAME=""UserName"" VALUE=""" & sLoginName & """ SIZE=""20"" MAXLENGTH=""20""></TD>"
Response.Write "</TR>"

Response.Write "<TR>"
Response.Write "<TD>" & gsFormTextOpen & OutMatch(True, objErr.Exists("PASSWORD"), GLS_LoginErrorPassword, GLS_LoginPassword) & gsFormTextClose & "</TD>"
Response.Write "<TD><INPUT TYPE=""PASSWORD"" NAME=""Password"" VALUE=""" & sLoginPassword & """ SIZE=""20"" MAXLENGTH=""60""></TD>"
Response.Write "</TR>"
Response.Write "</TABLE>"
Response.Write "</TD></TR>"
Response.Write "</TABLE>"
Response.Write "</TD>"
Response.Write "</TR>"

Response.Write "<TR><TD VALIGN=""TOP"" COLSPAN=""2""><INPUT TYPE=""SUBMIT"" VALUE=""" & GLS_TextLogin & """ class=""XcBtn""></TD></TR>"
Response.Write "</FORM>"
Response.Write "<TR><TD VALIGN=""TOP"" COLSPAN=""2"">"
ShowHTMLFile "XUDHtmlTxt/XUDLoginPassword.htm"
Response.Write "</TD></TR>"
-------------------------
That was just a bit of the page (I included all "Response.Write" lines that have something to do with this login button.

So does anyone know how I can have this page still function with a graphic button instead of the basic button?

Any help / suggestions would be greatly appreciated!

Thanks,

Tony

Reply With Quote
  #2  
Old March 13th, 2008, 10:34 PM
keep_it_simple's Avatar
keep_it_simple keep_it_simple is offline
KIS
ASP Free Novice (500 - 999 posts)
 
Join Date: Jul 2007
Location: USA
Posts: 969 keep_it_simple User rank is Captain (20000 - 30000 Reputation Level)keep_it_simple User rank is Captain (20000 - 30000 Reputation Level)keep_it_simple User rank is Captain (20000 - 30000 Reputation Level)keep_it_simple User rank is Captain (20000 - 30000 Reputation Level)keep_it_simple User rank is Captain (20000 - 30000 Reputation Level)keep_it_simple User rank is Captain (20000 - 30000 Reputation Level)keep_it_simple User rank is Captain (20000 - 30000 Reputation Level)keep_it_simple User rank is Captain (20000 - 30000 Reputation Level)keep_it_simple User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 2 Weeks 1 Day 3 h 4 m 57 sec
Reputation Power: 280
Send a message via Yahoo to keep_it_simple
did i overlook something...how is asp in play here?

using css to create a background for a normal submit button
Code:
<input type="submit" value="" style="background : url('http://www.elluminate.com/images/partner_submit_button.gif'); width:68px; height:25px;">



input type image button....by default IS a submit button
Code:

<input type="image" src="http://www.elluminate.com/images/partner_submit_button.gif" name="image" width="65" height="21">


submit button graphics

see above code on a web page: click me
Comments on this post
tonyGTO agrees!
__________________
Please give respect to those that helped solve an issue by clicking on the reputation icon

Reply With Quote
  #3  
Old March 14th, 2008, 11:53 AM
tonyGTO tonyGTO is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Mar 2008
Posts: 2 tonyGTO User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 44 m 2 sec
Reputation Power: 0
They are asp pages

Quote:
Originally Posted by keep_it_simple
did i overlook something...how is asp in play here?

using css to create a background for a normal submit button
Code:
<input type="submit" value="" style="background : url('http://www.elluminate.com/images/partner_submit_button.gif'); width:68px; height:25px;">



input type image button....by default IS a submit button
Code:

<input type="image" src="http://www.elluminate.com/images/partner_submit_button.gif" name="image" width="65" height="21">


submit button graphics

see above code on a web page: click me


Thanks for your reply, I really appreciate it. As far as asp being in play here, it's not I guess, they are just asp pages that write the html pages that produce these various buttons.

I don't know enough about all this (I am good with html, graphics, and cutting and pasting to alter html and asp code) but for some reason, I am having a very difficult time trying to replace these generated buttons within this program to graphic buttons.

I guess what I was hoping for was for someone to tell me, ok, take this line and replace this part with this, type of thing. If I can do one of them, I can then go through and change all of them 1 at a time.

Anyway, thanks again and just so it is out there, this is a classified ad site program, and I have done all the other customization and am down to this last thing.

I am willing to pay someone to help me with this. I'm sure to you guys, this is a very simple little thing, I am just not "seeing" the solution myself.

Reply With Quote
  #4  
Old March 14th, 2008, 03:27 PM
keep_it_simple's Avatar
keep_it_simple keep_it_simple is offline
KIS
ASP Free Novice (500 - 999 posts)
 
Join Date: Jul 2007
Location: USA
Posts: 969 keep_it_simple User rank is Captain (20000 - 30000 Reputation Level)keep_it_simple User rank is Captain (20000 - 30000 Reputation Level)keep_it_simple User rank is Captain (20000 - 30000 Reputation Level)keep_it_simple User rank is Captain (20000 - 30000 Reputation Level)keep_it_simple User rank is Captain (20000 - 30000 Reputation Level)keep_it_simple User rank is Captain (20000 - 30000 Reputation Level)keep_it_simple User rank is Captain (20000 - 30000 Reputation Level)keep_it_simple User rank is Captain (20000 - 30000 Reputation Level)keep_it_simple User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 2 Weeks 1 Day 3 h 4 m 57 sec
Reputation Power: 280
Send a message via Yahoo to keep_it_simple
Quote:
Originally Posted by tonyGTO
Thanks for your reply, I really appreciate it. As far as asp being in play here, it's not I guess, they are just asp pages that write the html pages that produce these various buttons.

I don't know enough about all this (I am good with html, graphics, and cutting and pasting to alter html and asp code) but for some reason, I am having a very difficult time trying to replace these generated buttons within this program to graphic buttons.

I guess what I was hoping for was for someone to tell me, ok, take this line and replace this part with this, type of thing. If I can do one of them, I can then go through and change all of them 1 at a time.

Anyway, thanks again and just so it is out there, this is a classified ad site program, and I have done all the other customization and am down to this last thing.

I am willing to pay someone to help me with this. I'm sure to you guys, this is a very simple little thing, I am just not "seeing" the solution myself.



yes....it's an asp page but technically you do not need asp tags for the html...but...if wanting to change the submit button within asp....i gave the html...only difference are the quotes...

Code:
<input type=""image"" src=""http://www.elluminate.com/images/partner_submit_button.gif"" name=""image"" width=""65"" height=""21"">


if you need help and it's not too much...i'd help for free....it sounds like a simple resolution...send a message via forum or use the yahoo icon to PM

else
you can post in this programers for hire forum

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingASP Development > Replace buttons with graphic buttons???


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

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

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





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