/    Sign up×
Community /Pin to ProfileBookmark

JScript alert (built into webpage) stoping my Jscript Code

[CODE]javascript:w=window.open(“”);a=document.getElementsByTagName(“a”);for(c=32;c<98;c++)for(i=0;i<3;i++)w.document.write(“<iframe src=’http://www.outwar.com/doattack.php?attackname=”+a[c].innerHTML+”&message=&attacks=1′ width=’1%’ height=’1%’></iframe>”); void(0);
[/CODE]

Hello, I have a problem.

The section of code here, when placed in my URL box and entered, attacks (online rpg game, dont ask) a lot of people in one shot in this game I play.

Recently on the attack page, (where i decide which person to attack) they have added a javascript alert that says “Are you sure you want to attack this player?” “Yes” “Cancel”

What it does is, when I am at the page with the list of all the people i can attack, it automatically gets all the names, puts the names in the attack page, and attacks them.

Now with the javascript alert, it is stopping my script from running.

All I want it to do is, after it tells the server to attack, for it to click the yes button so that the script can move forward.

I am sorry if I did not give any information as it was really hard to try and explain, but i did read the guidelines page so im not just ignoring the rules.

If you want me to provide more info and maby some screen shots I will be more than happy to do so. Just please help me out.

to post a comment
JavaScript

10 Comments(s)

Copy linkTweet thisAlerts:
@evnafetsFeb 27.2004 — Hehe - looks like they are onto you. I guess they don't want people automating their attacks like this. AFAIK there is no way to automatically answer 'yes' to a javascript confirm box when it pops up.

Take a look at the source of the page which is popping up the alert box, do see where it diverts to after this. You may be able to rewrite your script to go to the page AFTER the confirm box.

Cheers,

evnafets
Copy linkTweet thisAlerts:
@TwinChromeGlockauthorFeb 27.2004 — [CODE]<div align="center">
<script>document.write(unescape('%3C%69%66%72%61%6D%65%20%69%64%3D%27%61%65%65%30%32%39%35%61%27%20%6E%61%6D%65%3D%27%61%65%65%30%32%39%35%61%27%20%73%72%63%3D%27%68%74%74%70%3A%2F%2F%61%64%2E%6E%6F%7A%6F%6E%65%64%61%74%61%2E%63%6F%6D%2F%61%64%66%72%61%6D%65%2E%70%68%70%3F%6E%3D%61%65%65%30%32%39%35%61%26%61%6D%70%3B%77%68%61%74%3D%7A%6F%6E%65%3A%32%27%20%66%72%61%6D%65%73%70%61%63%69%6E%67%3D%27%30%27%20%66%72%61%6D%65%62%6F%72%64%65%72%3D%27%6E%6F%27%20%73%63%72%6F%6C%6C%69%6E%67%3D%27%6E%6F%27%20%77%69%64%74%68%3D%27%34%36%38%27%20%68%65%69%67%68%74%3D%27%36%30%27%3E%3C%61%20%68%72%65%66%3D%27%68%74%74%70%3A%2F%2F%61%64%2E%6E%6F%7A%6F%6E%65%64%61%74%61%2E%63%6F%6D%2F%61%64%63%6C%69%63%6B%2E%70%68%70%3F%6E%3D%61%65%65%30%32%39%35%61%27%20%74%61%72%67%65%74%3D%27%5F%62%6C%61%6E%6B%27%3E%3C%69%6D%67%20%73%72%63%3D%27%68%74%74%70%3A%2F%2F%61%64%2E%6E%6F%7A%6F%6E%65%64%61%74%61%2E%63%6F%6D%2F%61%64%76%69%65%77%2E%70%68%70%3F%77%68%61%74%3D%7A%6F%6E%65%3A%32%26%61%6D%70%3B%6E%3D%61%65%65%30%32%39%35%61%27%20%62%6F%72%64%65%72%3D%27%30%27%20%61%6C%74%3D%27%27%3E%3C%2F%61%3E%3C%2F%69%66%72%61%6D%65%3E'))</script>
</div>


<table border="0" cellpadding="0" cellspacing="8" style="border-collapse: collapse" width="100%" id="AutoNumber9">

<tr>

<td width="100%"><script language="javascript">
<!--
//Confirm Submit Function
function confirmSubmit()
{
var agree=confirm("Are you sure you wish to attack this player?");
if (agree)
return true ;
else
return false ;
}
-->
</script> [/CODE]


Now that I have looked at it I have reason to believe that there are two things that are stopping me. One is the "document.write(unescape('%3C%69%66%72%61%..."

The "unescape" makes me think that I cannot do any other function besites click to select the "OK"

Unfortunatly I do not know what "true" equils, but is there a way to make it so that it automatically inputs "true" so it clicks the alert?

It is prograqmed in php besites the javascript, so it does not show what page you go to or anything, it is all dynamic.

If you know how to fix it please do.
Copy linkTweet thisAlerts:
@TwinChromeGlockauthorFeb 28.2004 — this has to be simple for pro's like you to fix right?

please please PLEASE fix my script as it should not take long and the quicker it gets done the way better it is for me.
Copy linkTweet thisAlerts:
@TwinChromeGlockauthorFeb 28.2004 — OH COME ON PEOPLE!!! I SEE LIKE 15 PEOPLE GET HELPED BUT ALL I WANT IS THIS SIMPLE LINE OF CODE FIXED AND YOU IGNORE ME!!!

PLEASE PLEASE PLEASE HELP ME!!!
Copy linkTweet thisAlerts:
@TwinChromeGlockauthorFeb 28.2004 — [b]edited[/b]

Talking like that's a good way to find yourself without posting privileges.
Copy linkTweet thisAlerts:
@Paul_JrFeb 28.2004 — [i]Originally posted by TwinChromeGlock and edited by pyro[/i]

[B]...[/B][/QUOTE]

That's no way to get help. Everyone in this forum is a [i]volunteer[/i], which means no one [b]has to help you[/b].
Copy linkTweet thisAlerts:
@TwinChromeGlockauthorFeb 29.2004 — look at the message you are convaying, i have to say f*** you to some one just to get a responce.

way to be a role model
Copy linkTweet thisAlerts:
@evnafetsMar 01.2004 — Just out of interest: That escape string is just printing an advertisement. Give the div tag an ID, and alert it's innerHTML and you can find out what is actually being printed.

So forget the escaped string as far as this bit goes. Its probably just some smartass programmer trying to prevent automatic filtering of ads :-)

For the rest of it, look to see where the confirmSubmit function is called from.
Copy linkTweet thisAlerts:
@pyroMar 01.2004 — TwinChromeGlock, you language and tone are not appreciated. None of us get paid to help people with their coding problems. If it is really that urgent, pay a programmer to help you.
Copy linkTweet thisAlerts:
@steelersfan88Mar 01.2004 — thanks pyro!
×

Success!

Help @TwinChromeGlock spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.12,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,
)...