jquery

Uploadify not passing variables, Session problem??

For the love of pete I can't get it to accept any variables into to my SQL db. If I put static info it works. I can't seem to pass any paramaters over with scriptdata and it makes it more challenging because I'm using smarty template system on top. I was trying to do this. {literal} <script type="text/javascript"> jQuery(document).rea...

How to load images intelligently using CSS/jQuery?

I have a thumbs div (i'm only showing four thumbs for the sake of brevity): <div id="thumbs"> <img src="graphics/thumbs/01.jpg" width="190" height="190" class="thumb objects" id="project01" /> <img src="graphics/thumbs/08.jpg" width="190" height="190" class="thumb web" id="project08" /> <img src="graphics/thumbs/14.jpg" width="190" hei...

Detemine the previous page (i.e. referrer) in jQTouch

I am trying to determine the previous page (e.g. the referrer) in order to decide whether to display the back button. I tried to check for $('.current').data('referrer'), but it is not always set. In fact, it is often not set. history.previous and document.referrer do not seem to be set, either. Could someone please enlighten me on th...

Can't see my error in this jQuery table expand

Hi folks. I'm following this tutorial: http://www.javascripttoolbox.com/jquery/ And I'm trying to get table rows that are populated by mySQL to expand to show the details. What's strange is firebug shows the rows as hidden (greyed out), and when I click the above row, the rows get un-greyed out. The problem is that they are not actual...

jQuery CSS Positioning onhover of div-elements (Cross Browser Issue)

I am trying to create an interface using jQuery but having some difficulty making it work on different browsers although, what I am linking now should work on most of the Windows browsers. See here: http://122.173.254.198/picasa_hover_experiment.htm (Please note the problem part is programmed minimal and solution expected on same) The...

How do I ensure with jQuery that a function will finish before executing the same function again?

So, I have a function that executes on a .click() event. I want to know how I can ensure that the function won't run again before the first run is complete? So, if a user clicks 3 times, the function will run 3 times, but run1 will finish before run2 starts. I was thinking something like .queue(), but am unsure how to implement it. $(d...

Javascript/jquery to download file via POST with JSON data

I have a jquery-based single-page webapp. It communicates with a RESTful web service via AJAX calls. I'm trying to accomplish the following: Submit a POST that contains JSON data to a REST url. If the request specifies a JSON response, then JSON is returned. If the request specifies a PDF/XLS/etc response, then a downloadable binary ...

asp.net Is it possible to create a dropdownlist like the one in ms-word fontsize

Hi All, I am creating an application to save the font name, size and color for the entered text to the database. For Color and name i am displaying it from the system font and color. Problem: For the font size i want to make the dropdownlist to act as dropdownlist used for fontsize in ms-word. 1. We can select size already exist in th...

JQuery Beginner Question regarding slide up/down effect

So I tried creating the slide up down effect like in this example http://paulsturgess.co.uk/articles/show/83-jquery-text-slide-up-slide-down-effect The problem is..its showing the text when the web page opens I want the "Paragraph" to be displayed ONLY when mouse is over it and NOT when the page first loads I am a complete noob to Jq...

jquery, run form

Hi, how to activate the button. If the condition is true, I want to send data through a method (POST). <script> $(document).ready(function(){ var count = 0; if(count == 2) { //run form } }); </script> </head> <body> <form action ...

How to pass an array of strings from PHP to Javascript using $.ajax() ?

I have a PHP script that retrieves names (strings) from database. I would like to pass this array to Javascript using $.ajax(). I cannot understand how should I encode the array in PHP and then decode it in Javascript. Could someone give an example code for this ? Thanks a lot !! ...

Using variables to check for error condition in Javascript

Hi all, I have a personal simple jQuery validation script. It works when the submit button is clicked and sets up a variable: $errors = false; Then there are series of if statements that check for textbox values and conditions, and if conditions are not met, variable $errors is set to true. The script works except for one thing. If a...

How to highlight a link from a PHP generated nested list.

I have a PHP script that displays all my topics in nested list and I want to be able to click on a link and when doing so have it be highlighted but i don't know how to go about it with my current code, can someone help me with this? I'm using PHP, CSS and JQuery Here is my PHP code to display all my topics in nested lists. function m...

AJAX v/s IFrame

Hi all, I am loading a pure HTML code from a AJAX get request and appends it into a div using JQuery. In IE this process is quite slow. I used several method to speed this up but it does not have a major impact on IE. So alternative is to load this content via IFrame. Iframe is rendered by browser and hence can be faster as compared t...

What does jquery's scrollLeft function do

What does scrollLeft() function of jquery do? What does it mean when I write $(window).scrollLeft(),$(window).scrollLeft(1300), $("div.test").scrollLeft() and $("div.test").scrollLeft(1000)? ...

catch value with jQuery

Hi, how get values from input? I have this script, but i don't now, how catch values with jquery <script type="text/javascript"> $(document).ready(function() { $("#fileInput2").uploadify({ //How get value from input (fileInput2) }); }); </script> <div class="demo"> <input id="fileInput2" name="fileInput2" type="file" /> ...

How to close a list menu on mouseout using jQuery.

Hi all, I have the following scenario: <div class="dropMenuWrapper_content"> <img src="images/dropMenu.gif" class="menu_head_content" /> <ul class="menu_body_content scroll-pane" id="SmallDropDown"> <li><a class="modalWindow cboxElement" href="http://mysite.com/service/0.aspx"&gt;1&lt;/a&gt;&lt;/li&gt; <li><a class="modalWindow cbo...

how to transform a dropdown list to a button with dropdown list popup

I need to modify a dropdown list: http://dl.dropbox.com/u/72686/now.png to this widget (not sure how to define it): http://dl.dropbox.com/u/72686/later.png I can use jQuery for it.. or maybe there is a html form element ? thanks ...

Using attr on elements created with javascript

If I create a new DOM element with Javascript document.createElement, is there a way to use jquery function attr() to change the element's attribute? ...

Google chrome cursor remains as 'loading' after jquery load()

I have a simple jquery load call as follows (triggered on a link click) $("#mydiv").load('/link/to/my/page.cfm', { "page_id": page_id }); In Chrome after the POST request is sent (with the results successfully received and loaded in #mydiv) the cursor remains as 'loading' (as well as the icon to the left of the window's tab). I canno...