Solved

hotmail javascript dhtml question

Posted on 2004-10-01
8
278 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
  • 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
Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

 
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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
java  and programming certification ? 4 93
Arduino EDI - Programming language 3 94
Filename to be appended with DateTimeof Download 3 55
iSeries email authority 6 56
This is an explanation of a simple data model to help parse a JSON feed
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

776 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