I'm trying to get the contents of an <iframe> from another page.
The other page is a different website; I'm logged into that website and I get its contents and store it in the <iframe>.
How do I get the contents of that <iframe> into the current window ?
...
Hi,
I want generate textboxes dynamically according to user input. If user enter the integer value in the textbox, if he/she enter 5 i want generate 5 textboxes. This code is working in Firefox but not working in IE and Netscape; please help me how to do this or point out any other mistake in this code to me. Also, the technology we are...
I have table with multiple rows, showing items for sale. When the user clicks on a row, a Javascript inserts / shows a new row right beneath it with details about the item. The issue is when the description is long, it forces the column widths to readjust / resize. This shifts the columns positions and is really annoying, especially for ...
Hi friends,
This is different problem for me. I used ASP.NET2.0 with AJAX,C#.
Regularly client make request from HTML (client side) to any class(.cs) file(server side). And then make updation on that class files through Object or in database.
But I want to make request from Class file (server side) to HTML file (client side) based on ...
Hi,
I have a Google calendar embedded on a webpage, with events related to activities the site is organizing. Some calendar events have links that redirect the user to a page, within the same website, which has more information and the option to enroll in the event.
The problem however, is that since the end of last month, Google impos...
I have a javascript method which handles removing from one select box to another.
The code runs as follows :
function moveAllOptions(formName, selectId1, selectId2) {
var sourceSelect = eval("document." + formName + "." + selectId1);
var destSelect = eval("document." + formName + "." + selectId2);
for (var i = 0; i < s...
I have a asp.net calendar control, say Calendar1, in invisible state (visible = false ). How can I set visible to true using javascript when i press a client side button so that there is no postback done ?
...
I've got an input which it's type is set to hidden, I need to change it's type to text. Can't seem to figure this out or if it's possible with jQuery
...
Hello all,
I am allowing users to download a file from another server just by giving them the link.
However, the files are always named "file.zip" when users try to download it. I was hoping I could use maybe JavaScript to rename the file for them to something more appropriate.
How can I do this? Is this possible?
Would appreciate a...
How do you call a javascript function at the end of button click code behind?
...
I am asking this from a language design point of view. So I am trying to find out
What is the rationale for the behavior of this?
To what degree the behavior of this was a mistake, or could be improved upon?
To clarify why I'm uneasy about this, consider this example:
var a = {};
a.f = function(){ return this; }
var f = a.f;
// f(...
jQuery currently has .next(filter) and .nextAll(filter) but I need something that fits in the middle of these - effectively, a .nextWhile(filter) that repeatedly does next until the filter is no longer true, then stops (rather than continuing to the end).
To demonstrate this, the following is some simplified HTML - (in reality, it is dy...
I've:
function Obj1(param)
{
this.test1 = param || 1;
}
function Obj2(param, par)
{
this.test2 = param;
}
now when I do:
Obj2.prototype = new Obj1(44);
var obj = new Obj2(55);
alert(obj.constructor)
I have:
function Obj1(param) {
this.test1 = param || 1;
}
but the constructor function has been Obj2... why that?
O...
Hi There
I'm trying to make a quick jquery plugin (as a learning exercise) for making a simple pager from a list of items (LIs in this case) and have run into a problem when passing the current selector (this) to a sub-function. The code is below.
The problem is when creating the dynamic nav (the plugin requires jquery 1.3) and I need...
I love Prototype but it doesn't come with any widgets. In particular, it provides nothing for window/dialog creation.
I've tried the Prototype Window add-on library but found it unreliable and it hasn't been maintained for a long time.
Anyone have any recommended solutions? Or any recipes/patterns for creating a dialog from first princ...
I'm trying to write a web page that takes excel info from the clipboard. I'd like to be able to pick up the XML Spreadsheet info, rather than just the text.
Is this possible? I'd like to do it in most browsers, if not all.
Thanks
...
Is there a way to determine which element submitted a form from within an onsubmit handler? Trying to write a generic handler that knows which element was clicked. For example, given this form:
<form onsubmit="onSubmitHandler">
<input type="submit" name="submit1" />
<input type="submit" name="submit2" />
</form>
How can I dete...
I would like to open external URLs from within my Flash project. I typically use something like this:
getURL("javascript:newwin=window.open('http://someurl.com','','');");
But, if Javascript isn't available (in cases where the SWF is not embedded in HTML) then this will fail. How can I detect whether Javascript is available? If it ...
Hello everyone,
I have the current problem, let's explain the context before :
I have a Modal popup extender who contains a form. There is a feature "Save and Add New", when the user click on this button the data in the form is saved in the database during postback and the page is reloaded.
I want this Modal popup to appear again on ...
Hi to all.
I want to perform a global replace of string using String.replace in Javascript.
In the documentation i read that i can do this with /g, i.e. for example;
var mystring = mystring.replace(/test/g, mystring);
and this will replace all occurrences inside mystring. No quotes for the expression.
But if i have a variable to f...