Solved

javascript - add scrollbars to alert function

Posted on 2008-06-23
6
540 Views
Last Modified: 2012-06-27
How do I add scrollbars to the following:

alert('There was a problem with the response text\n\n' + respText.replace(/<br>/g, '\n'));

Thanks. :)
0
Comment
Question by:Evan Cutler
  • 4
  • 2
6 Comments
 
LVL 36

Expert Comment

by:Loganathan Natarajan
ID: 21852720
better you call some custom alert pages with scroll bars ..

http://slayeroffice.com/code/custom_alert/
http://www.subimage.com/dhtml/subModal/
0
 
LVL 36

Expert Comment

by:Loganathan Natarajan
ID: 21852722
In "alert()" you may not do.,
0
 
LVL 9

Author Comment

by:Evan Cutler
ID: 21852996
Using the subimage one.

showPopWin('your_url_here.html', width, height, callback_function);

How do I replace the 'your_url...." with actual text?
Thanks
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 36

Expert Comment

by:Loganathan Natarajan
ID: 21853042
with "showPopWin('your_url_here.html', width, height, callback_function);" ... may be you can pass only the URL .. to pass the dynamic text ... may be you can try the first one.,
0
 
LVL 36

Accepted Solution

by:
Loganathan Natarajan earned 250 total points
ID: 21853047
if the include page is dynamic.. try like this,

showPopWin('your_url_here.php?str=dynamic text', width, height, callback_function);

then process it in "your_url_here.php" ..

0
 
LVL 9

Author Closing Comment

by:Evan Cutler
ID: 31470048
thanks.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: DanRollins
This article describes a JavaScript program that creates a maze made of hexagonal cells.  In Part 2 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7850-Hex-Maze-Part-2.html), we'll extend the program by adding a depth-…
jQuery is a JavaScript library that greatly simplifies JavaScript programming. AJAX is an acronym formed from "Asynchronous JavaScript and XML."  AJAX refers to any communication between client and server, when the human client does not observe a…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

896 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now