Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

.NET Forum


You are currently viewing our .NET Forum as a guest. Please register to participate.
Login



Reply
how i can open new process in the same tab is open by previous process in firfox brow
Old 03-16-2010, 11:48 AM how i can open new process in the same tab is open by previous process in firfox brow
Experienced Talker

Posts: 37
Name: ahmad
Trades: 0
Hi,
i write code to open url such as "http://www.google.com"
System .Diagnostics .Process .Start("http://www.google.com");
but every time call this line open google in the new tab
i need it to open in the same tab in firfox
i try other browser the same
Thanks
EngAhmad is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-16-2010, 12:11 PM Re: how i can open new process in the same tab is open by previous process in firfox
Extreme Talker

Posts: 246
Trades: 0
Response.Redirect("http://www.google.ca")
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
stbuchok is offline
Reply With Quote
View Public Profile
 
Old 03-16-2010, 12:16 PM Re: how i can open new process in the same tab is open by previous process in firfox
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,384
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
You can't the .net code runs serverside and starts a client side process.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 03-16-2010, 12:34 PM Re: how i can open new process in the same tab is open by previous process in firfox
Experienced Talker

Posts: 37
Name: ahmad
Trades: 0
the code i write above is generated by windows application(c#) and need to open the browser as i said above
EngAhmad is offline
Reply With Quote
View Public Profile
 
Old 03-16-2010, 01:57 PM Re: how i can open new process in the same tab is open by previous process in firfox
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,384
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
In that case you need to get the active window of the current Firefox/browser process and target that with the new location.

Your code is doing what it says, and starting a new process.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 03-16-2010, 02:58 PM Re: how i can open new process in the same tab is open by previous process in firfox
Experienced Talker

Posts: 37
Name: ahmad
Trades: 0
i need to open the new location in the active window in the same tab or same active tab...the code above every time i called generate new tab...i need one tab only for this code ..every time i called open location on active tab not new tab
EngAhmad is offline
Reply With Quote
View Public Profile
 
Old 03-16-2010, 03:28 PM Re: how i can open new process in the same tab is open by previous process in firfox
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,384
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Opening a new tab IS the firefox default action for links or actions that would normally open a new window or a new browser instance.

You will need to find some method of getting the active tab from the Firefox process, which may of course NOT be an exposed method to avoid possible exploits/hijacking.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 03-17-2010, 01:50 AM Re: how i can open new process in the same tab is open by previous process in firfox
Experienced Talker

Posts: 37
Name: ahmad
Trades: 0
in this time i'm not thinking about exploits/hijacking but i need this method to solve my problem.
EngAhmad is offline
Reply With Quote
View Public Profile
 
Old 03-17-2010, 05:09 AM Re: how i can open new process in the same tab is open by previous process in firfox
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,384
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Quote:
Originally Posted by EngAhmad View Post
in this time i'm not thinking about exploits/hijacking but i need this method to solve my problem.
YOU may not be!

BUT the developers of Firefox were (are) when they decided what methods should be exposed. Their intention was to make their browser secure from third party hijacking, so some methods are not public

It may be that you will have to write an extension (javascript) that the end user can install as a communication interface between the browser and your application.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 03-17-2010, 08:01 AM Re: how i can open new process in the same tab is open by previous process in firfox
Experienced Talker

Posts: 37
Name: ahmad
Trades: 0
and this javascript were i will apply.
EngAhmad is offline
Reply With Quote
View Public Profile
 
Old 03-17-2010, 08:19 AM Re: how i can open new process in the same tab is open by previous process in firfox
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,384
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
https://developer.mozilla.org/en/Building_an_Extension
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 03-17-2010, 03:29 PM Re: how i can open new process in the same tab is open by previous process in firfox
Experienced Talker

Posts: 37
Name: ahmad
Trades: 0
and how i can do this in firefox ,,i see the bulid in javascript when writing (about:config) in the location of url but how i can insert the javascript code in the firfox and what is javascript code will be
EngAhmad is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to how i can open new process in the same tab is open by previous process in firfox brow
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.50683 seconds with 12 queries