Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 6th, 2005, 10:37 AM
Authorized User
 
Join Date: Jun 2005
Location: , , .
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default Query Strings

Hi there,

This is the code i've got;

                        
Code:
<TD class="tabLink" align="left" nowrap onMouseOver="this.className='tabLinkHover';window.status='';return true" onMouseOut="this.className='tabLink';" onClick="window.parent.navigate('<%=strHttpRef%>');" title="" alt=""><IMG align="absmiddle" hspace="2" src="../images/save.gif" alt="" /> Save changes</TD>
Code:
                        <TD width="100%"></TD>
                    </TR>
                </TABLE>
            </TD>
        </TR>
        <TR>
            <TD height="125">
                <TABLE>
                    <TR>
                        <TD class="tabLink" align="center" nowrap onMouseOver="this.className='tabLinkHover';window.status='';return true" onMouseOut="this.className='tabLink';" onClick="window.navigate('appearance.asp?StyleSheet=blue');" alt=""><IMG align="absmiddle" hspace="2" src="../images/sp_blue.gif" alt="" /><BR> Blue</TD>
                        <TD class="tblGap">|</TD>
                        <TD class="tabLink" align="center" nowrap onMouseOver="this.className='tabLinkHover';window.status='';return true" onMouseOut="this.className='tabLink';" onClick="window.navigate('appearance.asp?StyleSheet=green');" title="" alt=""><IMG align="absmiddle" hspace="2" src="../images/sp_green.gif" alt="" /><BR> Green</TD>
                        <TD class="tblGap">|</TD>
                        <TD class="tabLink" align="center" nowrap onMouseOver="this.className='tabLinkHover';window.status='';return true" onMouseOut="this.className='tabLink';" onClick="window.navigate('appearance.asp?StyleSheet=orange');" title="" alt=""><IMG align="absmiddle" hspace="2" src="../images/sp_orange.gif" alt="" /><BR> Orange</TD>
                        <TD class="tblGap">|</TD>
                        <TD class="tabLink" align="center" nowrap onMouseOver="this.className='tabLinkHover';window.status='';return true" onMouseOut="this.className='tabLink';" onClick="window.navigate('appearance.asp?StyleSheet=purple');" title="" alt=""><IMG align="absmiddle" hspace="2" src="../images/sp_purple.gif" alt="" /><BR> Purple</TD>
                        <TD class="tblGap">|</TD>
                        <TD class="tabLink" align="center" nowrap onMouseOver="this.className='tabLinkHover';window.status='';return true" onMouseOut="this.className='tabLink';" onClick="window.navigate('appearance.asp?StyleSheet=red');" title="" alt=""><IMG align="absmiddle" hspace="2" src="../images/sp_red.gif" alt="" /><BR> Red</TD>
                        <TD width="100%"></TD>



As you can see, each link launches the appearance.asp file with the ?StyleSheet="" code, and actually changes the stylesheet, and the Save Changes link at the top just refreshes the page.

Is it possible to get each style link to store the selected style sheet in a variable, then get the Save Changes link to include the variable in the refresh.

Basically what I want is for nothing to change until they actually hit 'Save Changes'

Thanks/...

Reply With Quote
  #2 (permalink)  
Old June 6th, 2005, 10:45 AM
Authorized User
 
Join Date: Jun 2005
Location: , , .
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Somthing along the lines of (i know the following won't actually work, but just to give you an example);

onClick="<%=style=blue"> for each link

Then

onClick="<%=strHttpRef%>?<%style>" for the save changes button

Thanks/..

Reply With Quote
  #3 (permalink)  
Old June 6th, 2005, 11:20 AM
Authorized User
 
Join Date: Jun 2005
Location: , , .
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Actually, what would be even better, was if I could incorporate a radio box system, where the users click the radio box by the style they want, and the Save Changes button sets the style according to which radio box they selected.

Thanks/...

Reply With Quote
  #4 (permalink)  
Old June 7th, 2005, 03:45 AM
Authorized User
 
Join Date: Jun 2005
Location: , , .
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Don't worry... figured it out myself. :)

Thanks/...

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
protecting url query strings vinoskiboyetski Beginning PHP 1 December 11th, 2007 03:39 AM
query strings problem saroo .NET Framework 2.0 1 October 23rd, 2007 06:41 AM
Query strings not becoming variables in IIS living-with-matilda Beginning PHP 0 February 3rd, 2006 09:07 PM
hiding Query Strings mase912 C# 1 November 30th, 2004 06:17 AM
strings slowhand SQL Server 2000 1 January 5th, 2004 12:20 AM



All times are GMT -4. The time now is 04:01 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.