hi!

two beginner syntax questions:

1)

GIQ is an object containing querystring values retrieved with
getData(); from the URI object.

      $each(GIQ, function(value, key){

            URI.setData({key: value}, false, 'fragment');

      });

problem is, the key in the code block, does not get interpreted as a
variable. So if the variables are ID=200, the data set will be
key=200.


2)
I cant seem to get get the code working if i write it like this:


      GIQ.each(function(value, key){

            URI.setData({key: value}, false, 'fragment');

      });

What im i doing wrong here. Which way is best coding practice?

Thanks in advance!


Reply via email to