javascript

JavaScript/JQuery: $(window).resize how to fire AFTER the resize is completed?

I'm using JQuery as such: $(window).resize(function() { ... }); However, it appears that if the person manually resizes their browser windows by dragging the window edge to make it larger/smaller, the .resize event above fires multiple times. Question: How to I call a function AFTER the browser window resize completed (so that the ev...

How do I create multiple file downloader without ActiveX?

I want to create multiple file downloader without Activex on web page. please answer me how to do. ...

Find substring with Jquery?

How would our group find out if a particular string contain the scertain substring? Only with the help of Jquery, please. ...

dojo datagrid and itemfilereadstore

How do I update dojox.Grid so it displays the latest data? Initially I created the empty store, and then I changed the data to contain something, create a new data store with the new data and then set the grid datastore to the new store. In most of the examples, people use url instead of data when they initialize the store. So how do ...

HTML Form HIdden Fields added with Javascript not POSTing

I have a form where the user can enter a link, click the "add link" button, and that link is then(via jQuery) added to the form as a hidden field. The problem is it's not POSTing when I submit the form. It's really starting to confound me. The thing is that if I hardcode a hidden field into the form, it is posted, but my function isn'...

Use JavaScript to place cursor in a Chrome text input element

I've been working on sending text to an input element in Chrome and I noticed that, unlike in IE or FF, calling .focus() does not put the cursor in the text area. So does anyone know of an alternative for placing the cursor on a Chrome input element? ...

Control characters as delimiters

I have a nodejs TCP server and a client. Basic network communication happens. Client sends "data + STX_CHARACTER + data + ETX_CHARACTER" (just an example). How do I split the string using the STX Control Character as a delimiter or how do I reference the character at all in Javascript. ...

Looking for a jquery plugin to serialize a form to an object

I'm looking for a jQuery function or plugin that serializes form inputs to an object using the naming convention for deep-serialization supported by param() in jQuery 1.4: <form> <input name="a[b]" value="1"/> <input name="a[c]" value="2"/> <input name="d[]" value="3"/> <input name="d[]" value="4"/> <input name="d[2][e]" value...

how to get a text box with the value selected in select box

hi This is my view page here i have a select box <tr> <td>Chidren</td> <td>:</td> <td><select style="font-family: verdana; min-width: 52px;" id="ddlChildren" name="ddlChildren" class="required" onChange="return Check_Adult('dd1Age')" > <option value="">children</option> <option value=...

onload script does not work in subview page in JSF

I have written two JSP pages: outerPage.jsp and innerPage.jsp. The outerPage.jsp includes innerPage.jsp. The innerPage.jsp has one textfield and one button. I need to set focus on textFiled in innerPage.jsp while the page loads. I wrote JavaScript which is called during body onload of outerPage.jsp, but it does not work. Here is the ou...

Please help me regarding Time Zones of different Countries

I am creating a web site which in which the service providers can create their schedule (date and time) at which they can provide service and client can book them. but the problem is that service providers are from different countries. so their is Time zone problem. please give me a best solution for it, that i should convert the time of...

May be an IE z-index bug?

Below is my code. when open the page in ie browser, then select the text in div, the text will be showed by some shadow quad blank . If you delete a line z-index:0, in css class test1, the ie will perform correctly. In my project , the z-index must be set greater than zero, so I couldn't delete the line. I found a solution is to ...

regex for shortforms

I need a regex (JavaScript) which will extract shortforms from a string for example from below string Hibbs' essays in progress include "Anselm's Sacramental Imagination," "W.E.B. DuBois and Socratic Questioning," and "Everything That Rises Must Converge: Aquinas's Theological Re-formation of the Cardinal Virtues." it will match ...

Resize event does not fire in Firefox, but I need to handle focus when FancyBox is shown

I am working on a solution where I need to have the first input field selected when a fancybox is shown. I have tried reacting to the resize event, which works fine in IE but not in Firefox. Also tried reacting to the click event on the link that opens the box - but aparently this is too early so some other element steals focus afterward...

onClientClick event

when i used onClientClick event for calling a javascript function in .aspx file. but it's not working at all.how can i get alert for input of data within "<>" in textbox. pls help me ...

Sort latitude and longitude coordinates into clockwise ordered quadrilateral

Problem Users can provide up to four latitude and longitude coordinates, in any order. They do so with Google Maps. Using Google's Polygon API (v3), the coordinates they select should highlight the selected area between the four coordinates. Question How do you sort an array of latitude and longitude coordinates in (counter-)clockwise...

How to set the time for a specific local in javascript

Hi, i have a problem, and maybe someone can help me, i will explain... i have the in javascript "var date= new date();" and its give me the local time (browser time) but i want force this data/time for a especific local... for example... Spain. i want everytime that someone enter in the page (from others country) the date need be the ...

Automate Access of Alpha Numerical index in json

Hi, I have following kind of index while accessing json data using jquery data.rows[0].student_1 data.rows[0].student_2 data.rows[0].student_3 and so on... Now, i want to automate this thing in a loop like for(var i=1;i<length;i++) { // so that i can access all student records i.e. student_1, student_2 and so on data.rows[0].stud...

which javascript framework is better for Cakephp

hi to all i am using cakephp framework for my project. but i am in confusion that which javascript framework i use for the project. so please suggest me for this through which i get enough help from net. thanks in advance ...

Programmatically Untag FB Photos with Javascript

Hello! I've spent the past hour hacking away at this: I want to write a Javscript routine to programatically untag myself from photos on Facebook. Once it works, I'll run it in the Firebug console and untag myself from all Facebook photos (there's no way to do this through the GUI). I wanted to see if you guys had some advice to get m...