Wrox Programmer Forums
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 6th, 2005, 10:37 AM
Authorized User
 
Join Date: Jun 2005
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/...

 
Old June 6th, 2005, 10:45 AM
Authorized User
 
Join Date: Jun 2005
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/..

 
Old June 6th, 2005, 11:20 AM
Authorized User
 
Join Date: Jun 2005
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/...

 
Old June 7th, 2005, 03:45 AM
Authorized User
 
Join Date: Jun 2005
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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

Thanks/...






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





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.