Submit Your Article Webforumz RegistrationAnnouncements Contact Webforumz StaffContact
Home Resources Blogs Meet the Team Contact Register
 

Go Back   WebForumz.com > The Code > JavaScript

Closed Thread
 
LinkBack Thread Tools
Old March 17th, 2005, 05:43 PM   #1
New Member
 

Join Date: Mar 2005
Location: Southampton
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 webezine is on a distinguished road
JavaScrip alert windows. HELP!

Hello all I need a little help with some JavaScript. I need to know if it is possible to change something on an error message alert box. Currently i have a error alert box and the title is internet explorer. I need to know if I can change this to something else for example South coast escapes. I fyou have any ideas can you post it please! Thanks.

Also I'm looking on how to identify what browser someone is using ans have it open a pop up and say for example hello you are using internet explorer this site is best viewed at 8660 * 4000 etc....

Any ideas?
webezine is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Old March 17th, 2005, 07:17 PM   #2
WebForumz Admin Badge
 

Join Date: Jul 2003
Posts: 1,848
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 118 Webforumz Staff is on a distinguished road
I don't believe it is possible to change the title of an alert window, but more importantly, why are you showing one in the first place? I can think of no valid reason for such a message to appear and be of any use to a visitor.

I also see no point in telling someone what browser they are using and what resolution the site is best viewed at. Your site should work in all common resolutions - Everything from 800x600 and up and if it doesn't then you may need to rethink your design. I don't believe many users would change their resolution just to view your website properly.
Webforumz Staff is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Old March 18th, 2005, 12:36 AM   #3
New Member
 

Join Date: Mar 2005
Location: Southampton
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 webezine is on a distinguished road
I understand what your saying. Its not a real site its for an assignment. I have to show certain things for example java validation of a form which i have done in some sorts, hence the use of an alert window. and i want to create a pop up window.
webezine is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Old March 18th, 2005, 02:59 AM   #4
Most Reputable Member
 
spinal007's Avatar
 

Join Date: Mar 2004
Location: Good Ol'London
Age: 24
Posts: 1,684
Blog Entries: 1
Thanks: 1
Thanked 4 Times in 4 Posts
Rep Altering Power: 0 spinal007 has a spectacular aura about spinal007 has a spectacular aura about
if you really need to change the title, and if you're allowed to, you can use VBScript which lets you specify the messages's title:

Code:
<SCRIPT language="VBScript">
Function Show_Alert_With_Title(strTitle, strMessage)
 MsgBox(strMessage, vbOkOnly & vbInformation, strTitle)
End Function
</SCRIPT>
<SCRIPT language="JSCript">
function my_alert(strTitle, strMessage){
 Show_Alert_With_Title(strTitle, strMessage)
}
</SCRIPT>
Then on your code, instead of this:
Code:
alert('this is my message');
you can use this:
Code:
my_alert('this is my message', 'this is the title of the message');
__________________
Diego - Web-Developer & London SEO Expert
jQuery Plugins: Multiple File Upload, Star Rating, FCKEditor | NEW: XML to JSON
spinal007 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Old March 18th, 2005, 03:04 AM   #5
New Member
 

Join Date: Mar 2005
Location: Southampton
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 webezine is on a distinguished road
Yeah i know vb code like the back of my hand but it has to be in JavaScript! thanks anyway!
webezine is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Old March 18th, 2005, 03:24 AM   #6
WebForumz Admin Badge
 

Join Date: Jul 2003
Posts: 1,848
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 118 Webforumz Staff is on a distinguished road
It's not possible in Javascript (the alert title change).

For the other you'll just use any of the many browser detection scripts out on the web. There's several different methods they use.

http://www.google.com/search?q=javas...wser+detection
Webforumz Staff is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Old April 21st, 2005, 07:18 PM   #7
New Member
 

Join Date: Apr 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 avitar.net is on a distinguished road
You can't actualy do that, you can however open a page that is centered on the middle of the screen and that opens fullscreen that takes the window focus....

this will however really piss off people who do not want to use your app such as for pupup window advirtising and you will get your site black listed if this is your intent.

I see no legitimate reason to try and force a user to stay at a screen so although it is possible Im not giving you any help until you can give me one.
avitar.net is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Closed Thread

Bookmarks

Tags
javascrip , alert , windows , help


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Alert Box acrikey JavaScript 4 March 25th, 2008 08:23 PM
alert Message messing up sdbdgwood JavaScript 0 February 8th, 2008 12:15 PM
javascript alert ycpc55 JavaScript 1 January 6th, 2007 10:02 PM
One-time, IP based alert? krazykikikatt JavaScript 3 April 4th, 2006 09:50 PM


Search Engine Optimization by vBSEO 3.2.0 RC8