We have an existing certificate issuing application (C#, ASP.NET, JavaScript) that issues certificates to Windows XP users using XenRoll in IE. I need to extend this to support Windows Vista and Windows 7 users, also using IE.
For Vista and 7, Microsoft replaced the XenRoll ActiveX controll with the new CertEnroll control. I've got this...
I have a <p> containing text. When the <p> is clicked on, I create a <textarea> containing the text from the <p>. Is it possible to calculate where in the <p>'s text the click occurred, and move the <textarea>'s cursor to that same point?
...
Hi I have the next code :
var str = "4 shnitzel,5 ducks";
var rgx = new RegExp("[0-9]+","g");
console.log( rgx.exec(str) );
The output on chrome and firefox is ' ["4"] ',
Why I don`t get the next result - ["4","5"] ?
...
So I have a registration page that works fine in Firefox, but IE 6-8 give me a 'document.info.altDate1.value' is null or not an object error on submit.
This is the body:
<DIV id=wrapper>
<DIV id=outer-space>
<DIV id=hfeed>
<H1>Register for <SPAN>Orientation</SPAN></H1>
<p style="width:550px;">Orientation fee is NON-REFUNDABLE, but can...
I have this code in a var.
<html>
<head>
.
.
anything
.
.
</head>
<body anything="">
content
</body>
</html>
or
<html>
<head>
.
.
anything
.
.
</head>
<body>
content
</body>
</html>
result should be
...
Hi,
I have few div HTML elements and i am cloning it with a clone(true) option as i want to copy the events also.
Now the case there are certain click events in my HTML div blocks and while crating events i use context parameter also like
var $block ="<div class='task-create-content' >"+
"<div class='task-create-previ...
Hi, I'm trying to find a javascript method to delete flash cookies on a page, but with no luck.
I know it can be obviously done through flash or flex, but the problem is I know nothing about flash, flex and actionscripts...So my question is: Is there a way to just load a prebuilt flash movie in a page, which just programmatically deletes...
I'm calling a C# COM component using javascript: keystore = new ActiveXObject("RBCrypto.KeyStore");. I've noticed this instance stays around until I exit the browser. Is there anyway to "release" that object when the user leaves the page? Currently i'm using:
window.onunload=function() //when a user leaves the page close the keystore
{
...
hello every one
i have a query
thr is one web page
and i am using two iframe in that
like equal partision of a page
and there are some contents , words , text which are same in both parts
and if i am selecting any one word or sentence which are also in second part will be highlight
...
I have a webpage that use $(document).ready() to build the interface. Then the user can go to a child page, and to go back to the original page he can press the browser's "previous" button or a "Return" button in the page which triggers a history.back();. Back on the original page, $(document).ready() is not triggered so the page is miss...
I really don't understand why I get a different response from xhrPost with Dojo. For IE8 it works fine and the XML can be read - but in Firefox it works differently and there is no such attribute as "serverResponse.results[0].xml" - see below:
var serverResponse = dojo.xhrPost(xhrArgs);
serverResponse.results[0].xml
like you get in I...
I am wondering how fast client side javascript is compared to server side Java in terms of raw computational power.
For instance, sorting. Should it all be done server side if possible? And how about iterating through a collection?
...
Hi ,
I'm in the process of moving a JSF heavy web application to a REST and mainly JS module application .
I've watched "scalable javascript application architecture" by Nicholas Zakas on yui theater (excellent video) and implemented much of the talk with good success but i have some questions :
I found the lecture a little confus...
I need to implement a print page functionality with the following restrictions:
i cannot have a print view (no print.jsp to point to)
i cannot rely on print.css alone (because i have to move stuff around a lot in the DOM to get the page i want to print)
So i implemented this little script that can help clarifying where i'm going with...
Hello!
I have my website user "M" and I also allow user to connect to facebook account to see his/her wallpost via my website (such as tweetdeck).
I allow that my website user have only one facebook account like.
User "John" connect with his facebook
account name "FbJohn" something like
this.
I also design my database to stor...
Some Safari features (such as detecting rotation/accelerometer) do not function when a website is loaded in a native app's browser (such as Foursquare). The user agent is still Safar for iPhone... is there any way to detect that the site is actually loading in a native app?
...
I am using the eBay JavaScript Finding API. The currency id member of the findItemsAdvancedResponse object is defined as @currencyId. So I am retrieving this value as:
function _cb_findItemsAdvanced(root) {
var items = root.findItemsAdvancedResponse[0].searchResult[0].item || [];
var html = [];
if (items.length == 0) {
...
I would like to put a shadow around any given text, or make the text more anti-aliased looking.
For example lets say I'm running a simple text such as:
var titleName = R.text(x+200, y-75, "Lorem Ipsoup de jour")
.attr({font: '75px Helvetica, Arial', opacity: 1, fill: "#dfe6ec"})
The text is somewhat chunky looking at...
I have a code that fetches a list from DB. Using that returned array i am creating a grid table and two combo boxes dynamically. Now, the code is working fine for first time. I can also able to add new entry to the database and show it in the grid. Now the problem is with the combo box.
Whenever i add a new entry, the table gets updated...
I make a Ext tree ,every node contains a checked,every node has a "checkchange" listeners. If I choose a node ,how to make all its childNodes' checked selection to true? And how can I get all child leafNodes' id ?
...