Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Loading HTML
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
fernyb  
View profile  
 More options Jun 7 2010, 1:57 am
From: fernyb <fern...@gmail.com>
Date: Sun, 6 Jun 2010 22:57:36 -0700 (PDT)
Local: Mon, Jun 7 2010 1:57 am
Subject: Loading HTML
I've been trying to figure this out the entire day with some success.
I'm using node js and I have an html string. How would I go about
loading this into env.js?

I've tried:
window.document.body.innerHTML = "...." but this removes the html head
tags and I only see the body html of the document I'm trying to load.

I've also looked into possible using this: "__exchangeHTMLDocument__"
but I'm very unsure how to go about doing this.

Any pointers would be great.
Thanks you.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
chris thatcher  
View profile  
 More options Jun 9 2010, 1:29 pm
From: chris thatcher <thatcher.christop...@gmail.com>
Date: Wed, 9 Jun 2010 13:29:34 -0400
Local: Wed, Jun 9 2010 1:29 pm
Subject: Re: [env-js] Loading HTML

Sorry for the delayed response, I was off the grid for a couple days.

doc.baseURI = url;
HTMLParser.parseDocument(text, doc);
Envjs.wait();

which should do the trick. (where doc may be the global document, text is
you html string, and url is what document.location will use to report url
parts)

PS, setting document.async = false makes parsing much much faster at this
point until we have time to track down an issue.  this basically has a trade
off that you cant use document.write calls mid-parse but we will get that
fixed soon.

Thatcher

--
Christopher Thatcher

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »