Solved

hotmail javascript dhtml question

Posted on 2004-10-01
8
288 Views
Last Modified: 2010-04-17
Hi,
After being logged into hotmail, I'd like to know what variables would have to be submitted to what url in order to delete a message.  It would also be helpful to know if it's a get or a post that's required.  Thanks.
0
Comment
Question by:jodyglidden
[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
  • 5
  • 3
8 Comments
 
LVL 4

Assisted Solution

by:itcnbwise
itcnbwise earned 500 total points
ID: 12205174
I don't think it's possible.  I think the hotmail server checks to see what IP the referer comes from, and if it's not a Hotmail IP, it won't activate the delete function, it just shows the message.  For example, this is the link to delete a Hotmail email:

http://by8fd.bay8.hotmail.msn.com/cgi-bin/getmsg?msg=MSG1096625328.50&start=704766&len=6757&msgread=1&imgsafe=n&curmbox=F000000001&a=4f3a5a6fb805d676ffaf28f7778993ac#

First of all, note you must know the message ID (in this case it's MSG1096625328.50).  But if I try to activate this URL, it will not delete the email.  But if I follow this link from within hotmail (i.e. on their IP) it deletes it.
0
 
LVL 1

Author Comment

by:jodyglidden
ID: 12205290
Would it not be working because you are missing some form variables that get set during the button click?  I noticed that there is a

subm(

function that takes 4 parameters.... "delete",0,1,event.  I'm not sure what the value of event is or what the subm function might be doing.  I know the subm function is in a .js file which I went to but the subm function seems pretty complicated and I'm having a hard time to follow it.

Thanks for your help so far
0
 
LVL 4

Accepted Solution

by:
itcnbwise earned 500 total points
ID: 12205313
I looked at that JS file too, then realized there must be a simpler way than by trying to reverse engineer all that javascript on the checkboxes.  So I just click on one email, then copied the shortcut for the delete button.  Now, that button may have a few hidden parameters, I don't know, I really didn't look into that much detail.  But that's what you should investigate - it seems easier than trying to decipher that js code on the email listing page.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 1

Author Comment

by:jodyglidden
ID: 12205792
When I right click on that link and copy it, paste it into the above url and hit enter it doesn't do anything.  Also it has a # sign at the end.  I believe by looking at the code in that page that this is actually masked with javascript as well.
0
 
LVL 4

Expert Comment

by:itcnbwise
ID: 12205800
Look at my first post - the link doesn't do anything because you are not being refered by a hotmail IP
0
 
LVL 1

Author Comment

by:jodyglidden
ID: 12205823
Then how would you explain the complicated subm function and everything?  I would agree with you if you had a full account of what's being done in that javascript function.  Plus, in my experience, all of the other hotmail pages can be gotten to directly.. you just have to submit the right variables.  I'm quite sure we're just missing variables.  

As an alternative, if nobody happens to be able to tell what the javascript is doing, a method to programmatically click the delete button using the microsoft webbrowser control would be just as good.

0
 
LVL 1

Author Comment

by:jodyglidden
ID: 12207028
Also, you'll notice on the email message that all buttons, delete, forward, etc seem to have the same link.  This tells us it must be a fake link.

0
 
LVL 1

Author Comment

by:jodyglidden
ID: 12207149
Nevermind, I figured it out myself.  I'll give out some points for trying...
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This is about my first experience with programming Arduino.
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

733 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