Referencing arrays and variables

Hi, I'm wondering if someone can help me with a little PHPproblem I'm having at the moment?I think it might be one of the fundamentals of the languagethat I'm not understanding but I'm hoping that someonemight be able to help me anyway.Basically I'm writing an online database editing scriptwhich inc ...

jQuery Passing multiple variables using .ajax()

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"></head><body bgcolor="#ffffff" text="#000000"><font size="-1"><big>Hi folks,I'm trying to make an ajax cal ...

jQuery passing a function to a function with variables

guys and gals,I am trying to do something like below:buildDialogBox({u:'oba_1_2',f:loadJson('userlist.txt',buildUserManageTable),d:'formDialog600'});and have loadJson('userlist.txt', buildUserManageTable) run after the dialogbox loads, but it gets executed and then th ...

Jquery, AJAX, and php session variables

Thanks to both of you for your responses,I guess I'm still having a hard time wrapping my headaround what AJAX is doing with my session vars thatmake it impossible to use in my existing PHP files. Iwas under the impression that session vars are just... around in the browser, so if they are set o ...

jQuery Process get variables to add a class

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8"><META content="MSHTML 6.00.6000.16414" name=GENERATOR></HEAD><BODY><DIV><SPAN class=031535611-25042007> ...

jquery 1.1.3 and "undefined" variables

folks,I had 100% working jquery code throughout my site, butupon updating to the newest version, a TON of stuff isno longer working. Specifically, "undefined" isshowing up in various variables being passed around orgotten via selectors. One thing I've found is thatwhile in the past a b ...

jQuery Object variables get lost when doing $.ajax

