HighDots Forums  

This should be simple but Simple left the building.

Javascript JavaScript language (comp.lang.javascript)


Discuss This should be simple but Simple left the building. in the Javascript forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
ft310
 
Posts: n/a

Default This should be simple but Simple left the building. - 06-28-2008 , 09:45 PM






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
<body onload="onopen ;">
<table class="inwin">
<tr>
<td colspan="2" width="240px">
TESTING<br>
<b>You are leaving an area over which RhodeIsland-AA.org has
total content control and entering
a web page which may have content over which we have limited
control.</b>
TESTING<br>
</td>
</tr>
<tr>
<td class="inwinopt" width="120px" align="center">

<form method='POST' action='' name='gonogo'>
<input type='submit' value='Continue' name='Continue'
style='width: 90; height: 50; FONT-FAMILY: Arial; color : blue ; FONT-
SIZE: 12pt; FONT-WEIGHT: bold'>
<input type='hidden' name='mtgnum' size="4" value='0'>
</form>
</td>
<td class='inwinopt' width='120px' align='center'>
<a id='CanAnchor' href='#' onClick='retreat() ;'>Cancel</a>
</td>
</tr>
</table>

<script type="text/javascript">
function onopen()
{
var forwardpath = self.location.href ;
document.gonogo.action = forwardpath.substring(0,
forwardpath.indexOf('disclaima.htm')) + 'geo_md.htm' +
forwardpath.substring(forwardpath.indexOf('?')) ;
alert (forwardpath.substring(0,
forwardpath.indexOf('disclaima.htm')) + 'geo_md.htm' +
forwardpath.substring(forwardpath.indexOf('?'))) ;
document.gonogo.mtgnum.value =
forwardpath.substring(forwardpath.indexOf('=') + 1) ;
alert (document.gonogo.action + ' ' +
document.gonogo.mtgnum.value) ;
return true ;
}
</script>


</body>

</html>

I am out of ideas and will appreciate some. In the meantime, thanks
for your time.

Reply With Quote
  #2  
Old   
Evertjan.
 
Posts: n/a

Default Re: This should be simple but Simple left the building. - 06-29-2008 , 03:19 AM






ft310 wrote on 29 jun 2008 in comp.lang.javascript:

Quote:
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.

==============================
<head>
<script type='text/javascript'>
function ok(d){
d.parentNode.style.display='none';
document.getElementById('m').style.display='block' ;
};
</script>
</head>

<body>
<div id='disclaimer'>
DISCLAIMER<br><br>
Blah<br><br>
<button onclick='ok(this)'>Click me if you agree</button>
</div>
<div id ='m' style='display:none;'>
Main page<br><br>
Main page<br><br>
Main page<br><br>
Main page<br><br>
Main page<br><br>
</div>
==============================


--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.