Help please! How to change headings...
Moderator: General Moderators
- mattcooper
- Forum Contributor
- Posts: 210
- Joined: Thu Mar 17, 2005 5:51 am
- Location: London, UK
Help please! How to change headings...
I am desperate for a solution to this problem which, after much head-scratching, I cannot easily solve.
I am building an ezine, the content of which appears in an inline frame. I have included a pop-up menu from which users can navigate to the page of their choice. When they select a page, a JavaScript event is triggered that changes the heading - which is simply text in a styled textfield.
The problem is that the user can also navigate using "previous" and "next" buttons, which means that the heading doesn't then change - it simply stays as it was for the previous page.
The other part of this beast of a problem is that I need the nav buttons to sequence through the pages without the need to reload the main page: a truly "next" and "previous" function, dependent on which page is currently displayed in the iframe. Page 1 goes to page 2 etc. without reloading. I have serious doubts that this is possible, so I'm prepared to allow the page to reload if necessary - it would then load up with the new iframe content, I suppose.
I think that this is a very complex problem, and I have a deadline to meet unfortunately. Can somebody please put me out of my misery?
Thanks in advance.
I am building an ezine, the content of which appears in an inline frame. I have included a pop-up menu from which users can navigate to the page of their choice. When they select a page, a JavaScript event is triggered that changes the heading - which is simply text in a styled textfield.
The problem is that the user can also navigate using "previous" and "next" buttons, which means that the heading doesn't then change - it simply stays as it was for the previous page.
The other part of this beast of a problem is that I need the nav buttons to sequence through the pages without the need to reload the main page: a truly "next" and "previous" function, dependent on which page is currently displayed in the iframe. Page 1 goes to page 2 etc. without reloading. I have serious doubts that this is possible, so I'm prepared to allow the page to reload if necessary - it would then load up with the new iframe content, I suppose.
I think that this is a very complex problem, and I have a deadline to meet unfortunately. Can somebody please put me out of my misery?
Thanks in advance.
- mattcooper
- Forum Contributor
- Posts: 210
- Joined: Thu Mar 17, 2005 5:51 am
- Location: London, UK
- mattcooper
- Forum Contributor
- Posts: 210
- Joined: Thu Mar 17, 2005 5:51 am
- Location: London, UK
- mattcooper
- Forum Contributor
- Posts: 210
- Joined: Thu Mar 17, 2005 5:51 am
- Location: London, UK
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
read the documentation on setcookie()
- Ambush Commander
- DevNet Master
- Posts: 3698
- Joined: Mon Oct 25, 2004 9:29 pm
- Location: New Jersey, US
That doesn't make any sense. If you use iFrames, they still default to scrollbars if there's an overflow... so... are you clipping the data?I am forced to resort to an iframe to avoid the appearance of scrollbars
Then what I suggest is taking the data and intelligently truncating the text at a certain page, making the user press NEXT > to get to the next page.
that's not entirely true. if you set the frame to be a set height/width with no scrollbars, then of course they'd never show up...Ambush Commander wrote:That doesn't make any sense. If you use iFrames, they still default to scrollbars if there's an overflow... so... are you clipping the data?I am forced to resort to an iframe to avoid the appearance of scrollbars
Then what I suggest is taking the data and intelligently truncating the text at a certain page, making the user press NEXT > to get to the next page.
- Ambush Commander
- DevNet Master
- Posts: 3698
- Joined: Mon Oct 25, 2004 9:29 pm
- Location: New Jersey, US
But don't iFrames by default implement the CSS attribute:
At least from my experience if I have a frame, and it's bigger than the set size, it will scroll.
Of course, if you set:
Then the scrollbars won't show up (or theoretically they won't). I was talking about defaults. I think.
Code: Select all
overflow : scroll ;Of course, if you set:
Code: Select all
overflow : clip ;