Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations danielledunham on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to invoke the Save As option in IE 2

Status
Not open for further replies.

Bignewbie

Programmer
Feb 22, 2001
351
PH
Hi guys!


a friend of mine was able to invoke the "organize favorites" option in ie 5. i was wondering, can we invoke the "Save As" option in IE 5 also? i asked him if that was possible, he just said "maybe". that means he doesnt know too. so i thought some of u guys may know, or know where i can find it.

hoping for your replies..


thanks,


bignewbie
 
gee, thanks! i never thought it would be that easy! could u tell me where did u find it? is there a site for this things? thanks again!



biggie
 
another question, im using a frameset with 2 frames (one on top of another). i'll put the button which invokes the SaveAs option on the top frame. how can i make it save the page on the bottom frame instead? pls note that only the top frame has the button and the bottom frame may display a lot of documents.

thanks,

biggie
 
Hmm.. I think this might work.

When you setup your frameset, you give each frame a name. Use that name reference in JavaScript functions that are trying to access another frame. I'm pretty sure it would look something like this.

parent.framename.blah.blah.blah

TW
 
Here, I just found some code where we have one frame perform JavaScript on another. In this case, a selection list in Frame #1 changes the url in Frame #2.

The frameset looks like this.

<frameset cols=&quot;225,*&quot; frameborder=&quot;1&quot;>
<frame name=&quot;list&quot; src=&quot;helplist.asp&quot;>
<frame name=&quot;contents&quot; src=&quot;helpcont.asp&quot;>
</frameset>

In helplist.asp (frame name=&quot;list&quot;) we have the current JavaScript function.

function getPage() {

var address = urlselected in list on this page
parent.contents.location = address

}

That's triggered when someone selects a specific help topic from the list and changes the url in the second frame. Notice the reference to the other frame.

Hope this helps

TW
 
Victor,

That was a really great tip on the &quot;Save As&quot;. Thanks. I have the same question as the original postee. Where can I find a more updated command reference for JavaScript. Mine doesn't have anything like that in it.

More interestingly, what other features are tied to execCommand() method. I noticed that it takes a paramater like 'Save As'. Anything else it can do ??

Thanks in advance.

TW
 
sorry for dissapearence :)

now i'm here (for today at least :)

:))))))))))))))))))))) <i'm needed/wanted> :))))))))))))))))

>>gee, thanks! i never thought it would be that easy! could u tell me where did u find it? is there a site for this things?yea, visit , geeee :)))))))))))) (honestly, i found it here :)

well, i thought this way: this is MS feature, so, i could find it in msdn;
so, i went to msdn, typed &quot;execCommand&quot; in search string (that is in left frame on the top (may be not on the top, well, you got it.. (i hope))) here is just some of addresses for this subj:






talking about <more updated javascript documentation> - believe me, have no idea :( just stay in touch with TT , visit msdn, devEdge, some script sources [at least i do it this way]

>Bignewbie, saving another frame - look: i didn't used this comand myself, i just saw it here (i think i saw it in Tracy's post, but i'm not shure.. well, it doesn't really matter)

have you found the way?
Victor
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top