I tried putting the functioninto <head></head>, but still no-go.--=====================_322015281==.ALT-- Associated Messages, from the most recent to the oldest:
-Dan
On Sun, 07 Dec 2008 15:16:45 -0800
"Dan Strong" <webdna@danstrong.com> wrote:The following code no-worky asexpected. The link to Yahoo opens up in new window, but code ontest2.html does not fire.
================================
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<htmlxmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>Untitled Document</title>
<script type="text/javascript"src="js/jquery-1.2.6.pack.js"></script>
</head>
<body>
<script type="text/javascript">
function pinger() {
$('#keepempty').get("http://www.mydomain.com/test2.html", function(data){
return true;
});
}
</script>
<div id="keepempty"></div>
<ahref="http://www.yahoo.com" target="_blank"onClick="return pinger();">Test Link toYahoo!</a>
</body>
</html>
================================
I have verified the following:
1) No javascript errors
2) jquery is on server at "js/jquery-1.2.6.pack.js" and loadinginto page
3) test2.html is on server
4) when hit directly,http://www.mydomain.com/test2.html, code fires (it's a sendmail, justfor testing purposes)
I'll keep banging away at it and also looking for alternatives, but Iwanted to throw this out there in case someone can see an obvious erroror for archive sake if this ends up not working at all.
TIA,
-Dan
|
I tried putting the functioninto <head></head>, but still no-go.--=====================_322015281==.ALT-- Gary Krockover
-Dan
On Sun, 07 Dec 2008 15:16:45 -0800
"Dan Strong" <webdna@danstrong.com> wrote:The following code no-worky asexpected. The link to Yahoo opens up in new window, but code ontest2.html does not fire.
================================
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<htmlxmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>Untitled Document</title>
<script type="text/javascript"src="js/jquery-1.2.6.pack.js"></script>
</head>
<body>
<script type="text/javascript">
function pinger() {
$('#keepempty').get("http://www.mydomain.com/test2.html", function(data){
return true;
});
}
</script>
<div id="keepempty"></div>
<ahref="http://www.yahoo.com" target="_blank"onClick="return pinger();">Test Link toYahoo!</a>
</body>
</html>
================================
I have verified the following:
1) No javascript errors
2) jquery is on server at "js/jquery-1.2.6.pack.js" and loadinginto page
3) test2.html is on server
4) when hit directly,http://www.mydomain.com/test2.html, code fires (it's a sendmail, justfor testing purposes)
I'll keep banging away at it and also looking for alternatives, but Iwanted to throw this out there in case someone can see an obvious erroror for archive sake if this ends up not working at all.
TIA,
-Dan
DOWNLOAD WEBDNA NOW!
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...