473,385 Members | 1,673 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,385 software developers and data experts.

This should be simple but Simple left the building.

Te whole point is to provide the User a disclaimer and it they except
to continue on with the original (?) format.

The 'calling' web page generates something like "http://rhodeisland-
aa.org/tester/meetings/disclaima.htm?mtgnum=35" This indicates the
test system is being used 'tester' and the individual meeting is #35.
The output generated by this web page is the User clicks "Continue" is
"http://rhodeisland-aa.org/tester/meetings/geo_md.htm?mtgnum=35" This
output is not happening -- in fact in most cases the 404 error page is
called.

The script follows
Expand|Select|Wrap|Line Numbers
  1. <body onload="onopen ;">
  2. <table class="inwin">
  3. <tr>
  4. <td colspan="2" width="240px">
  5. TESTING<br>
  6. <b>You are leaving an area over which RhodeIsland-AA.org has
  7. total content control and entering
  8. a web page which may have content over which we have limited
  9. control.</b>
  10. TESTING<br>
  11. </td>
  12. </tr>
  13. <tr>
  14. <td class="inwinopt" width="120px" align="center">
  15.  
  16. <form method='POST' action='' name='gonogo'>
  17. <input type='submit' value='Continue' name='Continue'
  18. style='width: 90; height: 50; FONT-FAMILY: Arial; color : blue ; FONT-
  19. SIZE: 12pt; FONT-WEIGHT: bold'>
  20. <input type='hidden' name='mtgnum' size="4" value='0'>
  21. </form>
  22. </td>
  23. <td class='inwinopt' width='120px' align='center'>
  24. <a id='CanAnchor' href='#' onClick='retreat() ;'>Cancel</a>
  25. </td>
  26. </tr>
  27. </table>
  28.  
  29. <script type="text/javascript">
  30. function onopen()
  31. {
  32. var forwardpath = self.location.href ;
  33. document.gonogo.action = forwardpath.substring(0,
  34. forwardpath.indexOf('disclaima.htm')) +             'geo_md.htm' +
  35. forwardpath.substring(forwardpath.indexOf('?'))  ;
  36. alert (forwardpath.substring(0,
  37. forwardpath.indexOf('disclaima.htm')) + 'geo_md.htm' +
  38. forwardpath.substring(forwardpath.indexOf('?'))) ;
  39. document.gonogo.mtgnum.value =
  40. forwardpath.substring(forwardpath.indexOf('=') + 1) ;
  41. alert (document.gonogo.action + ' ' +
  42. document.gonogo.mtgnum.value) ;
  43. return true ;
  44. }
  45. </script>
  46.  
  47.  
  48. </body>
  49.  
  50. </html>
I am out of ideas and will appreciate some. In the meantime, thanks
for your time.
Jun 29 '08 #1

✓ answered by Evertjan.

ft310 wrote on 29 jun 2008 in comp.lang.javascript:
Te whole point is to provide the User a disclaimer and it they except
to continue on with the original (?) format.
['format'?]

Better do this with serverside scripting,
but if you do this clientside,
no need to call a seperate page.

Expand|Select|Wrap|Line Numbers
  1. <head>
  2. <script type='text/javascript'>
  3. function ok(d){
  4. d.parentNode.style.display='none';
  5. document.getElementById('m').style.display='block';
  6. };
  7. </script>
  8. </head>
  9.  
  10. <body>
  11. <div id='disclaimer'>
  12. DISCLAIMER<br><br>
  13. Blah<br><br>
  14. <button onclick='ok(this)'>Click me if you agree</button>
  15. </div>
  16. <div id ='m' style='display:none;'>
  17. Main page<br><br>
  18. Main page<br><br>
  19. Main page<br><br>
  20. Main page<br><br>
  21. Main page<br><br>
  22. </div>
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

2 1081
ft310 wrote on 29 jun 2008 in comp.lang.javascript:
Te whole point is to provide the User a disclaimer and it they except
to continue on with the original (?) format.
['format'?]

Better do this with serverside scripting,
but if you do this clientside,
no need to call a seperate page.

Expand|Select|Wrap|Line Numbers
  1. <head>
  2. <script type='text/javascript'>
  3. function ok(d){
  4. d.parentNode.style.display='none';
  5. document.getElementById('m').style.display='block';
  6. };
  7. </script>
  8. </head>
  9.  
  10. <body>
  11. <div id='disclaimer'>
  12. DISCLAIMER<br><br>
  13. Blah<br><br>
  14. <button onclick='ok(this)'>Click me if you agree</button>
  15. </div>
  16. <div id ='m' style='display:none;'>
  17. Main page<br><br>
  18. Main page<br><br>
  19. Main page<br><br>
  20. Main page<br><br>
  21. Main page<br><br>
  22. </div>
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jun 29 '08 #2
SAM
ft310 a écrit :
Te whole point is to provide the User a disclaimer and it they except
to continue on with the original (?) format.

