jquery

How to pass textbox value to another script on link click event.

I have a form like this: one.php <form id='myFormId' name='myFormName'> <input type='text' name='myTextField'> <a href='two.php'>Show Value</a> </form> Question: I want to pass 'myTextField' textbox value to two.php and want to echo it on screen. I can't use submit button and also can't submit the form. Is there any trick ? Tha...

Javascript Opacity Issue

Using absolute positioning, I have placed a div with opacity of 0.5 in front of an image by giving it a higher z-index. Also using absolute positioning, I want to put another smaller div in front of the first div using a higher z-index. This smaller div would show only part of the image (like a window), but have no opacity. Eventually, I...

Tabs in Jquery UI Dialog Not Working in IE

I noticed that when I show up a modal dialog using Jquery UI in IE, once I reach the last control in the modal dialog, the tab focus goes out of the modal dialog and into the other parts of the browser. This is not the behavior in FireFox, wherein the focus loops back to the starting control of the modal dialog. To see how this weird be...

accesing html form array inside javascript

how can i access an array, defined in the form, inside javascript. e.g i have defined an integer array inside the web form like <% using (Html.BeginForm()) { int[] ctid = ViewData["ct"] as int[]; var x = 0; %> now i want to access this array(ctid) inside javascript, how can i do that... plz help ... ...

Check username/email availability design question

Hi guys, I'm pretty new to programming and html design and would like to ask a question some might consider silly. Here goes: I have a registration form that is validated with jQuery validation plugin. Within this form, there is an email and password input which will be used as login credentials. What I would like to do here is che...

Why is ZendX Autocomplete not working??

Hey, I'm setting up my first ZendX_JQuery_Form. In my controller, I've got the following code: $form = new ZendX_JQuery_Form (); $date1 = new ZendX_JQuery_Form_Element_DatePicker ( 'date1', array ('label' => 'Date:' ) ); $form->addElement ( $date1 ); $elem = new ZendX_JQuery_Form_Element_AutoComplete( 'ac1', array('label' => 'Autocom...

jQuery selector

I have the following markup that will be repeated for several questions <p id="questionOne">What are your tasks?</p> <p id="copyLastYear"><a href="#">Copy from last year</a></p> <div id="anserOne"> <div class="cleditorMain"> <div><!-- Editor tags here --></div> <iframe> <html> <head></head> <body></body...

Receive all values for input[] in array form in jQuery to send to PHP script

Hi there I am busy getting values on a form using jQuery to send to my PHP script. Well, most of my checkboxes have a name in the form of name="input[]" and so when I alert the value that gets returned in my form's submit() handler, it only returns the value of the first checkbox with that name. How can I return the values in array form...

php form: passing on submitted information

if(!isset($_POST['JoinFaction'])) { echo '<form method="post" action="'.$page_name.'"><dl id="sample" class="dropdown" align="left">' .'<dt><a href="#"><span>Recruiting Factions ['.$numrows.']</span>' .'</a></dt><dd><ul>'; while($faction_re = mysql_fetch_array($sql)){ echo '<li><a href="#">'.$faction_re['f_name'].'' .'<span...

jQuery.Post/Ajax POST to PHP for writing XML file

I have a client side code in jquery and from client side code I need to store some data on server side in form of XML files that are written using PHP. I'm done with the code for writing PHP files. However, I'm not able to pass client side code to PHP file. jQuery post is also not working. I tried query strings but as I said data is too ...

Jquery Autocomplete - add selected values to hidden field

I'm using Jquery Autocomplete based on: http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/. I am able to select a value from the textbox and add it to a list as in the example. Is it possible to add the selected value to a hidden field? For example <input type='hidden' value='value 1,value 2, value 3' name="SelectedValue" i...

Javascript/jQuery: calling function in another frame.

I'm new to the DOM and JavaScript and hitting on some problems when trying to call a function defined in a frame from the context of the top-level frame or Firebug. Given the below frameset: <html> <body> <frameset cols="*" rows="81,*"> <frame id="topFrame" tabindex="1" name="topFrame" noresize="noresize" scrolling="No"...

How to create function for jquery .keydown?

Hi! I have this: $(document).ready(function() { var test_func=function(ev) { alert(ev.keyCode); }; .... $(document).keydown(test_func(ev)); }); I wanna do the next, if I press somebutton on keyboard, I'll see alert with a code of key which I pressed. But I see only 'ev is not defined' in my firebug =| Wha...

jQuery, stopping an animation associated with a jQuery Form Wizard

Hi all, I'm a designer with limited coding knowledge. All I need to do is to create a simple form that submits data in one go. The form broke up into parts using jQuery Form Wizard. There's this progress indicator at the bottom of the page. However, when I finish the form, the arrow carries on and doesn't stop at Finish. Below is th...

Jquery autocomplete, how to search on words instead of string

I have a textbox where i want to have an autocomplete that lets the user search through addresses. The user must be able to type in different words and the autocomplete must search through them to narrow its list. I've been trying and reading the documentation, but nothing seems to do the trick as it always searches on the whole string...

rails3 rails.js and jquery catching success and failure of ajax requests

Previously, in rails 2.3.8 i used the prototype-helpers link_to_remote and form_remote_for (amongst others). These had the option :update as follows: link_to_remote "Add to cart", :url => { :action => "add", :id => product.id }, :update => { :success => "cart", :failure => "error" } (an example from the documentation). This exam...

Drag drop Fullcallendar set attribute problem or my misstake

Hello, i am using the jqueryPlugin fullcalendar. I add (see the example on http://arshaw.com/js/fullcalendar/examples/external-dragging.html) external events. On the drop event i have difficults to add or manipulate the attributes of the added event. drop: function(date, allDay) { // this function is called when something is dropped ...

Replacing asp.net ajax controls with jquery

I have a solution that uses accordian and tab controls , amongst others. Is it worth swapping these out and using the jquery controls. What are the benefits. Is it best practice to load one tab at a time with data? Thanks ...

jQuery fullcalendar: contextmenu

hey, I want to use jQuery.contextMenu (http://abeautifulsite.net/blog/2008/09/jquery-context-menu-plugin/) in jQuery.fullcalendar.. when i right-click on an event.. but how it works? ...

RoR + Jquery not working

Hi! I want use jquery in my project. I know the javascript_include_tag calls the jqeury plugins, but the tag how works in ruby? example <%= javascript_include_tag 'jquery.ui.potato.menu.js' %> <%= javascript_include_tag 'http://ajax.googleapis.com/ajax/libs/jquery/1.3.1/jquery.min.js' %> <script type="text/javascript"> (function($) ...