/    Sign up×
Community /Pin to ProfileBookmark

Javascript Code for Pop UP from Vote! Pro

Hi,

I have a polling feature on my web site that is run through Vote!Pro, a great polling app by the way. Anyway, when you vote, the results pop up in a separate window but the window is HUGE! I want to make it a size I dictate through Javascript. Here is the javascript code that handles the poll on my home page. If any experienced javascript developer could shed some light on what code I can add to dictate the size of the popup, I would greatly appreciate it!
Code:

<!– Start of Vote! Pro code –>
<div style=”padding-left:27px;padding-top:5px;font-size:10px;”>
<script language=”JavaScript”>//<!–
var curURL = document.URL;
var curPos = curURL.indexOf(“?”);
if(curPos <= 0)
{
var preURL = curURL;
var curURL = “?”;
}
else
{
var preURL = curURL.substr(0,curPos);
var curURL = curURL.substr(curPos);
}
var remoteURL = ‘http://www.rcflyzone.com‘;
var sURL = remoteURL +’/polls/poll_distant.php’+ curURL +’&poll_id=11_9_8_7&our_remote_host=’+ remoteURL +’&main_action_url=’ + preURL;
document.write(‘<script language=”JavaScript” ‘ +
‘src=”‘ + sURL + ‘”></script>’);
//–></script>
</div>

<!– End of Vote! Pro code –>

to post a comment
JavaScript

5 Comments(s)

Copy linkTweet thisAlerts:
@A1ien51Mar 23.2005 — You can not control their code since it is a js file on their server. The agreement you signed up for probably says you can not change their code.

Eric
Copy linkTweet thisAlerts:
@DevereauxauthorMar 23.2005 — Any suggestions for a good voting/polling php app then that will allow me to control it completely?

Thanks in advance!
Copy linkTweet thisAlerts:
@A1ien51Mar 23.2005 — Get a site that allows you to run server side language and a database then you can write your own!

Eric
Copy linkTweet thisAlerts:
@DevereauxauthorMar 23.2005 — I do have that, not a javascripter though. I have my own DB, server side stuff, etc. etc.

I don't want to reinvent the wheel - there is plenty out there I"m sure. Any suggestions are appreciated...

Mark
Copy linkTweet thisAlerts:
@A1ien51Mar 23.2005 — what server side language can you run?

Than do a search of google for "LANGUAGE" FREE POLL SCRIPT

They should give you the code...might take a little to figure out how to set it up...

Eric
×

Success!

Help @Devereaux 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 5.4,
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: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

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