The 'calling' web page generates something like "http://rhodeisland-
aa.org/tester/meetings/disclaima.htm?mtgnum=35" This indicates the
test system is being used 'tester' and the individual meeting is #35.
The output generated by this web page is the User clicks "Continue" is
"http://rhodeisland-aa.org/tester/meetings/geo_md.htm?mtgnum=35" This
output is not happening -- in fact in most cases the 404 error page is
called.

Expand|Select|Wrap|Line Numbers
  1. <html>
  2. <body onload="onopen();">
  3. <table class="inwin">
  4. <tr>
  5. <td colspan="2" width="240px">
  6. TESTING<br>
  7. <b>You are leaving an area over which RhodeIsland-AA.org has
  8. total content control and entering a web page which may
  9. have content over which we have limited control.</b>
  10. TESTING<br>
  11. </td>
  12. </tr>
  13. <tr>
  14. <td class="inwinopt" width="120px" align="center">
  15.  
  16. <form method='POST' action='' name='gonogo'>
  17. <input type='submit' value='Continue' name='Continue'
  18. style='width: 90px; height: 50px;
  19. font: Arial 12px bold; color: blue'>
  20. <input type='hidden' name='mtgnum' value='0'>
  21. </form>
  22. </td>
  23. <td class='inwinopt' width='120px' align='center'>
  24. <a id='CanAnchor' href='#' onclick='retreat() ;'>Cancel</a>
  25. </td>
  26. </tr>
  27. </table>
  28.  
  29. <script type="text/javascript">
  30. function onopen()
  31. {
  32. var forwardurl =  self.location.toString(),
  33. forwardpath = forwardurl.substring(0,
  34. forwardurl.lastIndexOf('/')+1),
  35. forwardfollow = forwardurl.split('=')[1];
  36. document.gonogo.mtgnum.value = forwardfollow;
  37. document.gonogo.action = forwardpath + 'geo_md.htm';
  38.  
  39. alert ('action = ' +document.gonogo.action +
  40. '\ntgnum = ' + document.gonogo.mtgnum.value) ;
  41. }
  42.  
  43. /********** variante **********/
  44. function onOpen() {
  45. var forwardurl =  self.location.toString(),
  46. forwardfile = forwardurl.split('?')[0],
  47. forwardfollow = forwardurl.split('=')[1];
  48. forwardfile = forwardfile.replace('disclaima','geo_md');
  49. document.gonogo.mtgnum.value = forwardfollow;
  50. document.gonogo.action = forwardfile;
  51.  
  52. alert ('action = ' +document.gonogo.action +
  53. '\ntgnum = ' + document.gonogo.mtgnum.value) ;
  54. }
  55. </script>
  56. </body>
  57. </html>
--
sm
Jun 29 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Peter Young | last post by:
I'm seeing a problem with IE running on OS-X. When the user logs in to the website (ASP/IIS5), a Session is established properly, but somewhere along the line, a new Session is created and...
2
by: James | last post by:
Are there any style elements that work on select elements on Apple/IE? I want colored text, colored background, or just about anything colored in a select drop-down but can't seem to make it work...
7
by: Denis | last post by:
I am building a site for my college and it looks OK on PCs (IE, Netscape, Opera, not Mozilla though), but the page is displaced to the bottom of the screen on a Mac. Probably something simple,...
1
by: Pras | last post by:
SELECT R.Resource_ID, R.ResourceName, R.ResourceGLT_ID, R.ResourceNiku_Id, T.Technology_Code AS TechnologyArea, T2.Technology_Code AS TechnologyArea2, T3.Technology_Code AS TechnologyArea3,...
4
by: Peter Larsson | last post by:
Hello everybody, I'm developing a system for a company that has production at two different locations. The production is stored in an Access database at each location, and I need to find a way...
96
by: Karen Hill | last post by:
SELECT surgeries.*, animals.* FROM surgeries INNER JOIN animals ON .=. AND WHERE ((.=Date()) Or .=Date()); I'm trying to write a query that joins two table together, animals and surgeries...
3
by: Roy Osherove | last post by:
Hi folks. I have an ASP.Net application that runs a .Net dll that uses WMI and ADSI(both managed) to connect to a given IIS root and search through it. When not using the ASP.Net client, but...
1
by: George Durzi | last post by:
Hey all. I need your help in designing a solution. I'm building a small wine cellar manager application as a side project. A wine cellar can consist of several "walls", each of which can have X...
9
by: Wayne Smith | last post by:
I've come up against a major headache that I can't seem to find a solution for but I'm sure there must be a workaround and I would really be grateful of any help. I'm currently building a web...
8
by: gimme_this_gimme_that | last post by:
I want to execute the following SQL statement for a single emp.emp_id. Just adding and emp.emp_id=256 to the end of the statement results in a SQL statement that on average takes 5.5 seconds. ...
1
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: 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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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.