DeveloperBarn Forums

Go Back   DeveloperBarn Forums > Programming & Scripting > JavaScript Programming

Discuss "export to excel function prompt help" in the JavaScript Programming forum.

JavaScript Programming - Javascript is a cross-browser client-side scripting language. Discuss Javascript and AJAX related scripts here.


Closed Thread « Previous Thread | Next Thread »  
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old April 10th, 2008, 11:04 AM
Rebelle's Avatar
Contributing Member

 
Join Date: Mar 2008
Posts: 165
Thanks: 32
Thanked 1 Time in 1 Post
Rep Power: 1
Rebelle is on a distinguished road
Default export to excel function prompt help

Hi All,

Ok, I have the following function that is suppose to prompt with "OK" or "SAVE" buttons (this was working correctly) but now it looks like it's giving "OK" and "Cancel" options only. I haven't changed anything but wondering where I can see if any settings have changed to make this have done this. Any suggestions?

Code:
function exportToExcel(){
      answer = confirm("Are you sure you want to export? Click Open or Save") 
      if (answer == 1)
          location.href = "ExportResultsExcel.asp?Name=<%= sName %>
Sponsored Links
  #2 (permalink)  
Old April 10th, 2008, 11:32 AM
jmurrayhead's Avatar
Your Lord & Master

 
Join Date: Mar 2008
Location: Reston, VA, USA
Posts: 543
Thanks: 14
Thanked 41 Times in 40 Posts
Blog Entries: 2
Rep Power: 1
jmurrayhead will become famous soon enough

Awards Showcase
Microsoft .Net Microsoft SQL Server Microsoft Windows Classic ASP 
Total Awards: 4

Default

This looks like JavaScript, not ASP. The JavaScript confirm dialogue will ever only have OK or Cancel.
__________________
jmurrayhead
Did I help you out? Make me popular by clicking the icon!

If you found a post helpful, please click the button in the lower right-hand corner of the post.

Powered by ASP.Net
  #3 (permalink)  
Old April 14th, 2008, 10:40 AM
Rebelle's Avatar
Contributing Member

 
Join Date: Mar 2008
Posts: 165
Thanks: 32
Thanked 1 Time in 1 Post
Rep Power: 1
Rebelle is on a distinguished road
Default

Ok, I was sure it wasn't doing this before and I remembered something and decided to check it out this morning.

I went to "Control Panel" on my pc then "Folder Options" then click on "File Types" tab and find XLS, highlight it and choose "Advanced" button, then make sure you check "Confirm open after download".

I think with the function in first post above, it will give you options "Ok" and "Cancel" but then with the change above will prompt to "Open" "Save" or "Cancel"...allowing user to save without having to open.
Closed Thread

  DeveloperBarn Forums > Programming & Scripting > JavaScript Programming

Bookmarks

Thread Tools
Display Modes

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
Forum Jump


Sponsored Links

ASP.NET Resource Index
a directory of ASP.NET tutorials, applications, scripts, assemblies and articles for the novice to professional developer.

Free Web Directory
Including Chats and Forums Resources, Offer automatic, instant and free directory submissions.
URLZ Web Directory
URLZ Web Directory

Free Web Directory - Add Your Link
The Little Web Directory
Free Web Directory
Pegasus free web directory is a free directory organised by categories.

Web Directory & SEO Services
dirroot web directory


All times are GMT -4. The time now is 12:31 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
Copyright © 2008 DeveloperBarn.com

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46