| | | | |
| |||||||
| HTML, Usability und Barrierefreiheit Themen rund um Textauszeichnung, Formatierung, Barrierefreiheit und Usability. |
|
| | LinkBack | Themen-Optionen | Thema bewerten |
| | |
| PHP Code Flüsterer Registriert seit: 21.08.2005 Beiträge: 4682 PHP-Kenntnisse: Fortgeschritten | |
| | |
| Erfahrener Benutzer Registriert seit: 05.07.2004
Beiträge: 1.476
![]() | window.location.href ist keine Funktion sondern eine Eigenschaft http://de.selfhtml.org/javascript/ob...ation.htm#href |
| | |
| | |
| Erfahrener Benutzer Registriert seit: 11.10.2005
Beiträge: 2.405
![]() ![]() ![]() | edit: da war mal wieder einer schneller versuchs mal so: window.location.href="meineNeueSeite.php"; und window.location.href ist keine Funktion. schau dir das mal an: PHP-Code: |
| | |
| | |
| Gast
Beiträge: n/a
| arrggg, ja, manchmal glaub ich ich bin zu blöd zu lesen, das gleiche beispiel hatte ich mir auch angeschaut, hab das aber dann aus mir unerfindlichen gründen trotzdem anders gemacht, also mit den klammer.....sollte vielleicht früher schlafen gehen...... aber eine sache ist mir absolut unerklärlich: Code: function bla () {
............
var forwardUrl = "http://localhost/epo/insertNewAgent.php?newAgent=" + newAgent + "&newAgentClassInt=" + pNewAgentClassInt;
// start php script
window.location.href = forwardUrl;
//end bla
}
Code: function bla () {
............
var forwardUrl = "http://localhost/epo/insertNewAgent.php?newAgent=" + newAgent + "&newAgentClassInt=" + pNewAgentClassInt;
// start php script
window.location.href = forwardUrl;
//end bla
alert("halloooooooo!!!!!!!!!!");
}
kann mir jemand erklären was denn hier falsch läuft? danke für jede hilfe |
|
| | |
| Gast
Beiträge: n/a
| ist wirklich so: Code: function addNewAgent(pNewAgentClassStr, pNewAgentClassInt, pDefSelectList) {
var DEBUG = "FALSE";
if(pNewAgentClassInt == "" || pNewAgentClassInt == null){
alert("Keine Wirkstoffklasse ausgewählt!");
return 1;
}
var newAgent = prompt("Bitte geben Sie einen neuen Wirkstoff fuer die Wirkstoffklasse " + pNewAgentClassStr + " ein:", "");
// check if input value was given
if(newAgent == "" || newAgent == null){
alert("Keinen Wirkstoff eingegeben!");
return 1;
}
// check if input value has correct format
var validFormatRegex = /(^(\w+\s*)+$)/;
if(!(newAgent.match(validFormatRegex))){
alert("Ungültiges Format!");
return 1;
}
// check if input value already exsists
for(var i = 0; i < pDefSelectList.length; i++) {
if(newAgent == pDefSelectList.options[i].text) {
alert("Wirkstoff ist schon eingetragen!");
return 1;
}
}
/* input value ok */
// generate URI
var forwardUrl = "http://localhost/epo/insertNewAgent.php?newAgent=" + newAgent + "&newAgentClassInt=" + pNewAgentClassInt + "&newAgentClassStr=" + pNewAgentClassStr;
// start php script
window.location.href = forwardUrl;
//alert("hallo!!!!!!!!!!!");
}
Code: function addNewAgent(pNewAgentClassStr, pNewAgentClassInt, pDefSelectList) {
var DEBUG = "FALSE";
if(pNewAgentClassInt == "" || pNewAgentClassInt == null){
alert("Keine Wirkstoffklasse ausgewählt!");
return 1;
}
var newAgent = prompt("Bitte geben Sie einen neuen Wirkstoff fuer die Wirkstoffklasse " + pNewAgentClassStr + " ein:", "");
// check if input value was given
if(newAgent == "" || newAgent == null){
alert("Keinen Wirkstoff eingegeben!");
return 1;
}
// check if input value has correct format
var validFormatRegex = /(^(\w+\s*)+$)/;
if(!(newAgent.match(validFormatRegex))){
alert("Ungültiges Format!");
return 1;
}
// check if input value already exsists
for(var i = 0; i < pDefSelectList.length; i++) {
if(newAgent == pDefSelectList.options[i].text) {
alert("Wirkstoff ist schon eingetragen!");
return 1;
}
}
/* input value ok */
// generate URI
var forwardUrl = "http://localhost/epo/insertNewAgent.php?newAgent=" + newAgent + "&newAgentClassInt=" + pNewAgentClassInt + "&newAgentClassStr=" + pNewAgentClassStr;
// start php script
window.location.href = forwardUrl;
alert("hallo!!!!!!!!!!!");
}
irgendwelche ideen? |
|
| | |
| Gast
Beiträge: n/a
| ohne jetzt den thread künstlich nach pushen zu wollen, aber ich habs gerade eben nochmal geprüft und es bleibt das gleiche: mit alert geht es, ohne geht es nicht............ und ich seh einfach nix im quelltext was dafür die ursache sein könnte....... hat jemand schon mal ein ähnliches problem gehabt? das würde mich ja schon beruhigen wenn ich da nicht der einzige wäre...... wenn ja unter welchem browser? danke für jede info |
|
|
| Themen-Optionen | |
| Thema bewerten | |
|
|
Ähnliche Themen | ||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| probleme bei internet explorer und firefox | igron | PHP Tipps 2008 | 0 | 12.05.2008 17:27 |
| Firefox / IE - ungeahnte Statistik | pepe24 | Off-Topic Diskussionen | 10 | 30.04.2007 16:46 |
| Firefox will mein 3-spaltiges Layout mit Footer nicht (CSS)! | vampsoftchef | HTML, Usability und Barrierefreiheit | 1 | 28.02.2007 00:22 |
| templates oder css mit firefox | rbs_phoenix | HTML, Usability und Barrierefreiheit | 1 | 30.10.2006 15:24 |
| window.open mit firefox | HTML, Usability und Barrierefreiheit | 3 | 14.11.2005 17:04 | |
| Problem mit Firefox | Diego1978 | HTML, Usability und Barrierefreiheit | 9 | 11.09.2005 21:17 |
| [Erledigt] shiftKey bei Firefox abfragen | HTML, Usability und Barrierefreiheit | 2 | 05.08.2005 15:08 | |
| Problem mit PFad Firefox - Verzeichnis löschen | PHP Tipps 2005-2 | 0 | 19.07.2005 16:05 | |
| Deer Park Alpha 1 (=Mozilla Firefox 1.1) | Off-Topic Diskussionen | 15 | 09.07.2005 02:32 | |
| [Erledigt] verfluchter Firefox | HTML, Usability und Barrierefreiheit | 5 | 08.07.2005 22:51 | |
| RGB im IE anders als im Firefox ! | Cyberbob_at_tot | HTML, Usability und Barrierefreiheit | 9 | 29.06.2005 17:47 |
| FireFox :: php.net als Suchmaschine | Guradia | Off-Topic Diskussionen | 14 | 07.12.2004 13:29 |
| Firefox hui, IE pfui!!?? | Calexico | HTML, Usability und Barrierefreiheit | 12 | 04.12.2004 03:24 |
| [Erledigt] Style Sheets und Firefox, Verständnisfrage. | HTML, Usability und Barrierefreiheit | 11 | 24.11.2004 21:25 | |
| Browser FireFox --hast du das gewusst?? | Off-Topic Diskussionen | 11 | 23.09.2004 19:09 | |
| Besucher kamen über folgende Suchanfragen bei Google auf diese Seite |
| window.location.href, window.href, window href, window location href, php location.href, window.location.href firefox, location.href php, window.location, window.location.href php, php location href, php window.location.href, window.location.href =, window.location.href is not a function, windows.location.href, location href php, php window.location, location.href firefox, href new windows, window.location.href=, javascript window.location.href |

Dieser Inhalt ist unter einer Creative Commons-Lizenz lizenziert.