SMOKEY_TEK Posted March 8, 2013 Share Posted March 8, 2013 javascript:void(0) is used with the href attribute of the HTML <a> tag. Usually, clicking on a hyperlink reloads or redirects to another webpage. This may not be feasible every time. Many times, clicking a hyperlink requires performing some client side script operation instead of reloading or redirecting. This can be achieved by placing “javascript:void(0)” in the tag’s href attribute. Example <a href="JavaScript:void(0);"ondblclick="alert('Good example!')">Example</a> source Okay, I understand how that works now. Thanks sniko Quote Link to comment Share on other sites More sharing options...
Samurai Legend Posted February 6, 2015 Share Posted February 6, 2015 (edited) I'll pay £4.29 if someone gets it fixed and cleaned up. I fixed up some errors so far - http://pastebin.com/qinXzJPR Edited February 6, 2015 by Samurai Legend Quote Link to comment Share on other sites More sharing options...
KyleMassacre Posted February 6, 2015 Share Posted February 6, 2015 What's wrong with it? tl;dr; Quote Link to comment Share on other sites More sharing options...
Samurai Legend Posted February 6, 2015 Share Posted February 6, 2015 No response when I click on the links :( Quote Link to comment Share on other sites More sharing options...
KyleMassacre Posted February 7, 2015 Share Posted February 7, 2015 Does your console say anything? That will generally tell you any and all errors you get Quote Link to comment Share on other sites More sharing options...
Samurai Legend Posted February 7, 2015 Share Posted February 7, 2015 (edited) This is what I got You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Edited February 7, 2015 by Samurai Legend Quote Link to comment Share on other sites More sharing options...
Dave Posted February 7, 2015 Author Share Posted February 7, 2015 This is what I got You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. I'm gonna take a guess that the forum conversions have required the formatting, sadly I don't have this original source file anymore. Quote Link to comment Share on other sites More sharing options...
AdamHull Posted February 26, 2015 Share Posted February 26, 2015 has anybody got this mod that the forum hasn't screwed up? Quote Link to comment Share on other sites More sharing options...
Ishraq Posted August 9, 2015 Share Posted August 9, 2015 You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote Link to comment Share on other sites More sharing options...
AdamHull Posted August 9, 2015 Share Posted August 9, 2015 its still being screwed up by the forum, pastebin? please :) You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote Link to comment Share on other sites More sharing options...
Ishraq Posted August 16, 2015 Share Posted August 16, 2015 Attached bank.txt Quote Link to comment Share on other sites More sharing options...
Samurai Legend Posted November 9, 2015 Share Posted November 9, 2015 Hello, I am trying to fix up this modification however, I am failing and I do not know why. I nearly finished most of it. However, one things has bugged me. I do not have a bank account within the game. And the content for that does not show up. Nothing shows up apart from the title "Bank" Here is the re-code I have done so far: http://pastebin.com/9MVXWn65 Quote Link to comment Share on other sites More sharing options...
AdamHull Posted November 10, 2015 Share Posted November 10, 2015 This is not tested to work, I have fixed up your script [MENTION=70283]Samurai Legend[/MENTION] there was a couple of syntax issues, I have not done anything else except fix these, let me know if it workshttp://pastebin.com/GXft3LVd Quote Link to comment Share on other sites More sharing options...
Samurai Legend Posted November 11, 2015 Share Posted November 11, 2015 Unfortunately, it's the same :( Thanks for trying bro Quote Link to comment Share on other sites More sharing options...
~Rob0t Posted November 11, 2015 Share Posted November 11, 2015 This script is grim. No code comments Calling functions to echo output (strong believer of functions should only return) The use of global. Mixing PHP and Javascript Multiple jQuery selectors instead of method chaining Inline styling [MENTION=70283]Samurai Legend[/MENTION] - look at your PHP error log and debug. Quote Link to comment Share on other sites More sharing options...
Dave Posted November 11, 2015 Author Share Posted November 11, 2015 This script is grim. No code comments Calling functions to echo output (strong believer of functions should only return) The use of global. Mixing PHP and Javascript Multiple jQuery selectors instead of method chaining Inline styling @Samurai Legend - look at your PHP error log and debug. The beauty of my attempts at coding in 2010 :( makes me cry that I wrote this once upon a time. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.