Without using a global variable, how do I pass a variable from one plugin to another? For instance, \autocomplete gets some variable on line 14 and dialog saves the variable on line 17.
I'm trying to take the hex value chosen from a jQuery colorpicker plugin, and store it as a cookie using the jQuery cookie plugin. I just don't know the appropriate way to tie the two together.
This is a very basic question about jQuery usage (i'm not a professional at this at all). Basically, I have a menu (an unordered list), each of which refers to a table. When a user clicks on one element in the list, visible tables should disappear and the desired table appears.
I am using the columnize plugin v1.4 and jquery v1.3.2. My css for the column div, etc is as follows: /*columnize code*/ #middlePeopleSection {float:left;width:585px;height:460px;max-height:300px;padding:0;margin:0;background:yellow;} #columnSection{float:left;width:580px;height:460px;margin-right:1em;background:#990000;} .column{margin-right:1em;} .first,.last{clear:both;} p.people {text-align:left;font-family:"Times New Roman",times,serif;padding:0;margin:0;margin-bottom:20px} The link to my test file is [URL]. My objective is to have TWO columns of equal width. I want the first column to be full width with everything that doesn't fit into the first column flowing into the second column.
This probably seems pretty trivial to you experts but I just don't know why it doesn't work and would like a nudge in the right direction please.I have a sllide and fade that works great - no problems. I am firing it with a function call from the HTML like so;<a href='#' onClick='sfade('#s1'); return false;>as you see I am passing the div to be faded(and slid) as a variable. Works great. The receiving function is:
var str=''; function sfade(str){ $(str).slideFadeToggle(1000);
Im simply trying to make a dynamic searchbar so that the results pop up as someone write in the keywords. Problem 1 :When i pass foreign char types through jquery's $.ajax(); such as:
[code]....
they get translated to some weird characters when i try to compare them in the mysql database.javascript side:
Code:
$("#id_study4").keyup(function() { var keyword = $("input[name=study4]").val(); var school_id = $("select[name=school4]").val();
[code]....
And the second problem is simply when i get he search results, i have the keyword emphasized with bold font weight, and text underline so that people can see. The problem here is that if i search with the keyword bach, then result becomes <b>bach</b>elor with all small letters when it should be <b>Bach<b/>elor. The way i have done this can be seen below:
I am calling a page which uses a jquery plugin(lightbox) which functions perfectly by itself, but whenever an ajax call is made and this page is retrieved the plugin stops functioning.
This is the line for using the plugin which i have stored in a .js file which is imported in all html files, but still it does not work.
What I'm trying to do is quite simple but as a beginner I'm getting incredibly frustrated with it. Here's my first attempt. I plan to do something a bit more fancy with the images, but I could see straight away that this wasn't the solution. Mouseover was changing the image before it had faded out and looked horrible. So, I thought I might put all the images in the same place and hide them, making them visible and bringing them to the front on mouseover of the corresponding hotspot.
How do I pass the parameter to the function? Would I set an attribute and read it with[att=XXX] where the attribute is the echo'd $Region or is there a better way?
I have a div on my page that is populated by a php calendar. The calendar also has month and year input fields so that the user can browse to different months. I would like to create a jquery function so that, when a user changes the month or year field, the div reloads the calendar and passes the selected month and year variable back to the php script. Here is what I have on my page:
<head> <script type="text/javascript"> function startCalendar(month, year) {
I'm trying to pass data to my mySQL database, but I'm doing that 2 jQuery scripts:User comes on my page where there is a list with some values, e.g 530, 532, 534 etc etc ..User clicks on one of them, this link is using the jQuery to get another php file which get's the data from my DB and list it below the first list, here's the code for this:
So the second list is another step that can't be avoided to get the final result. In other words, i'ts another list where the user has to chose one of the items from the list to see the final result, I've added this code inf the 'e.php' file:
The problem is that my 'f.php' only gets 1 variable value, but I'll need 2 or more (maybe in the futur), how to pass multiple variables to a php file using jQuery?
<script language="javascript"> // Upload progress bar jQuery(function () { jQuery('#upload_form').uploadProgress({
[code]....
^ This code I got online and it is very peculiar to me. It isn't tied to a function that can be called the documentation has the code just free floating. My problem is that I want to have this code be able to have access to native javascript variables. It seems the second I go into the .getJSON function I no longer have access to any other variables. How do I go into a JQuery function while still having access to native js variables with this code specifically?
i have this problem in passing values to a variable in a jquery function.
i have a js variable that accepts a certain value and then i want to pass this variable in the jquery function.
For example, this is my script: var autoScrollBool = "true" var autoScroolInt = "10" (seconds) stepcarousel.setup({
[Code].....
i want to replace the value of autostep: {enable:true to enable: utoScrollBool(the variable i created) , when i tried to assign it as is, its not working.
I have a wordpress site with dropdown menus that currently are working with jQuery, now the issue is when trying to dynamically update the menus and parsing it with json.parse. For some reason I am not getting any data back of the following code (if I try to alert (data) I just get a blank box).
function waitGoUpdate() { var $jQ = jQuery.noConflict (); $jQ.ajax ({
[Code].....
and just print out the function, than I would get the data on screen. now if I was to access my php file directly than that fill will output an error due to missing plugins.. I guess that is just how wordpress sorta work.. but again I do get the info that i need by just printing out the function. Do anyone knows a work around for this? I am kinda pulling my hairs out.
for some time I always found a workaround for this kind of problem. But somwhow, it feels wrong. So I'd like to know, if there's a common way to solve something like this[code]...
I'm defining the function and if the value of 'obj' hasn't until the function really gets called, this can work. But it just feels so wrong do have always global variables just to access them inside of a callback.[code]...
I'm reloading a div of a page using jQuery, but i need that every time that reloads (it reloads automatically every 10 seconds) obtains the get variables that i passed through the address bar
How can I pass some data into datepicker so that the calender displays the date based on the data provided?I am trying to get data from a database then store it in some variable that datepicker can use to display the date...example code?
I created a quick plugin. You can see it at http: [URL]. It has a strange feature. This plug-in treats the jQuery wrapper object as a group, and passes the whole wrapper in as the context object (the "this") for the functions supplied. Generally, when functions are supplied as parameters, either the context is irrelevant, or each DOM element in the jQuery wrapper is passed. But I don't do that. My plug-in keeps a reference to the jQuery wrapper and calls the functions in that context. This is necessary, because the whole idea is to act on a number of elements as a group -- in this case by fading in and out all members of the group when any individual one is hovered -- but I don't recall seeing this done elsewhere in the jQuery ecosphere.
For some reason, I am using document.referrer in a PHP script that is called as a JavaScript script. The problem is that I need to pass the value of document.referrer to a PHP variable (in the same file) in order to add it to the database. How can I do that?
I'm using Klaus Hartl's"jQuery Cookie plugin" to send variables between pages with Jquery. Works like a smile in Chrome BUT messes everything up (reloads the whole page into a one of it's div's) in FireFox and (of course) IE... Can this be accomplished without using cookies?
I'm creating dynamic buttons and forms for a website and would like the form hidden when it's corresponding button is clicked. However, when I pass button and form name variables to my JavaScript that hides the form, the variables are not being recognised unless I explicitly set them. (e.g 1 and 2 as seen below).
In a nutshell the onlick event doesn't seem to like PHP variables !
Don't know if this should be under JS or PHP... I have 2 different pages. On the first one, a table shows a list of items. Each has a button that when clicked opens another window with specific size attributes, hence the onClick event. The 2 PHP variables are computed and different for each item (each line).
Now of course, on the popup window, the URL will show .../player_buy.php?send_role=XXX&send_price=XXX
But the goal is to avoid that. So my question is: Is there a way to open such a popup window, pass these variables to it but in a way that it would not show in the URL?
I have a javascript function that receives the form name, field name and value and I want to be able to spit that data back to the originating form after doing some processing on the data.
The values are making it to the function perfectly, but when I try to return those values to the form, it tells me it's not a function. I know there's some syntax problem, but I'm just not sure where!
function doThis(one,two,three){ var myFormName = one; var myFormField = two; var myFormValue = three; var goHere = myFormName + '.' + myFormField;