Jump to content
MakeWebGames

jQuery Ajax Banking System


Dave

Recommended Posts

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

Link to comment
Share on other sites

  • 1 year later...
  • Replies 64
  • Created
  • Last Reply

Top Posters In This Topic

  • 3 weeks later...
  • 5 months later...
  • 2 months later...

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...