• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Peter Rooke
  • Himai Minh
Bartenders:
  • Piet Souris
  • Mikalai Zaikin

Can I force a link to open in IE?

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We are using a web form at work, and when someone submits the form they receive a confirmation email. There is a hyperlink in the body of the email, which they can use to view their ticket. The email is generated with CDONTS.

The form looks best in IE - in any other browser there are some things that do not display very well. What I am wondering is this - is there any way of specifying in the code to open the link in IE, even if a different browser is already open?

I appreciate any help you can give.

Don
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can not specify the browser. The link will open up in their default browser.

Eric
 
Sheriff
Posts: 67706
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

in any other browser there are some things that do not display very well.



Rather than force the browser (which you cannot do, as noted), why not fix the form?
 
Donny Frank-Rice
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks, all.

I did not think that you could specify a particular browser, but it could not hurt to ask.

As to fixing the form, I am not entirely sure how to do that. I do not know HTML, and I am a beginner at using java and javascript. This was something that I found on the web and have been using. Everything looks OK except for the text boxes - Netscape does not show all of the borders.

Anyway, thanks for your help.
 
Eric Pascarello
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can show us the code

OR

you can try using: http://validator.w3.org/

Eric
 
Bear Bibeault
Sheriff
Posts: 67706
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, this forum is the perfect place for you to ask for help on getting things to work cross-browser.
 
Donny Frank-Rice
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You are absolutely right, I could post the code here. Let's see, since I do not know which piece is necessary, I will send it all. It's long, so bear with me. Here goes...

 
Donny Frank-Rice
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
OK, so I was able to get everything working cross-browser. My problem was that the css file that came with this program (that I downloaded) needed tweaking. You see, Netscape would not show text areas at all, and only the top and left borders of text boxes. The css showed the borders set to none for text areas and once I changed that Netscape started showing those.

Now for the text boxes. I really do not know HTML, so I spent the better part of two days researching this issue. Finally, I found a solution that works. I guess Netscape 7's default behavior for rendering an <input> tag is showing a text box with what looks like a transparent right and bottom border. So here is what I did in order to get a border all the way around...

On the css, I added a class called ".text":


Then, on the asp file, I added the following to the <input> tag:
 
Bear Bibeault
Sheriff
Posts: 67706
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you'd like to get around having to explicitly assign a style class, you could implicitly apply the style to all text boxes with something along the lines of:



This selector will automatically assign the style to all input elements of type text without you having to explicitly add a class to the elements.
 
Donny Frank-Rice
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the tip!
reply
    Bookmark Topic Watch Topic
  • New Topic