Solved

javascript - add scrollbars to alert function

Posted on 2008-06-23
6
539 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
Comment Utility
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
Comment Utility
In "alert()" you may not do.,
0
 
LVL 9

Author Comment

by:Evan Cutler
Comment Utility
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
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 
LVL 36

Expert Comment

by:Loganathan Natarajan
Comment Utility
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
Comment Utility
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
Comment Utility
thanks.
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

The Confluence of Individual Knowledge and the Collective Intelligence At this writing (summer 2013) the term API (http://dictionary.reference.com/browse/API?s=t) has made its way into the popular lexicon of the English language.  A few years ago, …
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
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…

771 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

10 Experts available now in Live!

Get 1:1 Help Now