hi

Im using here ie 6 and it works. but, in ie
the dom is ready only when the document is loaded so sometimes refering to
an element is impossible before the dom is loaded.

try moving the function call to the onload:

<body onload="setVar('world');">
<div id="var"></div>
</body>


On 8/20/09, david <david.brill...@gmail.com> wrote:
>
>
> Hi Milko,
>
> which version of IE, because I test it with IE6, and it wotks.
>
> --
> david
>
> On 18 août, 18:18, milko <mi...@kretschmann.nl> wrote:
> > Hello,
> >
> > I made an ajax-routine using request and json, which works fine under
> > all browsers except under IE.
> > For the sake of illustration I made a simplified version of this. The
> > link is:http://www.cartesians.com/geefeenster/ajax_test.html
> > It should show the text: "Hello world". The code of the (php-) script
> > being called in the routine - ajax_test.php - is as follows:
> >
> > <?php
> > $data['result'] = 'Hello '.$_GET['par'];
> >
> > header('X-JSON: (' . json_encode($data) . ')');
> > header('Content-type: application/x-json');
> > echo json_encode($data);
> > ?>
> >
> > Can anyone tell why this does not work under IE and what to do to make
> > it work.
> >
> > Many thanks in advance.
> >
> > Milko Kretschmann.
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to