I have an url of a webpage.
I would like to load the content of the webpage to a variable.
Sth like this:
variable = loadwebpage( url )
How to do it?
(I have just spent more than an hour googling for a recipe - without
satisfaction)
-tt. 11 8199
Tomek Toczyski wrote:
I have an url of a webpage.
I would like to load the content of the webpage to a variable.
Sth like this:
variable = loadwebpage( url )
How to do it?
Provided that protocol, domain and port part of the request URIs are the
same, you can use the (I)XMLHttpReque st object. Otherwise you have to use
a server-side solution, at least partially. You can work around the Same
Origin Policy with URL rewrite, or you can retrieve the resource with
server-side scripting.
Note that copyright/author's rights may be involved.
This was a FAQ.
HTH
PointedEars
--
"Use any version of Microsoft Frontpage to create your site. (This won't
prevent people from viewing your source, but no one will want to steal it.)"
-- from <http://www.vortex-webdesign.com/help/hidesource.htm>
Thomas 'PointedEars' Lahn:
Tomek Toczyski wrote:
>I have an url of a webpage. I would like to load the content of the webpage to a variable.
Sth like this:
variable = loadwebpage( url )
How to do it?
Provided that protocol, domain and port part of the request URIs are the
same, you can use the (I)XMLHttpReque st object.
Yes, everything is the same.
Thank you for your hint. But I need a working recipe.
I am not an AJAX programmer and I have only basic knowledge of Javascript
and I have no time to learn it at the moment.
I need a recipe for loading a webpage to a variable...
One simple thing. I will be glad for your help.
-tt
Tomek Toczyski wrote:
Thomas 'PointedEars' Lahn:
>Tomek Toczyski wrote:
>>I have an url of a webpage. I would like to load the content of the webpage to a variable.
Sth like this:
variable = loadwebpage( url )
How to do it?
Provided that protocol, domain and port part of the request URIs are the same, you can use the (I)XMLHttpReque st object.
Yes, everything is the same.
Thank you for your hint. But I need a working recipe.
I am not an AJAX programmer and I have only basic knowledge of Javascript
and I have no time to learn it at the moment.
I need a recipe for loading a webpage to a variable...
You are looking for a paid support forum, not this discussion group.
One simple thing. I will be glad for your help.
How much exactly?
PointedEars
--
Prototype.js was written by people who don't know javascript for people
who don't know javascript. People who don't know javascript are not
the best source of advice on designing systems that use javascript.
-- Richard Cornford, cljs, <f8************ *******@news.de mon.co.uk>
You are looking for a paid support forum, not this discussion group.
I thought that my problem is quite common and there is a working recipe
for it. I might be wrong.
>
>One simple thing. I will be glad for your help.
How much exactly?
zero $.
I need it for a webpage that I develop as a volunteer.
Sorry.
-tt.
Tomek Toczyski said the following on 8/13/2007 5:25 AM:
>You are looking for a paid support forum, not this discussion group.
I thought that my problem is quite common and there is a working recipe
for it.
It is a common question here. So common it is answered in the group FAQ:
<URL: http://jibbering.com/faq/index.html#FAQ4 _44>
I might be wrong.
You aren't wrong in that regards.
>>
>>One simple thing. I will be glad for your help.
How much exactly?
zero $.
I need it for a webpage that I develop as a volunteer.
Sorry.
Ignore Thomas, he might exit puberty in a few years.
--
Randy
Chance Favors The Prepared Mind
comp.lang.javas cript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Randy Webb meinte:
Tomek Toczyski said the following on 8/13/2007 5:25 AM:
>>You are looking for a paid support forum, not this discussion group.
I thought that my problem is quite common and there is a working recipe for it.
It is a common question here. So common it is answered in the group FAQ:
<URL: http://jibbering.com/faq/index.html#FAQ4 _44>
Given the information by the OP: Do you think those links are helpful
*for him*?
>zero $.
I need it for a webpage that I develop as a volunteer.
That does not necessarily justify, that others have to work for you for
free as well.
Ignore Thomas, he might exit puberty in a few years.
Well, you sound pretty grown up...
Gregor
-- http://www.gregorkofler.at ::: Landschafts- und Reisefotografie http://www.licht-blick.at ::: Forum für Multivisionsvor träge http://www.image2d.com ::: Bildagentur für den alpinen Raum
Gregor Kofler said the following on 8/13/2007 5:42 AM:
Randy Webb meinte:
>Tomek Toczyski said the following on 8/13/2007 5:25 AM:
>>>You are looking for a paid support forum, not this discussion group.
I thought that my problem is quite common and there is a working recipe for it.
It is a common question here. So common it is answered in the group FAQ:
<URL: http://jibbering.com/faq/index.html#FAQ4 _44>
Given the information by the OP: Do you think those links are helpful
*for him*?
Actually, yes. Since the OP stated "I would like to load the content of
the webpage to a variable", the only reasonable approach to that would
be an AJAX request or to load it in an IFrame and read the innerHTML or
such of the IFrame.
--
Randy
Chance Favors The Prepared Mind
comp.lang.javas cript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Randy Webb:
It is a common question here. So common it is answered in the group FAQ:
<URL: http://jibbering.com/faq/index.html#FAQ4 _44>
exactly: http://jibbering.com/faq/index.html#FAQ4_38
Tkank you very much!
It is what I have been looking for.
(I didn't checked it in FAQ before because jibbering.com was unavailable
for me few hours ago)
-tt.
Randy Webb meinte:
>Given the information by the OP: Do you think those links are helpful *for him*?
Actually, yes. Since the OP stated "I would like to load the content of
the webpage to a variable", the only reasonable approach to that would
be an AJAX request or to load it in an IFrame and read the innerHTML or
such of the IFrame.
I know. But to me it sounded more like "I want a ready-to-roll solution"
(i.e. copy 'n' paste); anyway, I was obviously wrong on that.
Gregor
-- http://www.gregorkofler.at ::: Landschafts- und Reisefotografie http://www.licht-blick.at ::: Forum für Multivisionsvor träge http://www.image2d.com ::: Bildagentur für den alpinen Raum This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: user |
last post by:
when i first load index.php with arguments ie: "index.php?page=x", the
$_SERVERvalue is null. I then get the session id appended to
each link. If i refresh the page, I get the $_SERVER I want,
but if i click a link $_SERVER returns the value I want and
the session id.
Any ideas as to how I can get the $_SERVER to return the
arguments on first page load?
|
by: William LaMartin |
last post by:
If I create a RadioButtonList with, say, two items, then after the page
loads and I select one of the items and then click on a button whose click
event contains some code to display the RadioButtonlList's selected value,
there is nothing.
On a postback, with the dynamically created button list visible on the page
and the first item selected, if I try some code like "If
Me.RadioButtonList1.Items(0).Selected = True Then.......", then I...
|
by: Frank 'Olorin' Rizzi |
last post by:
Hello everyone.
This is quite convoluted, but I'll try to make it simple.
I have a couple of bottom-line questions (I guess):
1~ what happens between the Page_Load routine in the code behind of an aspx
page and the
presentation of the page to the user?
2~ is it true that the engine takes data from the Request.Form and puts them
|
by: Goober |
last post by:
I have a page that receives a session variable from the default.aspx.
On Page load, the code in Page load gets executed twice. So far, no
problem. It sets the session variable each time, correctly.
However, when I click on a menu item in that page, it then executes the
same page load twice, before transferring control (via a
response.redirect) to the new page. On the first pass through the page
load of the menu page, the session...
|
by: Dan Nash |
last post by:
Hi guys
Ok, i have an aspx with a user control. In the user controls pageload i set
a property (mystring = "test";). i then want to access that from the
page_load of the aspx thats using the control.
the problem is that the pageload for the page fires before the pageload for
the control, so if i say in my pageload
response.write(control.mystring);
| |
by: Reza Nabi |
last post by:
Bakground: I have a webform (LoadCtl.aspx) which loads the user control to a
placeholder dynamically based on the ctlName querystring passed in the URL.
Webform (LoadCtl.aspx) also passes a variable (targetId) in to the
usercontrol (IntergySite.aspx) by calling its setter method.
Currently, I am using if-then-else and hardcoded the User Control Object to
do casting and call the setter method.
Question: Is there any way I could load,...
|
by: H00ner |
last post by:
Hello All
Hope you can help
Been pulling my hair out about a popup problem in ASP.NET. One of the
forms i wrote requires the user to select a product from a list in a
popup web form. the popup has a DataGrid on it and the page.load
function DataBinds as you'd expect.
I have Code-Behind in C# to emit a call to a JavaScript function which
|
by: Vidyadhar Joshi |
last post by:
I have the following scenario in a true load balanced environment (without
sticky sessions):
There are 2 ASPX pages. I want to pass an object from the first page to the
second page. On the btnContinue_Click event of Page1.aspx, I create the
object and store it in a session variable. The next statement would be
Response.Redirect("Page2.aspx"). The code appears like this:
private void btnContinue_Click(object sender, EventArgs e)
{...
|
by: GauravGupta |
last post by:
i want to know that is it posible to call button click event before
page load event on post back....
please help me....
|
by: GauravGupta |
last post by:
i am displaying a table in page load whose data is fetched from
database .
it also check what data is to be displayed from data base by a
session
variable.
and i have few button which change the session variable value.
when i click on some button page load is called before button click
event,
so data which is displayed is according to previous session not the
session changed by button click.
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |