Hi all,
Is it possible to have two headers in Ext JS grids? I have to show my grid as grouped data.. for example product types and products. In my case I need a grid like this:
Field | Product Type A | Product Type B |
--------------------------------------------------
| A1 | A1 ...
For some reason, in IE8, javascript is not running unless I reload the page with Developer Tools open. I close developer tools and reload the page and the javascript stops working. I'm not getting any error reports (not that they'd be any use anyway).
Anyone else had this problem?
...
<form><input type="file" name="first" onchange="jsFunction(2);">
<input type="file" name="second" onchange="jsFunction(3);"</form>
Possible to pass just numbers to the js function?
Thanks
...
I have a variable that will sometimes be negative and sometimes positive.
Before I use it I need to make it positive. How can I accomplish this?
...
I want to show the timezone code such as BST or GMT based on the user's locale. However in each browser it is positioned in different places from new Date().toLocaleString() and on some browsers (such as Opera) not available at all.
It looks like the solution would be to get a database or structure of timezone codes against timezone off...
Hi,
I have created my own code to provide date masking and validation for TextBox control in asp.net. Below is the code. The code works perfectly.
function IsValidDate(ctrlID)
{
var validDate=true;
var myT=document.getElementById("ctl00_ContentPlaceHolder1_CandidateResume1_TabContainer1_TabPanel2_Education1_"+ctrlID);
...
I think the question title seems to explain eveything.
I want to detect whether a string is in URL format or not using javascript.
Any help appreciated.
...
I have a button that opens a dialog when clicked.
The dialog displays a div that was hidden
After I close the dialog by clicking the X icon, the dialog can't be opened again.
...
I tried this, but could not get through:-
code behind
protected HtmlTableRow trComment;
protected void Page_Load(object sender, EventArgs e)
{
//Show/Hide table rows (TR)
trComment.Visible = ConfigUtil.DisplaySummaryComment;
}
.ascx page
<tr id="trComment" runat="server">
<td style="vertical-align:top; text-align:left;"...
INTRODUCTION : I have a function(callback) that receives a object as an argument, inside this function I have a method(or function I'm note sure what is it) which then partitions that object. Now I'll add some code to add some clarification to introduction part.
Result.getListCallback = function(obj) {
Result.complexObject = obj.data; ...
hi,
can you tell me why this JavaScript not working .
function expand()
{
var slidingDiv = document.getElementById("expandDiv");
var startPosition = 350;
var stopPosition = -150;
if ((parseInt(slidingDiv.style.top) > stopPosition )&&(parseInt(slidingDiv.style.top) < startPosition ))
{
slidingDiv.style.top = ...
I have a page where the user can dynamically add file upload boxes. Adding the boxes changes the height of the div they are in, but certain elements of the div below it stay in the same place, so they start to overlap with the new DOM elements.
This works correctly in IE8, Firefox, Chrome. How can I force IE7 to reflow the page with t...
I need to isolate user-written code snippets from each other in javascript. For now the funniest thing i can think of is closures:
function executor() {
window.alert('Hello!');
size0 = document.getElementById("load").innerHTML;
window.alert('zero:' + size0);
(function(document){
// document = {"innerHTML":"empty"};
wind...
Having become used to having auto-generated API docs for most of the languages I use it seems that there's a giant hole where Javascript documentation should be. I can't find any simple Javascript documentation thats arranged by object/module that lists Class and Instance methods in a 'standard' way. A few questions:
Am I missing somet...
I need help with this...
I've found a javascript app online in which I want to insert into powerpoint for a presentation...
Vb support jscript
Can i convert Javascript to Jscript some how? or can someone help me with it....
If wanted just ask for code or site
...
What I want to do is insert a link and img for every thread of this forum I use. The href of the link should be based on the href of a child of the element.
Here is a partial view of the HTML, I've taken out some things for clarity, let me know if I've taken too much. The very last tag repeats 20 or so times, depending how much threads ...
I know I can read the URL of the current page, but is it possible to read the url's of all open tabs?
Thanks!
...
I'm writing an app that uses ajax to retrieve data from a mysql db using php. Because of the nature of the app, the user clicks an href link that has an "onclick" event used to call the javascript/ajax. I'm retrieving the data from mysql, then calling a separate php function which creates a small html table with the necessary data in i...
I have some HTML that looks like this:
<div>
<div class="value">
<a href="#" class="clicker">Some Value</a>
</div>
<div class="heading">
Some Name<img src="loading.gif" style="visibility:hidden">
</div>
</div>
This could repeat several times, depending on how many values and headings need to be listed. Using jQuery, I'...
I am working with javascript and here is what I am trying to do:
1. Send a get request which looks like "http://localhost:8080/myapp/verify.htm?verifyId=Agkvhs"
My requests reaches my verify.jsp in which I have javascript which does some special things and then should redirect to another url WITH the verifyId .
My code looks like this:
...