[jQuery] Variable Scope Help

2009-08-27 Thread WhoButSB
Hello All, I'm running into some issues where I'm alittle confused about the scope of my variables. I have this code: $(function(){ var categoryID; //Aloha Item Category Dropdown Selection //Takes the Selected Value and adds it to Item Search Ending $("#add-item selec

[jQuery] variable scope

2009-08-23 Thread mrtedweb
Hello everyone, I'm new to jQuery and need some help with a trivial question. I'm trying to program a menu bar and I'm having problems with variable scope. Below is a snippet of my code: // **

[jQuery] Variable scope trouble

2009-07-18 Thread rhodopsin
I am attempting to use the return value from a nested ajax function as the value for a variable in its parent. However, despite being able to successfully assign the variable within the nested function, it reverts back to its original value after the child function has terminated. Below is the cod

[jQuery] Variable scope

2009-06-28 Thread DanielMedia
Hi, I'm pretty new to jQuery. I'm having a problem with variable scope. This function always returns false. The success variable is not being changed within the getJSON function. I'd appreciate any help. Thanks. var check_user = function() { var success = false; url = baseurl

[jQuery] variable scope bug in Firefox only?

2008-12-28 Thread Liam Morley
I'm experiencing an issue in Firefox 3 where, if a variable is declared locally, it doesn't return expected results. I've tried the same thing in IE7 and Chrome, I don't experience the bug in those browsers. My particular example is as follows: var children = $("ul.cat_container > li.column:not(

[jQuery] Variable scope: Newbie Question

2008-12-05 Thread Mat
Hi there, I'm sorry this is a pretty newbie question I am using JQuery with an xml file and autocomplete. What I am trying to achieve is to use an xml file as my data source to autocomplete cities in a form once a user selects their province. When a user selects a particular province then o

[jQuery] Variable Scope

2008-10-08 Thread QuickScriptz
So I've been over my code again and again and I've scoured through the Wiki and Help Documentation but I still cannot seem to make it work. I have a row of icons and the idea is when you mouseover, a popup () appears below it and then when you mouseout, it fades again. I've found the best way to