Hallo,

I have rewritten my plugin to get GET-Params. It is now able to get
document params:

$(document).getUrlParam("param1").

And it is able to get params of an image/javaScript link:

$("#javaScriptFile1").getUrlParam("ajaxUrl");

I need the last method, because my php script is generating a special
value. Now, I want to use this value in JavaScript, but I don't want
to write the value to my html-page (clear unobtrusive JavaScript). So
I include the JavaScript file like this:

<script type="text/javascript" src="/myScript.js?
ajaxUrl=getAutocompleteList.php" id="javaScriptFile1"></script>


The new version can be found at 
http://www.mathias-bank.de/2007/04/21/jquery-plugin-geturlparam-version-2/

Mathias

Reply via email to