When we use the console.log(someObject.function) firebug shows function() string only.
Is there a way i can see/log the code for the function in the console window ?
DataContractJsonSerializer this is nice class added in the .net framework which can be used to serialize/desirealize object into JSON.
Now following is the example i am trying
[Serializable] class User { public string name; public string userId; }
Now following is the output generated
Output : Notice structure where only "name" is…
I have table cell which has class "cellActive". Which has following defination
.cellActive{background:"#DDDDDD"}
Now i am trying to read the background color property for the cell and it comes null/"".
var bgColor = cell.style.backgroundColor; // returning ""
Is that something mistake on my part of its by behavior. If CSS class is…
browser.getEval function in selenium makes iterateNext return null ..Otherwise in firebug it returns a value(same script)
document.evaluate("//button[text()='Save']",
document,
null,
XPathResult.ANY_TYPE,
null)
.iterateNext()
.disabled;
returns…
When i request a page using browser / AJAX request i see lot of spaces and newlines which i think must be adding some overhead for retrieving the response as they too belong to characters means bytes and size. right ?
Is there some way it can be removed while sending from the server ? how ?
(I am using IIS and asp.net for…
i have a workflow where user is allowed to upload any file and then that file will be read.
Now my question is if user have image file xyz.jpg and he renamed it to xyz only (extension removed) in this can we still get the type/extension of the file using/reading files data/metadata.
Thanks all
I have come across the ASP.NET ready made controls like grid, repeater... etc.
For example while dealing with GRID i remember following facts,
ASP.NET V1.1 has DataGrid with "virtual row count" which is heavily used for custom paging which is need of big sites to perform well.
ASP.NET V2.0 added the GridView with all…
I have a json of the following format which I need to send in the Ajax request through POST method:
{
“gbus”: [
{
"code": "*"
}
],
“regions”: [
{
"code": "*"
}
],
“offices”: [
{
"code": "*"
}
],
…
In javascript is there a good(i mean built in) way that i can find whether element if array of not ? one simple i can see is as follows but i don't like it
if(ele.push){//its array it has push method}
I mean i would like know if something like below exists
function x(ele){ if(isArray(ele)){//dosomething}…
I have a page where I have 4 tabs displaying 4 different reports based off different tables.
I obtain the row count of each table using a select count(*) from <table> query and display number of rows available in each table on the tabs. As a result, each page postback causes 5 count(*) queries to be…
Normally we have login page with username, password filed and signin button. Using the normal form based approach we send the data on and page gets post back. Now i would like to change this using the Ajax.
As Ajax too using the normal HTTP so i guess nothing in different from the existing workflow barring…
When i started learning function in C++ its all around pass by value and reference.
Is there something similar we have in javascript ?
If yes/not how it works in case of javascript?
Thanks all.
I would like to create a function which can take two arguments object and type and then type cast the object to appropriate type using the type parameter. Is that possible ? how can i achieve it ?
public class TEST
{
public int test;
}
object ot = new TEST();
Type type = typeof(TEST);
TEST t =…
can someone please help me with this javascript:void(null)
I found it used in link buttons as follows
<a onclick="ProcessResponse()" href="javascript:void(null)" >Accept Data</a>
In my TabActivity , i'm sending value to other Activity how to do that
in this TabActivity how can i send the bundle to other Activity plz tell me
how to pass the value to my other ReceivedList Activity plz tell me ....
public class TabViewForSendAndRecv extends TabActivity{
private…
Datagrid is in content,When trying to access client side function for the cells in the datagrid,its always showing at 0 position
suppose i have 10 rows,for each row "Test button" i should invoke the client side java script.
For each row "Test button" client side script is displaying message…
I would like to write application which will iterate trough certain test cases and generated output in HTML file.
For this i would like to have something using which i can keep appending the HTML nodes to the output for each test case. Is there nice way in .NET for doing so ? How ?
Any…
Hi all i want to build a Menu Builder with drag and drop which i am trying to do like here is the jsfiddle of what i am trying to do This
and i want the functionality to be like This
i will have all products list on a side and i should have a Add column button ,when i click on Add…
Can you explain this?
I want to eval values and calculations from two different sources. One source gives me the following info(programmatically):
'a = 2'
The second source gives me this expression to evaluate:
'a + 3'
This works:
a = 2
eval 'a + 3'
This also works:
eval…
The 11.2.0.4 release of OWB containing the 32 bit and 64 bit standalone Windows client is released today, I had previously blogged about the Linux standalone client here. Big thanks to Anil for spearheading that, another milestone on the Data Integration roadmap.
Below are the…