Activity Stream
48,167 MEMBERS
6738 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 3 of 3
  1.     
    #1
    Member

    Default 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.

    Thankyou
    18folder 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

  2.   Sponsored Links

  3.     
    #2
    Respected 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 here
    Bots 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.

  4.     
    #3
    Member
    @mRAza Thanks .. I placed the external js code at the very bottom of the page (just above the </body> tag) it's working now

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. JQuery help
    By xElliex in forum Web Development Area
    Replies: 5
    Last Post: 25th Aug 2011, 10:38 PM
  2. Need help about external link
    By MiTU? in forum Wordpress
    Replies: 3
    Last Post: 5th Jul 2011, 09:07 PM
  3. [PHP] Get value from external
    By Snell in forum Technical Help Desk Support
    Replies: 4
    Last Post: 27th Mar 2010, 03:16 PM
  4. New External HD
    By Whoo in forum General Discussion
    Replies: 23
    Last Post: 18th Feb 2010, 09:27 AM
  5. external hd
    By lenney in forum General Discussion
    Replies: 10
    Last Post: 28th Aug 2009, 04:10 PM

Tags for this Thread

BE SOCIAL