var vOHTML = $iframename.document.location.outerHTML;
try this...
or you can append them yourself (dependant on how static the info is...
var vHTML = "<HTML><HEAD>head stuff here</HEAD>" + $iframename.document.location.innerHTML + "</HTML>";
it all depends on what you're...
Not exactly sure what you're after but something like this should be possible in javascript:
var vHTML = $iframename.document.location.innerHTML;
This will pull all the inner html into a variable for you to post in a form (ie4+). However its not always as simple as that - netscape will...
you could try putting this into your html at the bottom of the page:
<!--#exec cgi="/cgi-bin/scriptname.cgi" -->
works on our intranet (all IE so I have no idea about compatibility with other browsers)...
Joe
sorted (if anyone is interested):
should have been:
var oEle = opener.document.createElement('option');
rather than:
var oEle = document.createElement('option');
simple !
Joe.
apologies if this has been asked before, search is still down so..
this is what I'm after:
user clicks on a link.
opens a popup window containing text field and button.
user enters text and submits.
This text is added to a select object on the parent window. Popup closes.
I'm trying to use...
Something like this in the header "should" work, I'm not sure why it wouldn't (it works for me, is your image huge?)...
var myimages=new Array();
function preloadimages(){
for (i=0;i<preloadimages.arguments.length;i++) {
myimages[i]= new Image()...
glad to be of some help (its not often I can!) and ta for the star :-)
I've been stuck in the past and this sites helped me no end so I'm just "passing it on", as it were...
Joe.
...# pick up new file name if requested
my $new = $req->param("NEW$a");
$new =~ s/ +/\_/g;
my $newname = $new;
$newname =~ s/^.*(\\|\/)//;
# pick up the file for download
my $file = $req->param("FILE$a");
#$file =~ s/ +/\_/g;
my $filename = $file...
unfortunately I'm working on an intranet so no public access available I'm afraid. It is used on a daily basis though.
Checklist/ thoughts. (sorry if these are obvious)
1. ENCTYPE set correctly.
2. The params are named correctly consistently between form and script.
3. The inputs are not...
might be a bit of a nobrainer but have you tried putting in the full, absolute file path to the file with leading forward slash etc:
A href="/http_server_root/briefs/euromes31eng.pdf"
I've tried your html using one of my own files and it seems to work okay.
Joe.
...# pick up new file name if requested
my $new = $req->param("NEW$a");
$new =~ s/ +/\_/g;
my $newname = $new;
$newname =~ s/^.*(\\|\/)//;
# pick up the file for download
my $file = $req->param("FILE$a");
#$file =~ s/ +/\_/g;
my $filename = $file...
How are the menus created ?
There is a problem with drop down select boxes and trying to dynamically place / create DIVs etc over them. These components are 'windowed' and as such will stay at the 'front' of any page. These links may help...
the following gets ALL the selects from the form. scrolls through and sets disabled according to the checkbox:
<HTML>
<HEAD>
<script language="javascript">
function testCheck() {
var aSelects,vLength;
aSelects=document.Relationship.getElementsByTagName("SELECT")...
netscape:
window.innerWidth
window.innerHeight
(I think)
IE uses document.body.scrollWidth or document.body.offsetWidth and document.body.scrollHeight or document.body.offsetHeight (can't remember which off the top of my head).
Bear in mind that these will not include the scrollbars so you'll...
in the code you posted your caps are inconsistent. Javascript needs the elements to be referenced exactly how they are named, its case sensitive. So you might need to check that the checkbox input is WholeRel and not wholerel...
The following works fine for example:
<HTML>
<HEAD>
<script...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.