Are you a spammer

Please note, that the first 3 posts you make, will need to be approved by a forum Administrator or Moderator before they are publicly viewable.
Each application to join this forum is checked at the Stop Forum Spam website. If the email or IP address appears there when checked, you will not be allowed to join this forum.
If you get past this check and post spam on this forum, your posts will be immediately deleted and your account inactivated.You will then be banned and your IP will be submitted to your ISP, notifying them of your spamming. So your spam links will only be seen for an hour or two at most. In other words, don't waste your time and ours.

This forum is for the use and enjoyment of the members and visitors looking to learn about and share information regarding the topics listed. It is not a free-for-all advertising venue. Your time would be better spent pursuing legitimate avenues of promoting your websites.

Need Javascript Help!

Source code I have written openly published for your viewing pleasure.


Need Javascript Help!

Postby Tib » Wed Apr 08, 2009 2:55 am

Alright, so I'm up to my sneaky, twisted, ultimately pointless tasks, which I just want to crush and say I pwned it.....but I don't know much about Javascript, or PHP......here is my problem:

There is a webpage, with a button on it, and the scripting for the site, prevents the button from being right-clicked, so there's no way to bookmark the command for the button, or to view the properties of the link within the button, the only thing I've managed to do, is see the URL for the *Image* of the button. I'll provide the page's source info of the button, so anyone who knows more than me, might shed some light :P.

Code: Select all
<script language="JavaScript" type="text/javascript">
<!--
    function disableSubmit(formObj, disVal) {
   var btEnter = document.getElementById('bt_enter');
   if (btEnter != null) {
       btEnter.disabled = disVal;
   }
   var btCancel = document.getElementById('bt_cancel');
   if (btCancel != null) {
       btCancel.disabled = disVal;
   }
    }

    function handleSubmit(inObj) {
   var retval = true;
   var formObj = inObj.form;
   formObj.hiddenSubmit.value = (inObj.name.indexOf('_') >= 0) ? inObj.name.split('_')[1] : 'cancel';

   

   if ((formObj.hiddenSubmit.value == "enter") &&
       (false)) {
       disableSubmit(formObj, true);
       retval = checkSurvey(formObj);
       disableSubmit(formObj, false);
   }
   return retval;
    }
//-->
</script>


This code is actually for two buttons, the one with the code "Submit" is a Submit button, and the one with the code "Cancel" is a Cancel button, and what I'm trying to do, is piece together whatever it is in there that executes the "Cancel" button signal, and format it so I can place it in the Address Bar/a Bookmark, and execute it with the push of a button......anyone got any info on how to do this?
Thanks!

EDIT: Actually, I think the first code is what makes it non-right-clickable....I think these are the actual buttons:

Code: Select all
<tr>
<td align="center">
    <input type="image" name="bt_enter" id="bt_enter" src="http://images.eversave.com/Images/optin/submit_button_092106.gif"
     alt="Submit" onclick="return handleSubmit(this)">
     
   
         &nbsp;&nbsp;&nbsp;
         <input type="image" name="bt_cancel" id="bt_cancel" src="http://images.eversave.com/Images/optin/skip_button_092106.gif"
         alt="Skip" onclick="return handleSubmit(this)">

   
</td>
</tr>


I just cannot figure out how to execute the buttons, as a javascript in the address bar V_V.


Tib
_____________________________________
Desktop:
Mainboard: GIGABYTE GA-990FXA-UD3
CPU: AMD FX-8320 Vishera 8-Core
RAM: 32GB G.SKILL Ripjaws X Series DDR3 1600
Graphics: ATI Radeon HD 5770 1GB
HD: 250GB SAMSUNG 850 EVO

Laptop:
RAM: 2 Gigs
CPU: AMD64 X2 2GHz
Graphics: Nvidia GeForce 7150M
HD's: Internal 150 Gig
Quad-boot: Vista/XP/1.8 x86 Gamers/1.9 x64


TIP: If a program fails to start, run it from the terminal to see the error text!
User avatar
Tib
Moderator
 
Posts: 207
Joined: Wed Nov 28, 2007 11:50 pm
Location: Virginia
Age: 37
Operating System: Ultimate Edition 3.2 32 BIT



Re: Need Javascript Help!

Postby sandyrochard » Sat Nov 07, 2009 7:10 am

HI Tib,
Well i am Sandy and facing the same problem as gone through code and the same syntax.So we just request to the user please gone through these problem.Well i just to help from the google search but from that i does not get anythings.
sandyrochard
U.E. Newbie
U.E. Newbie
 
Posts: 3
Joined: Sat Nov 07, 2009 6:55 am
Operating System: Ultimate Edition 3.2 64 BIT



Re: Need Javascript Help!

Postby Cell » Sun Nov 08, 2009 12:50 am

They might be kinda proud some one is asking...if you ask nicely & blow a few kisses about how pretty the site is ;)



Lol... ;)
-------------------------------
hardware
--------------------------------
Dfi lanparty ut rdx200cf-dr
amd athlon 64 fx55 oc 2.9
2xvisiontek x1600xt gamers ed.
3 gig kingston hyperx mem
hauppauge win tv go tuner
pinnacle ultimate hd hybrid usb tuner
1 western hd 100 gig drive
1 western hd 160 gig drive
1 western hd 5 gig drive
1 usb hd 150 gig
1 usb hd 1 terabyte
--------------------
OS/Distros
--------------------
PhatDebian 1.0
StonerEdition 2.0
Ultimate Edition 2.4 Gamer Ed.
Mythbuntu 9.10
windows XP MCE remastered with Nlite
Windows 7 remastered with Vlight
----------------------------------------------------------
We are all connected;
To each other, biologically
To the earth, chemically
To the rest of the universe atomically-deGrasse Tyson
User avatar
Cell
Site Admin
 
Posts: 1817
Joined: Tue Dec 23, 2008 7:43 pm
Location: Repuplic of California,U.S.A.
Age: 50
Operating System: Ultimate Edition 1.8 Gamers


Return to Programming

Who is online

Users browsing this forum: No registered users and 5 guests