I've written a javascript class in which there is a function whichmakes a ajax request.But the callback function of this $.ajax don't know the objectsvariables. Why is that.It looks something like this:function FileView(fbId, rootFolder, showFolders, type) {    this.tmpVa ...

jQuery How pass more variables in Star Rating System (AJAX Question)

I saw that Star Rating System pass only the vote.How can I add more variables? Something like this:            $.post("url.php",                  {        ...

jQuery $.getScript and variables

everybody... i have a question...i want to virtualise my admin section... by getting the script from aphp file on post. is this real? andi want it to use current documents vars... i just copied part of thescript and tried to load it using getScript... but this part doesn'twork, when I put some g ...

ColdFusion/jQuery Ajax Form Variables Question

All,I'm a relative newb when it comes to the Ajax concept so begentle. :-) Let me tell you what I've got...Main page with a dynamic select box that lists vendors. When I make aselection I'm using$("#vform").load("editvendor.cfm",{vid: $(this).val()});to load a form in ...

jquery.flash plugin with parameter and variables.

everyone,I'm a little out of my depth and am looking for a some help. I amattempting to use the <a href="http://www.jeroenwijering.com/?item=JW_FLV_Player">JW FLV Player</a> with the <a href="http://jquery.lukelutman.com/plugins/flash/">jQuery Flash Plugin ...

jQuery callback function variables

Hi, so I've seen on here someone posted their callback function with 2variables (e, ui)Here it is:function saveSort(e,ui){my question is what DO those variables contain?AND does anyone have a handy way of telling what is inside an object? ...

jQuery $_POST variables not passed to PHP script processing form

Ultimately I want this form to upload a file to a server locationbased on the additional form fields on the server. I started withsample code that I found querying jquery file upload. Originallyecho.php contained two var_dump statements - one for $_POST and theother for $_FILES. That works fine and ...

jQuery Keeping variables across ajax pages

all,I'd like to know what do you do keep variables across ajax pages.I've been doing something that I consider a "hack" and very noobish(I'm not a programmer):I create an invisible DIV in the main page and sub-divs with thevariables, then when I need the values I use attr() to ...

jQuery Dynamic Variables

Hi,I hope someone can help me out a bit.I am finding myself doing a lot of code (as I'll paste below). It'sbasically the same block of code with different variables.What I am trying to do is consolidate all that code into a funcitonwhere I can declare all the checkboxes I need to create an C ...

jQuery unique variables

I create a simple plugins and bind it to two div in my pages. .............jQuery.jUpload = function(){   var test;         return {      startUpload: function()      {     ...

jQuery Attaching custom variables to an event trigger?

How would I go about attaching custom variables to a trigger method sothat they're available to the bind call being referenced? Given thefollowing code:$(function(){    $(document).bind('birthday', function(event,data) {         ...

jQuery [Optimization]Multiple variables declaration

While checking the source, I noticed that the code is not toooptimized on variables declarations.Many var a; var b; var c; while var a,b,c; is much shorter.I opened a ticket where I point many points where variables aredeclared many times in the same scope, even with the same value eachtime!Also an ...

jQuery Overriding extended plugin variables

allI have a plugin which has a couple of variables which can be overriden likethis:$.fn.doStuff.defaults.classOdd = 'oddClass';$.fn.doStuff.defaults.classEven = 'evenClass';Now I have the above two lines in my $(document).ready function becausethose two options are usedjust about eve ...

How do I use ColdFusion and jQuery variables for pagination?

Hi, all...I'm a bit confused about how to get variables from jQuery thatI can use in my ColdFusion code.In typical CF pagination, I use startrow and maxrows variablesto limit the query output. How would I get these variablesfrom the jQuery?I just can't piece together what's happening.Bel ...

jQuery Appending URL and Session variables to redirect script

Hi,I'm pretty new to using Jquery and javascript and don't quite know howto do something pretty simple.I have the following script that I am trying to build that will loadanother page in the background when a link is clicked. However, Idon't know the syntax to set the CompanyID and UserI ...

jQuery passings variables to callback functions

I was wondering if there are ways to pass variables of non-globalscope to callback function like in the situation below. I've run intothis situation before and imagine it comes up often. So passing thephoto[i]['id'] variable to imgselect is the issue here since at thetime the event is tr ...

jQuery Function variables getting lost? (super simple I'm sure)

I'm working on upgrading a calender to AJAX so it is much snappier,however i'm having trouble getting it to recognise my links.I have created this function:function loadContent(id) {$("#imacalendar").load('inc/eventcalendar.php?event_date='+id);}Which is called into use lik ...

jQuery Tabs - Passing Variables

guys,I've been trying to do this for a week now and I'm gettingdesperate :) I'm still new to jQuery but this has to be possible (orI'm going to cry):My situation is I'm using nested AJAX tabs and I'm having troublepassing variables to my PHP scripts on other tabs. For instanc ...

Passing variables with Jquery

I am a newbie to the world of Jquery and I am trying to get my head around something that is probably very simple.I have a list of links on my page.<script language="javascript">      $(document).ready(     function()     ...

Passing PHP variables to a jQuery script.

Does anybody know how to best pass PHP variables to a jQuery script?Do you have an example? ...

jQuery post variables and email not being sent

I can't seem to figure out why this code isn't working, I am trying to send variables from a contact form to a php file by using the $.post method.Here is the code, I apologize, it may be sloppy, first time using jquery.//define variablesvar arr = new Array($("[name=name]" ...

jQuery Understanding $.each and stored variables

Hi, I need to iterate over a list of elements and I want to store variables within the $.each-section for later use in some functions.Now I have a problem to understand why the variable $this of my function "doFunction()" returns always the last element while $(this) in the click-handler r ...

PHP Variables Inside of jQuery Tabs

again. This is a followup to this post, in which a page viewedin a jQuery tab fails to execute jQuery code:http://groups.google.com/group/jquery-ui/browse_thread/thread/13afd8c63115a92cThe good news is, jQuery inside of tabs works great now, thanks to theLiveQuery plugin.The bad news is, <div> ...

jQuery Using variables in selectors

all,I'm frustrated because this does not work:var pageName = "foobar.html";var link = $("a[href$=pageName]");link.addClass('selected');The problem lies within the fact that it seems the jQuery selector Iuse in the second line does not allow variables. It only works wi ...

jQuery Scope Of Variables Inside Functions

Okay, so first off, I recently started using jQuery, and it is by farthe best and easiest to use/understand framework that I have everused. Huge props to the developers and the community! You guys rock!Anyway, I've read over the jQuery Documentation but I am left a bitfuzzy as to the whole idea ...

jQuery Using variables with animate()

Hi,I've made a sliding gallery which works well enough, but I'm currentlyhaving to use a lot of conditional statements to work out where the imagesneed to be animated. Is there a way to use variable within the animationfunction? E.g.$(whatever).animate({variable: '200px'}, 200);If I ...

jQuery Bind variables to callbacks

I notice that the current API - any callback is generally the lastfunction in the arguments.It would be a useful extension to be able to pass in further variablesto be passed in as arguments to this function. This would be similarto how window.setTimeout works and is a very useful feature.window.set ...

jQuery how to submit variables as POST submit (no AJAX)

Hello,I have a regular javascript object (with key/values) and would like tosubmit it to server by POST with complete page reload through jQuery. Justas with regular HTML forms. I searched for a few hours for some solution andhave not found any. There are many examples for jQuery AJAX forms but I do ...

jQuery .get question related to external variables

list, im trying to perform a very (not that easy to me it seems) easytask.Receive 2 variables from an onclick event, then animate, then execute a .getaction.my code looks like this......<script type="text/javascript">    function getVars (str1,str2) {   ...

jQuery $.post with an array of variables

all,I have an array of variables that is built from the following:data['freshbox'] = encodeURIComponent(freshBoxType);data['numitems'] = encodeURIComponent(items.length);data['customerid'] = customerid;for (var i=0;i<items.length;i++) {data['item['+i+'][addonid ...

jQuery Scope variables in anonymous functions?

What I'm trying to figure out is how I can access parent scopes from anested anonymous function. As you can see here, I'm managing to dothis by assigning "this" to variables, but I know that there's a wayto pass "this" into the anonymous functions:$(".responsible ...

jQuery Functions and variables

I'm sure this is dealt with somewhere in the jQuery tutorials but Ihave not been able to find it.I'm new to jQuery and used to working with functions and variables sothat I can create reusable code and not have to hard code every eventthat could happen. This is pretty much basic programming. ...

jQuery How to parse variables in url to modal box?

How would I parse my variables in a link like...<a href="index.php?var1=value&var2=value" rel="modalbox">showmodalbox</a>... to a modal box, like the build-in dialog in jQuery?I've tried to solve the problem in the code below, but it does notwork for 2 reasons ...

jQuery Using variables in attribute selectors

I've done a lot of search on this subject but haven't been able tofind any examples of using variables in [attribute=xx] selectors, onlyliterals. As far as I can see it doesn't work and I was wondering ifthere is any way to make it work -- for example with special syntaxused in this posi ...

jQuery Unsetting variables

There a function to delete variables for jquery?x = undefined; // would that work? ...

jQuery Append variables to Jquey.post

I'm using post for sending data to a PHP page. My problem is that sometimes I need to append some more variables to the POST statement and I wanna use the same function.The basic is:$.post( 'mypage.php', {    var1: 'data',    var2: 'data'  },  function ...

jQuery Plugin local variables

Hi, i'm tring to reproduce a library of mine from Prototype to JQuery.It's a script to animate images in a container with a few effects...but I'm having some troubles with plugin local variables.The thing is that is working only when there is one container, withmore than one the variable ...

jQuery r2475 - Dialog: Using local variables to improve minification.

Author: scott.gonzalezDate: Sat Apr 18 08:01:13 2009New Revision: 2475Modified:trunk/ui/ui.dialog.jsLog:Dialog: Using local variables to improve minification.Modified: trunk/ui/ui.dialog.js==============================================================================--- trunk/ui/ui.dialog.js  ...

Passing variables to an external jQuery function

Hello, I've been scouring the internet trying to find a way to do thiswith jQuery. My situation is this, I have a tablesorter function(using the jQuery plugin tablesorter) in an external scripts.js fileas follows:    $(function() {        ...

jQuery animate() using variables

Is it possible to use animate() using variables? My code is sound but when I try to replace the CSS value with a variable, it suddenly won't work in IE7.//First, here's the code that works in all 3 browsers: FF, Chrome, and IE7$('#btn').click(function(){      ...

Global variables in jQuery

I can't get global variables work, maybe somebody knows the answerbecause this should be very simple.The following does not work, the price is not available at the end ofthe function in the alert.function calc_matrix(x, y){    loc = "index.php?module=product";  ...

jQuery Weird problem with global variables

am new to JS and I thought to start with jquery since it really make things much easier. So, i made a little script as followingfunction JoinNewsletter() {      var dbTransaction = 0;      $.ajax({         'u ...

jQuery Using 'this' and other variables within Selector

guys, I have found many pages and posts helping me learn all (there are so many!!!) the ways that items can be selected using jQuery's selectors. My problem is that I can't get some variable calls to work, such as using the 'this' variable, here is my code:$('.itemparent').live('mouseove ...

jQuery Using instance-variables when creating a new Plugin

Hi,here is a plug-in that I have been working on:(function($) {$.fn.extend({prioritySelector : function() {// Private membersvar list;var textbox;// Takes value from textbox and highlights appropriatebuttonfunction refreshGui() {deselectAll();var prio = parseInt(textbox.val());$(list.find('li ...