Isaac
asked on
Javascript/Jquery SharePoint
Hello all,
I have a code that searches a page and then highlights the information that is found. I would like to create a code that if it is not on page A then it should stop and search page B. If it is not on both pages then it will return nothing. Below is the code that I have that searches a page.
$("body").delegate("#inoic eNumber_a" , "click", function(e){
JumpAndSearch("#inoiceNumb er", "si_", "#divSearchErrorMsg", SPSITENAME + "invoiceInformation.aspx") ;
});
Now if I can only let it search two pages if it doesn't get it in the first page.
Thanks in advance.
I have a code that searches a page and then highlights the information that is found. I would like to create a code that if it is not on page A then it should stop and search page B. If it is not on both pages then it will return nothing. Below is the code that I have that searches a page.
$("body").delegate("#inoic
JumpAndSearch("#inoiceNumb
});
Now if I can only let it search two pages if it doesn't get it in the first page.
Thanks in advance.
You can't access more than 1 page at a time in jQuery. You would need to code this on the backend or load the second page inside of the first page with ajax.
ASKER
Oh ok. Well can jQuery do a window pop for the second page. If so I can it be done?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.