ajax scripting

Helpdesk & Vraag/Aanbod
Post Reply
Wolf
Posts: 395
Joined: 16 Jun 2003, 07:32

ajax scripting

Post by Wolf »

tsja, ik ben dus bezig met wat Ajax grapjes en nu ziet het er allemaal heel makkelijk uit... ik krijg alleen geen enkel script an de gang. Hier een voorbeeld uit het boekje wat ik heb gelezen

Code: Select all

<html>
<head>
<title>Using buttons</title>
<script>

var XMLHttpRequestObject = false;
if (window.XMLHttpRequest) {
XMLHttpRequestObject = new XMLHttpRequest();
} else if (window.ActiveXObject) {
XMLHttpRequestObject = new ActiveXObject(“Microsoft.XMLHTTPâ€
help bvd de winter door... [url=http://hitman.teambvd.com]KLIK[/url] ...
join ons en klik [url=http://home.wanadoo.nl/vanunen/dnetnondialt.exe]HIER[/url]
Wolf
Posts: 395
Joined: 16 Jun 2003, 07:32

Post by Wolf »

omg, er is iets vaags met forum :D

check screenie hieronder, ik wou de code van mijn post hierboven aanpassen alleen hij laat telkens de oude code zien.

vaag of niet vaag :P

[img:1400:1024]http://www.puttenstein.com/images/screenie.JPG[/img]
help bvd de winter door... [url=http://hitman.teambvd.com]KLIK[/url] ...
join ons en klik [url=http://home.wanadoo.nl/vanunen/dnetnondialt.exe]HIER[/url]
Wolf
Posts: 395
Joined: 16 Jun 2003, 07:32

Post by Wolf »

hierbij dan de nieuwe code via screenshot:

[img::]http://www.puttenstein.com/images/screenie2.JPG[/img]

iemand enig idee wat ik verkeerd doe?
help bvd de winter door... [url=http://hitman.teambvd.com]KLIK[/url] ...
join ons en klik [url=http://home.wanadoo.nl/vanunen/dnetnondialt.exe]HIER[/url]
madman
2nd Admin
Posts: 4958
Joined: 14 Jun 2003, 21:41
Location: Arnhem
Contact:

Post by madman »

Heb je dit ook ergens online staan? Dan zou ik het namelijk ff wat makkelijker kunnen testen.. Ik zie zo op het eerste gezicht namelijk geen fouten...

[edit] Vreemd trouwens dat je je post niet kan aanpassen, mij lukt het namelijk wel![/edit]
Wolf
Posts: 395
Joined: 16 Jun 2003, 07:32

Post by Wolf »

ik zet het ff online op http://www.puttenstein.com/ajax

kiek maar eens als je tijd hebt
help bvd de winter door... [url=http://hitman.teambvd.com]KLIK[/url] ...
join ons en klik [url=http://home.wanadoo.nl/vanunen/dnetnondialt.exe]HIER[/url]
Wolf
Posts: 395
Joined: 16 Jun 2003, 07:32

Post by Wolf »

de knop "test2" is gewoon even om te testen of dat innerHTML enzo wel goed gaat (en dat werkt)
help bvd de winter door... [url=http://hitman.teambvd.com]KLIK[/url] ...
join ons en klik [url=http://home.wanadoo.nl/vanunen/dnetnondialt.exe]HIER[/url]
madman
2nd Admin
Posts: 4958
Joined: 14 Jun 2003, 21:41
Location: Arnhem
Contact:

Post by madman »

Code: Select all

XMLHttpRequestObject = new ActiveXObject(“Microsoft.XMLHTTPâ€
Wolf
Posts: 395
Joined: 16 Jun 2003, 07:32

Post by Wolf »

hij werkt idd! bedankt! (alleen nog niet in Mozilla :/)
help bvd de winter door... [url=http://hitman.teambvd.com]KLIK[/url] ...
join ons en klik [url=http://home.wanadoo.nl/vanunen/dnetnondialt.exe]HIER[/url]
Red Baron
Posts: 818
Joined: 15 Jun 2003, 10:55
Location: Groningen
Contact:

Post by Red Baron »

Omdat Mozilla geen ActiveX gebruikt wellicht :P
madman
2nd Admin
Posts: 4958
Joined: 14 Jun 2003, 21:41
Location: Arnhem
Contact:

Post by madman »

Vreemd, hier in Firefox werkt het prima...
Post Reply