473,320 Members | 2,088 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,320 software developers and data experts.

Nextpage script is not working

Hello, I have a framset with 3 frames:
HEADER, CONTENT and FOOTER

how can I get a "nextpage script" for use in the "header" and open links in "content" frame?.

first page | Next page | Next Page | Last page

The JavaScript Im using is:
Expand|Select|Wrap|Line Numbers
  1. <script language="javascript">
  2. function gonext(){
  3. history.forward();
  4. parent[whichFrame].focus();
  5. }
  6. </script>
And the html code is:
Expand|Select|Wrap|Line Numbers
  1. <div class="navBar"><a href="arm001.html" target="content"> First Page</a> | <a href="javascript:nextPg()"> Next page</a> | <a href="javascript:history.back()" >Back page</a> | <a href="arm009.html" target="content">Last page</a> | <a href="javascript:framePrint('content');">
  2. Print Page
  3. </a></div>
Mar 23 '10 #1
4 2773
acoder
16,027 Expert Mod 8TB
Try to avoid frames if at all possible.

If you must use frames, your code uses the history to move back and forth. This could mean that you're not going to go to the correct page. If you already know the correct pages, why not have links to them 1-9 for arm001 to arm009?
Mar 25 '10 #2
I have done that and it works FINE when I want to go to the FIRST and LAST PAGE because that links will never change, BUT when I wanna go to the NEXT PAGE the NAVIGATION keep the link pointing to the same file and is not what I need. I need to point ALWAYS to a NEXT file it doesn't matter where I am... The thing is almost like this menu:

http://216.139.227.101/interactive/k2008/
.
but not as complex.
I thank you for take your time and check my isue.

Thanks in advance
Mar 25 '10 #3
acoder
16,027 Expert Mod 8TB
What you can do is check the current page in the frame using location.href. If it's say arm005.html, use a string function, e.g. slice, substr, substring, to take the number portion and work out which should be next and previous. See String functions.
Mar 25 '10 #4
I fixed the problem I had with another option, now It's done. But I just need to print a PDFversion from the jpg version showed in the actual page. HOw could I do that?
When the actual page shows a "001.jpg" file in the iframe; I want to print the "001,pdf" stored in pdf/ folder

Thank you
Apr 5 '10 #5

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

Similar topics

2
by: jao | last post by:
My organization currently has a large collection of Vedic scriptures and translation inside of the NextPage Folio product. The software has served our purposes thus far, but I am interested in...
9
by: Flynn | last post by:
My understanding of javascript is very limited. Could some one help me out. I found this code for an image gallery viewer. It works fine on my site, but I'd like to modify it so that the mainpic...
2
by: Nasir Wasim | last post by:
How can Access DIV Properties in Script while using Netscape 7.2. I want to use the div id with it's Visibility and left propertyin script but it's not working :-( Main File : ----------- ...
0
by: ZMan | last post by:
Scenario: This is about debugging server side scripts that make calls to middle-tier business DLLs. The server side scripts are legacy ASP 3.0 pages, and the DLLs are managed DLLs...
1
by: Q1tum | last post by:
Hi all, I have a problem with my script, I'm using javascript DOM to update my page. The getPortals() function updates a select list whichs shows portals. The doUpdate() function updates a...
6
by: JackM | last post by:
I have a multiple select input in a form that's being populated by a row from my database as such: <input type=\"checkbox\" name=\"subm\" value=\"$row\"> That part is working fine as I can check...
19
by: thisis | last post by:
Hi All, i have this.asp page: <script type="text/vbscript"> Function myFunc(val1ok, val2ok) ' do something ok myFunc = " return something ok" End Function </script>
2
by: Tereska | last post by:
I want to delete script added before. I'm adding script dynamically and i'm removing later. Why it is still working? I have something like this: <html> <head> <title>JS Script...
9
by: whitgurley | last post by:
I've searched the web as well as I can for a solution to this problem but have found nothing and just don't know enough about JavaScript to figure out what's going. What I'm trying to do is convert...
9
by: Jerim79 | last post by:
Here it is: <?php if($_SERVER=='POST'){ $Number=$_POST; $Email=$_POST; $Number2=0; $error=0;
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work

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.