473,569 Members | 2,472 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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?m tgnum=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?mtgn um=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
2 1088
ft310 wrote on 29 jun 2008 in comp.lang.javas cript:
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?m tgnum=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?mtgn um=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
2613
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 abandoned. At that point, the user must log in again due to the code logic (their Session is "gone" and they're then invalid). The original Session's On_End...
2
4522
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 on Apple/IE. Thanks, -James
7
1673
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, but I don't know where to look for information. If you help me, I'll put your name on the site credits. See the site at www.ckno.org
1
1249
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, R.SeatNo, '' as Location, '' AS Country,
4
2827
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 to fetch data from both these databases and present them to the boss (who is at one of the locations). I've built a report generator in Excel...
96
5611
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 where surgeries.id = animals.id and only where the surgery date was date_a or date_b. I'm doing this in Microsoft Access 2000 and am tearing out my...
3
3626
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 running from a winforms project - I can connect to both local and remote machines. However, when using the ASP.Net project - I get an "Access denied"...
1
939
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 rows and Y columns. I'm trying to figure out a way to illustrate how certain walls in a cellar are positioned with respect to each other. Consider a...
9
3819
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 site for a small club I belong to and one of the features I would like to include is the ability to allow users to upload image files. ...
8
3269
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. I've tried various permutations of the statement where I add "and emp.emp_id=256" or "em.emp_id=256" but fundamentally, I don't know how to approach...
0
7618
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...
0
8138
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...
0
7983
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...
1
5514
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...
0
5223
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3657
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...
1
2117
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1228
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
946
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...

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.