javascript

Retrive submit label using jQuery

Hi all i have the html as follows <div class="element-container" id="div_3"> <div id="submit_submit" class="element"> <div class="fleft"> <input type="submit" value="Click me!" name="submit" id="submit"/> </div> <div class="clr"/> </div> </div> When i click on element-container i want the ...

Opening an external page inside our page

I used to implement this above title by using iframe but now I dont want to use it any more I have some plans in my mind I need to implement them by opening an external page inside our asp.net page without using any iframe I have only simple aspx page with div tage and panel and some other serverside componants, I just want to know how I...

Get the value of a variable in a loop

I have a loop that when it is called, creates a div with some form elements in them. Each div is based on a variable, "i" to give unique names to the fields and divs. Is there a way I can store what the variable was at the point of creating the div? For example, div1 is created and everything in it has 1 (the variable) attached to the n...

jQuery: How to get ID of dynamically generated element?

Here's the rundown: I am creating a table dynamically from the results of an AJAX call. To add the rows, I am using the "after" function, seeing as there are certain rows in the table that function as headers. After I add these rows, I have a quantity box that I would like to make editable. I am able to add an event to it, however I ...

Getting ClientID of control in RadGrid edit form

I have Telerik RadGrid with a custom edit form. In my edit form there is a RadDatePicker to which I have added a custom footer template containing a 'Today' button. In the OnClick event of the button I call a Javascript function which takes the control ID to set the selected date. However, because the control is inside the edit form th...

Get select values and radio values using jquery

Hi all, I have the following set of html for both radio and select box i want to get the value with comma seperated FOR RADIO BUTTON <div class="element" id="radio_gender"> <div class="fleft"> <label for="gender">Gender</label> </div> <div class="fleft"> <input type="radio" value="Male" name="gender" />...

How do I get encodeURIComponent() to stop adding &#C2; character to &#32;&#32 ?

I have a form which incorporates a third-party editor (FCKEditor) in place of a textarea. When that is sent to javascript for encoding, I get something like the following: Some&#32;test&#32;notes.&#32; &#32;And&#32;some&#32;more&#32;test&#32;notes. The issue that I run into is with the ADDITIONAL space put into the string from the...

Getting started with Qooxdoo

i downloaded Qooxdoo, then ActivePython and installed it as in this tutorial http://qooxdoo.org/documentation/1.1/helloworld. When I follow the instructions I get the following results: C:\qooxdoo-1.1-sdk\tool\bin\create-application.py --name=custom --out=C: - this command opens a "create-application" wordfile. cd C:\custom inside c:\c...

Passing String value from Mobile Application to html javascripted codes on opera browser?

Hi i currently have a puzzle game application on smartphone windows mobile 6. I want to pass a simple arrayed string to a browser/opera that opens the .html code file which is a google map code. When the browser is opened, i would want to choose the values to be displayed inside textfield. I'm working on a mobile with windows mobile 6 C...

Know word at text insertion pointer on a webpage?

Hi, I would like to know the word at the position of the text insertion pointer in a form on a webpage. My problem is that I don't really know what language to use to do this, and I have no idea how to do it in Javascript. Any ideas? ...

Asp.Net Wizard in ASPxCallBackPanel control

Hello, Im using ASPxPopUpControll in which I have ASPxCallBack panel. THis CallbackPanel was embeded there because I wanted to have solution based on callbacks despite of reloading page each time. In this CallBackPanel I've embeded asp:Wizard control. What I want to achive is get rid of postbacks after clicking next previous etc butt...

Bind ready event on javascript dom element creation

Hi there, i would like to know if we can bind a loaded or ready event on an item created by a script when the dom is loaded. I heard from live() but it's not something clickable, it's just an item which has to load. Thanks for your help! ...

Jquery ui tabs - using ajax tabs AND cookie persistence

I'm a complete noob to jquery and jquery ui but have successfully implemented a couple of ajax tabs. I am now trying to combine this with the cookie persistence feature so that the page will open at the last opened tabe when returning to the page. Code for the ajax tabs looks like this: <script type="text/javascript"> $(function() {...

Google Maps Help - placing city name above markers

I'm using Google Maps v3. I have a lot of markers on my map, so many that it covers the city name from being visible on the underlining map. Is it possible, and how, to have the city name displayed above the markers? For example, currently, the layers look like this. Layer 1 - Map Markers (on top of map) Layer 0 - Google Map (with ci...

Why TinyMCE's getContent() returns epmty string if content is several space/&nbsp;

Why TinyMCE's getContent() returns empty string if content is several space? If my content contain only spaces, then getContent() method return empty string. I want count up chars in TinyMCE's body. ...

Question regarding jQuery click() function.

$('document').ready(function(){ $('[name=mycheckbox]').live('click', function(){ if($(this).is(':checked')) { alert('it is checked'); } else { alert('it is not checked'); } }); $('[name=mycheckbox]').click(...

Display modal after postback without ASP.NET Ajax

I have an ASP.NET button. When the button is clicked, I'd like a modal popup to display after the server-side code for the button runs. I don't want to use the ASP.NET Ajax control toolkit modal popup extender. With ASP.NET Ajax, I can hook into the end request event. Is there a way to do this without ASP.NET Ajax. just jQuery? I ba...

JavaScript If statement condition with no operator? What does it do?

I am used to if statements having a condition where ( x < y ) or ( x == y ). But in cases where there is no operator, what does the if statement check exactly? i.e. in the example below if (window.XMLHttpRequest)... what's the condition? Thanks. if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new ...

JavaScript Find In .TXT File

I have exhausted google for a JavaScript "Find In Page" tool to place in a HTML file so that when I enter a search term and click submit, the script will search a TEXT file of my choice and find a match on the text page for the entry submitted. This is an example of what I'm looking for: Page A - This is the start page: http://mobi...

Continuing to hide HTML input fields when page refreshes?

On a HTML page there is a filter section consistenting of various drop-downs and textboxes. When the 'type_of_report' drop-down is selected the 'onchange' event will hide all the non-relevant inputs for that 'type_of_report'. The filter criteria is preserved via GET (which I retrieve via PHP $_GET). The problem is that when I submit t...