Bob Bedford wrote on 04 okt 2006 in comp.lang.javascript
:
HI Evertjan, thanks for replying.
>><form name="submitsitemap" method="POST"
action="http://www.google.com/webmasters/sitemaps/ping?sitemap=<?php
echo $address;?>"></form>
<script>submitsitemap.submit();</script>
submitsitemap this way is IE only.
It's ok. I'll run it with a scheduler and I know it will be done with
IE
>>The problem is that in the URL i've this:
http://www.mysite.com/www.google.com...sitemaps/ping?.......
..
I doubt that, but please get rid of the php crap,
and ask a javascript question.
Doubt or not, it the result I've in the IE URL, and it's a javascript
question.
maybe:
<form name="submitsitemap" method="POST"
action="http://www.google.com/webmasters/sitemaps/ping?sitemap=www.mysi
te.com/sitemap.gz"will be easier to read.
Anyway, why I've the www.mysite.com/www.google result ?
I do not know, can you show a url that has this habit?
This:
=========
<form name="submitsitemap" method="POST"
action="http://www.google.com/webmasters/sitemaps/ping?
sitemap=www.mysite.com/sitemap.gz">
</form>
<script>submitsitemap.submit();</script>
=========
works fine overhere!!!
Why do you use a form submit? You do not sent post info.
Try this:
<script type='text/javascript'>
location.href = "http://www.google.com/webmasters/sitemaps/ping?
sitemap=www.mysite.com/sitemap.gz"
// in one line!!
</script>
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)