Staying in the same browser window?

Hi,

I am a newbie to RoR. I have the following question:
     Suppose there is a link in a view (MyView) which opens
     a third party graphics application(3PGA). The control
     returns back to Rails after manipulation in 3PGA. But
     the problem is now MyView opens up a new browser window.
     I wish to stay in the current window itself. How do
     I do it?

Thanks and if you didn't understand it, I can make it clearer.

Best,
Ram.

Hi Chris,

This sounds like a problem with the way the ‘third party graphics
application’ is re-launching the URL in the browser. Doesn’t seem like
it’s a Rails-related problem.

May be not… because there is already the same application
with coldfusion that is able to open in the previous browser
window itself.

Is the ‘third party graphics application’ an actual separate
application that is running on the user’s computer? Or does it run in
the browser somehow?

Its a GIS application and runs in the browser. Whenever an event
like mouseclick happens, then it talks back to the called application
alongwith some information.

Hope that helps…

Thanks,
Shankar.

Ram wrote:

I am a newbie to RoR. I have the following question:
     Suppose there is a link in a view (MyView) which opens
     a third party graphics application(3PGA). The control
     returns back to Rails after manipulation in 3PGA. But
     the problem is now MyView opens up a new browser window.
     I wish to stay in the current window itself. How do
     I do it?

This sounds like a problem with the way the ‘third party graphics
application’ is re-launching the URL in the browser. Doesn’t seem like
it’s a Rails-related problem.

Is the ‘third party graphics application’ an actual separate
application that is running on the user’s computer? Or does it run in
the browser somehow?

Chris

Ram wrote:

This sounds like a problem with the way the ‘third party graphics
application’ is re-launching the URL in the browser. Doesn’t seem like
it’s a Rails-related problem.

May be not… because there is already the same application
with coldfusion that is able to open in the previous browser
window itself.

Your best bet will be to compare the HTML that is being produced by
Rails, and see how it is different from the HTML that the Coldfusion
version is producing. Maybe there is some different parameters being
passed to the GIS app, or there’s some different JavaScript or
something.

Also, have a look at the URL in the browser address bar, and the URL
that the GIS app is generating – there’s a slight chance that it’s to
due to some odd discrepancy between URLs that didn’t exist in the
Coldfusion version.

But generally, apart from the contents of the HTML and the URLs
involved, I can’t see any way that anything on the server-side that
will affect whether your browser opens the URL in a new window or in
the same window. It really doesn’t look like a Rails-specific problem.

Chris

Your best bet will be to compare the HTML that is being produced by
Rails, and see how it is different from the HTML that the Coldfusion
version is producing. Maybe there is some different parameters being
passed to the GIS app, or there’s some different JavaScript or
something.

Also, have a look at the URL in the browser address bar, and the URL
that the GIS app is generating – there’s a slight chance that it’s to
due to some odd discrepancy between URLs that didn’t exist in the
Coldfusion version.

But generally, apart from the contents of the HTML and the URLs
involved, I can’t see any way that anything on the server-side that
will affect whether your browser opens the URL in a new window or in
the same window. It really doesn’t look like a Rails-specific problem.

Thanks for your reply. I think there is some javascript which
I may have to look at !

A slightly different question: in the above scenario, after I click
on the link in my view, it doesn’t paste the url of the link (which is
the GIS popup) in the address bar but the url remains the same. Is it
possible to paste this url of the link in the address bar?
(I guess this is a rails question or? :wink: )

Best,
Ram

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs