hotmail javascript dhtml question

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.
LVL 1
jodygliddenAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

itcnbwiseCommented:
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
jodygliddenAuthor Commented:
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
itcnbwiseCommented:
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

jodygliddenAuthor Commented:
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
itcnbwiseCommented:
Look at my first post - the link doesn't do anything because you are not being refered by a hotmail IP
0
jodygliddenAuthor Commented:
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
jodygliddenAuthor Commented:
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
jodygliddenAuthor Commented:
Nevermind, I figured it out myself.  I'll give out some points for trying...
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Programming

From novice to tech pro — start learning today.