Pages: [1] :: one page |
|
Author |
Thread Statistics | Show CCP posts - 0 post(s) |
m3talc0re X
Solar Revolutions Co.
137
|
Posted - 2013.07.11 04:40:00 -
[1] - Quote
I know at one time it wasn't functional, but it seems to be working now according to the eve wiki. But I'm trying it and it's not working. I've granted trust to the site with: onload="CCPEVE.requestTrust('http://www.site.com/')" in the body
and the link is: a href="javascript:CCPEVE.sendMail(UserID)"
But in game, it's not doing anything |
Kid Delicious
Blue Republic RvB - BLUE Republic
2
|
Posted - 2013.07.11 07:09:00 -
[2] - Quote
CCPEVE.sendMail(92010293, 'testing', 'ok');
Try filling out the second two parameters. (That id was random) |
m3talc0re X
Solar Revolutions Co.
137
|
Posted - 2013.07.11 07:37:00 -
[3] - Quote
Nope, still not working. |
Steve Ronuken
Fuzzwork Enterprises
1622
|
Posted - 2013.07.11 09:49:00 -
[4] - Quote
take the javascript out of the href tag and try sticking it in an onclick instead.
something like < span onclick="CCPEVE.sendMail(UserID)">send mail< /span>
did you reload the page after requesting trust?
if that doesn't work, try < span onclick="CCPEVE.sendMail(UserID,subject,text)">send mail< /span> Steve Ronuken for CSM 9!-á I'm starting early :) Handy tools and an SDE conversion Twitter: @fuzzysteve on Twitter |
Kid Delicious
Blue Republic RvB - BLUE Republic
2
|
Posted - 2013.07.11 18:43:00 -
[5] - Quote
jsconsole.com Give it a try in there. The line I posted before worked for me (without all three parameters it did nothing, like you said). |
m3talc0re X
Solar Revolutions Co.
137
|
Posted - 2013.07.15 21:39:00 -
[6] - Quote
I still can't get it to work. It just wont do anything. Do I need anything else in the header? Besides just the onload trust in the body tag I mean. I tried < a onclick="CCPEVE.sendMail(1318498295, testing, ok)">Send m3talc0re X mail< /a> < a onclick="CCPEVE.sendMail(1318498295,testing,ok)">Send m3talc0re X mail< /a> < a onclick="CCPEVE.sendMail(1318498295, 'testing', 'ok')">Send m3talc0re X mail< /a> and those same variants with javascript: in the href. |
Louis Vitton
Black Aces Against ALL Authorities
37
|
Posted - 2013.07.16 02:50:00 -
[7] - Quote
I have the function working fine using this example: < span onclick="CCPEVE.sendMail(1180086294, 'Happy birthday', 'Congrats')">send mail< /span> What i have done is set trust manually to the site. If you could also manually set up trust for the site. This is done under options -> trust sites please let me know how you go with it. |
Abus Finkel
Caldari Capital Construction Inc.
22
|
Posted - 2013.07.16 12:18:00 -
[8] - Quote
m3talc0re X wrote:I still can't get it to work. It just wont do anything. Do I need anything else in the header? Besides just the onload trust in the body tag I mean. I tried < a onclick="CCPEVE.sendMail(1318498295, testing, ok)">Send m3talc0re X mail< /a> < a onclick="CCPEVE.sendMail(1318498295,testing,ok)">Send m3talc0re X mail< /a> < a onclick="CCPEVE.sendMail(1318498295, 'testing', 'ok')">Send m3talc0re X mail< /a> and those same variants with javascript: in the href. You need to quote those strings. "testing" and 'testing' are strings, testing is a (most likely undefined) variable. |
m3talc0re X
Solar Revolutions Co.
137
|
Posted - 2013.07.16 17:39:00 -
[9] - Quote
Look at that last one listed Abus |
Abus Finkel
Caldari Capital Construction Inc.
22
|
Posted - 2013.07.17 08:18:00 -
[10] - Quote
Oh right, I missed that. Sorry. Not sure what's wrong then. I tried the exact same setup as you have with the trust request in body.onload and it works fine. Are you sure you are passing the correct URL to requestTrust()? Does it work if you add it manually? Do you get the trusted website icon in the bottom right corner? |
|
m3talc0re X
Solar Revolutions Co.
138
|
Posted - 2013.07.20 09:15:00 -
[11] - Quote
Now the **** magically works. Wtf? smh... |
Somerset Mahm
Cognitive Distortion
182
|
Posted - 2013.07.20 17:51:00 -
[12] - Quote
You can request trust for wildcard URLs. You're going to helpmymission.com but requesting trust for www.
CCPEVE.requestTrust("http://*.helpmymission.com/") SOMER Blink Microlotteries that finish in minutes! Running for over 2 years :) |
m3talc0re X
Solar Revolutions Co.
140
|
Posted - 2013.07.20 19:56:00 -
[13] - Quote
Odd, I replied earlier and said that I didn't notice the www wasn't there and I'd give it a shot with the wildcard, but the post is gone? 0_o
Anyway, tried it with that Somerset and it's working so far I think. Thanks XD I think that wildcard bit needs to be added to the wiki about it... |
Louis Vitton
Black Aces Against ALL Authorities
38
|
Posted - 2013.07.21 12:41:00 -
[14] - Quote
I find eve-id.net normally has up to date info. http://wiki.eve-id.net/IGB_Javascript_Functions#Examples_2 |
|
|
|
Pages: [1] :: one page |
First page | Previous page | Next page | Last page |