1. You could create a variables with higher scope or pass in as
additional arguments to your callback function. Use "arguments" to get
your variables.

2. Did you try to specify the return type as well in your $.get()  function?

----
Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Thu, Mar 12, 2009 at 5:51 AM, koolkat <merrill.ma...@yahoo.com> wrote:
>
> I have been reading through the group but I can't find exactly what I
> am looking for.
> I am using jquery get to process an xml file and am wonder about a few
> things.
> 1. How do I get the function to use the data I pass in, in this case
> name:"yyy"
> 2. the code below works in FF but IE7 returns a blank for the text. Is
> there a better way to do this.
>
> Here is my code:
>
>
> $(document).ready(function() {
>  $.get("films.xml", { name: "yyy" },  function(xml) {
>  var theXML = xml;
>   var theName=$(theXML).find("name:contains('x')");
>    alert(theName.text());
>  } );
>
> Thanks.
>

Reply via email to