PDA

View Full Version : What's the purpose of this?



RagingPenguin
Mon 22nd Aug '05, 6:11pm
What is the purpose of the following in STANDARD_REDIRECT (3.0.8)? There doesn't seem to be any control code for it, instead, it's just spit out. Wouldn't it be better to just skip the JS?

<script type="text/javascript">
<!--
document.write('<div style="margin-top: $stylevar[cellpadding]px;">');
document.write('<input type="submit" value="$vbphrase[proceed]" accesskey="s" class="button" onclick="window.location=\'$url\'; return false;" />');
document.write('</div>');
//-->
</script>
</td>

House_of_Crazed
Mon 22nd Aug '05, 8:25pm
LOL

Umm, I believe it is used for the "Your post will be displayed momentarily, you will be taken to the post momentarily, or click here to continue"

Notice that there's a phrase in there?? "$vbphrase[proceed]"

You can search for that in your phrase manager :) heh and see what exaclty it does

RagingPenguin
Mon 22nd Aug '05, 8:36pm
I know that silly...I meant why is it using JS to render it? Why isn't it just...

<div style="margin-top: $stylevar[cellpadding]px;">
<input type="submit" value="$vbphrase[proceed]" accesskey="s" class="button" onclick="window.location=$url; return false;" />
</div>