Hello. I am needing a piece of javascript to be run whenever a postback occurs. Well, actually multiple pieces. This is to be done inside a custom control, so the javascript code that should be run may be used a lot of times.
I currently have it so that the custom control will create a chain of "overrides" for the __onPostBack function...
I have iframe with id="iView" and designMode = on.
My code:
var iframeWindow = document.getElementById('iView').contentWindow.document;
var range = iframeWindow.getSelection().getRangeAt(0);
The Error I get:
Microsoft JScript runt...
In Perl I can repeat a character multiple times using the syntax:
$a = "a" x 10; // results in "aaaaaaaaaa"
Is there a simple way to accomplish this in Javascript? I can obviously use a function, but I was wondering if there was any built in approach, or some other clever technique.
Thanks
...
how could I declare several js array dynamically?
For example, here is what tried but failed:
<script type="text/javascript">
for (i=0;i<10;i++)
{
var "arr_"+i = new Array();
}
Thanks!
...
I’m in the process of developing pretty basic web application, that is mostly so I could learn jQuery/ajax/php on the way (and have some fun). I want to make it as accessible to users as possible so it should work with Javascript disabled, validate to AAA and all that. With JS disabled would be of course without all the bells and whistl...
i have this code:
$('#categories').change(function() {
var myCars = new Array("Saab", "Volvo", "BMW");
addRowToTable(this.value, myCars);
$('#listings').hide();
});
but i dont want it to call the addRowToTable method if the user selects the first item because the first element says "Plea...
I have javascript date object which gives me a date string in this format, "Wed Dec 16 00:00:00 UTC-0400 2009".
I pass this via Ajax to the server (ASP.NET c#)
How can I convert, "Wed Dec 16 00:00:00 UTC-0400 2009" to a C# DateTime object. DateTime.Parse fails.
...
I have two js arrays already, say: names and values (with the same length), now I would like to construct a json object in certain format? For example:
names = ["label1","label2","label3"];
values = [[[0,1],[1,9],[2,10]],[[0,89],[1,91],[2,1]],[[0,1],[1,9],[2,10]]];
I would like to have a json array data_spec in this format:
[{
...
Hi, I would like a tool (or firefox) that enumerates all , elements on an target HTML page and generates a new HTML page which I can use to post to the original page.
I want to use this for security / sql injection testing, to circumvent any JavaScript validations.
The Web Developer firefox plugin is close, but it doesn't let me chang...
I can't figure out how to access the data between the inner nested tags. When I run this javascript, all I see is "Null".
Here is what my xml file named "bboard.xml" looks like:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- Designed by Someone -->
<bulletinboard>
<article>
<title lang="en"><h2>eeeeeeeeegg #1</h2></title>
<detail><s...
I am creating a flash site and am trying to make it SEO. I'm thinking a possible solution would be to render html to any search engine bot, or to anyone who needs accessibility, and rendering the flash site for the rest of the users.
First question is, is this acceptable for google, and SEO in general?
This would mean I would redirect...
Hi, I am working on a website where the visitor should be able to download a pdf file.
(There are three links to choose from but that is irrelevant)
I wanted to know how to make it so that the visitor can simply click the link and not have to
right click > Save (target) As...
I am open to PHP and or Javascript solutions. Thanks.
ED...
Hi,
What I need is very simple but, searching the web, I didn't find any example.
I am using the jqModal jQuery plugin for displaying content dynamically (via Ajax) in a modal dialog. Once, this modal content is loaded, I need to bind some event on the dialog DOM elements. Therefore, I would like to assign an handler to the "success" A...
Hi,
I'm trying to set the wordpress posting form to multipart/form-data for a custom write panel. I am attempting to use JQuery but can't seem to get it to work.
jQuery(document).ready(function(){
jQuery('form#post').attr('enctype','multipart/form-data');
jQuery('form#post').attr('encoding','multipart/form-data');
});
This is...
Hello,
I have an issue with javascript/jQuery...I have a web service that will process information from a list from the client. What I want to do is have the client send the data piece by piece allowing the web service to do its job without being overloaded. Also I am using a jQuery UI progressbar which will allow the user to see the pr...
I have a javascript function I'm writing which is being used to include an external JS file, but only once. The reason I need such a function is because it is being called when some content is loaded via AJAX and I need to run page-specific code to that content (no, just using .live won't cover it).
Here's my attempt, shortened for brev...
MAIN WINDOW
// some javascript
//some html
//here ajax-call to load all divs
//all divs hidden by default
//based on user choice(from select option), show selected group of divs
//click any shown div to call corresponding popup
POPUP WINDOW
//edit contents of that div.
//on close i need
1. refresh main window to load all divs
2. sele...
Hi all:
Is there a way to find out the id of the IE window that generates alert boxes? I assume it is the document or window itself.
Either simple html or jQuery can be used.
I tried something like:
var id = $(this).parent().attr('id');
but to no avail.
Ultimately I want to find out the ID of the window/document which generates j...
I was wondering how to do twitter OAuth via a popup, i.e. load up the Oauth page in a popup and make the callback close the child window and reload the parent window.
Edit: OK iframes are bad, but how would you accomplish the above, I notice posterous.com does this - I'm looking to achieve the same flow as FB connect.
...
How to make common reusable css for almost every common things in web design? Like Horizontal and vertical form with javascript validation, Horizontal and vertical navigation with or without dropdown, multiple horizontal boxes etc.
...