Hello fellows, Good day. I am trying to fetch an asp.net label control's text value using javascript. However the control id is returned as null when I use
var a = document.getElementById('<%= lblTreatyNo.ClientID %>').innerText;
However it does work when I use the full name from source like
var a = document.getElementById('ctl00_Con...
Hello Everybody,
I have a website developed on Drupal. I use a module called collapsiblock (it is basicly a JQuery plugin) to achieve accordion like effect. It is working fine with me (although it is in Beta). But I want to modify it so that when the user clicks on one item of the accordion the other items will collapsed.
In its curren...
Is it possible to create field in form layout that's initially hidden (completely, including field label)?
I don't want to call cmp.getEl().up('.x-form-item').setDisplayed[1] for these fields after rendering because it causes flicker and other “effects”.
[1] as I know that's the only way to hide form field including label.
...
I have two sets of 'select' elements where the user can enter in two times. It looks like this:
Start:
[hour] [minute] [meridian]
End:
[hour] [minute] [meridian]
I'm trying to take those times and figure out the difference. So I can then output:
Difference: 1.25 HRS
The decimal format, as you probably know, means 1 hour and 15 min...
For chrome, firefox, and safari the following code seems to work and be able to retrieve the id of the last tr in a table.
var table = document.getElementById( tableId );
var rowid = table.lastChild.lastChild.id;
The goal is to use each rows id to keep track of what row number it is. I am using javascript to dynamcially add and re...
I have read a number of explanations about closures and closures inside loops. I have a hard time understanding the concept. I have this code: Is there a way to reduce the code as much as possible so the concept of closure can be made clearer. I am having a hard time understanding the part in which the i is inside two parenthesis. Thanks...
Is there a way to replicate or trigger the zoom feature of a web browser using Javascript?
...
Hi,
i would really appreciate some help creating some java script that will eventually be used in Selenium that automatically sets a date 10 days ahead from the current date and displays in the following format dd/mm/yyyy.
i currently have the script below but i'm not getting anywhere with it. The parts in BOLD are what i suspect to be...
Hi,
i would really appreciate some help creating some java script that will eventually be used in Selenium that automatically sets a date 10 days ahead from the current date and displays in the following format dd/mm/yyyy.
i currently have the script below but i'm not getting anywhere with it. The parts in BOLD are what i suspect to be...
In my page, i have some functions registered to unload event. The functions are called, when i refresh the page, meaning the unload event happens. But this fails when i come to the page after submitting a form. When i refresh, it asks if it can send the data again (submit the form again) i give okay and the page reloads. But the function...
Is there anyway to intercept javascript triggered URL in a WebView just like normal hrefs using shouldOverrideUrlLoading?
...
Any sample code for chart with multiple bars using flot ??
similar to this example . The given patched files are not working for me. Anywhere I can download the latest files for multi bar graph.
Update
I am sure Flot is a very good library but plugins/add-ons are not available easily and the examples given on the website are very basi...
In Javascript, I have an array with objects that looks like this:
var arr = [
{
value_1: 0,
value_2: 4,
encounter_bits: {
min_level: 8,
max_level: 12,
rarity: 20,
conditions: [1, 5]
}
},
{
value_1: 1,
value_2: 4,
encounter...
HI All,
Is there a way to disable specific JavaScript object, while all other JS objects will be available for execution? Something like a script in the top line which controls the rest of JS code on the page.
For example I want to prevent navigator.userAgent execution and leave navigator.appVersion available.
Or even more advanced way...
Hello,
I have a memory leak issue in a rather complex javascript project and am hoping that there are tools that could help me pin-point the cause of the problem.
I have tried the google chrome developer tool Profile tab, where I can take snapshots of the HEAP and diff it with previous snapshots. (check http://www.youtube.com/GoogleDev...
Hi!
We are having a very weird problem here. Even with the suspicion that is a setup problem, as I work for a hosting company, I need to tell to my client with all the possible success where the problem is.
We are talking of:
Windows 2008 / IIS 7
ASP.NET 3.5 SP1
Ajax toolkit
In Internet Explorer 8, when changing the combo value (in...
Hello,
I have a table which repeats an image link to a file download for every row of data. I want to use Jquery or Javascript to detect if a image link returns a 404 error, meaning the file its trying to find doesn’t exist, then set the image link to display:none so its hidden.
Any help is much appreciated!
Jamie.
---Edit---
This i...
I have richfaces application. In the page, there is jQuery function defined:
<rich:jQuery timing="onJScall" name="updateUrlHash" selector="#conversationId"
query="alert('in jquery call');" />
Then I have some a4j:commandLink, which should call the function on completing ajax request.
<a4j:commandLink value="test" oncomplete="upd...
I have a site that uses a jQuery UI slider.
I fired it up in my iPhone, and realised that when trying to drag the slider (by dragging my finger over it), it scrolls the site left to right and leaves the slider unaltered.
It appears I can only slide when the site is at a zoom level that shows the entire page. I think you can force this ...
Hey i want to use jquery UI to have a slider on my page that moves multiple divs different distances.
So basically you pull the slider and div1 moves 10px left and div2 moves 20px left.
I have taken a look at the jquery UI slider here http://jqueryui.com/demos/slider/#side-scroll but i cant figure out how to get that slider to move mul...