Hi I'm using the syntax highlighter found here: http://code.google.com/p/syntaxhighlighter/
I have a page wherte it works fine:
<div id="codeArea">
<pre class="brush:csharp">
var customers = new Customer().GetCustomerList().AsEnumerable()
.Where(c => c.CustomerID < 5);
</pre>
However,...
Hi,
Assuming you have a Unix timestamp, what would be an easy and/or elegant way to check if that timestamp was some time yesterday?
I am mostly looking for solutions in Javascript, PHP or C#, but pseudo code and language agnostic solutions (if any) are welcome as well.
...
Hy,
I want to make a dynamically populated html select for a select cell. I extract some information from a database which is different for every row item. The problem is that the editor loses the initial data and I don't konw how to keep some data for a specific cell. Has someone done this ?
function StandardSelectCellEditor($containe...
I'm currently using PHP to include multiple css (or js) files into a single file (as well as compress the content using GZIP).
E.g. the HTML page calls resources like this...
<link rel="stylesheet" href="Concat.php?filetype=css&files=stylesheet1,stylesheet2,stylesheet3"></link>
<script src="Concat.php?filetype=js&files=script1,script2,...
How to call a javascript function inside server side after the code is executed in page load/any events ? I am using UpdatePanel in this page. I had tried Page.RegisterStartUpScript, ClientScript.RegisterStartupScript. None of this works.
...
Hi,
How can I delete content of div with jquery?
example of div id container
input:
<div id="container">
<h1>sdsdsdsd</h1>
dsdsdsdsds
<div>1</div>
<div>2</div>
<div>3</div>
<div>4</div>
dsfdfsd
</div>
output:
<div id="container">
</div>
Thanks
...
I use this simple Javascript code to retrieve text that was selected on a webpage:
var userselection = window.getSelection(); //user selection will be a Selection-Object
var rangeObject = userselection.getRangeAt(0);
The code works fine if text is selected. If I just click in the text that could be selected I get a range object too, ...
Hi,
Is it possible to use Javascript to invoke a FTP call to a specified URL and retrieve all files in this webdirectory?
...
...
Hai,
I have a checkbox(chkVerified) control in a gridview. This is inside templatefield. I am checking the value of this checkbox
in javascript. I am setting the visibility of this template field column through c# based on certain conditions.
The issue is that, when the visibility of template field column is false, I am getting javascri...
Since I posted this question, this issue has resolved itself. There must have been a glitch on Facebook or my dev server. Anyway, thanks to those of you who tried to help.
I have a Facebook app that runs on two servers: a live server and a dev server.
I was making some changes on dev and testing them when FBJS failed with an error (un...
Hi,
I'm using devexpress ASPxComboBox, however I wanted to know how I can allow the user to enter values(in case it is not in the list) or choose from a dropdown list.
An example would be great!
Thanks,
Tim
...
How i Prevent Duplicate Entries in database at the time of form submit and display an alert box and stop form submission if entry is duplicate.
...
Hi,
I am wondering that javascript support to write the function inside another function, by one of blog. Is this really possible. In fact i have done code but doubt about this concept. please clear this concept. I a really confuse.
...
Hi,
I'm using selenium for auto testing .
Though the reference manual says it doesnt support Javascript.
Would like to know if any alternative is there for passing confirm dialog box ??
My script is failing when trying to click "OK" on confirm box .
Failing at this line
assert /^Quantity Unavailable\. Do you want to continue[...
my table has already 5 rows...after pressing addow, rows are added dynamically to another table... i need to save the data of all the rows(5+newly added) in the database...
how can i achieve this...
please suggest me
...
I am creating an iphone version of several pages for a website and I am using a javascript file to redirect to the correct page:
<script type="text/javascript">// <![CDATA[
if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)))
location.replace("index2.html");
// ]]></script>
The page loads fine, but it is ...
Hi I got a ASP file and would like to get infos from __utmz Cookie and forward it with mail.
I use this code:
<script language="javascript" type="text/javascript">
//
// Get the __utmz cookie value. This is the cookies that
// stores all campaign information.
//
var z = _uGC(document.cookie, '__utmz=', ';');
//
// The cookie has a numb...
// i = inner, o = outer, f=function, a=attribute
var singleton = function() {
var iF = function() {
return this.oA; // returns undefined
}
return {
oF: function() {
this.oA = true;
return iF();
},
oA: false
};
}();
singleton.oF();
If singleton were a class (as in a class-based language), shouldn't I be able to acce...
Hi all,
Can anybody let me know how to display a Pop up to confirm if he wants to save the changes ,when a record is in Edit mode in Gridview
and user Clicks or tabs away from the row.
Thanks in advance
Divya.
...
Hi.
I have the following code inside a class:
this.buttons = {
cancelButton:{buttonId: "cancelButton", buttonText:"Cancel", buttonClick: function(){alert('Cancel');}},
confirmButton:{buttonId: "confirmButton", buttonText:"Ok", buttonClick: function(){alert('Ok');}}};
}
for(var button in buttons){
var buttonId = butt...