What is podcasting?
Browser Issue
Hello Guest
  
  • Login
• Register…
• Start blog
  • Who, Where, When
• What can I do?
• What to Read?
  • Polls
• Avatars
• Interests
  • Cities and Countries
• Random blog
• Users search
  • Search
• Games
• Tests
• QAIX
  • Сообщества
• Talxy Chat
• Horoscope
• Online
 
Зарегистрируйся!

QAIX > Javascript web-programming > Browser Issue 29 December 2007 07:00:25

  Recent blog posts: 
  They have birthday today: 
  Forums:   
  Discuss: 
  Recent forum topics: 
  Recent forum comments:
  Moderators:

Browser Issue

Mux 29 December 2007 07:00:25
 Hi,

I have a problem displaying large amount of data on the browser.
The size of the data is to the order of 1.9Mb.

and the time taken is about 10 seconds.
The file is a tree structure, where the depth of the tree is about 5,
and the total nodes are about 3000.

The tree is being constructed using Javascript objects and DOM
statements.
However the response time is still to the order of abt 10-15 seconds to
show the completely rendered page.

Can someone suggest a solution of how to improve the response time.
The application is on Oracle Portal.

Regards,
Mukta

Add comment
Nathan 15 June 2005 20:04:52 permanent link ]
 Don't use javascript?

Honestly, javascript is really not ideal to build large pages. Using a
proper sever-side language would probably ease the burden 10 fold.

Add comment
Richard Cornford 16 June 2005 15:51:10 permanent link ]
 Mux wrote:> I have a problem displaying large amount of data on> the browser. The size of the data is to the order of 1.9Mb.

That is an awful lot of stuff to be sending to the client in one go.
and the time taken is about 10 seconds.

And I bet that is on a fast(ish) local network. It will be at least 10
times worse in the wild.
The file is a tree structure, where the depth of the tree is> about 5, and the total nodes are about 3000.

With 3000 nodes the likelihood is that the user will only ever view a
tiny fraction, and if they do view them all it will take then so long to
do so that your 10-15 seconds will be insignificant, particularly if
distributed throughout the process.
The tree is being constructed using Javascript objects and DOM> statements.> However the response time is still to the order of abt> 10-15 seconds to show the completely rendered page.>
Can someone suggest a solution of how to improve the response time.

What you can, and/or should, do depends on the context in which the
application will be used.

In a public Internet context such a massive tree is probably the wrong
concept, and some sort of pre-selection stage that narrowed the areas of
interest down to a considerably smaller data set would be a better idea.

In an Intranet context, with known configurations/capa­bilities of
browsers, the option of progressively loading the tree data becomes
viable (via XmlHttpRequests, hidden IFRAMEs etc.). So, maybe loading the
root node and its children (or two levels of children), plus any open
(visible) branches in full, and then progressively loading sub-branches
when their ancestors are opened. Thus unvested branches never need to
have most of their data downloaded or the DOM representations of them
created.

If there are an excessive number of initially visible lower-level nodes
then you could maybe initially load a subset and provide 'next/previous'
nodes to load the neighbour of the initially loaded set (appending to
the tree when the requested additional nodes have background loaded.

In any event the DOM creation can probably be improved by not creating
the DOM nodes until the node in the tree first becomes visible, and then
switching to showing/hiding those nodes once they have been created.
That distributes the time required for DOM creation throughout the
user's interaction with the tree. And nodes that were never visited
would not require a DOM element created for them at all.
The application is on Oracle Portal.

While it is always a good idea to provide this sort of context
information, in this form it is likely to restrict contributions to this
thread to as those unfamiliar with Oracle Portal may be pot off
responding, while they might have practical experience to contribute
acquired form analogous contexts. I.E. it would be an idea to say what
'Oracle Portal' is.

Richard.


Add comment
Go Live 29 December 2007 00:44:38 permanent link ]
 HI I am not being able to figure out why my code runs in IE and not in
firefox.

the code goes like this:

***********ASP*****­***********
Response.Write "<form name=""form1"" method=""get""
target=""_blank"">"­
Response.Write " <tr>"
Response.Write " <td >"
Response.Write " <table width=""100%"" border=""0""
cellpadding=""0"" cellspacing=""0"">"­
Response.Write " <tr>"
Response.Write " <td valign=""top"" width=""200"">"
Response.Write " <input type=""text"" id=""text"" name=""text""
value=""text"">"
Response.Write " </td>"
Response.Write " <td>"
<input type=""image"" id=""search"" onclick=""
Get_Search_keyword(­);"">"
Response.Write " </td>"
Response.Write " </td>"
Response.Write " </tr>"
Response.Write " </table>"
Response.Write " </td>"
Response.Write " </tr>"
Response.Write " </form>"

*******************­*************Java script Code ****************
function Get_Search_keyword(­)

{

var TEXT1 = document.getElement­ById('text').value;
var TEXT2 = http://testsite.com­/searchwords/
var comb =TEXT2 + TEXT1;
document.form1.acti­on = comb;

}

