Hello,
I'm developing a Vista gadget. The gadget is working with local .mdb database, OLEDB used. The code is following:
var cs = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" + getDbFilePath() + ";Persist Security Info=False;";
var connection = new ActiveXObject("ADODB.Connection");
connection.ConnectionString = cs;
It works unde...
Hi guys,
i am selecting values to my textbox from a popup window and i hav used
onfocus="this.blur();" for textbox, i want to disable this function in editbutton while i want to edit . i cant use readonly since the value is not passed to server due to postback,
pls help
...
I am trying to setup a function to allow moving 'up' and 'down' of a table row in a form. The number of table rows is dynamic -- the user can hit a button to add additional rows. There are multiple fields in each table row. There is a header row and footer row with different class names, hence the check of hasClassName.
I first wrote th...
Since the getElementsByTagName() function is new (DOM-1?) I wanted another more reliable method to get a reference to an element based on its tag name/id.
Edit- Without using a framework, since I need to cut down on size; so 10-20K for a framework is unacceptable. I just need the JS code that can fetch an element
...
Hi,
I have a javascript code which builds a link with 2 params.
Now, I know how to post these params using the address, but I don't want to use it.
I've tried using cookies for posting the params, but somehow I can't read them on the server side.
this is the client side code
document.cookie="name="+"value";
this is the server side...
Since the getElementById() function is new, I wanted another more reliable method to get a reference to an element based on its id.
Since I need to cut down on size, 10-20K for a framework is unacceptable. I just need the JS to fetch an element.
...
Im trying to think how to do this with html elements.
There is nothing special about the colors, so I don't need to make them images.
Do note that the text is right aligned. Also, the color bar goes up to the text from the left.
So this could be implemented by having the text float right with background color white, and a div with th...
I have a table with data such as this:
<table>
<tr onclick="window.location='download.php?id=1'">
<td>Program 1<br/>Short Description 1 (<a onclick="$.popup.show('Install Instructions', 'Instructions pulled from DB here')">Instructions</a>)</td>
<td>Added by user and date/time here<td>
<td>Filesize here<td>
<td><a href="edit.ph...
Hi there,
Can anyone help, seem to have an issue placing a onclick event of an anchor tag, it works on an image.. I have this
this.whereAreWe = document.getElementById('where_are_we');
this.whereAreWe.onclick = this.whereAreWe;
I have placed a A tag using the id of "where_are_we" ...
but it never executes.. if I change it to an imag...
When using an XMLHTTPRequest in javascript, I want to send it to an external website, rather than the one where the .js file is hosted. To send it to test.php on the current server, I would use
request.open("POST", "test.php", true);
but for the second arguemnt, how do I send it to another website. "example.com/test.php" looks for a f...
Hello guys,
I was wondering, how in jquery am I able to hide a div after a few seconds? Like Gmail's messages for example.
I've tried my best but am unable to get it working.
Thanks!
...
Is there any alternative to doing the following line:
document.getElementById("btn").setAttribute("onclick", "save(" + id + ");");
This line basically changes the onclick() event of a button to something like: save(34); , save(35); etc. However it fails in IE 7 and 6 but works in IE 8 and Firefox.
I can use jquery for this as well.
...
How do you prevent javascript page from navigating away?
...
I'm trying to use the jQuery UI Dialog to display a confirmation prior to executing the action...in this case navigating to the selected link....but in another case, I might like to use AJAX delete.
I thought I could pass the action as parameter of the custom_confirm function:
$("a.edit").click(function(e){
e.preventDefault()...
I have a very strange bug going on. I cannot get the flyout to show on my gadget, despite having reproduced the flyout code character for character from a gadget that has a flyout that works fine.
Here's the code:
function doFly(i){
var div = 'div_' + i;
flyHTML = $(div).html();
if (System.Gadget.Flyout.show == false){
System.Gadge...
I've been trying to embed a flash widget inside a rich text editor (http://code.google.com/p/lwrte/), by adding an tag to the iframe's HTML using mozilla's .insertHTML function (http://www.mozilla.org/editor/midas-spec.html), but for some reason it never shows up - using firebug i can see that the embed tag is there, but it has stripped...
CampFireNow has a voice chat over the browser. It seems that you do not need any plugins to install to get it working. This is a contrast to Gmail, where I needed to install an app.
I would like to implement a similar feature for my application. Is there a way to do this without requiring a plugin?
...
I can add an attribute to items in a RadioButtonList item like so:
PaymentMethodDropDownList.Items[0].Attributes.Add("onclick", "javascript:showNoMethods();");
PaymentMethodDropDownList.Items[1].Attributes.Add("onclick", "javascript:showCreditCardMethod();");
PaymentMethodDropDownList.Items[2].Attributes.Add("onclick", "javascript:showS...
I'm changing an IFRAME's src in order to reload it, its working fine and firing the onload event when its HTML loads.
But it adds an entry to the history, which I don't want. Is there any way to reload an IFRAME and yet not affect the history?
...
I've been using a custom function for some time now to prevent clickjacking on certain sites. However, I've been surprised to find there's not a lot out there about how to do this 'idiomatically' using the various popular JavaScript frameworks.
Are there users of jQuery, Dojo, YUI, and/or ExtJS that have used their framework to implemen...