Using jquery/jscript
Posted: Fri 05 Jul 2013 6:53 am
Sometimes it is the simple things...
1st, if I want to incorporate jquery into a saratoga/ajax setup, where is it advisable to place the
<script type="text/javascript" src="jquery.js"></script>
(and any associated jquery add-ons) statement, as opposed to in those php files where it is actually used? Presumably in common or top but which and where?
2nd, as mentioned once before, I have a great little jscript routine that I use a lot that picks up the favicon.ico file from sites and prefixes it to links specified in li's. Unfortunately, it only picks up those that are in the root directory of the link url. If I wanted to add some code to search the <head> of the index file to retrieve the location from a <link> statement, is that possible? Part of the problem in getting solutions to things like this is knowing what to specify when you are doing a Google search. Assuming it is possible, can someone point me at an example of interrogating the index file (regardless of type) at another site to retrieve info, to give me an idea how to do it? I imagine that bots do it all the time.
1st, if I want to incorporate jquery into a saratoga/ajax setup, where is it advisable to place the
<script type="text/javascript" src="jquery.js"></script>
(and any associated jquery add-ons) statement, as opposed to in those php files where it is actually used? Presumably in common or top but which and where?
2nd, as mentioned once before, I have a great little jscript routine that I use a lot that picks up the favicon.ico file from sites and prefixes it to links specified in li's. Unfortunately, it only picks up those that are in the root directory of the link url. If I wanted to add some code to search the <head> of the index file to retrieve the location from a <link> statement, is that possible? Part of the problem in getting solutions to things like this is knowing what to specify when you are doing a Google search. Assuming it is possible, can someone point me at an example of interrogating the index file (regardless of type) at another site to retrieve info, to give me an idea how to do it? I imagine that bots do it all the time.