473,659 Members | 3,277 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Script required for Switching Page Layouts

7 New Member
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 1450
pbmods
5,821 Recognized Expert Expert
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
james00
7 New Member
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 Recognized Expert Moderator Expert
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 Recognized Expert Expert
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
3322
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. Issue#1: I get 2 copies of the form that gets submitted each time. Issue#2: The header does not display the "FROM" information in Outlook, but I can see the From information in my email spam filter
179
44355
by: SoloCDM | last post by:
How do I keep my entire web page at a fixed width? ********************************************************************* Signed, SoloCDM
13
7770
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 within that directory OR 2) Within a specific page, set the timeout as per http://www.microsoft.com/windows2000/en/server/iis/default.asp?url=/windows2000/en/server/iis/htm/asp/vbob246s.htm e.g. <% Server.ScriptTimeout = 1 %> and that the value in...
8
7394
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 assign value form the object to text Box it gives error 'Object required' Dim strResponse As String strResponse = strResponse & "<script language=""JavaScript"">" & vbCrLf strResponse = strResponse & "var aForm; " & vbCrLf
3
4382
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 and shows a child form is: Private Sub tbMenu_ButtonClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.ToolBarButtonClickEventArgs) Handles tbMenu.ButtonClick Dim btn As System.Windows.Forms.ToolBarButton For Each btn In...
15
5395
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 xhtml1-strict DOCTYPE, I get a dead script and dozens of error messages like "Error in parsing value in property 'width'. Declaration dropped." on Line 0. This page doesn't work in Firefox but is valid xhtml:...
2
2003
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 that remain on every page. only a center part (a <div>) is filled with different contents, depending on how the page is called (= mode of the page). the point is, there are quite a few (approx 20) different 'modes' for the center part to be filled...
3
11290
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
1674
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 without most of the drawbacks (in particular, unlike real frames, this method is bookmarks-friendly and search engine-friendly). However, the method still has sufficient drawbacks from an accessibility point of view that I have been planning to...
0
8337
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8851
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8748
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8531
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8628
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6181
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4175
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4335
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1739
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.