Hi Sir,

      With the research i have done, i came to know that this is the problem
with the script written on yahoo site.
i.e,
<script language="javascript">
if(top.location != self.location)
top.location = self.location.href;

The above code snippet is causing the problem.

When i have gone through the Http Response Status codes, i found one thing
to be interesting.
 HTTP_STATUS_RESET_CONTENT 205
The request has been completed, and the client program should reset the
document view that caused the request to be sent to allow the user to easily
initiate another input action
So i thought, this is what is happening with me, so i tried calling yahoo
mail using AJAX thinking that i could catch the response code.
But all i ended up is, i got empty responseText and the staus code to be
"0".

Please help me out if there is any other better way of doing this.

Thanks and Regards,
Vikranth Diddige,
Ph.o: 91-9886773630.


On 7/17/07, Walter Lee Davis <[EMAIL PROTECTED]> wrote:
>
>
> There's a couple of ways I can imagine this being the case. One would
> be if there was some sort of "frame-buster" script on yahoo's site.
> Another would be that the form tag on that site specified the target of
> _top. If either of these is the case, and you don't work at yahoo,
> you're going to have to work out another approach. An iframe is simply
> not going to work in this case.
>
> You might be able to build a proxy using cURL or similar, something
> which can submit a form, read the results, process them, and then
> insert them into your page or page fragment, which you then reload
> using an Ajax call or similar. But that's an awful lot of work for what
> might be limited gain.
>
> What is your goal here?
>
> Walter
>
> On Jul 17, 2007, at 9:40 AM, diddige wrote:
>
> >
> > Dear Sir/Madam,
> >
> > I have a requirement where i need to upload websites in a window, for
> > which i'm using iframe.
> > The problem i face is that i'm able to upload all the sites except few
> > sites like http://www.gmail.com, http://www.mail.yahoo.com.
> > The code im using is as below
> > <iframe src="http://www.mail.yahoo.com";></iframe>
> >
> > The problem is that when im trying to run the above yahoo mail's
> > landing page is getting opened in the entire browser reather than
> > getting opened in the iframe, which is resulting in logging out of my
> > application.
> >
> > Please help/suggest me a way where i can keep track of it, in order
> > atleast i can provide a warning message to the user saying that "You
> > cannot upload this website".
> >
> > Thanks in advance.
> >
> >
> > >
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to