-------------------­--------------------­--------------------­--------------------­-----------
Solution to this issue will be highly appreciated.
Add comment
Evertjan. 29 December 2007 02:00:17 permanent link ]
 Go Live wrote on 28 dec 2007 in microsoft.public.in­etserver.asp.general­:

HI I am not being able to figure out why my code runs in IE and not in
firefox.

That is not an ASP issue,
see the view-source and test clientside.

Please ask in a clientside NG.


the code goes like this:
***********ASP*****­***********
Response.Write "<form name=""form1"" method=""get""
target=""_blank"">"­
Response.Write " <tr>"
Response.Write " <td >"
Response.Write " <table width=""100%"" border=""0""
cellpadding=""0"" cellspacing=""0"">"­
Response.Write " <tr>"
Response.Write " <td valign=""top""
width=""200"">" Response.Write " <input
type=""text"" id=""text"" name=""text""
value=""text"">"
Response.Write " </td>"
Response.Write " <td>"
<input type=""image"" id=""search"" onclick=""
Get_Search_keyword(­);"">"
Response.Write " </td>"
Response.Write " </td>"
Response.Write " </tr>"
Response.Write " </table>"
Response.Write " </td>"
Response.Write " </tr>"
Response.Write " </form>"
*******************­*************Java script Code ****************
function Get_Search_keyword(­)
{
var TEXT1 = document.getElement­ById('text').value;
var comb =TEXT2 + TEXT1;
document.form1.acti­on = comb;
}
-------------------­--------------------­--------------------­------------
-------------------­ Solution to this issue will be highly appreciated.



--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Add comment
McKirahan 29 December 2007 07:00:25 permanent link ]
 "Go Live" <barunshrestha@gmai­l.com> wrote in message
news:615c0bb0-5cf8-­42be-a053-164b2eb1a5­82@p69g2000hsa.googl­egroups.com...
HI I am not being able to figure out why my code runs in IE and not in
firefox.
the code goes like this:
***********ASP*****­***********
Response.Write "<form name=""form1"" method=""get""
target=""_blank"">"­
Response.Write " <tr>"
Response.Write " <td >"
Response.Write " <table width=""100%"" border=""0""
cellpadding=""0"" cellspacing=""0"">"­
Response.Write " <tr>"
Response.Write " <td valign=""top"" width=""200"">"
Response.Write " <input type=""text"" id=""text"" name=""text""
value=""text"">"
Response.Write " </td>"
Response.Write " <td>"
<input type=""image"" id=""search"" onclick=""
Get_Search_keyword(­);"">"
Response.Write " </td>"
Response.Write " </td>"
Response.Write " </tr>"
Response.Write " </table>"
Response.Write " </td>"
Response.Write " </tr>"
Response.Write " </form>"
*******************­*************Java script Code ****************
function Get_Search_keyword(­)
{
var TEXT1 = document.getElement­ById('text').value;
var comb =TEXT2 + TEXT1;
document.form1.acti­on = comb;
}
-------------------­--------------------­--------------------­---------------
----------------

Where is the Response.Write for this line?
<input type=""image"" id=""search"" onclick=""Get_Searc­h_keyword();"">"

Where are the opening and closing table tags for the outer table?

Why use so many Response.Write statements?

Where's the "src=" for your image?

Perhaps you could use this:

Dim strHTM
strHTM = "`<form name='form1' method='get' target='_blank'>" _
& "`<table>" _
& "`<tr>" _
& "` <td>" _
& "` <table width='100%' border='0' cellpadding='0'
cellspacing='0'>" _
& "` <tr>" _
& "` <td valign='top' width='200'>" _
& "` <input type='text' id='text' name='text'
value='text'>" _
& "` </td>" _
& "` <td>" _
& "` <input type='image' id='search'
onclick='Get_Search­_keyword();'>" _
& "` </td>" _
& "` </tr>" _
& "` </table>" _
& "` </td>" _
& "`</tr>" _
& "`</table>" _
& "`</form>"
Response.Write Replace(strHTM,"`",­vbCrLf)





Add comment
 

Add new comment

As:
Login:  Password:  
 
 
  
 
Пожалуйста, относитесь к собеседникам уважительно, не используйте нецензурные слова, не злоупотребляйте заглавными буквами, не публикуйте рекламу и объявления о купле/продаже, а также материалы нарушающие сетевой этикет или УК РФ.


QAIX > Javascript web-programming > Browser Issue 29 December 2007 07:00:25

see also:
Debug Build Error - Visual Studio 2003
SqlParameter
пройди тесты:
see also:
Pretty bush
AMD vs Intel
Hi all. My firewall tell that was...

  Copyright © 2001—2008 QAIX
Idea: Miсhael Monashev
Помощь и задать вопросы можно в сообществе support.qaix.com.
Сообщения об ошибках оставляем в сообществе bugs.qaix.com.
Предложения и комментарии пишем в сообществе suggest.qaix.com.
Информация для родителей.
Write us at:
If you would like to report an abuse of our service, such as a spam message, please .