Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

is not executing script of target html page

<a href=""> is not executing script of target html page

Problem

I am using JQuery to create html pages. First.html Second.html

I have given one href link for second.html. when i click on that link, its showing the second page. Problem: 1. the Script section of second.html is not executed. 2. when I see the view source of second.html, its showing me the contect of first.html

when I am directly calling the second.html its working fine, and all script code is executing properly. Please help me. I am not sure why it is happening like this.

Firstpage.html



    
        
Demo

MyHCL

Secondpage.html



    
        

Demo


  • Trasaction
  • Carrier
  • HR

My Approvals

Expense Claim System

Geo LMS

My Travel(TAS)

Windows

IPAD

Android

iPhone

Appraisal Review(i4Excel)

My Profile (ESS)

Performance Appraisal (I4EXCEL)

My Skill Profile (SPS)

Payroll Input System

Smart Recruit

Transfer Management System

Vehicle Declaration

Problem courtesy of: Pedantic

Solution

if you are using jQuery mobile you should not use $(document).ready() use $(document).bind('pageinit') instead.

$(document).raedy() event is fired only once when the first page is loaded. Any subsequent pages are loaded using AJAX calls, hence no document.ready event.

Solution courtesy of: strah

Discussion

View additional discussion.



This post first appeared on CSS3 Recipes - The Solution To All Your Style Problems, please read the originial post: here

Share the post

is not executing script of target html page

×

Subscribe to Css3 Recipes - The Solution To All Your Style Problems

Get updates delivered right to your inbox!

Thank you for your subscription

×