I'm attempting to create a simple firefox extension and am stumbling on what I'm allowed to do in a XUL window.
I'd like to use document.write or get a handle on a textarea to collect data and display it when a button is clicked.
Are there any tutorials on how to do this? From what I've been reading, people have suggested opening a ne...
If you visit here: http://www.egyptevakantie.nl/dahab, click on the "andere plaatsen" tab, and then click on an image it brings up a magnified image, courtesy of the jQuery lightbox plug-in.
However, if you do the same here http://www.egyptevakantie.nl/dahab?rhys=yes (essentially the same site except for a couple of stylesheets and one ...
In most JSON serializers/deserializers, the "key" part in a javascript dictionary/hash array is written as a string.
What is the benefit of using a string as the key as opposed to just typing the intended name in?
For example, say I define two objects k1 and k2 like so:
var k1 = { a: 1, b: 2, c: 3 }; // define name normally
v...
hi,
I was wondering if there was any method to implement browser's download file prompt using javascript.
My reason - well users will be uploading files to a local fileserver which cannot be accessed from the webserver. In other words, both will be on different domains!
e.g. let’s say websites hosted on www.xyz.com, but files would resi...
Can jquery ajax code call a webservice from another domain name or another website?
Like this:
$.ajax({
type: "POST",
url: "http://AnotherWebSite.com/WebService.asmx/HelloWorld",
data: "{'name':'" + $('#price').val() + "'}",
contentType: "application/json; charset=utf-8",
data...
Page-scraping on the Internet has seem to have hit somewhat of a wall for me, as there are more and more sites that are dependent on JavaScript for rendering portions of the screen.
It seems to me that with so many open source layout and JavaScript renderers released (like WebKit, Gecko and Chromium + V8) that someone must have made a t...
I have a simple, table based HTML page with a very simple style sheet. I can open the page in IE7 and FireFox 3 and it looks exactly the same. I can print the page from both browsers and it looks exactly the same. We'll call the page "ProblemPage.htm"
Now, inside an ASP.Net page, I create an IFrame and load that HTML into the IFrame lik...
So, I have a form that consists of 4 inputs, username, password, email, and name.
I am sick and tired of having to make a javascript function for each of them, because each input is a text input, and when a user clicks the input box I have it change the background of the input to a different color.
So heres how I coded:
The form input...
I'm writing a web-based game that involves clicking links on various sites on the internet. I know it sounds strange but the basic premise is that you start on my page where you click a link to some page on another site. You continue to follow links until you get to the page you are trying to reach. Think WikipediaGame.org. The differenc...
Hi friends, ok, I'm back. I totally simplified my problem to just three simple fields and I'm still stuck on the same line using the addJSONData method. I've been stuck on this for days and no matter how I rework the ajax call, the json string, blah blah blah...I can NOT get this to work! I can't even get it to work as a function when a...
Hi all, I need a function to get only the empty href query parameter names so I can replace them later with values from another array. After hours of failing at regular expressions, here is what i resorted to:
/**
* getEmptyQueryParams(URL)
* Input: URL with href params
* Returns an array containing all empty href query parameters.
*/
f...
I use various code checkers for Java development but I haven't used one for HTML,. CSS, Javascript.
Do any exist. That flag bad practices or similar tool.
...
I was reading this article today on two different regular expression algorithms.
According to the article old Unix tools like ed, sed, grep, egrep, awk, and lex, all use what's called the Thompson NFA algorithm in their regular expresssions...
However newer tools like Java, Perl, PHP, and Python all use a different algorithm for thei...
<div>select this<strong>dfdfdf</strong></div>
<div><span>something</span>select this<strong>dfdfdf</strong></div>
how do i use jquery or just javascript to select the value of the div tag but not include any child elements
//output
select this
...
I'm looking for some more thoughts about the best way to initiate a file download from Javascript.
http://stackoverflow.com/questions/60590/best-way-to-initiate-a-download has a lot of good ideas which can be summarized:
Set the src on an iframe
Use window.location.replace()
Use a page with a meta refresh header
Use a window.open()
Let...
What would be the advisable thing to do to maximize the performance while using TreeView?
By maximize the performance, i mean minimize the number of trips between client to server, ie postbacks.
Would that mean then, that most of my Business logic will sit in the Javascript? What would be the compromise here?
I am talking about ASP.n...
Is there any way to find out that how many elements are going to be loaded in a webpage via javascript?
for example, I'm going to show the visitor something like this:
3 objects loaded, 10 ones remain! please wait.
...
If I load this in a new tab (FF3) it works. If I load it in the current tab it just prints the url.
I think it's actually a matter of loading it in an existing gmail tab. So say, make the bookmarklet, click it once, then click it again. That seems to be the way to recreate the problem.
Any idea what would cause this? I can think of a...
What are situation when you want to use window.showModalDialog function? It seams that you can do exactly the same with window.open function and few parameters that remove some of the chrome (navigation, addressbar, etc...)
When would you want to use window.showModalDialog and window.open?
...
Is it possible to preload all page contents (like showing a loading bar / animated gif.. or loading text.. ) until the contents are fully loaded and then displayed to the user/visitor ? If this is possible, can you give me just directions or resources to follow to achieve this. Because I was able to find image preloaders easily, but I am...