473,387 Members | 3,821 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Getting content of an IFrame

Hi, is there some posibility how to get content of an IFrame ? I know
how to do it with JavaScript but I'm dealing with this functionality:

1. User opens from my webapp modalpopup (with AJAX modalPopup)
2. In the content of modalpopup is an IFrame
3. In this IFrame will be another webapp started
4. User creates his configuration in this IFrame with that webapp and
clicks on Button EXPORT RESULTS
5. Now that IFrame shows new page with result like:

session_id: 123
vehicle_id:81008220060515
vehicle_name:Volvo S40 T5 AWD Summum 4 trg. Limousine '07
vehicle_total_price:€ 36.250
vehicle_price_of_options:
vehicle_manufacturer_code:
option_count:0

6. then he clicks on OK Button in ModalPopup (code behind function
OnOK() will be fired)...and at this point, I would like to get that
exported result and save it into DB.

How can I deal with this problem ?

Please help.
Dec 7 '06 #1
2 1575
cross site scripting will also prevent javascript from accessing it
also. you need to write a proxy page (see webclient) on your site that
call the secondary site and passes the html to the iframe. then your
server will see all traffic.

-- bruce (sqlwork.com)

Sody wrote:
Hi, is there some posibility how to get content of an IFrame ? I know
how to do it with JavaScript but I'm dealing with this functionality:

1. User opens from my webapp modalpopup (with AJAX modalPopup)
2. In the content of modalpopup is an IFrame
3. In this IFrame will be another webapp started
4. User creates his configuration in this IFrame with that webapp and
clicks on Button EXPORT RESULTS
5. Now that IFrame shows new page with result like:

session_id: 123
vehicle_id:81008220060515
vehicle_name:Volvo S40 T5 AWD Summum 4 trg. Limousine '07
vehicle_total_price:€ 36.250
vehicle_price_of_options:
vehicle_manufacturer_code:
option_count:0

6. then he clicks on OK Button in ModalPopup (code behind function
OnOK() will be fired)...and at this point, I would like to get that
exported result and save it into DB.

How can I deal with this problem ?

Please help.
Dec 7 '06 #2
bruce barker wrote:
cross site scripting will also prevent javascript from accessing it
also. you need to write a proxy page (see webclient) on your site that
call the secondary site and passes the html to the iframe. then your
server will see all traffic.

-- bruce (sqlwork.com)

Sody wrote:
>Hi, is there some posibility how to get content of an IFrame ? I know
how to do it with JavaScript but I'm dealing with this functionality:

1. User opens from my webapp modalpopup (with AJAX modalPopup)
2. In the content of modalpopup is an IFrame
3. In this IFrame will be another webapp started
4. User creates his configuration in this IFrame with that webapp and
clicks on Button EXPORT RESULTS
5. Now that IFrame shows new page with result like:

session_id: 123
vehicle_id:81008220060515
vehicle_name:Volvo S40 T5 AWD Summum 4 trg. Limousine '07
vehicle_total_price:€ 36.250
vehicle_price_of_options:
vehicle_manufacturer_code:
option_count:0

6. then he clicks on OK Button in ModalPopup (code behind function
OnOK() will be fired)...and at this point, I would like to get that
exported result and save it into DB.

How can I deal with this problem ?

Please help.
Thak you for your help....but could you give me more info how to create
that WebClient please ? Some link or example will be OK.
Dec 7 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Lorenzo Vaina | last post by:
Can i get the content of an URL and put it in a variable using javascript? I want js execute different operations varying a file that is on internet. Thanks, regards.
3
by: inonzuk | last post by:
Hello dear javascripts wizards, I hope I will make myself clear enough.... I have an "index.html" file which have an IFRAME and a button (outside the IFRAME). pressing the button loads a...
15
by: Aaron Gray | last post by:
<iframe name="iframe" width="100%" height="25%" src="test1.txt"> </iframe> <a href="test1.txt" target="input">one</a> <a href="test2.txt" target="input">two</a> <form name="form1"> <textarea...
1
by: bjorn2k | last post by:
Hi All, I'm working on a webpage. In this webpage i have an IFrame. I load html files in this I frame, but then i get those scrollbars which i want to get rid off. My Iframe has a fixed width....
9
by: aatcbbtccctc | last post by:
Hi folks I've googled for an answer to this, with no success. Can someone please jump in, and put me out of my misery! (I'm sure it's quite simple) I have an invisible IFRAME, and a visible...
6
by: Duncan | last post by:
Does anybody know how the following can be acheived using html or xhtml? I need to present colleagues with a 'to-do' list. Lets say the list has ten or so jobs and each job consists of five or...
4
by: Drew | last post by:
This might beyond the scope of this group because it deals with SharePoint, but I'm not sure if I can't get it to work because of SharePoint or because JavaScript is weird (I don't have much...
9
by: jad2006 | last post by:
Hi guys We have a requirement like in one iframe we have to show one site and in another iframe we have to show some other external site, we did it using <iframe src="http://www.a.com">...
3
by: smartphreak | last post by:
not sure if this is the right forum but i will try explain myself. lets start by giving the code <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
Oralloy
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,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.