Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

javascript - add scrollbars to alert function

Posted on 2008-06-23
6
Medium Priority
?
547 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Build and deliver software with DevOps

A digital transformation requires faster time to market, shorter software development lifecycles, and the ability to adapt rapidly to changing customer demands. DevOps provides the solution.

 
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 1000 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

The top UI technologies you need to be aware of

An important part of the job as a front-end developer is to stay up to date and in contact with new tools, trends and workflows. That’s why you cannot miss this upcoming webinar to explore the latest trends in UI technologies!

Question has a verified solution.

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

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
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…

705 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