Hi,
I've been experimenting with a simple project that essentially just stores the number of visits to the sites, along with the latitude / longitude of the user (it's mainly for people visiting via the iPhones Safari browser).
I've managed to store the 'clicks' to the page via PHP / MySQL, and I can display the users lat / long via th...
I am using Netbeans to edit my HTML project.
I have defined the project as a PHP project (although it is just HTML).
The problem: Netbeans does not recognize this as Javascript:
<script type="application/javascript">
or
<script type="application/x-javascript">
As such it does not enable Javascript editing features. (Autocomplete a...
Hi
I'm passing some data through Json to a Webservice.
My problem is that i'm passing html (from a tinyMCE input), so the var has content using quotes and that's giving me problems.
I'm passing the values like this:
data: '{ id: "' + news_id + '", title: "' + news_title + '", body: "' + news_body + '" }',
Is there anyway to espace q...
I influenced from StackOverflow Chat.
Here when the page is inactive then number of the new incoming chat messages are displayed in the Page title. When the page is activated the this number is disappeared. How can I implement this concept in my application? I also want to highlight that window.
...
i am having a application in which java script is must. but i am facing problem when at any client browser has java script disabled. i want a code using which i can check the browsers java script enabled/ disabled property so that the user cannot login until he enables javascript. can anyone help me in this code
...
What will be the best possible way to create Custom Scrollbars using Javascript?
Thanks
...
Dear Friends,
I have a grid view control with Template Field containing Item Template as Checkbox control
and the Header Template is containing the label with column header name.
I want to click the coulmn header label and all the check boxes must be checked once.
Please provide me some examples or ideas how i can achieve this
<asp:...
I am trying to add a <div> using JavaScript and then change its width/height/top/left attributes. But when I use the XHTML 1 Transitional doctype, it stops working.
This is how I am creating the <div>:
var div=document.createElement("div");
document.body.appendChild(div);
div.innerHTML='<div id="myID" style="z-index:9998;border: 1px so...
Hi,
how can i get the document object out of this
var xmlobject = (new DOMParser()).parseFromString(xmlstring, "text/xml");
...
Hai guise! I am having a spot of trouble with some jQuery I am using, this was previously working but I have made many developments since then and tried to track back to find out what the issue was, but I am unsuccessful - hence, my presence on here. Anyway, I am getting some JS errors in both IE7 and IE8 with the catch my frame jQuery i...
I would like to append a .txt file ussing HTML or java I know this is possible
but keep on running into the ActiveX warning, which in this case is just annoying (we know ActiveX stop being so darn dogmatic)
is there just a simple way of scripting this without AxtiveX prompts?
The current script as follows (or at lest snippit of)
<titl...
My site loads a pretty large js file the first time a user visits, and I want to write something like "Loading .. for the first time" it the file isn't from cache.
Is this possible in javascript?
...
Hi,
I have three input fields for collecting telephone numbers from users. I display one field and hide the other two. I have placed a link(Add home number) below it and when you user clicks on the link it shows the hidden input field. And I have placed one more link below it when clicked displays the last input field.
<input type="t...
Basically I have some event listeners and their handling function defined as follows:
<div id="postTextBlock"/>
<div id="postImageBlock"/>
<div id="postQuoteBlock"/>
<div id="postLinkBlock"/>
document.getElementById('postTextBlock').addEventListener('click', function() { showPostType(postTextBlock) }, false);
document.getElementById('p...
I currently have this regular expression to split strings by all whitespace, unless it's in a quoted segment:
keywords = 'pop rock "hard rock"';
keywords = keywords.match(/\w+|"[^"]+"/g);
console.log(keywords); // [pop, rock, "hard rock"]
However, I also want it to be possible to have quotes in keywords, like this:
keywords = 'pop ro...
Is it possible to take the contents of a variable and stick it into an array like so (I've tried to no avail):
First I get these values from a database and using php form into a hidden input:
{value: '1', name: 'name1'},{value: '2', name: 'name2'}
Then collect with javascript
document.getElementById("myelement").value
Then put the...
What this javascript does? It's a buffer overflow? It's a xss? what it does? What is the decoded version of this farbbibliothek[x] array?
<SCRIPT>
farbbibliothek = new Array();
farbbibliothek[0] = new Array("#FF0000","#FF1100","#FF2200","#FF3300","#FF4400","#FF5500","#FF6600","#FF7700","#
FF8800","#FF9900","#FFaa00","#FFbb00","#FFcc0...
Hi,
I am having a site with some pages on https connection. From these Https pages , i have to use a http ajax request for some errors retrieval like blank fields. But This error messages are not coming. Is there any solution to it or i have to make that ajax request to file on https connection .
Thanks in advance
...
Hi there,
I want to check whether checkbox is checked or not using jquery. I want to check it on checkbox's onclick event.
<input type="checkbox" onclick="javascript:check_action();" id="Public(Web)" checked="checked" value="anyone" name="data[anyone]">
Is it possible? How?
Thanks.
...
I am working on a large website (1600+ pages) that needs upgrading to pass standards compliance. As a result, for every OnClick there has to be, say the Standards, an OnKeyPress handler, so that people not using a mouse can still access the content.
Some tags have an onclick javascript handler. EG:
<a onclick="doSumat();">
Is the f...