I have a link and on clicking the link I want to set the value of a flag variable to 1. Is that possible? Like
<a id='ctr' href='#' onclick='flag=1'> Hello </a>
And also how to write the function for the onclick event on the same line, like instead of
<a id='ctr' href='#' onclick='call_this();'> Hello </a>
function call_this(){
...
I have web page in PHP which displays all records in a table. I want to add check boxes against all rows and user can check a check box to check the checkboxes in each generated row..
how can I do this?
...
I'm trying to get the HTML code of this page: https://bscr.benq-eu.com/portal/serialcheck.cfm?sn=ID77806367002 with javscript using this method http://www.experts-exchange.com/Web%5FDevelopment/Miscellaneous/Q%5F21902549.html and it does not work. I think it is because the web request is done over HTTPS protocol.
How can I solve this?
...
hi,
I have two textboxes in my vb.net code
<tr>
<td align="right">
<b>ActivationReqDT:</b>
</td>
<td>
<asp:TextBox ID="ActivationReqDTTextBox" runat="server" Text='<%# Bind("ActivationReqDT","{0:dd/MM/yyyy}") %>' />
</td>
</tr>
<tr>
<td align="right">
<b>DeactivationReqDT:<...
The following deals with GSnewsBar object of the Goolge-Ajax search API which is explained here:
http://www.google.com/uds/solutions/newsbar/reference.html
There are some parameters which allow to change the layout of the news. But there is no example of how to set the news language.
Currently I always get news in English but my aim i...
How can I find out in a javascript function which was the calling (the former in the call stack) function?
I would like to determine if the former called function is a __doPostback in the onbeforeunload event.
...
Hi,
I have the following javascript function for rounding:
function round(val, numberdigits){
return Math.round(val*Math.pow(10, numberdigits))/Math.pow(10, numberdigits);
}
In most of the cases, it does its job well, but in some rare cases, the returned value has one digit more, which is always a 5.
Example list of results wi...
Is there javascript avaialable which implements AES-512 algorythm(i.e Encyption,Decryption)?
I found most of the javascripts implmented AES-128,AES-192,AES-256.
...
I have a jqgrid and a form. When the grid is refreshed, I am attempting to send the values of the form to the server side handler. For testing, I'm using just one variable in the form. Firebug shows that jqgrid is passing the field name, but the value is always null regardless of what is selected.
According the the jqgrid docs, I shou...
Hi I have written a abcd.ftl page which is beeing called in another defg.page
The abcd.flg page has the fallowing code
<div class="partnerOptInBox">
<div id="optInContent">
<form name="partnerOptIn">
<h4>Want the Latest</h4>
<p class="pad10Top">${partnerOpt.translation}</p>
<div class="pad10Top">
...
Is there any difference between
function MyFunc() {
// code...
}
and
var MyFunc = function() {
// code...
};
in JavaScript?
...
Is it possible to call some JS when the user closes a window?
I searched for JS event handlers and found only onunload, which calls the script whenever the user leaves a page, not necessarily closing the window.
The intended use is to call an AJAX script that unsets a few sessions pertinent to the popup window. There may or may not b...
Context:
From my javascript web UI, I launch a long-running (several minutes) operation that is conducted on the .NET2.0 backend. The call returns immediately with operation ID while the long-running operation run parallel. The operations are not CPU intensive, but conduct slow network calls. Once the operation is completed, I want to se...
Hi,
as per wikipedia terms REST is
REST can be considered the
architectural style for the World Wide
Web. The architectural style was
developed in parallel to the HTTP/1.1
protocol, based on the existing design
of HTTP/1.0
REST practices started long time ago along with HTTP evolution. If i understand the defenetions c...
Consider the following Javascript regular expression matching operation:
"class1 MsoClass2\tmsoclass3\t MSOclass4 msoc5".match(/(^|\s)mso.*?(\s|$)/ig);
I would expect it to return [" MsoClass2\t", "\tmsoclass3\t", " MSOclass4 ", " msoc5"]. Instead it returns [" MsoClass2\t", " MSOclass4 "].
Why?
...
Hey.
When making a simple WYSIWYG editor with JavaScript for a textarea I can check the current status of a button (Bold, Italic, Underlined etc) like that:
document.queryCommandState("bold")
But if I'd like to see if selected text has a link attached, how could I do that (or is it a longer process?). The same query (or queryCommandV...
I have this link:
<a id="myLink_33" href="javascript:toggleMe(1);">Toggle</a>
How can I change the href attribute of this link using Javascript/jquery so the link becomes this:
<a id="myLink_33" href="javascript:toggleMe(0);">Toggle</a>
...
[EDIT 07-22-2010] removed deoms from my site[/EDIT]
[EDIT 08-26-2009] added really weird issue to the bottom of question[/EDIT]
Hi everyone
I'm trying to get going with the mootools swiff thing and I seem not to get the loaderInfo.COMPLETE event in flash.
more precisely a dynamically loaded swf never loads completely, while a static one ...
Helllo All,
I'm looking to aggregate photos from various streams into one stream in a similar manner as to friend feed.
I'd like to be able to watch flickr and picasa and other sites with RSS feeds of my choosing and then create a timeline of top photos.
For example, assume that X's below are photos:
Event Name -- March 15th
X ...
Hi...I wanted to develop a Django app and one of the functionalities I'd like to have is dynamic drop-down lists...specifically for vehicle makes and models...selecting a specific make will update the models list with only the models that fall under that make....I know this is possible in javascript or jQuery (this would be my best choic...