Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 555
  • Last Modified:

javascript - add scrollbars to alert function

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
Evan Cutler
Asked:
Evan Cutler
  • 4
  • 2
1 Solution
 
Loganathan NatarajanLAMP DeveloperCommented:
better you call some custom alert pages with scroll bars ..

http://slayeroffice.com/code/custom_alert/
http://www.subimage.com/dhtml/subModal/
0
 
Loganathan NatarajanLAMP DeveloperCommented:
In "alert()" you may not do.,
0
 
Evan CutlerVolunteer Chief Information OfficerAuthor Commented:
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
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

 
Loganathan NatarajanLAMP DeveloperCommented:
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
 
Loganathan NatarajanLAMP DeveloperCommented:
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
 
Evan CutlerVolunteer Chief Information OfficerAuthor Commented:
thanks.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now