window.open funktion verändern ??``?

Diskutiere window.open funktion verändern ??``? im Web & Grafik Forum im Bereich Internet & Telekomunikation Forum; window.open("blablabal.htm",",toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width=890,height=600") ich will...
  • window.open funktion verändern ??``? Beitrag #1
Hendrik_m

Hendrik_m

Gesperrter User
Dabei seit
11.03.2003
Beiträge
200
Reaktionspunkte
0
Ort
hessen/UdssR
window.open("blablabal.htm",",toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width=890,height=600")


ich will das man durch das aufrufen des neuen fensters nicht meine original quelle oben im fenster sieht, während des ladens steht da blablabal.htm am liebsten wär es mir wenn gar kein statusbalken oben wäre der die url der weiterleitung preisgibt , wie ist die ;

window.open("","","","") funtkion überhaupt aufgebaut ? hat mir mein prof nie erklärt ? ;)

danke im vorraus
 
  • window.open funktion verändern ??``? Beitrag #4
Hendrik_m

Hendrik_m

Gesperrter User
Dabei seit
11.03.2003
Beiträge
200
Reaktionspunkte
0
Ort
hessen/UdssR
ok besten dank , habe es mir jetzt schön zurecht gebastelt...

ps weiß einer welche funktion dieses script in einer mir fremden sprache hat ?

#!/usr/local/bin/perl
# google_compare.cgi

# Your Google API developer's key
my $google_key='insert key here';

# Location of the GoogleSearch WSDL file
my $google_wdsl = "./GoogleSearch.wsdl";

use strict;

use SOAP::Lite;
use LWP::Simple qw(get);
use CGI qw{:standard};

my $googleSearch = SOAP::Lite->service("file:$google_wdsl");

# setup our browser output.
print "Content-type: text/html\n\n";
print "<html><title>Google Compare Results</title><body>\n";

# ask and we shell receive.
my $query = param('query');
unless ($query) {
print "<h1>No query defined.</h1></body></html>\n\n";
exit; # If there's no query there's no program.
}

# spit out the original before we encode.
print "<h1>Your original query was '$query'.</h1>\n";

$query =~ s/\s/\+/g ; #changing the spaces to + signs
$query =~ s/\"/%22/g; #changing the quotes to %22

# Create some hashes of queries for various search engines.
# We have four types of queries ("plain", "com", "edu", and "org"),
# and three search engines ("Google", "AlltheWeb", and "Altavista".
# Each engine has a name, query, and regular expression used to
# scrape the results.
my $query_hash = {
plain => {
Google => { name => "Google", query => $query, },
AlltheWeb => {
name => "AlltheWeb",
regexp => "Displaying results <b>.*<\/b> of <b>(.*)<\/b>",
query => "http://www.alltheweb.com/search?cat=web&q=$query",
},
Altavista => {
name => "Altavista",
regexp => "We found (.*) results",
query => "http://www.altavista.com/sites/search/web?q=$query",
}
},
com => {
Google => { name => "Google", query => "$query site:com", },
AlltheWeb => {
name => "AlltheWeb",
regexp => "Displaying results <b>.*<\/b> of <b>(.*)<\/b>",
query => "http://www.alltheweb.com/search?cat=web&q=$query+domain%3Acom",
},
Altavista => {
name => "Altavista", regexp => "We found (.*) results",
query => "http://www.altavista.com/sites/search/web?q=$query+domain%3Acom",
}
},
org => {
Google => { name => "Google", query => "$query site:eek:rg", },
AlltheWeb => {
name => "AlltheWeb",
regexp => "Displaying results <b>.*<\/b> of <b>(.*)<\/b>",
query => "http://www.alltheweb.com/search?cat=web&q=$query+domain%3Aorg",
},
Altavista => {
name => "Altavista", regexp => "We found (.*) results",
query => "http://www.altavista.com/sites/search/web?q=$query+domain%3Aorg",
}
},
net => {
Google => { name => "Google", query => "$query site:net", },
AlltheWeb => {
name => "AlltheWeb",
regexp => "Displaying results <b>.*<\/b> of <b>(.*)<\/b>",
query => "http://www.alltheweb.com/search?cat=web&q=$query+domain%3Anet",
},
Altavista => {
name => "Altavista", regexp => "We found (.*) results",
query => "http://www.altavista.com/sites/search/web?q=$query+domain%3Anet",
}
}
};

# now, we loop through each of our query types,
# under the assumption there's a matching
# hash that contains our engines and string.
foreach my $query_type (keys (%$query_hash)) {
print "<h2>Results for a '$query_type' search:</h2>\n";

# now, loop through each engine we have and get/print the results.
foreach my $engine (values %{$query_hash->{$query_type}}) {
my $results_count;

# if this is Google, we use the API and not port 80.
if ($engine->{name} eq "Google") {
my $result = $googleSearch->doGoogleSearch(
$google_key, $engine->{query}, 0, 1,
"false", "", "false", "", "latin1", "latin1");
$results_count = $result->{estimatedTotalResultsCount};
# the google api doesn't format numbers with commas.
my $rresults_count = reverse $results_count;
$rresults_count =~ s/(\d\d\d)(?=\d)(?!\d*\.)/$1,/g;
$results_count = scalar reverse $rresults_count;
}

# it's not google, so we GET like everyone else.
elsif ($engine->{name} ne "Google") {
my $data = get($engine->{query}) or print "ERROR: $!";
$data =~ /$engine->{regexp}/; $results_count = $1 || 0;
}

# and print out the results.
print "<strong>$engine->{name}</strong>: $results_count<br />\n";
}
}
 
  • window.open funktion verändern ??``? Beitrag #5
therealconqueror

therealconqueror

Bekanntes Mitglied
Dabei seit
16.01.2001
Beiträge
1.057
Reaktionspunkte
1
Ort
TIROL
Die Sprache heißt perl und dies ist ein cgi-script. Diese Frage gehört also hier hin: http://powerforen.de/forum/forumdisplay.php?s=&forumid=54
Aber so wie ich das sehe vergleicht dieses Programm die Suchergebnisse mehrere Suchmaschinen und liefert halt die Ergebnisse retour, die auf alle Suchmaschinen am öftesten zutrifft. Aber besser tu fragst mal im anderen Forum.
trc
 
  • window.open funktion verändern ??``? Beitrag #6
Hendrik_m

Hendrik_m

Gesperrter User
Dabei seit
11.03.2003
Beiträge
200
Reaktionspunkte
0
Ort
hessen/UdssR
achso nein nein , dann hat sich das für mich schon erledigt .. dachte es hätte destructive funktionen ..... php cgi und der kram ist mir fern .. ich bleibe bei dem was ich kann .. NICHTS :p :cool:
 
Thema:

window.open funktion verändern ??``?

ANGEBOTE & SPONSOREN

https://www.mofapower.de/

Statistik des Forums

Themen
213.180
Beiträge
1.579.174
Mitglieder
55.879
Neuestes Mitglied
stonetreck
Oben