Load page within the page

By : Jaymz
Source: Stackoverflow.com
Question!

I'm a beginner in PHP and Javascript..

I found a link from http://cmichaelis.whsites.net/whblog/jquery-extjs-1/example2

Inside it there is a code saying :

function addPanel(location)
{
 tabpanel.add({
       autoLoad: {url: location},
       title: 'More Information...',
       closable:true,
       autoScroll:true
 }).show();
}

how to use :

<a href="javascript:void(0);"
   onclick="addPanel('loadpage.php?a=http://www.google.com')">
   head over to Google
</a>

What I want to ask is.. what is the code for loadpage.php?

By : Jaymz


Answers

The PHP page does not echo out the contents of google.com as suggested in the other answer. It outputs an iframe that points to Google:

<iframe src="http://www.google.com" width="100%" height="100%" frameborder="no"></iframe>


Publicobject's glazedlists has pretty much exactly what you are after. I have used it for simillar report generation requirements. It is essentially a mechanism for giving you views on an in memory list. Your views can be sorted, filtered, and generally transformed in various ways. It also has a simple update mechanism, so you can insert new items in your master list, and all filtered / sorted views will see the update event.

Traditionally it has been very popular as a backing model for Swing grids / JTables, but it is in no way tied to the Swing API and can be used anywhere you are caching a list.

When I used it we only had a few thousand objects in memory, and performance was excellent. Not sure how it scales to enormous numbers.

By : serg10


There has been some major changes in ms 2008 -> Might be worth considering the following article when making a decisions on what data type to use. http://msdn.microsoft.com/en-us/library/ms143432.aspx

Bytes per

  1. varchar(max), varbinary(max), xml, text, or image column 2^31-1 2^31-1
  2. nvarchar(max) column 2^30-1 2^30-1
By : Draz


This video can help you solving your question :)
By: admin