473,375 Members | 1,342 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,375 software developers and data experts.

Script required for Switching Page Layouts

Switching Page Layouts!!!

Does anyone have any idea how to create a script for Switching Page Layouts.
I know how to create one for Style Sheet Switcher (http://www.dynamicdrive.com/dynamici...etswitcher.htm) but not for PAGE layouts.

I mean I can make a menu to switch between a Wide Page Layout and Narrow Page Layout but I want that to be stored into a cookiee so that will show up when the visitor check back again.

THANK YOU!!!
May 18 '07 #1
4 1432
pbmods
5,821 Expert 4TB
Does anyone have any idea how to create a script for Switching Page Layouts.

I know how to create one for Style Sheet Switcher (http://www.dynamicdrive.com/dynamici...etswitcher.htm) but not for PAGE layouts.

I mean I can make a menu to switch between a Wide Page Layout and Narrow Page Layout but I want that to be stored into a cookiee so that will show up when the visitor check back again.
The easiest way I can think of doing this would be to use a style sheet switcher, but instead of colors and whatnot, you'd switch css files that define widths for different elements.
May 19 '07 #2
The easiest way I can think of doing this would be to use a style sheet switcher, but instead of colors and whatnot, you'd switch css files that define widths for different elements.
Thanks for the feedback and I believe your solution will work for my part.
However when user changes the page layout into WIDE layout I have to send them to a different page first (index2.html) then in there have the stylesheets like you said.
------------------------

I dont know if I'm asking much but I would really apriciate if you(pbmods) or someone else can help me with the other problem:

I want to be able to have control over which sites I dont want to show full url path but show only the base url.
(I tried using frames but didnt like it)

If you type on the web bar: yahoo.com/ it will return to http://www.yahoo.com/
May 19 '07 #3
Banfa
9,065 Expert Mod 8TB
In future no need for all the * in your thread title. Just make it a meaningful synopsis of your problem please.
May 20 '07 #4
pbmods
5,821 Expert 4TB
Thanks for the feedback and I believe your solution will work for my part.
However when user changes the page layout into WIDE layout I have to send them to a different page first (index2.html) then in there have the stylesheets like you said.
Hm.

The only solution that I've been able to get working for something like that is to use an AJAX call to load the page content, similar to this:

Expand|Select|Wrap|Line Numbers
  1.     <body>
  2.         <div id="theContent">
  3.         </div>
  4.     </body>
  5.  
Expand|Select|Wrap|Line Numbers
  1. function changeLayout(sourceFile) {
  2.     yourFavoriteAjaxFunction(sourceFile, function(response) {
  3.         document.getElementById('theContent').innerHTML = response.responseText;
  4.     });
  5. }
  6.  
May 21 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Web Master | last post by:
Hi, I am having a little issue with Jacks Form mail php script. I have installed it and configured the form to get it to work, but for some bizarre reason I have 2 issues I can't seem to debug....
179
by: SoloCDM | last post by:
How do I keep my entire web page at a fixed width? ********************************************************************* Signed, SoloCDM
13
by: Patrick | last post by:
I understand that with IIS5.1 on Windows XP Professional SP1, I can 1) Either set under IIS Manager-> Any specific Virtual Directory-> Configuration->Options->ASP Script timeout for all pages...
8
by: Sergei | last post by:
Hi, I am displaying modal dialog and passing values from the main form to the modal dialog and back. It works fine but if I used the following syntax on Page_Load(just for testing) in VB to...
3
by: Simon Verona | last post by:
I have a parent form which contains a toolbar. The toolbar controls the loading and switching to of MDI child forms. The code for the toolbar click event and one of the subroutines that loads...
15
by: Lennart | last post by:
Hi folks, I have created an animated image gallery in dhtml. It works fine in Internet Explorer. In Firefox, it only works if I ommit the DOCTYPE tag. The page is valid xhtml-strict but with a...
2
by: Susanne West | last post by:
hi group. i'm tackling a bigger project that will use mod_rewrite to patch a series of urls into a master php-script. this script builds the page framework that contains a series of elements...
3
by: traceable1 | last post by:
Is there a way I can set up a SQL script to run when the instance starts up? SQL Server 2005 SP2 thanks!
1
by: Dave Rado | last post by:
Hi A while ago I discovered a way of creating css pseudo-frames, that offer users the important benefits of real frames (i.e. the navigation remains visible when you scroll down the page), but...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.