Ad
News

Sun joins AJAX standards groups

Published on June 19, 2006

In an effort to influence emerging standards for Asynchronous JavaScript and XML (AJAX) and ensure the interoperability of tools that support the programming methodology, Sun Microsystems announced plans Friday to join the OpenAjax Alliance and the Dojo Foundation. Read more

Seagate ships 5 GByte pocket drive

Published on October 25, 2004

Seagate announced availability of its pocket harddrive drive for users who want to carry their digital data in a small form factor device. The company also has begun shipping a 2.5" portable harddrive with 100 GByte capacity. Read more

Storage virtualization tools refined

Published on April 02, 2005

IBM, Network Appliance Inc. Read more

Adobe patches Acrobat security flaw

Published on January 11, 2007

Adobe's Acrobat flaw caused a stir when it was first announced by researchers Stefano Di Paola and Giorgio Fedon, in large part because Acrobat has seen enormous adoption rates by companies and consumers alike. Read more

Latest Reviews & Articles

Tom's Holiday Buyer's Guide 2008, Part 4

Published on December 02, 2008

Welcome to part four of our Holiday Gift Guide coverage. This time around, the Tom's Hardware staff picks its favorite components for your wish list rounding out 2008. Read more

4GB Gets Cheap: 9 Dual-Channel Kits Compared

Published on December 01, 2008

Recent price drops have made 4 GB DDR2 dual-channel kits affordable for even the most cost-conscious buyers. We pushed nine models to their limits to determine best value for a broad range of users. Read more

System Builder Marathon: Performance & Value

Published on November 28, 2008

We tightened the budget on this month’s enthusiast-level system while loosening our belt for the low-cost gamer box by a similar percentage. Today we gauge the effect of these changes on performance and value and compare to last month's machines. Read more

System Builder Marathon: $1,250 Enthusiast PC

Published on November 27, 2008

On this, the second day of our System Builder Marathon, Don turns down the price tag of his mid-range build looking for a sweet spot just above the $1,000 marker. Let's see what sort of hardware he found for it! Read more

  Tom's Hardware Forums » PDA » PocketPC » javascript multidimensional arrays on Pocket IE - Do they ..
 

javascript multidimensional arrays on Pocket IE - Do they ..




Word :   Username :  
 
Bottom
Author
 Thread : javascript multidimensional arrays on Pocket IE - Do they ..
 
More Information

Archived from groups: microsoft.public.pocketpc,microsoft.public.pocketpc.developer (More info?)

 

Hi There,

Been working on this project with an imminent deadline. Was creating some
code for a webpage to run on Pocket IE.

Coded it fine on desktop IE and the JavaScript uses multidimensional arrays.
The code does not run when on pocket PC and before trying to look at all the
other possibilities for problems I though I would ask if anyone knows
whether JavaScript multidimensional arrays are supported on Pocket Internet
Explorer.

The other command that I do use that I had not used before is
..insertAdjacentHTML, but I am sure that this is OK.

Any help appreciated.

Kind regards

Dave.

Related Product

Register or log in to remove.

More Information

Archived from groups: microsoft.public.pocketpc,microsoft.public.pocketpc.developer (More info?)

 

Further to my last posting, some tedious experimentation has revealed that
the

object.insertAdjacentHTML("BeforeBegin",stringtoinsert);

is what is causing my the javascript on Pocket IE to stop executing.

In my case obect is the ID of a <p> element
e.g.
<p id="MARKER"> </p>

And then I have

MARKER.insertAdjacentHTML("BeforeBegin",stringtoinsert);

So is this command not supported or am I doing something wrong. If it is not
supported how can I insert HTML into my webpage on Pocket IE.

Regards

Dave

More Information

Archived from groups: microsoft.public.pocketpc (More info?)

 

On Thu, 16 Sep 2004 18:54:24 +0100, "Dave Smithz" <SPAM FREE WORLD>
wrote:

>Hi There,
>
>Been working on this project with an imminent deadline.

They always are. Beat some sense into your marketing department ;-)

> Was creating some code for a webpage to run on Pocket IE.
>>Coded it fine on desktop IE and the JavaScript uses multidimensional arrays.
>The code does not run when on pocket PC and before trying to look at all the
>other possibilities for problems I though I would ask if anyone knows
>whether JavaScript multidimensional arrays are supported on Pocket Internet
>Explorer.

Yes, they are. IE on PPC (at least, most recent versions) uses
Javascript1.5 which is broadly what is in use by IE5 on desktops.

>The other command that I do use that I had not used before is
>.insertAdjacentHTML, but I am sure that this is OK.

And that's where you're going wrong. PocketIE doesn't support dynamic
content creation. That is, you can't use innerHTML and so on once the
document has loaded.

There are ways round this using XML/XSL for the content, or using a
frameset which 'document.write's the content you want to add. Neither
is especially trouble-free but it can be made to work.

HTH
Cheers - Neil

More Information

Archived from groups: microsoft.public.pocketpc (More info?)

 

On Thu, 16 Sep 2004 23:13:25 +0100, "Dave Smithz" <SPAM FREE WORLD>
wrote:


>In my case obect is the ID of a <p> element e.g.
><p id="MARKER"> </p>
>
>And then I have
>
>MARKER.insertAdjacentHTML("BeforeBegin",stringtoinsert);
>
>So is this command not supported or am I doing something wrong. If it is not
>supported how can I insert HTML into my webpage on Pocket IE.

Are you trying to insert the content at runtime or afterwards ?

If it's when you're creating the page, save the content to a variable
and document.write it into the page. Otherwise (after the page has
loaded) you'll need to create a page-reload strategy which collates
parameters (eg from a query string) and creates the content from that
at runtime.

Cheers - Neil


  Tom's Hardware Forums » PDA » PocketPC » javascript multidimensional arrays on Pocket IE - Do they ..

Go to:
 

Google Ads