Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Help With javascript:void(0); On Login Button
Avatar
sally neill
Rookie
Free Members
sp_UserOfflineSmall Offline
May 11, 2012 - 3:56 am

Hello, I was wondering if someone could possibly help with my problem...

(I have a few problems with this forum installation... but will tackle them like eating an elephant... bit... by... bit lol)

Ok if you visit my forum link: http://learnwithsally.com/forum

You will see that 2 parts of the page have void javascript ie.

login and at very bottom the link to the about Simple Press info icon.

Now I am sure to someone experienced this is a simple problem, but I simply don't have a CLUE, so any help would be very greatly appreciated.

I did search the forum first but couldn't find anything related to my specific problem, will probably see me posting a few things over the next few days, then I shall be on my merry way 😀

Thanks Sally 🙂

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
May 11, 2012 - 8:02 am

sorry, not following what you mean...  many links with have an href of javacript:void() if they have an onclick event instead of an actual link...  that of itself doesnt mean anything and can be normal...

but I think you are referring to your site throwing javascript errors when you click on those links...  and there are conflicts on your site...

you have a plugin called affiliate surge doing bad things...  its loading its own version of jquery ui (and its quite old) instead of using the more current version that comes with wp...

for reference see:  http://codex.simple-press.com/.....-conflict/

<script type='text/javascript' src='http://learnwithsally.com/wp-content/plugins/wp-affiliatesurge-2.0/js/jquery-ui-1.7.3.custom.min.js?ver=3.3.2'></script>

that jquery ui version is really not compatible with the version of jquery and jquery ui that comes with wp...  and causing conflicts/errors on your site...

see if you can find where that is loaded in the plugin and we can help you correct it..

Avatar
sally neill
Rookie
Free Members
sp_UserOfflineSmall Offline
May 11, 2012 - 8:54 am

Hi Papa

Yes I already read that information on the url you gave me 🙂

I did notice affiliate surge however I don't know how to correct it, how would I find out where its loaded in the plugin? I have emailed the creator of the plugin so will await their reply as to it being "old"

The problem with the void is that when you click on either little "i" icon at bottom for simple press or the login button.... nothing happens ie. there is no on-click event (I take it this is because of the affiliate plugin also?)

Thanks for your patience in helping me with this, code stuff goes wayyyyyyyyyyyyyyy over my head

Sally 🙂

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
May 11, 2012 - 7:29 pm

yes I know nothing happens... that is because of the js errors coming from that plugin...  the onclick event launches js... but because of the already occurred js error, any js processing cannot run...

plugins really need to use the wp api for loading js and jquery as detailed in the wp codex: http://codex.wordpress.org/Fun.....eue_script

so you need to look through the plugin, perhaps in the main file...  not sure what it does or how many files there are... but somewhere you will see the line of code I put in post 2... and replace it wti

<?php wp_enqueue_script('jquery-ui-core'); ?>
<?php wp_enqueue_script('jquery-ui-widget'); ?>

so it loads the up to date wp version instead of the outdated version that is not compatible with plugins trying to use the wp jquery ui...

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626