Results 1 to 3 of 3
-
13th Nov 2012, 06:31 AM #1OPMember
Issue with jquery external linking
I created a custom alert box using css and jquery, the css_alert box has an "Cross sign" button inside css_alert box, it fadesout (closes) the box when clicked. I want to store this css_alert box function in seperate .js file so that i can simply link this script in every other php pages. When i do that, the click event of the cross button inside css_alert box doesn't work. But, it works perfectly when the script is available in the page itself i.e not linked externally. Please help me to fix this.
Thankyou18folder Reviewed by 18folder on . Issue with jquery external linking I created a custom alert box using css and jquery, the css_alert box has an "Cross sign" button inside css_alert box, it fadesout (closes) the box when clicked. I want to store this css_alert box function in seperate .js file so that i can simply link this script in every other php pages. When i do that, the click event of the cross button inside css_alert box doesn't work. But, it works perfectly when the script is available in the page itself i.e not linked externally. Please help me to fix Rating: 5
-
13th Nov 2012, 08:26 AM #2Respected Developer
link to your site?
here are few things u can check:
1. First make sure jquery is loaded earlier then ur link to external js
2. Make sure your path to external js is valid
3. Try to add all javascript in footer area.
if all above is checked but still not work then post your site link hereBots Development | Web Development | Wordpress Customization | PSD Conversion
Life has many twists and turns in it, you have to take what you are given and use it for the best.
-
13th Nov 2012, 09:29 AM #3OPMember
@mRAza Thanks .. I placed the external js code at the very bottom of the page (just above the </body> tag) it's working now
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
JQuery help
By xElliex in forum Web Development AreaReplies: 5Last Post: 25th Aug 2011, 10:38 PM -
Need help about external link
By MiTU? in forum WordpressReplies: 3Last Post: 5th Jul 2011, 09:07 PM -
[PHP] Get value from external
By Snell in forum Technical Help Desk SupportReplies: 4Last Post: 27th Mar 2010, 03:16 PM -
New External HD
By Whoo in forum General DiscussionReplies: 23Last Post: 18th Feb 2010, 09:27 AM -
external hd
By lenney in forum General DiscussionReplies: 10Last Post: 28th Aug 2009, 04:10 PM
themaCreator - create posts from...
Version 3.24 released. Open older version (or...