Click to See Complete Forum and Search --> : a part of any page inside our own page?
erensimsek
09-27-2006, 06:02 AM
is it possible to demonstrate a part of any page inside our own page? I think that this task can not be accomplished with iframe. Probably java script is useful.
examples:
http://www.dsakimya.com/aahah.jpg
thanks.
Charles
09-27-2006, 06:08 AM
No can do with JavaScript. You'll need to do this server side.
Znupi
09-27-2006, 06:18 AM
I think it may be achieved with Ajax, too. But a little harder...
A1ien51
09-27-2006, 06:59 AM
Ajax can not do it. You can not do Cross Domain Requests.
Use iframes or a server side language.
Eric
erensimsek
09-27-2006, 07:34 AM
ok u r right
i try again .... :(((((
erensimsek
09-29-2006, 07:57 AM
i think noone knows nothings. :P
slaughters
09-29-2006, 08:09 AM
i think noone knows nothings. :PNice attitude :confused:
The answer is yes it can be done, but it would be very complexed.
An iframe will show the entire page, not part of it so that is not the solution you are looking for, but it is part of the solution.
You can create a hidden iframe, grab it's innerHTML, assign that to the innerHTML of a hidden DIV tag in your own page then use the DOM tree to parse the HTML inside the DIV to find the part you are interested in.
Pretty complexed. I'm also not sure of the morality of actually doing this. To me it just seems to be a method that will take someone elses bandwidth and work and make it look like it is your own.
Znupi
09-29-2006, 08:20 AM
Well a real weird solution would be to use an iframe of the exact height and width of the part of the other page and scroll it to position :D (and of course, using scrolling="no")
Charles
09-29-2006, 08:37 AM
grab it's innerHTMLBut you can't do that across domains because of the security restriction. You have to use a server side script.
Charles
09-29-2006, 08:39 AM
and scroll it to position I think that you will find that you can't do that across domains because of the security restriction. You will have to use a server side script.
Znupi
09-29-2006, 02:22 PM
I think that you will find that you can't do that across domains because of the security restriction. You will have to use a server side script.
Yep ur right :rolleyes: I guess server-side's the only way :D
Wisest Guy
09-29-2006, 02:35 PM
It's a complex script to copy the exact pixels from another site.
I would use JavaScript, an IFrame, and a server-side script.