I have a JS script (widget) which is added to other websites. Technically its similar to Google analytics. My question is: what are your advices for ensuring robustness, keeping the code from interfering with other code on the site, avoiding errors for users etc. In general, what should I know to write a professional grade widget.
Notes...
I want to call a google service using javascript with a keyword and a website url, and get from google the position of this site while searching with this keyword.
This is possible? can be done just using javascript or will need a server side language?
...
Hello, I have a script that updates a table when there are new entries in the database. It pulls a time from the last row in the table and then grabs all the entries that were entered since then.
It runs fine the first time, it grabs the new entries and updates the table. When it runs the second time, however, it will use that initial t...
Hi all,
I don't think I'm the first one in the world who want to re-invent the wheel for the password input in HTML. I keep Googling but still unable to find the solution.
Okay, here is the work I'd done:
h t t p: / / www.symplik.com/password.html
(It just a plain html code, nothing really fancy :>)
The "password" is indeed a text i...
Is getElementByClass safe to use across browsers like getElementById?
Update
Currently using:
window.opener.document.getElementById
But I want to reference the object by classname (there will be only 1 element with that classname).
...
Given the following flow:
1) User clicks on a link, opens a popup window.
2) User does some things, clicks on a button to save changes.
3) Using AJAX, some data is POSTed.
4) In the AJAX response handler, the popup is closed and the main window refreshed.
There is a problem in FireFox 2, where closing the popup within a response handle...
I have a Cocoa app containing a WebView. I'm targeting the 10.4 SDK due to the app's installed customer base. (i.e. I cannot require Leopard.)
I have two files: index.html and data.js.
At runtime, in response to user input, I write over the data.js file, often, populating it with current data from the app.
(The data.js file is used b...
I am trying to append some text (divs) to a scrollable div and then automatically scroll the the bottom.
For some reason, when I try to do this in IE8, it is not working. Uncommenting the 'alert' lines show that IE8 returns two values for the ScrollHeight attribute.
Does Jquery appends run asynchronously or does the DOM take time to r...
Here a sample use case:
I request a simple form via an ajax request. I want to submit the result to the same page that I requested. Is there a way to access the URL of that request in the resulting request's javascript?
Below is some code that accomplishes what I want via javascript AND PHP. The downside to this is that I have to inclu...
First of all, pardon my hacky code, I'm just trying to try this out and I'm learning javascript for the first time. Basically, Given the string "abc!random{3}" would mean return a string that starts with "abc" and ends with a random number from 0-3.
Here is what I have:
var pattern=/!random{([^{]*?)}/gi;
var text="abc!random{3}def!rand...
Hello,
I'm very new to programming so please forgive me my noobness.
I'm using the excellent jQuery tabs for my application, I load external content into the tabs via ajax, and in one of those tabs I need to programatically reload the content of that tab fter a result. I've followed the documentation* to no avail.
I have initialized th...
how do you add a scroll bar to the html select box? is there any javascript library that emulate this behavior?
or is there anyway to redesign, the interface I have 2 select box, items can be shifted to the right select box via >> & << Filezilla, norton commander, total commander kind of interface where items can be shifted left and ri...
I am making some thing that requires that I have to control windows sound recorder like starting recording and stopping recording and saving the recorded sound. how to control that. One thing more I don't want to see the recorder window. I will be grateful to who give the answer..
...
Is there a plugin-less way of retreiving querystring values via jQuery? if so how, and if not what plugin do you recommend?
...
I'm trying to write a greasemonkey script for a rather unpleasantly structured page. I'd like to be able to show and hide different entries, but they're in the form:
<a name="first"/>
<h3>First</h3>
Some text....
<!-- end -->
<a name="second"/>
<h3>Second</h3>
Some text....
<!-- end -->
I was hoping to be able to wrap these in <div>s,...
I've created a service that helps with error pages in web apps via an snippet of code that is copy/pasted in to the error page templates (a la Google Analytics). The status code is set to a hidden input within the installation code. The problem is that I don't want the installation code to be dependent on a server-side language (e.g. PHP...
Possible Duplicate:
Gmail like file upload with jQuery
I am learning JQuery and would like to know if there are any ways by which we can implement file uploading functionality similar to that found in GMail for attachment (while composing mail) using JQuery?
...
Hi,
This is my first post and I am fairly new to jQuery but I was hoping to get some help on creating objects and arrays using jQuery.
What I'm basically after is a way of creating an abject that will store the following information, i.e.:
[index, name] such as [0,"NameA"][1,"NameB"] etc.
Unsure how to create an object/array to store...
It's the year 2009. Internet Explorer 8 has finally been released, and Firefox is coming up to 3.5. Many of the large browsers are starting to integrate features from CSS3 and HTML 5, or have been doing that for quite a while now. Still, I find myself developing web pages exactly the same way I did back in 2005.
A lot of progress has b...
I have some div on page loaded from server by ajax, but in the scenario google and other search engine don't index the content of this div. The only solution I see, it's recognize when page get by search robot and return complete page without ajax.
1) Is there more simple way?
2) How distinguish humans and robots?
...