if users press the browser's back button to reach the prior page..then page should display a message like "web page expired" in asp.net
can i use javascript for this???
for example..
there are 4 pages in web sites. 1,2 and 3 can be back. but when the 4th page run then 4th page can not be back... when the user press browser's back butt...
Hello
I want to get the current URL using javascript/jquery. The URL should include subfolders/subsites in the path but not the page or any other query parameters.
Examples
http://test.com/site1/folder/abc/test.aspx
Output : http://test.com/site1/folder/abc/
http://test.com/site1/folder/abc/test.aspx?id=1&name=xyz
Output : htt...
Hi all
I am trying to fix one jquery issue my code is
<script language="javascript">
$(document).ready(function() {
//if the document is ready
$('#img').load(function() {
//if the image is loaded
pic_real_height = this.height;
//finding the height of the image
$('#i...
Possible Duplicate:
jQuery $(this) vs this
In jquery sometimes I find that within a function I have to use $(this) because this won't work:
var listItems = $('li');
listItems.each(function(index) {
$(this).css({
})
})
Any ideas as to the reason why?
...
Hi
I have a problem.I have a 'demo' controller with 'demo' action what get a parameter, and i want to give them in javascript.
aspx:
<script type="text/javascript">
function openDefault(miez) {
var manager1 = $find("<%= RadWindowManager2.ClientID %>");
var str = "/demo/demo/" + miez;
manager1.open(str3, "RadWindow...
For support reasons I want to be able for a user to take a screenshot of the current browser window as easy as possible and send it over to the server.
Any (crazy) ideas?
...
Hi
I have been trying to add onclick event to new elements I added with javascript.
the problem is when I check document.body.innerHTML I can actually see the onclick=alert('blah') is added to the new element.
but when I click that element I don't see the alert box is working. in fact anything related to javascript is not working..
here...
I'm creating HTML from javascript code.
What character(s)/escape codes should I add to the long html to cut the html into smaller lines (in the html source level, not in the rendered html result)?
...
I got used to Emacs, and it's JavaScript modes are quite modest, as far as I can tell. I'm about to do some serious ExtJS coding, and I'd like to use Emacs. Spket plugin available in Eclipse is great, but is there any ExtJS Emacs mode available? After thorough Google querying, I reckon that chances are very slim, but... hey... just askin...
I need to create a function to filter data according to time.
I have a table of flights with departure time in related rows, what i need is, i will put to time filter fields to my form, for hiding flights before and after selected time. In other words, flighs bettween selected time interval will be visible.
I have no problem with gett...
Hi!
I have jqgrid :
jQuery("#list").jqGrid( {
url : 'ajax/get',
datatype : 'json',
mtype : 'POST',
colNames : [
'Date',
'ID'
],
colModel : [{
name : 'date',
index : 'date',
...
I have a two-dimensional array:
function getMatrix(size) {
var matrix = [];
for (var i = 0; i < size; i++) {
matrix[i] = new Array(size);
}
return matrix;
};
It is filled with numeric values, so every existing matrix[i][j] is a Number. What is the best way to get a sequence of i and j pairs that will correspon...
Here is my code:
function show()
{
var parameters = new Object();
parameters.F1MBFC = 'N';
parameters.F1MCSI = 'N';
parameters.F1MMCY = 'N';
parameters.F1NACD = 'B';
parameters.F1RVCR = 'N';
parameters.SOURCEFILED = '_fld:FACILITY7';
showPopWin('http://mysite/popupForm.aspx', 650, 450, null);
}
How i...
Hi all,
I was wondering if any of you have tried catching errors such as RangeError, ReferenceError and TypeError using JavaScript's exception handling mechnism?
For instance for RangeError:
try {
var anArray = new Array(-1);
// an array length must be positive
throw new RangeError("must be positive!")
}
catch (error) {
...
Are there any js/jquery scripts out there like this one:
http://jqapi.com
A left menu that changes the content on the right, with the ability to search it.
...
Hi,
I am using looped slider js for implementing a slider in wordpress. Basically i want to add my slider when entire page loads.
please help me. I tried lazyload plugin for that but wont get any success.
My markup is like this,
<div class="container">
<div class="slides" >
<div><a><img /></a><a><img /></a></div>
</div>
</div>
Thanks ...
I need to match strings that don't contain a keyword (beta2) at an arbitrary position.
Consider:
var aStr = [
'/beta1/foo',
'beta1/foo',
'/beta1_xyz/foo',
'blahBlah/beta1/foo',
'beta1',
'/beta2/foo',
'beta2/foo',
...
When i am setting the tabcontainer first tab as active tab through javascript with the following code :
var tc = document.getElementById('<%= tabContainer.ClientID %>');
tc.firstChild.lastChild.style.visibility = "hidden";
tc.set_activeTabIndex(0);
i am getting the exception like:
Propert or method not supported with this object.
...
Hi,
I have an application that has records of multiple countries' users.And I am recording the phone no. of each user.And i want to apply validation on phone no country wise format.
Thanks!
...
Is there any chance to observe within the prototype framework if a dom element has been updated by Ajax.Updater?
Instead of writing a function in the onComplete parameter, I would like to observe that event for all Ajax.Updater calls. Any idea on how to do that?
Thanks for your help
...